/*******************************
 * 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;
}

#staff3 {
}


/*******************************
 * OVERRIDES
 *******************************/
img {
  max-width: 100% !important;
}

#staff3 a,
#staff3 button,
#staff3 .ui-selectmenu-menu .ui-menu li {
  transition: .3s;
}

/* filter colors*/
.staff-filters,
.ui-selectmenu-menu .ui-menu {
  /*background-color: #5d7b9d;*/
}

#module-search fieldset {
  background-color: #fff;
}

#module-search-term {
  color: #666666;
}

#module-search-submit {
  color: #666666;
}
#module-search-submit:hover {
  color: #5d7b9d;
}

.ui-selectmenu-menu .ui-menu li:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.ui-selectmenu-button span.ui-selectmenu-text,
.ui-selectmenu-menu .ui-menu li,
.ui-selectmenu-button span.iconstaff-arrow-down {
  color: #fff;
}

@media (min-width: 1024px) {
  .ui-selectmenu-button {
    border-right: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 2px 0 1px -1px rgba(255, 255, 255, 0.15);
  }
}

/* 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 {
  color: #5d7b9d;
}
.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;
}

#staff3-return a {
/*  background-color: #dcdee1;
  color: #262d3d;*/
}
#staff3-return a:hover {
  /*background-color: #5d7b9d;*/
  /*color: #ffffff;*/
}
 
 /*******************************
 * 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('/_assets/img/layouts/staff/staff-Icons.ttf?a0v504') format('truetype'),
    url('/_assets/img/layouts/staff/staff-Icons.woff?a0v504') format('woff'),
    url('/_assets/img/layouts/staff/staff-Icons.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-sphere:before {
  content: "\e911";
}
.iconstaff-instagram:before {
  content: "\e910";
}
.iconstaff-images:before {
  content: "\e900";
}
.iconstaff-podcast:before {
  content: "\e901";
}
.iconstaff-envelop-opened:before {
  content: "\e902";
}
.iconstaff-mobile: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-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: 10px;
  }
}
.staff-filters:after {
  clear: both;
  content: ".";
  display: block;
  height: 0;
  visibility: hidden;
}

#module-search {
  border: 0;
  outline: none;
  width: 200px;
  margin: 0 auto 1em auto;
}
@media (min-width: 1024px) {
  #module-search {
    float: right;
    margin: 0;
  }
}

#module-search fieldset {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
}

#module-search-term {
  float: left;
  display: block;
  width: 80%;
  padding: 0 2.5%;
  border: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 38px;
  outline: none;
  outline: none !important;
  background-color: transparent;
  border-radius: 0;
  padding-left: 10px;
}

#module-search-submit {
  display: block;
  position: absolute;
  margin-top: 9px;
  right: 8px;
  font-size: 16px;
  vertical-align: middle;
  text-align: center;
  background: none;
  outline: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
}

.ui-selectmenu-button {
  position: relative;
  cursor: pointer;
  display: block;
  height: auto;
  line-height: 1;
  margin: 0 auto .5em auto;
  outline: none !important;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
  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: 20px;
  font-weight: normal !important;
  position: absolute;
  top: 16px;
  right: 12px;
  text-align: left;
}

.ui-selectmenu-button.ui-state-disabled {
  cursor: default;
  opacity: 0.5;
}

.ui-selectmenu-menu {
  display: none;
  left: 0;
  margin: 0;
  position: absolute;
  top: 0;
  z-index: 999;
}

.ui-selectmenu-menu .ui-menu {
  border: 0;
  list-style: none;
  margin: 0;
  max-height: 300px !important;
  max-width: 200px;
  overflow: auto;
  overflow-x: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.ui-selectmenu-menu .ui-menu li {
  cursor: pointer;
  font-size: 15px;
  font-weight: 400;
  list-style: none;
  margin: 0;
  outline: none;
  padding: 0.5em 20px;
  text-transform: none;
}

.ui-selectmenu-open {
  display: block;
}

/*******************************
 * LIST
 *******************************/
.staff3-heading {
  text-align: center;
  margin-bottom: 1em;
}

#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-image: url(/_assets/img/layouts/staff/preloader.svg);
  background-repeat: no-repeat;
  background-position: center 40px;
  background-size: 64px 64px;
}
#staff3-results.loading.transparent:after {
  background-color: transparent;
}
#staff3-results > h4 {
  margin-bottom: 1em;
}

.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 33%;
    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;
}
.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;
  right: 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;
}
.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: 1em 5% 0 5% !important;
  margin: 0 !important;
  font-size: 12px;
  line-height: 2em;
  text-align: center;
}
.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: 6px;
}
.staff3-items article .staff3-rollover ul li a i.iconstaff-envelop-opened {
  margin-top: 5px;
}
.staff3-items article .staff3-rollover ul li a i.iconstaff-sphere {
  /*margin-left: 1px;*/
}
.staff3-items article .staff3-info p {
  font-size: 16px;
}

.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: 30%;
  }
}
@media (min-width: 768px) {
  .staff3-items.staff3-detail article .staff3-info {
    float: right;
    width: 65%;
  }
}
.staff3-items.staff3-detail article .staff3-info h3 {
  text-transform: uppercase;
}
.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 1em 0 0 !important;
  padding: 0 !important;
}
.staff3-items.staff3-detail article ul.staff3-social li a {
  display: block;
  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;
  margin-top: 6px;
  margin-left: 1px;
}
.staff3-items.staff3-detail article ul.staff3-social li a i.iconstaff-envelop-opened {
  margin-top: 5px;
}
.staff3-items.staff3-detail article ul.staff3-social li a i.iconstaff-sphere {
  margin-left: 2px;
}
#staff3-return {
  text-align: center;
  /*font-size: 13px;*/
  line-height: 1;
}
@media (min-width: 768px) {
  #staff3-return {
    text-align: right;
  }
}
#staff3-return a {
  display: inline-block;
  /*text-transform: uppercase;*/
  /*padding: .75em 2em;*/
  /*line-height: 1;*/
  /*font-weight: 700;*/
}
.staff3-phone {
  margin-bottom: 0px;
}

#staff3-layout .ui-selectmenu-button span.iconstaff-arrow-down {
  display: none;
}

#text .staff3-items article .staff3-image img {
  margin-bottom: 0px;
}

