.gallery-heading { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.gallery-heading h2 { font-size:20px; margin:0; }
.gallery-heading > span { color:#486458; background:#e2ebe5; padding:2px 9px; border-radius:20px; font-size:12px; }
.gallery-cover { display:block; position:relative; border-radius:6px; overflow:hidden; background:#e4e8e4; }
.gallery-cover > img { display:block; width:100%; height:auto; aspect-ratio:16/10; object-fit:cover; }
.gallery-open-label { position:absolute; bottom:16px; right:16px; left:auto; max-width:calc(100% - 32px); display:flex; gap:8px; align-items:center; border-radius:4px; padding:12px 16px; background:#fff; color:#103c30; box-shadow:0 4px 18px #0002; font-weight:700; font-size:14px; }
.gallery-cover:hover .gallery-open-label { background:#edf5ef; }
.gallery-preview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:8px; }
.gallery-preview a { display:block; position:relative; border-radius:4px; overflow:hidden; background:#e4e8e4; }
.gallery-preview img { display:block; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
.gallery-more { position:absolute; inset:0; display:grid; place-items:center; background:#06251dc9; color:white; font-size:24px; font-weight:700; }
.gallery-note { font-size:12px; line-height:1.5; color:#607168; margin:12px 0 0; }
.gallery-top-link { margin:4px 0 28px 12px; background:transparent; color:#164d3c; border:1px solid #8ca99b; box-shadow:none; padding:12px 20px; }
.gallery-top-link:hover { color:#164d3c; background:#e7f0eb; }
.photo-count { display:inline-block; color:#245448; font-size:12px; margin-top:8px; }
.photo-viewer { padding:0; border:0; border-radius:10px; width:min(1180px,calc(100vw - 40px)); max-width:none; height:min(900px,calc(100dvh - 40px)); max-height:none; color:#fff; background:#0c231c; overflow:hidden; }
.photo-viewer::backdrop { background:rgba(1,12,9,.86); }
.photo-viewer[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto auto; }
.photo-viewer-open { overflow:hidden; }
.viewer-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 24px 12px; }
.viewer-header h2 { font-size:22px; line-height:1.25; margin:0; color:white; }
.viewer-header p { font-size:13px; color:#c8d9d0; margin:4px 0 0; }
.photo-viewer button { cursor:pointer; font:inherit; color:white; border:1px solid #ffffff4a; background:#ffffff12; border-radius:6px; }
.photo-viewer button:hover { background:#ffffff2c; }
.viewer-close { width:44px; height:44px; flex-shrink:0; font-size:30px!important; }
.viewer-stage { display:grid; grid-template-columns:48px minmax(0,1fr) 48px; gap:12px; align-items:center; padding:0 16px; min-height:0; touch-action:pan-y pinch-zoom; }
.viewer-stage figure { margin:0; position:relative; width:100%; height:100%; min-height:0; }
.viewer-image { display:block; width:100%; height:100%; object-fit:contain; }
.viewer-status { position:absolute; left:5%; right:5%; bottom:12px; text-align:center; background:#0c231ce6; font-size:14px; }
.viewer-status:empty { display:none; }
.viewer-prev,.viewer-next { width:48px; height:56px; font-size:38px!important; }
.viewer-thumbnails { display:flex; gap:8px; overflow-x:auto; overscroll-behavior-x:contain; padding:12px 24px; scrollbar-width:thin; scrollbar-color:#607b6d #0c231c; }
.viewer-thumbnails button { flex:0 0 88px; padding:2px; height:66px; border:2px solid transparent; }
.viewer-thumbnails button[aria-current="true"] { border-color:#e4b764; }
.viewer-thumbnails img { display:block; width:100%; height:100%; object-fit:cover; border-radius:3px; }
.viewer-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:0 24px 18px; }
.viewer-footer p { color:#c8d9d0; font-size:11px; line-height:1.5; max-width:650px; margin:0; }
.viewer-enquire { padding:12px 18px; flex-shrink:0; font-size:13px; }
@media(max-width:600px) {
 .gallery-open-label { right:10px; bottom:10px; max-width:calc(100% - 20px); font-size:13px; padding:10px 12px; }
 .gallery-top-link { margin-left:0; margin-top:-14px; display:flex; width:fit-content; }
 .photo-viewer { width:100vw; height:100dvh; border-radius:0; margin:0; }
 .viewer-header { padding:16px; }
 .viewer-header h2 { font-size:19px; }
 .viewer-stage { display:block; position:relative; padding:0; }
 .viewer-prev,.viewer-next { position:absolute; top:50%; transform:translateY(-50%); width:36px; height:48px; z-index:1; background:#0c231cd9!important; }
 .viewer-prev { left:6px; }
 .viewer-next { right:6px; }
 .viewer-thumbnails { padding:10px 16px; }
 .viewer-footer { padding:0 16px max(16px,env(safe-area-inset-bottom)); flex-direction:column-reverse; align-items:stretch; gap:12px; }
 .viewer-enquire { justify-content:center; }
}
