.node.custom-staff h2.title { clear: both; margin: 20px 0; font-size: 1.6em; color: white; background: #900028; padding: 5px 20px 7px 20px;}



.element.staff-member {
  display: block; width: 100%; margin: 0 auto 30px; vertical-align: top;
}
.element.staff-member img.staff-image {
  display: block; max-width: 100%; height: auto; margin-bottom: 10px;
}
.element .staff-name,
.element .staff-title,
.element .staff-company,
.element .staff-email {
  text-align: center;
}

.element .staff-name {font-size:1.4em;color: #900028;}

/* Staff Photos Section Tweaks */
.staffphotos .element.staff-member {display: block; vertical-align: top; width:22.75%; margin-right: 3%; margin-bottom:35px;float:left; }
.staffphotos .element.staff-member:nth-of-type(4n+4) {margin-right:0;}
.staffphotos .element.staff-member:nth-of-type(4n+5) {clear:both;}


/* Group Photo Section Tweaks */
.groupphotos .element.staff-member { display: block; width:48%; max-width:48%; margin-right: 4%; margin-bottom: 4%; float:left; vertical-align: top;}
.groupphotos .element.staff-member:nth-of-type(2n+2) {margin-right:0;}
.groupphotos .element.staff-member:nth-of-type(2n+3) {clear:both;}


@media only screen and (max-width:1024px) {  
  .staffphotos .element.staff-member:nth-of-type(4n+4) {margin-right:4%;}
  .staffphotos .element.staff-member:nth-of-type(4n+5) {clear:none;}
  .staffphotos .element.staff-member {width:30.6%; margin-right: 4%; }
  .staffphotos .element.staff-member:nth-of-type(3n+3) {margin-right:0;}
  .staffphotos .element.staff-member:nth-of-type(3n+4) {clear:both;}
}


@media only screen and (max-width:768px) {  
  .staffphotos .element.staff-member:nth-of-type(3n+3) {margin-right:6%;}
  .staffphotos .element.staff-member:nth-of-type(3n+4) {clear:none;}
  .staffphotos .element.staff-member {width:47%; margin-right: 6%; }
  .staffphotos .element.staff-member:nth-of-type(2n+2) {margin-right:0;}
  .staffphotos .element.staff-member:nth-of-type(2n+3) {clear:both;}

  .groupphotos .element.staff-member { display: block; width:100%; max-width:100%; margin-right: 0; margin-bottom: 35px; float:left; vertical-align: top;clear:both;}

}

@media only screen and (max-width:480px) {  
  .staffphotos .element.staff-member {width:100%; margin-right: 0; clear:both;}

}
