/* Photo-first galleries; the shader only runs during an intentional change. */
.morph-gallery{margin:36px 0 60px;min-width:0;scroll-margin-top:96px;outline-offset:6px;}
.morph-gallery:not(.is-enhanced) .morph-stage{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px;}
.morph-gallery figure{margin:0;min-width:0;}
.morph-gallery:not(.is-enhanced) img{display:block;width:100%;height:auto;}
.morph-stage canvas{display:none;}
.morph-gallery.is-enhanced .morph-stage{position:relative;height:clamp(360px,52vw,640px);overflow:hidden;border:1px solid var(--rule);border-radius:16px;background:#070B14;touch-action:pan-y;}
.morph-gallery.is-enhanced .morph-slide{position:absolute;inset:0;opacity:0;visibility:hidden;}
.morph-gallery.is-enhanced .morph-slide.is-current{opacity:1;visibility:visible;}
.morph-gallery.is-enhanced .morph-slide img{display:block;width:100%;height:100%;object-fit:contain;}
.morph-gallery.is-enhanced .morph-slide figcaption{display:none;}
.morph-gallery.is-enhanced canvas{display:block;position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;}
.morph-gallery .morph-arrows{position:absolute;inset:0;display:flex;align-items:center;justify-content:space-between;pointer-events:none;padding:16px;}
.morph-gallery .morph-arrows button{display:grid;place-items:center;width:46px;height:46px;padding:0;border-radius:50%;border:1px solid rgba(148,163,184,.4);background:rgba(7,11,20,.78);color:#F1F5F9;cursor:pointer;pointer-events:auto;transition:border-color .2s,color .2s;}
.morph-arrows svg{width:23px;height:23px;}
.morph-gallery button:hover,.morph-gallery button:focus-visible{color:#D9FF00;border-color:#D9FF00;}
.morph-gallery .morph-footer{display:flex;justify-content:space-between;align-items:baseline;gap:24px;margin:18px 0;}
.morph-gallery .morph-caption{margin:0;font:15px/1.7 var(--body);color:#CBD5E1;}
.morph-count{flex-shrink:0;font:11px/1.7 var(--mono);letter-spacing:.12em;color:var(--gold);}
.morph-gallery .morph-thumbs{display:flex;gap:10px;overflow-x:auto;max-width:100%;padding:4px 3px 10px;scrollbar-width:thin;scrollbar-color:#38536A transparent;}
.morph-thumbs button{flex-shrink:0;cursor:pointer;width:84px;height:60px;padding:3px;background:#0D2137;border:1px solid transparent;border-radius:6px;opacity:.65;transition:opacity .2s,border-color .2s;}
.morph-thumbs button[aria-current="true"]{border-color:var(--gold);opacity:1;}
.morph-gallery .morph-thumbs img{display:block;width:100%;height:100%;object-fit:cover;border-radius:3px;}
.morph-gallery [hidden]{display:none!important;}
@media(max-width:600px){.morph-gallery.is-enhanced .morph-stage{height:clamp(350px,115vw,540px);}.morph-gallery .morph-arrows{padding:10px;}.morph-gallery .morph-footer{gap:15px;}.morph-gallery .morph-caption{font-size:14px;}.morph-thumbs button{width:72px;height:54px;}.morph-gallery{margin-block:28px 44px;}}
.morph-gallery.has-navigated[data-renderer="images"] .morph-slide{transition:opacity .5s ease,visibility .5s;}
@media(prefers-reduced-motion:reduce){.morph-gallery *{transition:none!important;}}
/* Landscape outpaints let the galleries fill a consistent wide frame. */
.morph-gallery.is-enhanced .morph-stage{height:auto;aspect-ratio:3/2;max-height:none;}
.slate-design .golf-trophy-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto;align-items:start;gap:24px;}
.slate-design .golf-trophy-gallery .golf-photo{aspect-ratio:auto;height:auto;}
.slate-design .golf-trophy-gallery img{width:100%;height:auto;object-fit:contain;}
@media(max-width:600px){.morph-gallery .morph-arrows button{width:44px;height:44px;}.slate-design .golf-trophy-gallery{gap:12px;}}
.slate-design .morph-gallery{padding:0;}
.slate-design .golf-trophy-gallery .golf-photo{grid-column:auto;grid-row:auto;}
