/* World Green V28 — service detail gallery matches Our Camps single-photo slideshow.
   Intentionally scoped to service pages, leaving Our Camps and Admin unchanged. */
.wgs29 .wgc28-service-gallery,
.wgs29 .wgc28-service-gallery * { box-sizing: border-box; }
.wgs29 .wgc28-service-gallery { width: 100%; min-width: 0; }
.wgs29 .wgc28-service-gallery__stage {
  position: relative; isolation: isolate; margin: 0; width: 100%;
  aspect-ratio: 16 / 10; max-height: 610px; min-height: 260px;
  overflow: hidden; border-radius: 17px; background: #082d3a;
  box-shadow: 0 12px 28px rgba(5, 35, 42, .14);
}
.wgs29 .wgc28-service-gallery__photo {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  appearance: none; padding: 0; margin: 0; border: none; cursor: zoom-in; background: transparent;
}
.wgs29 .wgc28-service-gallery__photo img {
  display: block; width: 100%; height: 100%; object-fit: contain;
  filter: none; transition: filter .2s ease;
}
.wgs29 .wgc28-service-gallery__photo:hover img { filter: brightness(.98); }
.wgs29 .wgc28-service-gallery__arrow {
  appearance: none; position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.78); background: rgba(255,255,255,.95);
  color: #113a47; box-shadow: 0 4px 15px rgba(1,23,30,.25); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.wgs29 .wgc28-service-gallery__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.wgs29 .wgc28-service-gallery__arrow--prev { left: 15px; }
.wgs29 .wgc28-service-gallery__arrow--next { right: 15px; }
.wgs29 .wgc28-service-gallery__arrow svg {
  width: 21px; height: 21px; fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.wgs29 .wgc28-service-gallery__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 2px 6px; font-size: 11px;
  font-weight: 850; line-height: 1.4; letter-spacing: .1em; color: #517984;
}
.wgs29 .wgc28-service-gallery__counter {
  color: #087d70; font-size: 13px; letter-spacing: .075em; font-variant-numeric: tabular-nums;
}
.wgs29 .wgc28-service-gallery__thumbs {
  display: flex; gap: 10px; max-width: 100%; min-width: 0;
  overflow-x: auto; overflow-y: hidden; padding: 7px 2px 12px;
  scrollbar-width: thin; scrollbar-color: #a3ccc5 transparent;
}
.wgs29 .wgc28-service-gallery__thumb {
  appearance: none; flex: 0 0 98px; width: 98px; height: 74px; min-width: 0;
  padding: 3px; border: 2px solid #d9e8e5; border-radius: 11px;
  background: #fff; opacity: .76; cursor: pointer;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}
.wgs29 .wgc28-service-gallery__thumb img {
  display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px;
}
.wgs29 .wgc28-service-gallery__thumb:hover { opacity: 1; transform: translateY(-2px); }
.wgs29 .wgc28-service-gallery__thumb.is-active,
.wgs29 .wgc28-service-gallery__thumb[aria-pressed="true"] {
  opacity: 1; border-color: #0a9c83; box-shadow: 0 3px 12px rgba(3,127,107,.16);
}
.wgs29 .wgc28-service-gallery__dialog {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box;
  width: min(96vw, 1320px); height: min(94dvh, 920px); max-width: none; max-height: none;
  padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px; background: #071d28; color: #fff;
  box-shadow: 0 28px 100px rgba(0,0,0,.6);
}
.wgc28-service-gallery__dialog:not([open]) { display: none !important; }
.wgc28-service-gallery__dialog::backdrop { background: rgba(0,12,20,.88); backdrop-filter: blur(7px); }
.wgc28-service-gallery__viewer {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 0; padding: 53px 61px;
}
.wgc28-service-gallery__viewer > img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 5px;
}
.wgc28-service-gallery__close {
  position: absolute; z-index: 4; right: 14px; top: 12px;
  display: grid; place-items: center; width: 39px; height: 39px;
  border: 1px solid rgba(255,255,255,.3); border-radius: 10px;
  background: #fff; color: #0b3943; font-size: 28px; line-height: 1; cursor: pointer;
}
.wgc28-service-gallery__viewer-arrow {
  appearance: none; position: absolute; z-index: 4; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 42px; height: 52px; padding: 0;
  border: 1px solid rgba(255,255,255,.35); border-radius: 10px;
  background: rgba(6,47,57,.82); color: #fff; font-size: 40px; cursor: pointer;
}
.wgc28-service-gallery__viewer-arrow--prev { left: 12px; }
.wgc28-service-gallery__viewer-arrow--next { right: 12px; }
.wgc28-service-gallery__viewer-arrow:hover { background: #087c6f; }
.wgc28-service-gallery__viewer-counter {
  position: absolute; bottom: 13px; left: 0; right: 0;
  font-size: 13px; letter-spacing: .11em; color: #daf0ea;
  font-variant-numeric: tabular-nums; text-align: center;
}
.wgc28-service-gallery :is(button):focus-visible,
.wgc28-service-gallery__dialog button:focus-visible { outline: 3px solid #67e5c8; outline-offset: 2px; }
@media (max-width: 675px) {
  .wgs29 .wgc28-service-gallery__stage { aspect-ratio: 4 / 3; min-height: 218px; border-radius: 12px; }
  .wgs29 .wgc28-service-gallery__arrow { width: 36px; height: 36px; }
  .wgs29 .wgc28-service-gallery__arrow--prev { left: 7px; }
  .wgs29 .wgc28-service-gallery__arrow--next { right: 7px; }
  .wgs29 .wgc28-service-gallery__thumb { flex-basis: 82px; width: 82px; height: 63px; }
  .wgs29 .wgc28-service-gallery__dialog { width: 100vw; height: 100dvh; border-radius: 0; }
  .wgc28-service-gallery__viewer { padding: 55px 43px; }
  .wgc28-service-gallery__viewer-arrow { width: 34px; height: 45px; font-size: 34px; }
  .wgc28-service-gallery__viewer-arrow--prev { left: 4px; }
  .wgc28-service-gallery__viewer-arrow--next { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .wgs29 .wgc28-service-gallery__photo img,
  .wgs29 .wgc28-service-gallery__arrow,
  .wgs29 .wgc28-service-gallery__thumb { transition: none !important; }
}
