/* WANTRIPLOG v0.4.57 — spot photo gallery (above the access/map section)
   Swipeable slider (CSS scroll-snap, no library) + tap-to-enlarge lightbox.
   Loaded only on single spot pages. */

.wt-gallery-section{margin-top:64px;padding-top:37px;border-top:1px solid #e2ece6}
.wt-gallery-heading{margin-bottom:19px}
.wt-gallery-heading .wt-kicker{margin-bottom:5px}
.wt-gallery-heading h2{display:flex;align-items:center;gap:9px;font-size:clamp(22px,2.5vw,29px);font-weight:900;letter-spacing:-.035em;margin:0;color:#1d4542;line-height:1.4}
.wt-gallery-heading h2 .wt-icon{color:#448b74;width:25px;height:25px}
.wt-gallery-heading p{color:#778d83;font-size:13px;margin:7px 0 0}

.wt-gallery-viewport{position:relative}
.wt-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;border-radius:22px;background:#eaf0eb;box-shadow:0 10px 28px rgba(23,66,52,.06);scrollbar-width:none;-webkit-overflow-scrolling:touch}
.wt-gallery-track::-webkit-scrollbar{display:none}
.wt-gallery-track:focus-visible{outline:3px solid #f4ad8a;outline-offset:3px}
.wt-gallery-slide{flex:0 0 100%;min-width:0;margin:0;scroll-snap-align:start;scroll-snap-stop:always;background:#fff}
.wt-gallery-open{display:block;width:100%;aspect-ratio:4/3;padding:0;border:0;background:#eaf0eb;cursor:zoom-in}
.wt-gallery-open img{width:100%;height:100%;display:block;object-fit:cover}
.wt-gallery-open:focus-visible{outline:3px solid #f4ad8a;outline-offset:-3px}
.wt-gallery-slide figcaption{color:#778d83;font-size:12px;line-height:1.65;padding:9px 14px 11px;background:#fff}

.wt-gallery-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;border:1px solid #d8e4dc;background:rgba(255,255,255,.94);color:#235c52;box-shadow:0 4px 14px rgba(23,66,52,.16);cursor:pointer}
.wt-gallery-nav .wt-icon{width:20px;height:20px}
.wt-gallery-nav--prev{left:12px}
.wt-gallery-nav--prev .wt-icon{transform:scaleX(-1)}
.wt-gallery-nav--next{right:12px}
.wt-gallery-nav:hover{background:#e8f3ec}
.wt-gallery-nav:focus-visible{outline:3px solid #f4ad8a;outline-offset:2px}

.wt-gallery-counter{position:absolute;top:12px;right:12px;z-index:2;background:rgba(20,40,35,.72);color:#fff;border-radius:99px;padding:4px 11px;font-size:11px;font-weight:800;letter-spacing:.04em;pointer-events:none}

/* Lightbox */
.wt-gallery-lightbox{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:rgba(13,26,23,.94);padding:20px}
.wt-gallery-lightbox[hidden]{display:none}
.wt-gallery-lightbox-figure{margin:0;max-width:min(1100px,94vw);text-align:center}
.wt-gallery-lightbox-figure img{max-width:100%;max-height:80vh;width:auto;height:auto;object-fit:contain;border-radius:12px;background:#0d1a17}
.wt-gallery-lightbox-figure figcaption{color:#dfe9e2;font-size:13px;line-height:1.7;margin-top:12px}
.wt-gallery-lightbox-figure figcaption:empty{display:none}
.wt-gallery-lightbox-close{position:absolute;top:16px;right:16px;display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;cursor:pointer}
.wt-gallery-lightbox-close .wt-icon{width:21px;height:21px}
.wt-gallery-lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;border:1px solid rgba(255,255,255,.35);background:rgba(255,255,255,.08);color:#fff;cursor:pointer}
.wt-gallery-lightbox-nav .wt-icon{width:22px;height:22px}
.wt-gallery-lightbox-nav--prev{left:16px}
.wt-gallery-lightbox-nav--prev .wt-icon{transform:scaleX(-1)}
.wt-gallery-lightbox-nav--next{right:16px}
.wt-gallery-lightbox-close:hover,.wt-gallery-lightbox-nav:hover{background:rgba(255,255,255,.2)}
.wt-gallery-lightbox-close:focus-visible,.wt-gallery-lightbox-nav:focus-visible{outline:3px solid #f4ad8a;outline-offset:2px}
.wt-gallery-lightbox-counter{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);background:rgba(255,255,255,.12);color:#fff;border-radius:99px;padding:4px 12px;font-size:11px;font-weight:800;letter-spacing:.04em}

@media(min-width:791px){
  /* On desktop the full content width makes the 4:3 frame loom large;
     cap the slider and center it. Mobile stays full-bleed. */
  .wt-gallery-viewport{max-width:680px;margin-inline:auto}
}
@media(max-width:790px){
  .wt-gallery-section{margin-top:43px;padding-top:30px}
}
@media(max-width:540px){
  .wt-gallery-heading h2{font-size:23px}
  .wt-gallery-track{border-radius:16px}
  .wt-gallery-nav{width:38px;height:38px}
  .wt-gallery-nav--prev{left:8px}
  .wt-gallery-nav--next{right:8px}
  .wt-gallery-lightbox{padding:14px}
  .wt-gallery-lightbox-nav{top:auto;bottom:64px;transform:none}
  .wt-gallery-lightbox-nav--prev{left:14px}
  .wt-gallery-lightbox-nav--next{right:14px}
  .wt-gallery-lightbox-counter{bottom:22px}
}
@media (prefers-reduced-motion:reduce){
  .wt-gallery-track{scroll-behavior:auto}
}
