/* image thumbnail */


#image, #video{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
  border-radius: 30px;
}

/* All the individual team member image IDs */
#image-kate, #image-erica, #image-thuy, #image-sean, #image-jasmin, 
#image-victoria, #image-baldwin{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
}

.plus-icon {
  position: absolute;
  top: 20px;
  left: 310px;
  width: 10%;
  height: 10%;
  object-fit: cover;
 
}
.social-icon{
  position: absolute;
  top: 360px;
  left: 140px;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#video {
  opacity: 0;
}

@media (hover: hover) {
  #container:hover #image {
    opacity: 0;
  }

#container:hover #video {
  opacity: 1;
  }
}
/* end image thumbnail */

/* main modal aka pop up  css */
  
.modalcontainer {
  padding-inline: 1em;
  display: grid;
  gap: 1.5rem;
  background-color: #3D4959;
}
.dialog-container{
  background-color: #FFFDF5;
}

dialog::backdrop{
  background-color: #FFFDF5;
}
.dialog-container > button {
  all: unset;
  cursor: pointer;
  border: 2px solid black;
  border-radius: 0.25em;
  padding-block: 0.25em;
  height: 100%;
  text-align: center;
  width: 100%;
  font-weight: normal;
  font-family: elza-regular;
}

.dialog-container > button:is(:hover, :focus) {
  background-color: black;
  color: white;
}

.dialog-container > button:focus {
  outline: 2px solid black;
  outline-offset: 2px;
}

@media (min-width: 500px) {
  .modalcontainer {
    grid-template-columns: repeat(2, 1fr);
  }
}

.custom-dialog {
  border-radius: 30px;
  padding: 0;
  font-family: elza-regular;
  background-color: rgba(61, 73, 89, 0.95);
 width: 80%;
 height: 80%;
 overflow-x: hidden; 
}

/* Dialog animations - dynamic for any counter */
[class^="dialog-animate-in-"] {
  animation: dialogAnimateIn 0.5s ease;
}

@keyframes dialogAnimateIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(110%);
  }

  100% {
    transform: scale(100%);
    opacity: 1;
  }
}

/* end main modal aka pop up css */

.testing-container{
  display: flex;
  justify-content: space-between;
}

.image-container{
  width: 40%;
  height: 100vh;
  border: 30px;
}
.image-container img{
  width: 100%;
  height: 100vh;
  object-fit: cover;
  border-radius: 30px;
}
.profile-container{
  width: 65%;
  height: 100vh;
  
}

.team-close-svg{
  position:sticky;
  bottom: 92%;
  left: 95%;
  
}
.profile-details-wrapper{
  margin-top: 100px;
  margin-bottom: 100px;
  margin-left: 50px;
  margin-right: 50px;
}

.pop-name{
  font-size: 3.875rem;
  line-height: 4.375rem;
  color: #FFFDF5;
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
  margin-bottom: 10px;
  padding: 0;
}

.pop-title{
  font-size: 1.75rem;
  line-height: 2rem;
  color: #FFFDF5;
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
  margin-bottom: 10px;
  padding: 0;
}

.logo-on-team-bio-mobile{
  display: none;
}

.last__team__margin{
  margin-bottom: 100px;
}
/* ========================================
   DYNAMIC TAB SETTINGS - Works for any counter
   FIXED: Now targets label[for^="..."] instead of [id^="..."]
   ======================================== */

/* Base tabs container */
.tabs {
  display: flex;
  flex-wrap: wrap;
}

.tabs > div {
  order: 999;
  width: 100%;
  display: none;
}

.tabs > input {
  opacity: 0;
  position: absolute;
}

.tabs > input[type=radio]:checked + label + div {
  display: unset;
}

/* Tab label base styling */
.tabs > label {
  padding: 0.5em;
  background: #557191;
  color: #DBEDFF;
  border-radius: 15px;
  box-shadow: 5px 0px 20px 0px #343d47;
  width: 10px;
}

.tabs > input[type=radio]:checked + label {
  background: #FFFDF5;
  border-radius: 15px;
  color: #3D4959;
  width: 10px;
}

/* Dynamic tab styling for all counters */
/* First tab in each dialog - Testimonial */
label[for^="tab1-"] {
  width: 150px !important;
}

label[for^="tab1-"] p {
  position: relative;
  left: 12px;
}

/* Second tab - Bio */
label[for^="tab2-"] {
  width: 50px !important;
  margin-left: 20px;
}

label[for^="tab2-"] p {
  position: relative;
  left: 4px;
}

/* Third tab - Quote */
label[for^="tab3-"] {
  width: 100px !important;
  margin-left: 20px;
}

label[for^="tab3-"] p {
  position: relative;
  left: 15px;
}

/* ========================================
   END DYNAMIC TAB SETTINGS
   ======================================== */

/* tab content styling */
.pop-tab{
    margin-top: 50px;
  }

  .name-svg-wrapper{
    display: flex;
  }
.svg-position{
 padding-left: 10px;
 padding-top: 0px;
}
.svg-position svg{
  width: 32px;
  height: 32px;
}

.testimonial-accordion-wrapper{
  margin-top: 40px;
  
}

.testimonial-accordion-wrapper p{
  color: #FFFDF5;
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
}

.accordion-testimony{
  font-size: 1.75rem;
  line-height: 2rem;
  
}
.individual-name{
font-size: 3.875rem;
line-height: 4.375rem;
margin-top: 50px;
}

.company-name{
  font-size: 1.75rem;
  line-height: 2rem;
  margin-top: 20px;
}

.accord-business-logo{
  margin-top: 20px;
}
.biography-accordion-wrapper{
  margin-top: 60px;
}

.biography-content{
    height: 300px;
    width:750px;
}
.biography{
  font-size: 1.75rem;
  line-height: 2rem;
  color: #FFFDF5;
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
}
.pdd{
  padding-top: 30px;
}
.quote-accordion-wrapper{
  margin-top: 40px;
}

.personal-qoute{
  font-size: 1.75rem;
  line-height: 2rem;
  color: #FFFDF5;
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
}
/* end tab content styling */

/* modal content styling */
.team-modal-testimonial-wrapper{

}
.team-modal-testimonial-wrapper p{
  color: #FFFDF5;
  font-size: 1.75rem;
  line-height: 2.1875rem;
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
  letter-spacing: normal;
  font-family: elza-regular;
  
}

.team-modal-testimonial-wrapper h4{
  color: #FFFDF5;
  font-weight: normal;
  font-style: normal;
  font-variant: normal;
  letter-spacing: normal;
  font-family: elza-regular;
  margin-top: 40px;
  font-size: 3.875rem;
  line-height: 4.375rem;
}
.team-modal-testimonial-wrapper img{
  max-width: 200px;
  height: auto;
  margin-top: 10px;
}
.team-modal-testimonial-wrapper:first-child{
  margin-top: 20px;
}

.team-testimonial-pop-speaker{
  margin-top: 10px;
}

.team-qoute-pop-wrapper p{
  font-size: 1.75rem;
  line-height: 2.1875rem;
}
/* end modal content styling */

/* ========================================
   TABLET RESPONSIVE
   ======================================== */

@media (min-width: 48em) and (max-width: 82.5em) {
  .hide__team__page__profile__tablet{
    display: block;
  }

  /* modal pop start */
  .pop-name{
    font-size: 2.5rem;
    line-height: 2.8125rem;
  }

  .pop-title{
    font-size: 20px;
    line-height: 1.375rem;
  }

  .accordion-testimony{
    font-size: 1.25rem;
    line-height: 1.375rem;
  }

  .individual-name{
    font-size: 1.875rem;
    line-height: 4.375rem;
  }

  .company-name{
    font-size: 1.25rem;
    line-height: 1.375rem;
    margin-top: 5px;
  }

  .tablet-logo-size{
    width: 150px;
  }
  
  .biography{
    font-size: 1.25rem;
    line-height: 1.375rem;
  }

  .personal-qoute{
    font-size: 1.25rem;
    line-height: 1.375rem;
  }

  .last__team__margin{
  margin-bottom: 60px;
}

  /* Tablet tab styling - dynamic for all counters - FIXED */
  label[for^="tab1-"] {
    width: 100px !important;
    height: 30px;
  }
  
  label[for^="tab1-"] p {
    position: relative;
    left: 5px;
    font-size: 12px;
  }
  
  label[for^="tab2-"] {
    width: 50px !important;
    height: 30px;
    margin-left: 10px;
  }
  
  label[for^="tab2-"] p {
    position: relative;
    left: 8px;
    font-size: 12px;
  }
  
  label[for^="tab3-"] {
    width: 70px !important;
    height: 30px;
    margin-left: 10px;
  }
  
  label[for^="tab3-"] p {
    position: relative;
    left: 8px;
    font-size: 12px;
  }
}

/* ========================================
   MOBILE RESPONSIVE
   ======================================== */

@media (max-width: 47.9375em) {
  .team-scroll-animation {
    position: absolute;
    left: 92.6%;
    top: 685px;
    display: none;
  }

  .teams-margin{
    margin: 0px 36px 0px 36px;
  }

  .team-artisanal-text-hide-mobile{
    display: none;
  }
  .team-artisanal-text-hide-desktop-tablet{
    display: none;
  }

  .team-wrapper-meticulous{
    display: flex;
   justify-content: center;
   align-items: center;
  }
  .team-wrapper-meticulous p{
    max-width: 494px;
    color: #3D4959;
    height: 89px;
    font-size: 1.5rem;
    line-height: 1.75rem;
  }
  .team-wrapper-meticulous h1{
    max-width: 881px;
    color: #3D4959;
  }
  .hand{
    color: #3D4959;
  }

  .margin-mobile{
    margin-top: 100px;
  }
  .mobile-inbetween-grid{
    margin-top: 30px;
  }
  
  .last__team__margin{
  margin-bottom: 20px;
}

  /* grid layout */
  .team-thumbnail-wrapper{
    display: grid;
    grid-template-columns: 1fr;
    position: relative;
    margin: 0px 36px 0px 36px;
   gap: 30px;
  }
  .grid-item{
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  .thumbnail-one-wrapper{
    display: flex;
    flex-direction: column;
  }

  .team-short{
    margin-top: 0px;
  }
.short{
  margin-top: 0px !important;
	padding-top:0px;
}
  .team-member{
    font-size: .875rem;
    line-height: 1.0625rem;
    max-width: 198px;
    text-align: center;
    color: #3D4959;
    padding-top: 10px;
  }

  /* image thumbnail */
  #container {
    position: relative;
    max-width: 190px;
    height: 239px;
    left: 50%; 
    transform: translateX(-50%); 
  }

  #image, #video{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
    border-radius: 30px;
  }
  
  .plus-icon {
    position: absolute;
    top: 15px;
    left: 115px;
    width: 50%;
    height: 50%;
    object-fit: cover;
  }

  .plus-icon svg{
    max-width: 24px;
    height: auto;
  }
  
  .social-icon{
    position: absolute;
    top: 200px;
    left: 115px;
    width: 50%;
    height: 50%;
    object-fit: cover;
  }

  .social-icon svg{
    max-width: 20px;
    height: auto;
  }
  
  #video {
    opacity: 0;
    display: none;
  }

  @media (hover: hover) {
    #container:hover #image {
      opacity: 1;
    }
    
    #container:hover #video {
      opacity: 0;
      display: none;
    }
  }

  /* mobile pop up */
  .custom-dialog {
    border-radius: 30px;
    padding: 0;
    font-family: elza, sans-serif;
    background-color: rgba(61, 73, 89, 0.95);
   width: 80%;
   height: 80%;
   overflow-y: auto;
    max-height: 100dvh;
  }

  dialog::backdrop{
    background-color: transparent;
  }
  
  .testing-container{
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .image-container{
    width: 100%;
    height: 40ch;
    border: 30px;
    position: relative;
  }

  .image-container img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
  }

  .profile-container{
    width: 100%;
    height: unset;
  }
  
  .team-close-svg{
    position: absolute;
    right: 30px;
    bottom: 92%;
    left: 85%;
  }
  
  .profile-details-wrapper{
    margin-top: 20px;
    margin-bottom: 10px;
    margin-left: 20px;
    margin-right: 20px;
  }

  .pop-name{
    font-size: 1.75rem;
    line-height: 2rem;
  }

  .pop-title{
    font-size: .9375rem;
    line-height: 1.25rem;
  }

  .logo-on-team-bio-desktop{
    display: none;
  }

  .logo-on-team-bio-mobile{
    display: block;
  }

  /* Mobile tab styling - dynamic for all counters - FIXED */
  label[for^="tab1-"] {
    width: 75px !important;
    height: unset;
    text-align: center;
    font-size: .625rem !important;
    line-height: .6875rem !important;
  }

  label[for^="tab1-"] p {
    position: relative;
    left: unset;
    top: 0px;
  }

  label[for^="tab2-"] {
    width: 40px !important;
    height: unset;
    text-align: center;
    font-size: .625rem !important;
    line-height: .6875rem !important;
  }

  label[for^="tab2-"] p {
    position: relative;
    left: unset;
    top: 0px;
  }

  label[for^="tab3-"] {
    width: 50px !important;
    height: unset;
    text-align: center;
    font-size: .625rem !important;
    line-height: .6875rem !important;
  }

  label[for^="tab3-"] p {
    position: relative;
    left: unset;
    top: 0px;
  }

  .pop-tab{
    margin-top: 20px;
  }

  .name-svg-wrapper{
    display: flex;
  }
  
  .svg-position{
   padding-left: 5px;
   padding-top: 0px;
  }
  
  .svg-position svg{
    width: 20px;
    height: 20px;
  }

  .testimonial-accordion-wrapper{
    margin-top: 20px;
    padding-bottom: 30px;
  }

  .testimonial-accordion-wrapper p{
    color: #FFFDF5;
    font-weight: normal;
    font-style: normal;
    font-variant: normal;
  }

  .accordion-testimony{
    font-size: .875rem;
    line-height: 1.0625rem;
  }
  
  .individual-name{
    font-size: .875rem;
    line-height: 1.0625rem;
    margin-top: 10px;
  }

  .company-name{
    font-size: .875rem;
    line-height: 1.0625rem;
    margin-top: 10px;
  }

  .accord-business-logo{
    margin-top: 20px;
  }
  
  .biography-accordion-wrapper{
    margin-top: 20px;
    padding-bottom: 30px;
  }

  .biography{
    font-size: .875rem;
    line-height: 1.0625rem;
  }

  .quote-accordion-wrapper{
    margin-top: 20px;
  }

  .personal-qoute{
    font-size: .875rem;
    line-height: 1.0625rem;
  }
}
