#gallery { gap: clamp(18px, 2.4vw, 34px); }
.design-card { min-width: 0; align-self: start; border-bottom: 1px solid var(--line); }
.design-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 4px; }
.collection-caption { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1px 12px; padding: 14px 0 16px; }
.collection-caption strong { font-size: clamp(1.2rem, 1.6vw, 1.65rem); line-height: 1.2; letter-spacing: -.04em; }
.collection-caption small { color: var(--muted); font-size: .9rem; }
#detail { width: min(720px, calc(100vw - 24px)); max-height: 94dvh; overscroll-behavior: contain; }
#detail::backdrop { background: rgb(16 17 20 / .78); }
body:has(#detail[open]) { overflow: hidden; }
.slide-shell { margin: 0; }
.slide-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px clamp(14px, 3vw, 24px); }
.slide-top { font-size: 1rem; font-weight: 650; }
#close { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border-radius: 4px; background: transparent; color: var(--ink); border: 1px solid var(--line); }
#close { border: 0; font-size: 1.8rem; }
#slide-stage img { width: 100%; max-height: 54dvh; height: auto; object-fit: contain; display: block; background: #f3f2ef; touch-action: pan-y; }
.slide-details { padding: clamp(14px, 2.3vw, 22px) clamp(14px, 3vw, 24px); display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.slide-details h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); overflow-wrap: anywhere; }
#slide-specialty { color: var(--muted); margin-top: 4px; }
.slide-details .btn { flex: 0 0 auto; padding: 12px 16px; min-height: 44px; }
#close:hover { background: var(--pale); }
#slide-position { color: var(--muted); font: .9rem var(--mono); white-space: nowrap; }
@media (max-width: 520px) {
  .slide-details { flex-wrap: wrap; }
  .slide-details h2 { font-size: 1.65rem; }
}

.logo-frame { position:relative; isolation:isolate; display:block; overflow:hidden; }
.logo-frame > img { display:block; width:100%; height:auto; }
.logo-frame > .outgoing-logo { position:absolute; inset:0; height:100%; object-fit:contain; pointer-events:none; }
.design-card:focus-visible .logo-frame, .design-card:hover .logo-frame { outline:2px solid var(--brass); outline-offset:2px; }
.collection-caption {grid-template-columns:1fr}
#slide-stage {background:#ece6d8}
#slide-position {border-top:1px solid var(--line); padding:10px clamp(14px, 3vw, 24px); text-align:right}
