html.gallery-viewer-open, body.gallery-viewer-open { overflow: hidden !important; overscroll-behavior: none; }
.gallery-viewer-modal { position: fixed; inset: 0; z-index: 900; display: grid; grid-template-columns: 76px minmax(0,1fr) 76px; grid-template-rows: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 28px 22px 18px; background: #000; color: #fff; isolation: isolate; overscroll-behavior: none; }
.gallery-viewer-modal[hidden] { display: none !important; }
.gallery-viewer-stage { grid-column: 2; grid-row: 1; min-width: 0; min-height: 0; height: 100%; display: grid; place-items: center; touch-action: pan-y pinch-zoom; overflow: hidden; }
.gallery-viewer-stage > img,
.gallery-viewer-stage > .gallery-viewer-video { grid-area: 1 / 1; }
.gallery-viewer-stage > img[hidden] { display: none !important; }
.gallery-viewer-stage img { display: block; max-width: 100%; max-height: calc(100vh - 190px); width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; border-radius: 8px; }
.gallery-viewer-close { position: fixed; z-index: 4; right: 18px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.gallery-viewer-nav { width: 54px; height: 54px; justify-self: center; border: 0; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-size: 44px; line-height: .9; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.gallery-viewer-nav:hover { background: rgba(255,255,255,.22); transform: scale(1.04); }
.gallery-viewer-prev { grid-column: 1; grid-row: 1; }
.gallery-viewer-next { grid-column: 3; grid-row: 1; }
.gallery-viewer-footer { grid-column: 1 / -1; grid-row: 2; min-width: 0; display: grid; gap: 10px; }
.gallery-viewer-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 5px; font-size: 12px; color: rgba(255,255,255,.72); }
.gallery-viewer-meta strong { color: #fff; font-size: 13px; }
.gallery-viewer-thumbs { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; padding: 2px 4px 7px; scroll-snap-type: x proximity; }
.gallery-viewer-thumbs button { flex: 0 0 96px; height: 66px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #111; opacity: .58; cursor: pointer; scroll-snap-align: center; transition: opacity .2s ease, border-color .2s ease, transform .2s ease; }
.gallery-viewer-thumbs button.is-active { opacity: 1; border-color: #d9a64a; transform: translateY(-1px); }
.gallery-viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) {
    .gallery-viewer-modal { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; padding: 54px 0 12px; gap: 8px; }
    .gallery-viewer-stage { grid-column: 1; grid-row: 1; width: 100%; padding: 0 6px; }
    .gallery-viewer-stage img { max-height: calc(100vh - 190px); border-radius: 4px; }
    .gallery-viewer-nav { display: none; }
    .gallery-viewer-footer { grid-column: 1; grid-row: 2; }
    .gallery-viewer-meta { padding: 0 12px; }
    .gallery-viewer-thumbs { padding: 2px 10px 6px; }
    .gallery-viewer-thumbs button { flex-basis: 82px; height: 58px; }
    .gallery-viewer-close { right: 10px; top: 8px; }
}
.service-gallery-open { margin-top: 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(4,20,32,.42); color: #fff; padding: 10px 16px; font-weight: 700; cursor: pointer; backdrop-filter: blur(5px); }
.service-gallery-open:hover { background: rgba(4,20,32,.68); }

.gallery-viewer-video { --gallery-video-ratio: 1.5; position: relative; width: min(100%, calc((100vh - 190px) * var(--gallery-video-ratio))); max-width: 1200px; aspect-ratio: var(--gallery-video-ratio); overflow: hidden; border-radius: 8px; background: #000; }
.gallery-viewer-video[hidden] { display: none !important; }
.gallery-viewer-video > video { position: absolute; display: block; max-width: none; max-height: none; background: #000; }
.gallery-viewer-video-play { position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.65); border-radius: 999px; background: rgba(0,0,0,.48); color: #fff; font-size: 28px; cursor: pointer; backdrop-filter: blur(4px); }
.gallery-viewer-video-play.is-playing { top: auto; left: auto; right: 14px; bottom: 14px; transform: none; width: 48px; height: 48px; font-size: 18px; }
.gallery-video-thumb { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; background: #07131d; }
.gallery-video-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.gallery-video-thumb b { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: rgba(0,0,0,.58); color: #fff; font-size: 13px; }
.boat-gallery-video-thumb, .tour-gallery-video-thumb { position: relative; overflow: hidden; }
.boat-gallery-video-thumb img, .tour-gallery-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.boat-gallery-video-thumb::after, .tour-gallery-video-thumb::after { content: '▶'; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 15px; }
@media (max-width: 760px) {
    .gallery-viewer-video { width: min(100%, calc((100vh - 190px) * var(--gallery-video-ratio))); border-radius: 4px; }
    .gallery-viewer-video-play { width: 60px; height: 60px; }
}

.service-media-section { padding-top: 36px; }
.service-media-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.service-media-item { position: relative; min-width: 0; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #07131d; cursor: pointer; aspect-ratio: 7 / 9; }
.service-media-item img, .service-media-item video { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.service-media-video > span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 54px; height: 54px; border-radius: 999px; background: rgba(0,0,0,.56); color: #fff; font-size: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.28); }
@media (max-width: 700px) {
    .service-media-grid { grid-template-columns: minmax(0,1fr); }
    .service-media-item { max-height: 72vh; }
}
.boat-gallery-video-thumb,
.tour-gallery-video-thumb,
.service-media-video { position: relative; overflow: hidden; }
.boat-gallery-main.boat-gallery-video-thumb { aspect-ratio: 3 / 2; min-height: 0; }
.tour-gallery-main.tour-gallery-video-thumb { aspect-ratio: 8 / 5; }
.service-media-video { aspect-ratio: 7 / 9; }

.service-media-video > img { width: 100%; height: 100%; display: block; object-fit: cover; }
