tos-gallery{display:block;min-width:0}.gallery-stage{position:relative;background:#f2f4ee;border-radius:24px;padding:24px}.gallery-hero{display:block;width:100%;border:0;background:white;border-radius:16px;cursor:zoom-in;padding:12px}.gallery-hero img{display:block;object-fit:contain;width:100%;height:380px;max-width:100%}.gallery-controls{display:flex;justify-content:space-between;align-items:center;margin-top:16px}.gallery-controls button{border:1px solid #d3dbcf;background:white;border-radius:50%;width:44px;height:44px;cursor:pointer}.gallery-thumbnails{display:flex;gap:10px;overflow-x:auto;padding:14px 2px}.gallery-thumbnails button{flex:0 0 76px;height:76px;padding:5px;border:1px solid #d3dbcf;border-radius:12px;background:white;cursor:pointer}.gallery-thumbnails button[aria-pressed=true]{border:2px solid #244d3c;box-shadow:0 0 0 2px #e1ebd4}.gallery-thumbnails img{width:100%;height:100%;object-fit:contain}.gallery-zoom{max-width:94vw;width:900px;max-height:94vh;padding:16px;border:0;border-radius:20px}.gallery-zoom::backdrop{background:#142b24b8}.gallery-zoom img{display:block;max-width:100%;width:100%;max-height:78vh;object-fit:contain}.gallery-zoom button{padding:12px 18px;background:white;border:1px solid #bcc8be;border-radius:10px}@media(max-width:650px){.gallery-stage{padding:14px;border-radius:18px}.gallery-hero img{height:280px}.gallery-thumbnails button{flex-basis:62px;height:62px}}

.gallery-caption{margin:10px 2px 0;color:#63766b;font-size:.85rem;line-height:1.5}.gallery-finish-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:14px}.gallery-finish-overview figure{margin:0;padding:10px;border-radius:12px;background:#fff;text-align:center}.gallery-finish-overview img{width:100%;height:130px;object-fit:contain}.gallery-finish-overview figcaption{margin-top:8px;font-size:.8rem;line-height:1.4}.gallery-hero[hidden],.gallery-finish-overview[hidden],.gallery-caption[hidden]{display:none}
/* Keep colour changes visibly loading until the selected photo is ready. */
.gallery-hero{position:relative}.gallery-hero img{transition:opacity .16s ease}.gallery-hero[aria-busy="true"] img{opacity:.35}.gallery-hero[aria-busy="true"]:after{content:"Loading photo";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:8px 12px;border-radius:20px;background:#f5f4ec;color:#264b3b;font:500 12px system-ui;pointer-events:none}@media(prefers-reduced-motion:reduce){.gallery-hero img{transition:none}}
