/* Progressive enhancement: native WordPress image/video blocks remain the source. */
.biotour-grid>.wp-block-video { margin:0; min-width:0; }
.biotour-grid video { display:block; width:100%; max-width:100%; background:#172116; }
.biotour-grid.biotour-carousel { display:block; margin:0; }
.standard-page .biotour-grid.biotour-carousel { margin-top:35px; }
.biotour-carousel-viewport { position:relative; border-radius:8px; overflow:hidden; background:#25351e; }
.biotour-carousel-track { display:flex; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; }
.biotour-carousel-track::-webkit-scrollbar,.biotour-carousel-thumbnails::-webkit-scrollbar { display:none; }
.biotour-carousel-slide { flex:0 0 100%; min-width:0; scroll-snap-align:start; scroll-snap-stop:always; }
.biotour-carousel-slide>figure { position:relative; margin:0; width:100%; aspect-ratio:16/9; background:#25351e; }
.biotour-carousel-slide figcaption { display:none; }
.biotour-carousel-slide img,.biotour-carousel-slide video { display:block; width:100%; height:100%; aspect-ratio:auto; object-fit:cover; }
.biotour-carousel-slide video { object-fit:contain; }
.biotour-carousel-open:not(.biotour-carousel-video-open) { position:relative; display:block; width:100%; height:100%; margin:0; padding:0; border:0; background:none; cursor:zoom-in; }
.biotour-carousel-open:not(.biotour-carousel-video-open):after { content:''; position:absolute; inset:65% 0 0; background:linear-gradient(transparent,rgba(13,29,13,.25)); pointer-events:none; }
.biotour-carousel-prev,.biotour-carousel-next,.biotour-carousel-video-open,.biotour-carousel-expand {
  display:flex; align-items:center; justify-content:center; width:48px; height:48px; padding:12px;
  color:#fff; background:rgba(27,44,24,.82); border:1px solid rgba(255,255,255,.6); border-radius:50%;
}
.biotour-carousel-prev,.biotour-carousel-next { position:absolute; z-index:2; top:50%; transform:translateY(-50%); cursor:pointer; backdrop-filter:blur(7px); }
.biotour-carousel-prev { left:22px; }
.biotour-carousel-next { right:22px; }
.biotour-carousel-expand { position:absolute; bottom:20px; right:22px; z-index:1; width:40px; height:40px; padding:10px; }
.biotour-carousel-video-open { position:absolute; top:18px; right:20px; width:40px; height:40px; padding:10px; cursor:pointer; }
.biotour-carousel svg { width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.biotour-carousel-prev:hover,.biotour-carousel-next:hover,.biotour-carousel-video-open:hover { background:#5f7a47; }
.biotour-carousel-prev:disabled,.biotour-carousel-next:disabled { opacity:.3; cursor:default; }
.biotour-carousel-footer { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 0 20px; }
.biotour-carousel-caption { font-family:Georgia,'Times New Roman',serif; font-size:clamp(17px,2vw,23px); line-height:1.4; margin:0; }
.biotour-carousel-counter { white-space:nowrap; font-size:13px; letter-spacing:.15em; color:#f3f3e9; font-variant-numeric:tabular-nums; }
.biotour-carousel-thumbnails { position:relative; display:flex; gap:12px; overflow-x:auto; padding:3px 3px 12px; scrollbar-width:none; overscroll-behavior-x:contain; }
.biotour-carousel-thumb { position:relative; flex:0 0 calc((100% - 84px)/8); min-width:88px; padding:0; border:2px solid transparent; border-radius:4px; background:#34492b; aspect-ratio:4/3; overflow:hidden; cursor:pointer; opacity:.58; transition:opacity .18s,border-color .18s; }
.biotour-carousel-thumb:hover { opacity:1; }
.biotour-carousel-thumb[aria-current=true] { opacity:1; border-color:#fff; }
.biotour-carousel-thumb img { display:block; width:100%; height:100%; object-fit:cover; aspect-ratio:auto; }
.biotour-carousel-thumb>svg { position:absolute; top:50%; left:50%; width:27px; height:27px; transform:translate(-50%,-50%); fill:#fff; stroke:none; filter:drop-shadow(0 1px 3px #172116); }
.biotour-carousel-thumb-label { position:absolute; bottom:3px; left:5px; color:#fff; font-size:10px; text-shadow:0 1px 3px #172116; }
.biotour-carousel a:focus-visible,.biotour-carousel button:focus-visible { outline:3px solid #fff; outline-offset:-5px; box-shadow:none; }
dialog.biotour-lightbox {
  inset:0; width:calc(100% - 40px); max-width:1600px; height:calc(100svh - 40px); max-height:1100px;
  margin:auto; padding:0; border:1px solid rgba(255,255,255,.22); border-radius:10px;
  background:#172116; color:#fff; overflow:hidden; flex-direction:column;
}
dialog.biotour-lightbox:not([open]) { display:none; }
dialog.biotour-lightbox[open] { display:flex; }
.biotour-lightbox::backdrop { background:rgba(9,16,8,.93); }
.lightbox-toolbar { flex-shrink:0; display:flex; align-items:center; justify-content:space-between; width:100%; min-height:68px; padding:12px 24px; gap:15px; }
.lightbox-counter { font-size:13px; letter-spacing:.06em; }
.biotour-lightbox .lightbox-close { position:static; display:flex; align-items:center; gap:12px; border:1px solid #829278; border-radius:999px; color:#fff; padding:7px 16px; background:transparent; cursor:pointer; font-size:14px; }
.lightbox-close span { font-size:25px; line-height:1; }
.lightbox-view { position:relative; display:flex; align-items:center; justify-content:center; width:100%; flex:1; min-height:0; padding-inline:80px; }
.lightbox-stage { width:100%; height:100%; display:flex; align-items:center; justify-content:center; min-width:0; }
.biotour-lightbox .lightbox-stage img,.biotour-lightbox .lightbox-stage video { width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }
.lightbox-prev,.lightbox-next { position:absolute; top:50%; transform:translateY(-50%); z-index:2; width:48px; height:48px; border-radius:50%; border:1px solid #829278; color:#fff; background:#34492b; font-size:24px; cursor:pointer; }
.lightbox-prev { left:16px; }
.lightbox-next { right:16px; }
.lightbox-prev:hover,.lightbox-next:hover { background:#5f7a47; }
.lightbox-prev:disabled,.lightbox-next:disabled { opacity:.3; cursor:default; }
.lightbox-caption { width:100%; flex-shrink:0; text-align:center; margin:0; padding:20px 80px 24px; font:18px/1.4 Georgia,'Times New Roman',serif; }
.biotour-lightbox button:focus-visible { outline:3px solid #fff; outline-offset:3px; box-shadow:none; }
@media(max-width:760px) {
  .biotour-carousel-slide>figure { aspect-ratio:4/3; }
  .biotour-carousel-prev,.biotour-carousel-next { width:40px; height:40px; padding:10px; }
  .biotour-carousel-prev { left:10px; }
  .biotour-carousel-next { right:10px; }
  .biotour-carousel-expand { width:32px; height:32px; bottom:12px; right:12px; padding:7px; }
  .biotour-carousel-video-open { top:12px; right:12px; }
  .biotour-carousel-footer { gap:16px; padding:16px 0; align-items:flex-start; }
  .biotour-carousel-counter { padding-top:3px; font-size:11px; }
  .biotour-carousel-thumbnails { gap:8px; }
  .biotour-carousel-thumb { flex-basis:calc((100% - 24px)/4); min-width:68px; }
  dialog.biotour-lightbox { width:100%; height:100svh; max-height:none; border:0; border-radius:0; }
  .lightbox-toolbar { padding:16px; min-height:70px; }
  .lightbox-view { padding-inline:8px; padding-bottom:68px; }
  .lightbox-prev,.lightbox-next { top:auto; bottom:8px; transform:none; }
  .lightbox-prev { left:calc(50% - 62px); }
  .lightbox-next { right:calc(50% - 62px); }
  .lightbox-caption { padding:10px 20px 24px; font-size:16px; }
}
@media(prefers-reduced-motion:reduce) {
  .biotour-carousel-thumb { transition:none; }
}
