/* assets/css/gallery-patch.css — cleaned */

/* =========================
   GALLERY PATCH
========================= */

#gallery{
  --gallery-h: clamp(260px, 42vh, 440px);
  --gallery-fade: #fff;
}

#gallery .gallery-viewport{
  position: relative;
  overflow: hidden;
  min-width: 0;
}

#gallery .gallery-track{
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

#gallery .slide{
  flex: 0 0 100%;
  height: var(--gallery-h) !important;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.08));
}

@media (min-width: 576px){
  #gallery .slide{
    flex-basis: calc(50% - .5px);
  }
}

@media (min-width: 1200px){
  #gallery .slide{
    flex-basis: calc(33.333% - .5px);
  }
}

#gallery .slide img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

#gallery .slide.is-portrait img{
  object-position: 50% 18%;
}

#gallery .slide.is-portrait-narrow img{
  object-position: 50% 25%;
}

#gallery .slide.is-landscape img{
  object-fit: cover;
}

/* Controls */
#gallery .gallery-ctrl{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  z-index: 3;
}

#gallery .gallery-prev{
  left: 10px;
}

#gallery .gallery-next{
  right: 10px;
}

#gallery .gallery-ctrl:hover{
  background: rgba(255,255,255,.95);
}

#gallery .gallery-prev,
#gallery .gallery-next{
  width: 44px;
  height: 44px;
}

/* Edge fade */
#gallery .gallery-viewport::before,
#gallery .gallery-viewport::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(to right, var(--gallery-fade) 15%, rgba(255,255,255,0) 85%);
  opacity: 1;
  transition: opacity .2s ease;
}

#gallery .gallery-viewport::before{
  left: 0;
}

#gallery .gallery-viewport::after{
  right: 0;
  transform: scaleX(-1);
}

#gallery .gallery-viewport.at-start::before{
  opacity: 0;
}

#gallery .gallery-viewport.at-end::after{
  opacity: 0;
}

/* =========================
   LIGHTBOX
========================= */

#lightbox[hidden]{
  display: none !important;
}

#lightbox{
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,.92);
  display: grid !important;
  place-items: center;
  z-index: 99999;
}

#lightbox img{
  max-width: min(92vw, 1600px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow, 0 10px 30px rgba(0,0,0,.4));
}

#lightbox .lightbox-btn{
  position: absolute;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

#lightbox .lightbox-close{
  top: 18px;
  right: 18px;
}

#lightbox .lightbox-prev{
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox .lightbox-next{
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

#lightbox .lightbox-btn:hover{
  background: rgba(255,255,255,.22);
}

/* =========================
   MEET THE TEAM
========================= */

.section-team .section-divider{
  width: 56px;
  height: 2px;
  background: rgba(0,0,0,.2);
  margin-top: .5rem;
}

.team-photo{
  width: clamp(160px, 22vw, 280px);
  height: clamp(160px, 22vw, 280px);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 38%;
  display: inline-block;
  background: #f5f6f7;
}

.team-name{
  font-size: clamp(1.125rem, 1.2rem + .5vw, 1.5rem);
  font-weight: 500;
}

.team-linkedin{
  display: inline-block;
  margin: .4rem 0 .6rem;
  font-size: 2.25rem;
  line-height: 1;
  color: rgba(0,0,0,.35);
  transition: color .2s ease, transform .15s ease;
}

.team-linkedin:hover{
  color: var(--teal, #0ea5a4);
  transform: translateY(-1px);
}

.team-role{
  color: rgba(0,0,0,.65);
  font-size: .95rem;
}

.team-card{
  max-width: 420px;
  margin-inline: auto;
}

/* =========================
   FOOTER BRAND
========================= */

.footer-simbiocity.footer--brand{
  --footer-brand: var(--brand, #0ea5a4);
  background: var(--footer-brand);
  color: #fff;
  border-top: none;
  font-weight: 300;
}

.footer--brand .footer-heading{
  color: rgba(255,255,255,.85);
  text-transform: none;
  font-weight: 300;
}

.footer--brand .footer-address{
  color: rgba(255,255,255,.92);
  text-transform: none;
  font-weight: 300;
}

.footer--brand .footer-copy{
  color: rgba(255,255,255,.90);
  text-transform: none;
  font-weight: 300;
}

.footer--brand .footer-link{
  color: #fff;
  text-decoration: none;
}

.footer--brand .footer-link:hover{
  border-color: #fff;
}

.footer--brand .footer-social .btn-icon{
  color: #fff;
  background: transparent;
  transition: all .2s ease;
  text-decoration: none;
}

.footer--brand .footer-social .btn-icon:hover{
  border-color: #fff;
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

.footer--brand .footer-link:focus-visible,
.footer--brand .footer-social .btn-icon:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.footer-simbiocity .footer-social{
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
}

.footer-simbiocity .footer-social .btn-icon{
  margin: 0;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: transparent;
  transition: all .2s ease;
}

.footer-simbiocity.footer--brand .footer-social .btn-icon:hover{
  border-color: #fff;
  background: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

/* =========================
   CLIENTS PANEL
========================= */

.clients-blurb{
  padding: clamp(24px, 4vw, 40px) 0;
}

.clients-panel{
  background: var(--teal, #0ea5a4);
  color: #fff;
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.clients-panel .section-heading{
  color: #fff;
  letter-spacing: .08em;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
}

.clients-copy p{
  max-width: 980px;
  margin: 0 auto clamp(14px, 1.5vw, 18px);
  line-height: 1.8;
  color: rgba(255,255,255,.98);
}

/* =========================
   LANGUAGE BUTTONS
========================= */

.language-buttons{
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.lang-btn{
  display: inline-block;
  min-width: 140px;
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 400;
  transition: all .25s ease;
  background: transparent;
}

.lang-btn:hover{
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: #fff;
}

.lang-btn:focus,
.lang-btn:active{
  color: #fff;
}
