/*******************************
 * REMOVE
  - updates for the layout site - try to use your site defaults for headings, links, etc. 
    the other font sizes are within their classes
 *****************************************************************************************/
.ui-selectmenu-button span.ui-selectmenu-text {
  font-weight: 300;
}

/*******************************
 * OVERRIDES
 *******************************/
#staff3-return {
  text-align: right;
}

#staff3 a,
#staff3 button,
#staff3 .ui-selectmenu-menu .ui-menu li {
  transition: .3s;
}

/* staff colors*/
.staff3-items article .staff3-rollover {
  background-color: rgba(51, 51, 51, 0.8);
  color: #fff;
}
.staff3-items article .staff3-rollover p {
  color: #fff;
}
.staff3-items article .staff3-rollover p span {
   /* Lightened for legibility */
}
.staff3-items article .staff3-rollover ul li a {
  color: rgba(51, 51, 51, 0.8);
  background-color: rgba(255, 255, 255, 0.5);
}
.staff3-items article .staff3-rollover ul li a:hover {
  background-color: #fff;
}

.staff3-items.staff3-detail article ul.staff3-social li a {
  color: #ffffff;
  background-color: rgba(51, 51, 51, 0.5);
}
.staff3-items.staff3-detail article ul.staff3-social li a:hover {
  background-color: #5d7b9d;
}

 /*******************************
 * SVG ICONS
  - may need to change url for location...or better yet update to match the site
 *********************************************************************************/
@font-face {
  font-family: 'staff-Icons';
  src:
    url('../ttf/staff-icons3b48.ttf?a0v504') format('truetype'),
    url('../woff/staff-icons3b48.woff?a0v504') format('woff'),
    url('../svg/staff-icons3b48.svg?a0v504#staff-Icons') format('svg');
  font-weight: normal;
  font-style: normal;
}

[class^="iconstaff-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: 'staff-Icons' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.iconstaff-images:before {
  content: "\e900";
}
.iconstaff-podcast:before {
  content: "\e901";
}
.iconstaff-envelop-opened:before {
  content: "\e902";
}
.iconstaff-sphere:before {
  content: "\e903";
}
.iconstaff-search:before {
  content: "\e904";
}
.iconstaff-arrow-up:before {
  content: "\e905";
}
.iconstaff-arrow-down:before {
  content: "\e906";
}
.iconstaff-share:before {
  content: "\e907";
}
.iconstaff-facebook:before {
  content: "\e908";
}
.iconstaff-twitter:before {
  content: "\e909";
}
.iconstaff-instagram:before {
  content: "\e910";
}
.iconstaff-feed:before {
  content: "\e90a";
}
.iconstaff-youtube:before {
  content: "\e90b";
}
.iconstaff-vimeo:before {
  content: "\e90c";
}
.iconstaff-flickr:before {
  content: "\e90d";
}
.iconstaff-linkedin:before {
  content: "\e90e";
}
.iconstaff-pinterest:before {
  content: "\e90f";
}

/*******************************
 * FILTERS
  - recommended to remove and use site defaults if possible
 ***********************************************************/
.staff-filters {
  position: relative;
  margin-bottom: 4em;
  padding: 1em 0;
}
@media (min-width: 1024px) {
  .staff-filters {
    padding: 1em;
  }
}
.staff-filters:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
}

#module-search {
}
@media (min-width: 1024px) {
  #module-search {
    float: right;
  }
}

#module-search-term {
  outline: none !important;
}

.ui-selectmenu-button {
  margin: 0 auto .5em auto;
  width: 200px !important;
}
@media (min-width: 1024px) {
  .ui-selectmenu-button {
    float: left;
    margin: 0;
  }
}

.ui-selectmenu-button span.ui-icon {
  display: none !important;
}

.ui-selectmenu-button span.ui-selectmenu-text {
  display: block;
}

.ui-selectmenu-button span.iconstaff-arrow-down {
  font-size: 28px;
  font-weight: normal !important;
  position: absolute;
  top: 10px;
  right: 12px;
  text-align: left;
}

.ui-selectmenu-button.ui-state-disabled {
  cursor: default;
  opacity: 0.5;
}

.ui-selectmenu-menu {
  display: none;
}

.ui-selectmenu-menu .ui-menu {
  list-style: none;
  overflow: auto;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

.ui-selectmenu-open {
  display: block;
}

/*******************************
 * LIST
 *******************************/
.staff3-heading {
  text-align: center;
}

#staff3-results {
  position: relative;
}
#staff3-results.loading {
  min-height: 20em;
}
#staff3-results.loading:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  background-image: url(../svg/preloader.svg);
  background-repeat: no-repeat;
  background-position: center 40px;
  background-size: 64px 64px;
}
#staff3-results.loading.transparent:after {
  background-color: transparent;
}

.staff3-items.staff3-row {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}
.staff3-items.staff3-row article {
  width: 80%;
  padding: 0 10%;
  text-align: center;
  margin-bottom: 3em;
}
@media (min-width: 768px) {
  .staff3-items.staff3-row article {
    box-sizing: border-box;
    padding: 0 1.5em;
    -webkit-flex: 0 0 50%;
    flex: 0 0 50%;
  }
}
@media (min-width: 1024px) {
  .staff3-items.staff3-row article {
    -webkit-flex: 0 0 25%;
    flex: 0 0 25%;
  }
}
.staff3-items.staff3-row.pastors {
  -webkit-justify-content: center;
  justify-content: center;
}
.staff3-items.staff3-row.pastors article {
  width: 100%;
    padding: 0;
  }
@media (min-width: 1024px) {
  .staff3-items.staff3-row.pastors article {
    -webkit-flex: 0 0 33%;
    flex: 0 0 25%;
    padding: 0 .5em;
  }
}
.staff3-items.staff3-row.featured {
  -webkit-justify-content: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .staff3-items.staff3-row.featured article {
    padding: 0 .75em;
  }
}

.staff3-items article .staff3-image {
  position: relative;
  margin-bottom: 1.5em;
  overflow: hidden;
  transform-style: preserve-3d;
}
.staff3-items article .staff3-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 228px;
}
.staff3-items article .staff3-image:hover .staff3-rollover {
  opacity: 1;
  /*
  -ms-transform: rotate(0);
  -webkit-transform: rotate(0);
  transform: rotateY(0);
  */
}
.staff3-items article .staff3-rollover {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  backface-visibility: hidden;
  opacity: 0;
  /*
  -ms-transform: rotate(180deg);
  -webkit-transform: rotate(180deg);
  transform: rotateY(180deg);
  */
  transition: 0.4s;
  max-width: 228px;
}
.staff3-items article .staff3-rollover .staff3-rollover-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 75%;
  height: calc(100% - 58px);
  /*buffer matches ul (li height + ul top calc + 10)*/
  overflow-x: hidden;
  overflow-y: auto;
}
.staff3-items article .staff3-rollover .staff3-rollover-inner a {
  position: relative;
  display: block;
  height: 100%;
}
.staff3-items article .staff3-rollover .staff3-rollover-inner p {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  width: 90%;
  padding: 0 5% 0 5% !important;
  margin: 0 !important;
  font-size: 12px;
  line-height: 2em;
  text-align: center;
  top: calc(50% + 29px);
  transform: translateY(-50%);
}

.staff3-items article .staff3-rollover .staff3-rollover-inner span.spacer {
  height: 100%;
  display: inline-block;
  vertical-align: middle;
}
.staff3-items article .staff3-rollover ul, .staff3-items article .staff3-rollover li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.staff3-items article .staff3-rollover ul {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 100%;
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
}

.staff3-items article .staff3-rollover ul li {
  padding: 0 .25rem !important;
}

.staff3-items article .staff3-rollover ul li a {
  display: block;
  width: 28px;
  height: 28px;
  text-align: center;
  border-radius: 100%;
}

.staff3-items article .staff3-rollover ul li a i {
  display: inline-block;
  font-size: 16px;
  margin-top: 5px;
}

.staff3-items article .staff3-rollover ul li a i.iconstaff-sphere {
  font-size: 17px;
}
.staff3-items article .staff3-info p {
}

.staff3-items.pastors article .staff3-rollover .staff3-rollover-inner p {
  padding: 1em 10% 0 10% !important;
  width: 80%;
  font-size: 14px;
}

/*******************************
 * DETAIL
 *******************************/
.staff3-items.staff3-detail article {
  overflow: hidden;
}
@media (min-width: 768px) {
  .staff3-items.staff3-detail article .staff3-image {
    float: left;
    width: 23%;
  }
}
@media (min-width: 768px) {
  .staff3-items.staff3-detail article .staff3-info {
    float: right;
    width: 77%;
  }
}
.staff3-items.staff3-detail article ul.staff3-social {
  list-style: none !important;
  margin: .75em 0 1.5em 0 !important;
  padding: 0 !important;
}

.staff3-items.staff3-detail article ul.staff3-social li {
  display: inline-block;
  list-style: none !important;
  margin: 0 .5em .25em 0 !important;
  padding: 0 !important;
  font-size: 1.25em !important;
  line-height: 1 !important;
}

.staff3-items.staff3-detail article ul.staff3-social li a {
  display: table-cell;
  vertical-align: middle;
  width: 28px;
  height: 28px;
  text-align: center;
  border-radius: 100%;
}

.staff3-items.staff3-detail article ul.staff3-social li a i {
  display: inline-block;
  font-size: 16px;
}

.staff3-items.staff3-detail article ul.staff3-social li a i.iconstaff-envelop-opened {
  padding-bottom:6px;
}

.staff3-items.staff3-detail article ul.staff3-social li a i.iconstaff-sphere {
  font-size: 17px;
}

.staff3-phone {
  margin-bottom: 0px;
}
