
:root{
  --bg:#0E1113; --text:#E9EEF0; --muted:#9FB2B1;
  --teal:#2F8F83; --teal-2:#27786F; --sand:#C7BBA4; --card:#13171A; --line:#1C2226;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;line-height:1.6}
img{max-width:100%;display:block;border-radius:12px}
h1,h2,h3{font-family:"Playfair Display",serif;line-height:1.2;margin:0 0 .5rem}
h1{font-size: clamp(2rem, 5vw, 3.5rem)}
h2{font-size: clamp(1.5rem, 3vw, 2.2rem)}
h3{font-size: clamp(1.1rem, 2vw, 1.4rem)}
p{margin:.5rem 0 1rem}
a{color:inherit;text-decoration:none}
ul{margin:.25rem 0 1rem 1.25rem}
.logo-img{width:34px;height:34px;object-fit:contain;border-radius:6px;display:inline-block}

/* Inline Projects (desktop) */
.projects-inline{display:flex;align-items:center;gap:.6rem;padding:.2rem .6rem;border-radius:999px}
.projects-inline .nav-label{opacity:.7;font-size:.95rem;margin-right:.1rem}
.projects-inline a{padding:.35rem .6rem;border-radius:999px;outline:1px solid var(--line)}
.projects-inline a:hover{background:#192025}

/* Active link */
.main-nav a.active{outline:1px solid var(--teal);}

/* Dropdown (mobile) */
.main-nav .dropdown{position:relative;display:flex}
.main-nav .dropdown button{background:transparent;border:none;color:var(--text);font:inherit;padding:.4rem .6rem;border-radius:999px;outline:1px solid var(--line);cursor:pointer}
.dropdown-menu{position:absolute;top:100%;left:0;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:.5rem;display:none;min-width:220px}
.dropdown.open .dropdown-menu{display:block}
.dropdown-menu a{display:block;padding:.5rem;border-radius:8px}
.dropdown-menu a:hover{background:#192025}

/* Show inline projects ≥900px, dropdown otherwise */
@media (min-width:900px){ .projects-inline{display:flex} .main-nav .dropdown{display:none} }
@media (max-width:899px){ .projects-inline{display:none} }

.btn{background:var(--teal);color:white;padding:.9rem 1.2rem;border-radius:999px;display:inline-block;font-weight:700}
.btn.ghost{background:transparent;outline:1px solid var(--teal);}
.muted{opacity:.7}

.site-header{position:sticky;top:0;background:rgba(14,17,19,.7);backdrop-filter:saturate(140%) blur(8px);display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--line);z-index:50}
.brand{display:flex;align-items:center;gap:.6rem;font-weight:700}
.logo-dot{/* Responsive, scales between 48–64px */
.logo-img{
  width: clamp(48px, 5vw, 64px);
  height: clamp(48px, 5vw, 64px);
  object-fit: contain;
  border-radius: 6px;
  display: inline-block;
}
}
.brand-text b{font-weight:800}
.main-nav{display:flex;align-items:center;gap:1rem}
.main-nav .dropdown{position:relative}
.main-nav .dropdown button{background:transparent;border:none;color:var(--text);font:inherit;padding:.4rem .6rem;border-radius:999px;outline:1px solid var(--line)}
.dropdown-menu{position:absolute;top:130%;left:0;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:.5rem;display:none;min-width:200px}
.dropdown:hover .dropdown-menu{display:block}
.dropdown-menu a{display:block;padding:.5rem;border-radius:8px}
.dropdown-menu a:hover{background:#192025}

.hero{position:relative;min-height:72vh;border-bottom:1px solid var(--line)}
.hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.6)}
.hero-overlay{position:relative;z-index:2;max-width:1100px;margin:0 auto;padding:18vh 1.2rem 10vh}
.hero-overlay p{max-width:760px;opacity:.9}
.cta-row{display:flex;gap:.75rem;margin-top:1rem;flex-wrap:wrap}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;max-width:1100px;margin:-3rem auto 2rem;padding:0 1.2rem}
.stats .stat{display:block;font-weight:800;font-size:clamp(1.4rem,3vw,2rem)}
.stats .label{display:block;opacity:.7}

.projects{max-width:1100px;margin:2rem auto;padding:0 1.2rem}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.card{background:var(--card);border:1px solid var(--line);border-radius:14px;overflow:hidden;display:flex;flex-direction:column}
.card-body{padding:1rem}
.card:hover{transform:translateY(-2px);transition:.2s ease}

.panels{max-width:1100px;margin:2rem auto;padding:0 1.2rem;display:grid;gap:1rem}
.panel{display:grid;grid-template-columns:1.2fr 1fr;gap:1rem;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:14px;padding:1rem}
.panel:nth-child(even){grid-template-columns:1fr 1.2fr}

.cta-wide{background:#0b0e10;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:3rem 1.2rem;text-align:center}
.cta-wide p{opacity:.85}

.page .page-hero{position:relative}
.page .page-hero img{width:100%;height:42vh;object-fit:cover;filter:brightness(.7)}
.page-hero-text{position:absolute;left:0;right:0;bottom:0;padding:2rem 1.2rem;max-width:1100px;margin:0 auto}
.page section{max-width:1100px;margin:2rem auto;padding:0 1.2rem}
.content.two-col{display:grid;grid-template-columns:1fr 1fr;gap:1.25rem;align-items:start}
.content.wide{max-width:1100px}
.bullets li{margin:.25rem 0}
.feature{background:var(--card);border:1px solid var(--line);padding:.5rem;border-radius:12px}
/* --- Fix: ensure stats overlap above the hero video --- */
.hero{ position: relative; z-index: 0; }       /* already relative, make explicit */
.hero-video{
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: 1;                                   /* video stays lowest of the stacked items */
  pointer-events: none;                         /* prevents the video from “catching” the mouse */
}
.hero-overlay{ position: relative; z-index: 2; }/* text over video */

.stats{
  position: relative; z-index: 3;               /* stats above both video & overlay */
  /* keep your negative margin if you want the overlap look */
  /* margin: -3rem auto 2rem;  <-- keep as you had it */
}

.gallery{max-width:1100px}
.masonry{columns:3 260px;column-gap:.75rem}
.masonry a{display:block;break-inside:avoid;margin-bottom:.75rem}
.masonry img{width:100%;height:auto;border-radius:12px}

.contact-form{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:1rem;max-width:800px}
.contact-form .grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.contact-form label{display:block}
.contact-form input,.contact-form textarea{width:100%;padding:.8rem;border-radius:10px;border:1px solid var(--line);background:#0f1417;color:var(--text)}
.checkbox{display:flex;gap:.5rem;align-items:center;margin:1rem 0}

.site-footer{border-top:1px solid var(--line);padding:2rem 1.2rem;background:#0b0e10;margin-top:3rem}
.footer-grid{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:1.25rem}
.brand-foot{display:flex;align-items:center;gap:.6rem;font-weight:700;margin-bottom:.5rem}

/* ---------- Gallery Carousel ---------- */
.carousel{
  position: relative;
  margin: 0 auto;
  /* fade edges */
}
.carousel::before,
.carousel::after{
  content:"";
  position:absolute; top:0; bottom:0; width:48px; z-index:5; pointer-events:none;
}
.carousel::before{ left:0; background:linear-gradient(to right, rgba(14,17,19,0.9), rgba(14,17,19,0)); }
.carousel::after{ right:0; background:linear-gradient(to left, rgba(14,17,19,0.9), rgba(14,17,19,0)); }

.carousel-track{
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}
.carousel-track::-webkit-scrollbar{ height: 8px; }
.carousel-track::-webkit-scrollbar-thumb{ background: var(--line); border-radius: 999px; }

.carousel-item{
  flex: 0 0 80%;
  scroll-snap-align: center;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 900px){
  .carousel-item{ flex-basis: 33.333%; }
}

.carousel-item img{
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16 / 9; /* consistent height */
  object-fit: cover;
  border-radius: 12px;
}

/* Prev / Next buttons */
.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(19,23,26,.8);
  color: var(--text);
  font-size: 22px; line-height: 38px; text-align: center;
  cursor: pointer;
  backdrop-filter: blur(6px) saturate(140%);
}
.carousel-btn:disabled{ opacity:.35; cursor: default; }
.carousel-btn.prev{ left: 6px; }
.carousel-btn.next{ right: 6px; }

@media (max-width: 560px){
  .carousel-btn{ width: 36px; height: 36px; font-size: 20px; line-height: 34px; }
}

/* Optional: remove underlines on images-as-links inside carousels */
.carousel-item { text-decoration: none; }

@media (max-width: 900px){
  .cards{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .content.two-col{grid-template-columns:1fr}
  .panel{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr 1fr}
}
/* ---------- Lightbox (Gallery Overlay) ---------- */
body.lb-open { overflow: hidden; }

.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;               /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox.open{ display: flex; }

.lightbox img{
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  user-select: none;
}

/* Close button (X) */
.lb-close{
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(19,23,26,.9);
  color: var(--text);
  font-size: 24px;
  line-height: 42px;
  text-align: center;
  cursor: pointer;
  backdrop-filter: blur(6px) saturate(140%);
}
.lb-close:hover{ opacity:.9; }
.lb-close:focus{ outline: 2px solid var(--teal); }

/* (optional) subtle open animation */
.lightbox.open img{
  animation: lbIn .18s ease-out both;
}/* ---------- Lightbox arrows ---------- */
.lb-arrow{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(19,23,26,.9);
  color: var(--text);
  font-size: 26px;
  line-height: 46px;
  text-align: center;
  cursor: pointer;
  z-index: 10000;
  backdrop-filter: blur(6px) saturate(140%);
}
.lb-arrow:hover{ opacity:.95; }
.lb-prev{ left: 14px; }
.lb-next{ right: 14px; }

@media (max-width: 560px){
  .lb-arrow{ width: 42px; height: 42px; font-size: 22px; line-height: 40px; }
}

@keyframes lbIn{
  from{ transform: translateY(6px) scale(.985); opacity:.0; }
  to{ transform: translateY(0) scale(1); opacity:1; }
}
/* Gallery track layout */
.carousel { position: relative; }
.carousel-track { display:flex; gap:16px; overflow-x:auto; scroll-behavior:smooth; padding:8px 0; }
.carousel-item img { display:block; width:360px; height:240px; object-fit:cover; border-radius:8px; }

/* Carousel arrows positioning */
.carousel .carousel-btn { position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,.5); color:#fff; border:0; width:40px; height:40px; border-radius:50%; cursor:pointer; }
.carousel .prev { left:-4px; }
.carousel .next { right:-4px; }
@media (max-width: 900px){
  .carousel-item img{ width:260px; height:180px; }
}
/* Keep page from showing horizontal scrollbar with full-bleed stripes */
.page { overflow-x: clip; }

/* Container width for normal content */
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Two-column intro (map + copy) */
.content.two-col.wrap{
  display:grid; grid-template-columns:1.1fr .9fr; gap:2rem; align-items:start;
}
.content.two-col.wrap .feature img{ width:100%; height:auto; border-radius:8px; }
@media (max-width: 900px){ .content.two-col.wrap{ grid-template-columns:1fr; } }

/* Make a section bleed edge-to-edge */
.full-bleed{
  position:relative;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

/* GALLERY: make the TRACK span the full viewport width but keep nice left/right padding.
   The padding aligns with your container edges when viewport > container width. */
.gallery .carousel{ position:relative; width:100vw; }
.gallery .carousel-track{
  display:flex; gap:20px; overflow-x:auto; scroll-behavior:smooth;
  padding-top: 16px; padding-bottom: 24px;

  /* center content visually: padding matches container gutters */
  padding-left: max(4vw, calc((100vw - 1200px) / 2));
  padding-right: max(4vw, calc((100vw - 1200px) / 2));
}
.gallery .carousel-item img{
  display:block; width:460px; height:300px; object-fit:cover; border-radius:12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.gallery .carousel-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  background:rgba(0,0,0,.5); color:#fff; border:0; width:44px; height:44px;
  border-radius:50%; cursor:pointer; z-index:2;
}
.gallery .prev{ left:12px; } .gallery .next{ right:12px; }
@media (max-width:900px){
  .gallery .carousel-item img{ width:300px; height:200px; }
}

/* Interactive bullet chips */
.bullets{ list-style:none; padding:0; margin:1rem 0 0; display:grid; gap:.75rem; }
.bullets.is-interactive li{
  position:relative; padding:14px 16px 14px 46px; border:1px solid rgba(255,255,255,.12);
  border-radius:12px; background:rgba(255,255,255,.03);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  cursor:pointer;
}
.bullets.is-interactive li::before{
  content:""; position:absolute; left:14px; top:50%; transform:translateY(-50%);
  width:16px; height:16px; border-radius:50%;
  background:linear-gradient(135deg, #2F8F83, #C7BBA4);
  box-shadow:0 0 0 3px rgba(47,143,131,.25);
}
.bullets.is-interactive li:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(0,0,0,.22);
  border-color:rgba(255,255,255,.25);
  background:rgba(255,255,255,.06);
}
.bullets.is-interactive li[aria-pressed="true"]{
  border-color:#2F8F83; background:rgba(47,143,131,.12);
}
.bullets.is-interactive li:focus-visible{ outline:2px solid #2F8F83; outline-offset:2px; }

.bullets.is-interactive li .detail{
  max-height:0; overflow:hidden; opacity:0; transition:max-height .25s ease, opacity .25s ease;
  color:var(--muted, #9FB2B1); margin-top:.35rem; font-size:.95rem;
}
.bullets.is-interactive li[aria-pressed="true"] .detail{ max-height:120px; opacity:1; }
/* ===== Center + contain the full-bleed gallery ===== */
:root{ --container: 1200px; }            /* match your site container width */

.page{ overflow-x: clip; }               /* prevent any stray horizontal scroll */

/* Full-bleed stripe (already used) */
.full-bleed{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* Keep the carousel itself within the viewport and stabilize scrollbars */
.gallery .carousel{
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin: 0 auto;
  overflow: hidden;
  scrollbar-gutter: stable both-edges;
}

/* The track now boxes its own padding so it never pushes past the viewport */
.gallery .carousel-track{
  box-sizing: border-box;
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-top: 16px;
  padding-bottom: 24px;

  /* Align the rail visually with your .container on wide screens,
     and use simple gutters on small screens. */
  padding-left: max(4vw, calc((100vw - var(--container)) / 2));
  padding-right: max(4vw, calc((100vw - var(--container)) / 2));

  /* When there are only a few images (less than viewport width), center them */
  justify-content: center;
}

/* Item sizes (keep as you had, just here for completeness) */
.gallery .carousel-item img{
  display: block;
  width: 460px; height: 300px; object-fit: cover;
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
@media (max-width: 900px){
  .gallery .carousel-track{
    padding-left: 4vw; padding-right: 4vw;  /* simpler gutters on mobile */
  }
  .gallery .carousel-item img{ width: 300px; height: 200px; }
}

/* Arrow buttons stay inside the viewport edges */
.gallery .carousel-btn{
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); color: #fff; border: 0; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; z-index: 2;
}
.gallery .prev{ left: 12px; } .gallery .next{ right: 12px; }
/* Tourism in the left column "gap" under the map */
.content.two-col.gap-left{
  display: grid;
  grid-template-columns: 1.1fr .9fr;  /* match your .two-col.wrap ratios */
  gap: 2rem;
  align-items: start;
}
.content.two-col.gap-left .col-left{ min-width: 0; }  /* prevent overflow */
@media (max-width: 900px){
  .content.two-col.gap-left{
    grid-template-columns: 1fr;  /* stack on mobile */
  }
  .content.two-col.gap-left .col-right{ display:none; } /* hide spacer on mobile */
}
/* Two equal columns block */
.content.two-col.equal{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 900px){
  .content.two-col.equal{ grid-template-columns: 1fr; }
}

/* Optional: quick swap order without touching HTML */
.content.two-col.equal.reverse{ direction: rtl; }
.content.two-col.equal.reverse > *{ direction: ltr; }
/* --- Lightbox overlay --- */
.lb-overlay{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,.85); z-index:9999;
}
.lb-overlay.open{ display:flex; }
.lb-frame{ position:relative; max-width:92vw; max-height:92vh; }
.lb-img{ display:block; max-width:92vw; max-height:92vh; border-radius:10px; box-shadow:0 12px 40px rgba(0,0,0,.6); }

/* Controls */
.lb-close,.lb-prev,.lb-next{
  position:absolute; background:rgba(255,255,255,.12); color:#fff;
  border:1px solid rgba(255,255,255,.25); width:44px; height:44px; border-radius:999px;
  display:flex; align-items:center; justify-content:center; font-size:20px; cursor:pointer; user-select:none;
  backdrop-filter: blur(6px);
}
.lb-close{ top:-56px; right:-56px; }
.lb-prev{ left:-56px; top:50%; transform:translateY(-50%); }
.lb-next{ right:-56px; top:50%; transform:translateY(-50%); }

@media (max-width:900px){
  .lb-close{ top:8px; right:8px; }
  .lb-prev{ left:8px; }
  .lb-next{ right:8px; }
}
/* --- Gallery thumb never collapse + render first item --- */
.gallery .carousel-track{
  display:flex;
  gap:20px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding-top:16px; padding-bottom:24px;
  box-sizing:border-box;
}
.gallery .carousel-item{ flex:0 0 auto; } /* <— critical: prevents 0-width first item */
.gallery .carousel-item img{
  display:block;
  width:460px; height:300px; object-fit:cover;
  border-radius:12px; box-shadow:0 8px 24px rgba(0,0,0,.25);
}
@media (max-width:900px){
  .gallery .carousel-item img{ width:300px; height:200px; }
}

/* --- Lightbox overlay always on top & visible --- */
.lb-overlay{
  position:fixed; inset:0;
  display:none; align-items:center; justify-content:center;
  background:rgba(0,0,0,.85);
  z-index:2147483000; /* sit above any header/nav */
}
.lb-overlay.open{ display:flex; }
.lb-frame{ position:relative; max-width:92vw; max-height:92vh; }
.lb-img{
  display:block; max-width:92vw; max-height:92vh;
  border-radius:10px; box-shadow:0 12px 40px rgba(0,0,0,.6);
}

/* Controls (force visibility) */
.lb-close,.lb-prev,.lb-next{
  position:absolute; background:rgba(255,255,255,.14); color:#fff;
  border:1px solid rgba(255,255,255,.3);
  width:44px; height:44px; border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  font-size:20px; cursor:pointer; user-select:none;
  backdrop-filter: blur(6px);
  z-index:2147483640; /* above image */
}
.lb-close{ top:-56px; right:-56px; }
.lb-prev{ left:-56px; top:50%; transform:translateY(-50%); }
.lb-next{ right:-56px; top:50%; transform:translateY(-50%); }

@media (max-width:900px){
  .lb-close{ top:8px; right:8px; }
  .lb-prev{ left:8px; }
  .lb-next{ right:8px; }
}
/* prevent horizontal scroll from full-bleed elements */
.page { overflow-x: clip; }

/* Full-bleed hero using <img> */
.page-hero{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);   /* break out of container */
  margin-right: calc(50% - 50vw);
  overflow: hidden;
}
.page-hero img{
  display:block;
  width:100vw;                      /* span the entire viewport */
  height: clamp(280px, 38vw, 560px);/* responsive height band */
  object-fit: cover;                /* crop elegantly */
}
.page-hero .page-hero-text{
  position:absolute; inset:auto 0 0 0; /* pin to bottom */
  padding: clamp(16px, 3vw, 32px) max(4vw, calc((100vw - 1200px)/2));
  color: var(--text, #E9EEF0);
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.page-hero .page-hero-text h1{ margin:0 0 .25em 0; font-size: clamp(28px, 4vw, 48px); }
.page-hero .page-hero-text p{ margin:0; font-size: clamp(14px, 2vw, 18px); max-width: 70ch; }
/* Container helper (if not already) */
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* KPI cards */
.kpis{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin-top:1rem; }
.kpi{ padding:16px; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:rgba(255,255,255,.03); }
.kpi-num{ font-size: clamp(22px, 3.2vw, 34px); font-weight:800; letter-spacing:.2px; }
.kpi-label{ color:var(--muted,#9FB2B1); margin-bottom:.25rem; }
.kpi-note{ margin:.5rem 0 0; color:var(--muted,#9FB2B1); font-size:.95rem; }
@media (max-width: 980px){ .kpis{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .kpis{ grid-template-columns:1fr; } }

/* Tabs */
.tabs{ display:flex; gap:.5rem; margin-top:.75rem; flex-wrap:wrap; }
.tab{ border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.04); color:inherit; padding:.6rem .9rem; border-radius:999px; cursor:pointer; }
.tab.is-active{ border-color:#2F8F83; background:rgba(47,143,131,.18); }
.panes{ margin-top:1rem; }
.pane[hidden]{ display:none !important; }

/* Timeline */
.timeline{ counter-reset: step; list-style:none; padding:0; margin:1rem 0 0; display:grid; gap:1rem; }
.timeline li{ border-left:3px solid #2F8F83; padding: .25rem 0 .25rem 1rem; background:rgba(255,255,255,.02); border-radius:8px; }
.timeline .time{ font-weight:700; }
.timeline .desc{ color:var(--muted,#9FB2B1); }

/* Accordions */
.accordion details{ border:1px solid rgba(255,255,255,.12); border-radius:12px; padding:.75rem 1rem; background:rgba(255,255,255,.03); margin-bottom:.75rem; }
.accordion summary{ cursor:pointer; font-weight:600; }
.accordion .acc-body{ margin-top:.5rem; }

/* Interactive bullet chips (shared with the rest of the site) */
.bullets{ list-style:none; padding:0; margin:1rem 0 0; display:grid; gap:.75rem; }
.bullets.is-interactive li{
  position:relative; padding:14px 16px 14px 46px; border:1px solid rgba(255,255,255,.12);
  border-radius:12px; background:rgba(255,255,255,.03);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  cursor:pointer;
}
.bullets.is-interactive li::before{
  content:""; position:absolute; left:14px; top:50%; transform:translateY(-50%);
  width:16px; height:16px; border-radius:50%; background:linear-gradient(135deg,#2F8F83,#C7BBA4);
  box-shadow:0 0 0 3px rgba(47,143,131,.25);
}
.bullets.is-interactive li:hover{ transform:translateY(-2px); box-shadow:0 10px 24px rgba(0,0,0,.22); border-color:rgba(255,255,255,.25); background:rgba(255,255,255,.06); }
.bullets.is-interactive li[aria-pressed="true"]{ border-color:#2F8F83; background:rgba(47,143,131,.12); }
.bullets.is-interactive li:focus-visible{ outline:2px solid #2F8F83; outline-offset:2px; }
.bullets.is-interactive li .detail{ max-height:0; overflow:hidden; opacity:0; transition:max-height .25s ease, opacity .25s ease; color:var(--muted,#9FB2B1); margin-top:.35rem; font-size:.95rem; }
.bullets.is-interactive li[aria-pressed="true"] .detail{ max-height:140px; opacity:1; }

/* Two equal columns section */
.content.two-col.equal{ display:grid; grid-template-columns:1fr 1fr; gap:2rem; align-items:start; }
@media (max-width:900px){ .content.two-col.equal{ grid-template-columns:1fr; } }

/* Full-bleed hero (Option B background cover) */
.page-hero.hero-cover{
  position: relative; width:100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  min-height: clamp(320px, 42vw, 640px); background-image: var(--hero); background-size: cover;
  background-position: center; background-repeat:no-repeat;
}
.page-hero.hero-cover::after{ content:""; position:absolute; inset:0; background:linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.35)); }
.page-hero.hero-cover .page-hero-text{ position:absolute; inset:auto 0 0 0; padding: clamp(16px, 3vw, 32px) max(4vw, calc((100vw - 1200px)/2)); color:var(--text,#E9EEF0); text-shadow:0 8px 24px rgba(0,0,0,.35); }
/* Impact cards */
.impact-grid{
  display:grid; grid-template-columns:repeat(4,1fr); gap:1.5rem; margin-top:1rem;
}
.impact-card{
  padding:16px; border:1px solid rgba(255,255,255,.12);
  border-radius:12px; background:rgba(255,255,255,.03);
}
.impact-card h3{ margin-top:0; font-size:1.1rem; }
@media (max-width: 980px){ .impact-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width: 560px){ .impact-grid{ grid-template-columns:1fr; } }
/* Full-bleed hero base (you already have this; included for context) */
.page-hero.hero-cover{
  position: relative;
  width:100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: clamp(320px, 42vw, 640px);
  background-image: var(--hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.page-hero.hero-cover::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,.0), rgba(0,0,0,.35));
}

/* Title over the banner (push it down a bit) */
.page-hero .hero-title{
  position: absolute;
  left: 0; right: 0; bottom: clamp(24px, 5vw, 64px);
  padding: 0 max(4vw, calc((100vw - 1200px)/2));
  color: var(--text, #E9EEF0);
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.page-hero .hero-title h1{
  margin: 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
}

/* Subtitle BELOW the banner (not overlayed) */
.hero-subtitle{
  margin-top: clamp(8px, 1.5vw, 16px);
}
.hero-subtitle p{
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--muted, #9FB2B1);
}
/* === Full-bleed hero using <img> (no cropping) === */
.page { overflow-x: clip; } /* avoid horizontal scroll from full-bleed elements */

.page-hero{
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden; /* keeps it tidy if text overflows */
}

.page-hero > img{
  display: block;
  width: 100vw;   /* fill the screen width */
  height: auto;   /* preserve the full image (no cutting) */
}

/* Position the overlay text a bit up from the bottom with aligned gutters */
.page-hero .page-hero-text{
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(16px, 5vw, 64px);
  padding: 0 max(4vw, calc((100vw - 1200px)/2));
  color: var(--text, #E9EEF0);
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.page-hero .page-hero-text h1{
  margin: 0 0 .25em 0;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
}
.page-hero .page-hero-text p{
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  max-width: 70ch;
}

/* Optional: subtle bottom gradient for legibility over bright photos */
.page-hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%);
  pointer-events:none;
}

/* If you’re using .content.wide, give it a nice max width */
.content.wide{ width:min(1200px, 92vw); margin: 0 auto; }
/* --- Layout padding & anchor offset --- */
section[id] { scroll-margin-top: 96px; } /* so anchors don't hide under sticky nav */

.content,
.gallery {
  padding-left: clamp(20px, 4vw, 60px);
  padding-right: clamp(20px, 4vw, 60px);
}

/* Two-column sections: keep content from hugging the edge */
.content.two-col {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,520px);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
@media (max-width: 900px){
  .content.two-col { grid-template-columns: 1fr; }
}

/* Nudge the Overview section a little to the right */
#overview { padding-left: clamp(24px, 5vw, 72px); }

/* Prevent text overflow quirks inside grid children */
.content.two-col > * { min-width: 0; }

/* ===== Interactive Bullets — final, robust ===== */
.ibullets{ display:grid; gap:10px; margin:16px 0 8px; }
.ib{
  all:unset; display:grid; grid-template-columns:1fr auto; align-items:center;
  padding:14px 16px; border:1px solid rgba(255,255,255,.12);
  border-radius:14px; background:rgba(255,255,255,.03);
  cursor:pointer; transition:background .25s,border-color .25s,transform .06s;
}
.ib:focus-visible{ outline:2px solid var(--sand,#C7BBA4); outline-offset:2px; }
.ib:hover{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.2); }
.ib:active{ transform:scale(.995); }
.ib-title{ font-weight:600; letter-spacing:.2px; }
.ib-icon{ font-size:16px; transform:rotate(0deg); transition:transform .25s; opacity:.85; }
.ib[aria-expanded="true"] .ib-icon{ transform:rotate(90deg); }

/* Panels: no hard caps; JS sets height; optional no-anim fallback */
.ib-panel{
  overflow:hidden;
  max-height:0;
  background:rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:0 16px;         /* closed state has no vertical padding */
  margin-top:-6px;
  transition:max-height .35s ease, padding .2s ease, border-color .25s ease;
}
.ib[aria-expanded="true"] + .ib-panel{
  padding:12px 16px 14px;
  border-color:rgba(255,255,255,.16);
}

/* Fallback: if a group has data-ib-mode="no-anim", open with auto height (no clip) */
.ibullets[data-ib-mode="no-anim"] .ib-panel{
  transition:none;
}
.ibullets[data-ib-mode="no-anim"] .ib[aria-expanded="true"] + .ib-panel{
  max-height:none; /* full height immediately */
}

/* Layout polish: anchors not hidden under sticky header + a gentle right nudge */
section[id]{ scroll-margin-top:96px; }
#overview{ padding-left: clamp(24px,5vw,72px); }
<script>
  // Block page-level horizontal wheel scroll; allow it only inside whitelisted scrollers
  (function(){
    const allow = new Set(['carousel-track','subnav']);
    window.addEventListener('wheel', function(e){
      const el = e.target.closest('.carousel-track, .subnav');
      if (!el && Math.abs(e.deltaX) > Math.abs(e.deltaY)) {
        // prevent horizontal panning on the body/document
        e.preventDefault();
      }
    }, { passive: false });
  })();
</script>
/* ===== Centered Gallery (Zitundo-style) ===== */
.gallery { padding-top: 2rem; }

.carousel.carousel-centered {
  position: relative;
  max-width: 1400px;        /* keeps the row visually centered on large screens */
  margin: 0 auto;           /* centers the whole carousel */
}

.carousel-viewport {
  overflow: hidden;         /* clip overflow; scrolling happens on track */
}

.carousel-track {
  display: flex;
  gap: 16px;
  padding: 2px;             /* avoids edge clipping when focused */
  will-change: transform;
  /* Centering trick: use left/right auto margins on the items at large widths */
  justify-content: center;
}

/* Item sizing (uniform cards) */
.carousel-item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  flex: 0 0 clamp(260px, 28vw, 420px);  /* responsive width per card */
}
.carousel-item img {
  width: 100%;
  height: clamp(200px, 24vw, 280px);
  object-fit: cover;
  display: block;
}

/* Nav arrows (fixed position) */
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(15,18,20,.5); color: #fff; font-size: 28px;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.carousel-btn.prev { left: -6px; }
.carousel-btn.next { right: -6px; }
.carousel-btn:hover { background: rgba(15,18,20,.75); }

/* Small screens: allow horizontal scroll by gesture; keep centered look */
@media (max-width: 900px){
  .carousel-track {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .carousel-item { scroll-snap-align: center; flex-basis: 80%; }
  .carousel-btn { display: none; } /* thumbs swipe; hide arrows on mobile if you prefer */
}

/* Lightbox polish (ensure no page-level horizontal scroll) */
.lightbox { overflow: hidden; }
/* --- Gallery: correct scroller + alignment --- */
.carousel.carousel-centered { max-width: 1400px; margin: 0 auto; }

.carousel-viewport{
  overflow-x: auto;          /* was hidden — must be scrollable */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.carousel-track{
  display: flex;
  gap: 16px;
  justify-content: flex-start; /* was center — caused mid-start and no left travel */
  padding: 2px;
  will-change: transform;
}

/* Desktop: show arrows; Mobile keeps gesture scroll */
@media (max-width: 900px){
  .carousel-btn{ display: none; }
}
/* --- Eco City gallery: make viewport the only scroller; track never recenters --- */
.carousel.carousel-centered { max-width: 1400px; margin: 0 auto; }

.carousel-viewport{
  overflow-x: auto;         /* the ONLY horizontal scroller */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Key: inline-flex + max-content keeps the row naturally left-aligned */
.carousel-track{
  display: inline-flex;     /* not flex; prevents auto stretching/centering */
  min-width: max-content;   /* width equals sum of items + gaps */
  gap: 16px;
  padding: 2px;
  will-change: transform;
}

/* Uniform card sizing */
.carousel-item{
  display:block; border-radius:16px; overflow:hidden;
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 420px);
}
.carousel-item img{
  width:100%; height: clamp(200px, 24vw, 280px); object-fit:cover; display:block;
}

/* Arrows */
.carousel-btn{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px;
  border-radius:50%; border:1px solid rgba(255,255,255,.3); background:rgba(15,18,20,.5);
  color:#fff; font-size:28px; display:grid; place-items:center; cursor:pointer; z-index:2;
}
.carousel-btn.prev{ left: -6px; }
.carousel-btn.next{ right: -6px; }
.carousel-btn:hover{ background:rgba(15,18,20,.75); }

/* Mobile: swipe; no arrows */
@media (max-width: 900px){
  .carousel-btn{ display:none; }
  .carousel-viewport{ scroll-snap-type: x proximity; }
  .carousel-item{ scroll-snap-align: center; }
}
/* Lightbox */
.lightbox[hidden]{ display:none; }
.lightbox{
  position:fixed; inset:0; z-index:1000;
  background:rgba(0,0,0,.85);
  display:grid; grid-template-areas:"prev img next";
  grid-template-columns:80px 1fr 80px; align-items:center;
}
.lb-image{ grid-area:img; max-width:90vw; max-height:85vh; margin:0 auto; border-radius:12px; display:block; }
.lb-btn{
  position:relative; z-index:1001;
  width:64px; height:64px; border-radius:50%;
  border:1px solid rgba(255,255,255,.3);
  background:rgba(0,0,0,.4); color:#fff; font-size:36px;
  display:grid; place-items:center; cursor:pointer;
}
.lb-prev{ grid-area:prev; justify-self:center; }
.lb-next{ grid-area:next; justify-self:center; }
.lb-close{
  position:absolute; top:24px; right:24px; font-size:32px;
  width:48px; height:48px;
}
.lb-btn:hover{ background:rgba(0,0,0,.65); }
/* ===== Airport gallery centering & no overflow ===== */
.carousel.carousel-centered[data-gallery="airport"]{
  position: relative;
  width: 100%;
  max-width: 1400px;      /* keeps row visually centered on large screens */
  margin: 0 auto;         /* center the whole gallery block */
  padding-inline: 28px;   /* room for arrows inside the container */
  overflow: hidden;       /* nothing spills outside the gallery */
}

.carousel.carousel-centered[data-gallery="airport"] .carousel-viewport{
  overflow-x: auto;       /* the ONLY horizontal scroller */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  margin: 0 auto;         /* center the viewport itself */
  max-width: 100%;
}

.carousel.carousel-centered[data-gallery="airport"] .carousel-track{
  display: inline-flex;   /* natural row width = items + gaps */
  min-width: max-content; /* prevents auto stretching */
  gap: 16px;
  padding: 2px;
  will-change: transform;
}

.carousel.carousel-centered[data-gallery="airport"] .carousel-item{
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 420px);
  border-radius: 16px; overflow: hidden; display: block;
}
.carousel.carousel-centered[data-gallery="airport"] .carousel-item img{
  width: 100%; height: clamp(200px, 24vw, 280px); object-fit: cover; display: block;
}

/* Arrows kept INSIDE the padded gallery, so no right overflow */
.carousel.carousel-centered[data-gallery="airport"] .carousel-btn{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(15,18,20,.5); color: #fff; font-size: 28px;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.carousel.carousel-centered[data-gallery="airport"] .carousel-btn.prev{ left: 0; }
.carousel.carousel-centered[data-gallery="airport"] .carousel-btn.next{ right: 0; }
.carousel.carousel-centered[data-gallery="airport"] .carousel-btn:hover{ background: rgba(15,18,20,.75); }

/* Mobile: swipe to scroll; arrows hidden; remove side padding */
@media (max-width: 900px){
  .carousel.carousel-centered[data-gallery="airport"]{ padding-inline: 0; }
  .carousel.carousel-centered[data-gallery="airport"] .carousel-btn{ display: none; }
  .carousel.carousel-centered[data-gallery="airport"] .carousel-viewport{ scroll-snap-type: x proximity; }
  .carousel.carousel-centered[data-gallery="airport"] .carousel-item{ scroll-snap-align: center; }
}
/* ===== Eco City: clearer hierarchy & spacing ===== */

/* 1) Section titles (H2) */
.ks-section h2{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: .2px;
  line-height: 1.2;
  color: var(--ks-text, #E9EEF0);
  margin: 32px 8px 6px; /* more top space, tighter to the accent bar */
  position: relative;
}

/* Accent bar under the H2 */
.ks-section h2::after{
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--sand,#C7BBA4), rgba(199,187,164,.25));
  border-radius: 2px;
}

/* 2) Lead/intro paragraph under H2 */
.ks-lead{
  margin: 8px 8px 18px;
  color: rgba(233,238,240,.78);         /* a touch muted for contrast with titles */
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  max-width: 80ch;
}

/* 3) Row headings (H3) on the left rail */
.ks-left h3{
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(16px, 1.25vw, 20px);
  letter-spacing: .2px;
  color: #F4F6F8;                        /* slightly brighter than body */
}

/* Subtitles under H3 (left rail) */
.ks-left .sub{
  margin-top: 4px;
  color: rgba(233,238,240,.6);
  font-weight: 500;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: .82rem;
}

/* 4) Summary text on the right (first line visible in the row) */
.ks-right p{
  color: rgba(233,238,240,.9);
  line-height: 1.55;
}

/* 5) Panel content spacing when a row opens */
.ks-panel .ks-content{
  color: var(--ks-text,#E9EEF0);
}
.ks-panel .ks-content ul{ margin: 6px 0 0 18px; }
.ks-panel .ks-content li{ margin: 4px 0; }

/* 6) Extra spacing between rows/sections */
.ks{ margin-top: 18px; }
.ks-row summary{ padding-top: 20px; padding-bottom: 16px; }
.ks-panel{ padding-bottom: 22px; }

/* 7) Keep anchors from hiding under sticky header */
section[id]{ scroll-margin-top: 96px; }
/* ===== Zitundo gallery centering & overflow guard ===== */
.carousel.carousel-centered[data-gallery="zitundo"]{
  position: relative;
  width: 100%;
  max-width: 1400px;       /* centered max width */
  margin: 0 auto;          /* center the block */
  padding-inline: 28px;    /* space for arrows inside */
  overflow: hidden;        /* nothing spills outside */
}
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-viewport{
  overflow-x: auto;        /* the ONLY horizontal scroller */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  margin: 0 auto;
  max-width: 100%;
}
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-track{
  display: inline-flex;    /* row width = items + gaps */
  min-width: max-content;  /* prevents auto stretching/recentering */
  gap: 16px;
  padding: 2px;
  will-change: transform;
}
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-item{
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 420px);
  border-radius: 16px; overflow: hidden; display: block;
}
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-item img{
  width: 100%; height: clamp(200px, 24vw, 280px); object-fit: cover; display: block;
}
/* Arrows inside the container */
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(15,18,20,.5); color: #fff; font-size: 28px;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn.prev{ left: 0; }
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn.next{ right: 0; }
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn:hover{ background: rgba(15,18,20,.75); }

/* Mobile: swipe; arrows hidden; remove side padding for edge-to-edge feel */
@media (max-width: 900px){
  .carousel.carousel-centered[data-gallery="zitundo"]{ padding-inline: 0; }
  .carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn{ display: none; }
  .carousel.carousel-centered[data-gallery="zitundo"] .carousel-viewport{ scroll-snap-type: x proximity; }
  .carousel.carousel-centered[data-gallery="zitundo"] .carousel-item{ scroll-snap-align: center; }
}

/* Lightbox safety */
.lightbox { overflow: hidden; }
/* --- Zitundo gallery: true centering when content is narrower than viewport --- */
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-viewport{
  /* make the viewport a flex container so the track can be centered */
  display: flex;
  justify-content: center;         /* centers the track if it’s not overflowing */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* keep the track from stretching; it will center as a single flex item */
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-track{
  flex: 0 0 auto;                  /* don’t grow/shrink; use intrinsic width */
  display: inline-flex;
  min-width: max-content;
  gap: 16px;
  padding: 2px;
  will-change: transform;
}

/* Optional: if you previously set justify-content on the track, neutralize it */
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-track{ justify-content: initial; }
<style>
/* ===== ZITUNDO-ONLY GALLERY OVERRIDE (wins by specificity) ===== */
.carousel.carousel-centered[data-gallery="zitundo"]{
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;                 /* center the whole block */
  padding-inline: 28px;           /* space for arrows INSIDE the block */
  overflow: hidden;               /* nothing spills outside */
}

.carousel.carousel-centered[data-gallery="zitundo"] .carousel-viewport{
  display: flex;                  /* lets us center when content is narrow */
  justify-content: center;
  overflow-x: auto;               /* the ONLY horizontal scroller */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  max-width: 100%;
  margin: 0 auto;
}

.carousel.carousel-centered[data-gallery="zitundo"] .carousel-track{
  flex: 0 0 auto;                 /* don’t stretch */
  display: inline-flex;           /* row width = items + gaps */
  min-width: max-content;         /* keeps natural width */
  gap: 16px;
  padding: 2px;                   /* avoids edge clipping when focusing */
  will-change: transform;
}

.carousel.carousel-centered[data-gallery="zitundo"] .carousel-item{
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 420px);
  border-radius: 16px;
  overflow: hidden;
  display: block;
}
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-item img{
  width: 100%;
  height: clamp(200px, 24vw, 280px);
  object-fit: cover;
  display: block;
}

/* Arrows live INSIDE the padded block, so no off-screen crossing */
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(15,18,20,.5); color: #fff; font-size: 28px;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn.prev{ left: 0; }
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn.next{ right: 0; }
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn:hover{ background: rgba(15,18,20,.75); }

/* Lightbox (Zitundo only) */
.lightbox[data-lightbox="zitundo"][hidden]{ display:none; }
.lightbox[data-lightbox="zitundo"]{
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.85);
  display: grid; grid-template-areas: "prev img next";
  grid-template-columns: 80px 1fr 80px; align-items: center;
  overflow: hidden;
}
.lightbox[data-lightbox="zitundo"] .lb-image{
  grid-area: img; max-width: 90vw; max-height: 85vh; margin: 0 auto; border-radius: 12px; display: block;
}
.lightbox[data-lightbox="zitundo"] .lb-btn{
  position: relative; z-index: 1001;
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(0,0,0,.4); color: #fff; font-size: 36px;
  display: grid; place-items: center; cursor: pointer;
}
.lightbox[data-lightbox="zitundo"] .lb-prev{ grid-area: prev; justify-self: center; }
.lightbox[data-lightbox="zitundo"] .lb-next{ grid-area: next; justify-self: center; }
.lightbox[data-lightbox="zitundo"] .lb-close{ position: absolute; top: 24px; right: 24px; font-size: 32px; width: 48px; height: 48px; }
.lightbox[data-lightbox="zitundo"] .lb-btn:hover{ background: rgba(0,0,0,.65); }

/* Mobile: swipe to scroll; hide arrows; remove side padding for edge-to-edge */
@media (max-width: 900px){
  .carousel.carousel-centered[data-gallery="zitundo"]{ padding-inline: 0; }
  .carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn{ display: none; }
  .carousel.carousel-centered[data-gallery="zitundo"] .carousel-viewport{ scroll-snap-type: x proximity; }
  .carousel.carousel-centered[data-gallery="zitundo"] .carousel-item{ scroll-snap-align: center; }
}

</style>
/* ===== ZITUNDO START-AT-01 — FINAL LAYOUT OVERRIDE ===== */
.carousel.carousel-centered[data-gallery="zitundo"]{
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;              /* center the whole gallery block */
  padding-inline: 28px;        /* space for arrows inside */
  overflow: hidden;            /* nothing spills outside */
}

/* Viewport = the ONLY horizontal scroller (not flex) */
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-viewport{
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  max-width: 100%;
  margin: 0 auto;
  display: block;              /* IMPORTANT: not flex → no mid-centering */
}

/* Track = natural row width; won’t stretch or re-center itself */
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-track{
  display: inline-flex;        /* natural width equals items + gaps */
  min-width: max-content;
  gap: 16px;
  padding: 2px;
  will-change: transform;
  justify-content: initial !important;  /* neutralize old rules */
}

/* Cards */
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-item{
  flex: 0 0 auto;
  width: clamp(260px, 28vw, 420px);
  border-radius: 16px; overflow: hidden; display: block;
}
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-item img{
  width: 100%; height: clamp(200px, 24vw, 280px); object-fit: cover; display: block;
}

/* Arrows inside container */
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(15,18,20,.5); color: #fff; font-size: 28px;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn.prev{ left: 0; }
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn.next{ right: 0; }
.carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn:hover{ background: rgba(15,18,20,.75); }

/* Mobile */
@media (max-width: 900px){
  .carousel.carousel-centered[data-gallery="zitundo"]{ padding-inline: 0; }
  .carousel.carousel-centered[data-gallery="zitundo"] .carousel-btn{ display: none; }
  .carousel.carousel-centered[data-gallery="zitundo"] .carousel-viewport{ scroll-snap-type: x proximity; }
  .carousel.carousel-centered[data-gallery="zitundo"] .carousel-item{ scroll-snap-align: center; }
}
/* ===== ECO CITY: Fit to screen; no horizontal scroll site-wide ===== */

/* Global lock */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }

/* Make containers respect the viewport width */
.site-header, .page-hero, .content, .ks-section, .gallery, .site-footer {
  width: 100%;
  max-width: 100%;
  overflow-x: clip; /* clip any accidental child overflow */
}

/* Grids/rows: allow content to shrink instead of forcing overflow */
.content.two-col { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,520px); gap: clamp(20px,4vw,48px); }
.content.two-col > * { min-width: 0; }
.ks-row summary,
.ks-panel { grid-template-columns: minmax(180px,260px) minmax(0,1fr) auto; }
.ks-right, .ks-panel .ks-content { min-width: 0; }

/* Media never exceeds container */
img, video, canvas, svg { max-width: 100%; height: auto; display: block; }

/* Sticky subnav may scroll sideways (whitelist) */
.subnav { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Lightbox should not introduce page scrollbars */
.lightbox { overflow: hidden; }

/* ---------- GALLERY: Only this can scroll horizontally ---------- */
.carousel.carousel-centered[data-gallery="ecocity"]{
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-inline: 28px;         /* keeps arrows inside; no negative offsets */
  overflow: hidden;
}
.carousel.carousel-centered[data-gallery="ecocity"] .carousel-viewport{
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.carousel.carousel-centered[data-gallery="ecocity"] .carousel-track{
  display: inline-flex; min-width: max-content; gap: 16px; padding: 2px; will-change: transform;
}
.carousel.carousel-centered[data-gallery="ecocity"] .carousel-item{
  flex: 0 0 auto; width: clamp(260px, 28vw, 420px); border-radius: 16px; overflow: hidden; display: block;
}
.carousel.carousel-centered[data-gallery="ecocity"] .carousel-item img{
  width: 100%; height: clamp(200px, 24vw, 280px); object-fit: cover; display: block;
}
/* Arrows INSIDE the container (no off-screen nudge) */
.carousel.carousel-centered[data-gallery="ecocity"] .carousel-btn{
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(15,18,20,.5); color: #fff; font-size: 28px;
  display: grid; place-items: center; cursor: pointer; z-index: 2;
}
.carousel.carousel-centered[data-gallery="ecocity"] .carousel-btn.prev{ left: 0; }
.carousel.carousel-centered[data-gallery="ecocity"] .carousel-btn.next{ right: 0; }
.carousel.carousel-centered[data-gallery="ecocity"] .carousel-btn:hover{ background: rgba(15,18,20,.75); }

@media (max-width: 900px){
  .carousel.carousel-centered[data-gallery="ecocity"]{ padding-inline: 0; }
  .carousel.carousel-centered[data-gallery="ecocity"] .carousel-btn{ display: none; }
  .carousel.carousel-centered[data-gallery="ecocity"] .carousel-viewport{ scroll-snap-type: x proximity; }
  .carousel.carousel-centered[data-gallery="ecocity"] .carousel-item{ scroll-snap-align: center; }
}

/* Misc: avoid sub-pixel nudges that create a tiny horizontal scrollbar */
body { position: relative; }
