#teampage {
  background-image: none;
  background-color: transparent;
}
#teampage .medium-12 {
  padding-top: 0;
}

/*********************
FANCY LAYOUT
*********************/

body.im_team_page .featherlight-loading { display: none !important; }
body.im_team_page .featherlight .featherlight-content {
    width: 85%;
    height: 85%;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch !important;
}

form#teamfilter #drop-city {
  margin-bottom: 20px;
}
form#teamfilter #drop-city label {
  cursor: pointer;
  border: none;
  position: relative;
  background: #000;
  padding: 20px 10px;
  text-align: center;
  line-height: 1.5;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.25s ease-in-out;
}
form#teamfilter #drop-city label:hover {
  box-shadow: none;
  background: #323232;
}
form#teamfilter #drop-city label.on {
  background: #555;
}
form#teamfilter #drop-city label:first-child {
  margin-left: 0;
}
form#teamfilter #drop-city label:last-child {
  margin-right: 0;
}
form#teamfilter #drop-city label input {
  display: none;
}
form#teamfilter #drop-city label input+span {
  color: #fff;
  display: inline-block;
  position: relative;
}
form#teamfilter #next-step {
  display: block;
}
form#teamfilter #next-step ul#stylistSort {
  text-align: center;
  margin: 0 auto 30px;
  display: table;
  padding-bottom: 10px;
}
form#teamfilter #next-step ul#stylistSort li {
  display: inline-block;
  text-align: center;
  margin: 10px 20px;
  vertical-align: top;
  transition: all 0.25s ease-in-out;
}
form#teamfilter #next-step ul#stylistSort li.on {
  border-top: 2px solid #555;
  margin-top: 8px;
}
form#teamfilter #next-step ul#stylistSort li h5 {
  color: #323232;
}
form#teamfilter #next-step ul#stylistSort li label {
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 1rem;
}
form#teamfilter #next-step ul#stylistSort li label input {
  display: none;
}
form#teamfilter #next-step label.specialty {
  color: #555;
  text-shadow: 0 1px 0 #fff;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.6rem;
  text-align: center;
  cursor: pointer;
}
form#teamfilter #next-step label.specialty input {
  visibility: hidden;
  display: inline;
  font-size: 1rem;
}
form#teamfilter #next-step label.specialty input:before {
  font-family: FontAwesome;
  content: '\f111';
  visibility: visible;
  color: #999;
  transition: all 0.25s ease-in-out;
}
form#teamfilter #next-step label.specialty input:checked:before {
  font-family: FontAwesome;
  content: '\f058';
  visibility: visible;
  color: #555;
}
form#teamfilter #last-step {
  position: relative;
  border-top: 1px solid #999;
  display: none;
}
form#teamfilter #last-step.on {
  display: block;
}
form#teamfilter #last-step .drop-experience {
  text-align: center;
  list-style: none;
  padding-top: 20px;
}
form#teamfilter #last-step .drop-experience li {
  display: inline-block;
  padding: 10px;
}
form#teamfilter #last-step .drop-experience li label {
  cursor: pointer;
  background-color: #999;
  border-radius: 5px;
  padding: 5px 7px;
  max-height: 30px;
  color: #555;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.6rem;
  transition: all 0.25s ease-in-out;
}
form#teamfilter #last-step .drop-experience li label.active, form#teamfilter #last-step .drop-experience li label:hover {
  color: #fff;
  background-color: #555;
}
form#teamfilter #last-step .drop-experience li label input {
  display: none;
}
#displayTeam {
  display: none;
}
h6#noitems {
  display: none;
}
h6#noitems.on {
  display: block;
  text-align: center;
  width: 60%;
  margin: 0 auto;
}
#theteam {
  margin-top: 50px;
  margin-bottom: 150px;
}
@media screen and (max-width: 63.9375em) {
  #theteam {
    margin-top: 80px;
  }
}
#theteam .team_member {
  margin-bottom: 30px;
}
#theteam .team_member .team_wrap {
  padding: 0;
}
#theteam .team_member .team_wrap .team_img {
  margin-bottom: 10px;
  width: 100% !important;
  max-height: 300px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
#theteam .team_member .team_wrap .team_img:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
#theteam .team_member .team_wrap .team_info {
  font-size: 0.9rem;
  line-height: 1rem;
  color: #555;
  padding: 10px 20px 10px 0;
}
#theteam .team_member .team_wrap .team_info span {
  margin-bottom: 5px;
  font-weight: bold;
  letter-spacing: 2px;
}
#teampage-modest-grid .team_member h4{font-size: 1.25rem;}
#theteam .team_member .team_wrap .team_info h4 {
  text-transform: uppercase;
  line-height: 1.7rem;
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 0;
}
#theteam .team_member .team_wrap .team_info h5 {
  color: #323232;
  font-size: 1rem;
  letter-spacing: normal;
}
@media screen and (max-width: 63.9375em) {
  #theteam .team_member .team_wrap .team_info h4 {
    font-size: 1rem;
    line-height: 1rem;
  }
  #theteam .team_member .team_wrap .team_info h5 {
    font-size: 0.9rem;
  }
}
@media screen and (max-width: 39.9375em) {
  #theteam .team_member .team_wrap .team_info h4 {
    font-size: 1.2rem;
  }
}
#theteam .team_member .team_wrap .team_info span {
  text-transform: uppercase;
}


/*********************
MODEST LAYOUT
*********************/

#teampage-modest .team_member {
  display: inline-block;
  border-bottom: 1px solid #ccc;
  padding: 20px 0;
  clear: both;
}
#teampage-modest .team_member:last-child {
  border-bottom: none;
}
#teampage-modest .team_member .team_img {
  width: 200px;
  height: 250px;
  float: left;
  margin-right: 15px;
  margin-bottom: 10px;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}


/*********************
MODEST GRID LAYOUT - WITH FILTER STYLING
*********************/
#teampage-modest-grid {
    padding: 30px 0;
}
#teampage-modest-grid .team_member {
    padding-bottom: 20px;
    text-align: center;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
#teampage-modest-grid .team_member:last-child {
    border-bottom: none;
}
#teampage-modest-grid .team_member h4 {
    margin-bottom: 0;
}
#teampage-modest-grid .team_member .team_img {
    width: 100%;
    max-width: 300px;
    height: 400px;
    margin-right: 15px;
    margin-bottom: 10px;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    margin: 0 auto 10px;
    position: relative;
    overflow: hidden;
}

/* Filter styling for modest grid */
ul#stylistSort {
  text-align: center;
  margin: 0 auto 30px;
  display: table;
  padding: 20px 0;
  list-style: none;
  min-height: 70px; /* Fixed height to prevent layout shift */
}
ul#stylistSort li {
  display: inline-block;
  text-align: center;
  margin: 10px 20px;
  vertical-align: top;
  transition: all 0.25s ease-in-out;
  position: relative;
  cursor: pointer;
  padding-bottom: 8px; /* Always allocate space for border */
  border-bottom: 3px solid transparent; /* Invisible border by default */
}
ul#stylistSort li.on {
  border-bottom-color: #0E4D66; /* Show border when active */
}
ul#stylistSort li:hover {
  transform: translateY(-2px);
}
ul#stylistSort li label {
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 2px;
  font-size: 1rem;
  color: #555;
  transition: all 0.25s ease-in-out;
  user-select: none;
}
ul#stylistSort li:hover label {
  color: #0E4D66;
}
ul#stylistSort li.on label {
  color: #0E4D66;
  font-weight: 600;
}
ul#stylistSort li label input {
  display: none;
}

@media screen and (min-width: 40em) {
    #teampage-modest-grid .team_member {
        text-align: left;
        position: relative;
    }
    #teampage-modest-grid .team_member .team_img {
        margin: 0 15px 10px 0;
        height: 350px;
    }
    #teampage-modest-grid .team_member .team_img .team_img_inner {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        transition: all 0.4s ease;
    }
    #teampage-modest-grid .team_member:hover .team_img .team_img_inner {
        transform: scale(1.1);
    }
    #teampage-modest-grid .team_member .team_img::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 200px;
        background: linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / 1));
        opacity: 0;
        z-index: 2;
        transform: translateY(50%);
        transition: all 0.4s ease;
    }
    #teampage-modest-grid .team_member:hover .team_img::after {
        transform: translateY(0);
        opacity: 1;
    }
    #teampage-modest-grid .team_member .team_text {
        position: absolute;
        left: 0;
        width: 100%;
        padding: .5rem 1.5rem;
        bottom: 0;
        opacity: 0;
        transition: all 0.4s ease;
        pointer-events: none;
        z-index: 3;
    }
    #teampage-modest-grid .team_member .team_text :is(.team_name, .team_title) {
        color: #fff;
    }
    #teampage-modest-grid .team_member .team_text .team_name {
        font-size: 1.75rem;
    }
    #teampage-modest-grid .team_member .team_text .team_title {
        font-size: 1rem;
        line-height: 1.15;
    }
    #teampage-modest-grid .team_member:hover .team_text {
        bottom: 2rem;
        opacity: 1;
    }
}


/*********************
SINGLE PAGE
*********************/
.single-people #headerimage {
    display: none;
}
.single-people main#main {
    padding: 3rem 2rem;	
}
.single-people .bio {
    border-left: 3px solid #028cc0aa;
    padding: 0.5rem 0 0.5rem 0.5rem;
    margin-bottom: 1rem;
}
.single-people .team_img_wrapper {
    position: relative;
    margin-bottom: 1rem;
}
.single-people .team_img_wrapper::before {
    content: '';
    width: 100%;
    height: 85%;
    position: absolute;
    left: -1rem;
    top: 0.5rem;
    /* background-color: #028cc077; */
}
.single-people .team_img_wrapper .team_img {
    position: relative;
    width: 100%;
    z-index: 2;
  margin-bottom: 2rem;
}
.single-people .team_img_wrapper .teamSwiper img {
    aspect-ratio: 5 / 3;
    overflow: hidden;
    width: 100%;
    object-fit: cover;
    object-position: left 50% top 25%;
    cursor: pointer;
}
.single-people .team_img_wrapper .teamSwiper2 img {
    cursor: grab;
}
.single-people .bio h3 {
    font-size: 1.05rem;
    margin: 0;
}
.single-people .bio p:last-of-type {
    margin-bottom: 0;
}
.single-people .bio ol {
    margin-bottom: 0;
}
#bioinfo a.button{width: 100%; }
a.button.back-btn{
    position: relative;
    z-index: 500;
    margin-top: 2rem;
    width: 100%;
}
a.instagram-link{
    position: absolute;
    top: 0;
    right: 10px;
    font-size: 1.75rem;
    
}
#bioinfo{
    position: relative;
}

#bioinfo h2 {
  color: #0E4D66;
}

.single-people #reviews-wrapper {
    margin: 1rem 0 0;
}
.single-people #reviews-wrapper #reviews {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}
.single-people #reviews-wrapper h2 {
    color: #00aeef;
}
.single-people #reviews-wrapper #reviews .review {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: 1px solid #00aeef;
}
@media screen and (min-width: 40em) {
    .single-people #reviews-wrapper #reviews {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media screen and (max-width: 1024px) {
  #teampage-modest-grid .team_member a  {
    display: block;
  }
  #teampage-modest-grid .team_member a .team_img {
    width: 100% !important;
    max-width: 100%;
  }
}