.SpecimenGallery { --gallery-width: clamp(230px, 29vw, 410px); --gallery-gap: clamp(12px, 2vw, 28px); padding-block: 2rem 1.25rem; overflow: hidden; color: var(--color-fg); }
.SpecimenGallery-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.SpecimenGallery-eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 .5rem; }
.SpecimenGallery-header h2 { font-size: clamp(1.75rem, 3vw, 3rem); line-height: 1.05; margin: 0; font-weight: 600; letter-spacing: -.03em; }
.SpecimenGallery-navigation { display: flex; gap: .5rem; align-items: center; }
.SpecimenGallery-count { font-size: .75rem; font-variant-numeric: tabular-nums; margin-right: .5rem; white-space: nowrap; }
.SpecimenGallery-navigation button { border: 1px solid var(--color-line); border-radius: 50%; width: 40px; height: 40px; display: grid; place-items: center; background: transparent; color: inherit; cursor: pointer; }
.SpecimenGallery-navigation button:hover { background: var(--color-fg); color: var(--color-bg); }
.SpecimenGallery-navigation button:disabled { opacity: .3; cursor: default; }
.SpecimenGallery-track { display: flex; gap: var(--gallery-gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-block: 1rem; padding-inline: max(24px, calc((100% - var(--gallery-width)) / 2)); scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; }
.SpecimenGallery-track::-webkit-scrollbar { display: none; }
.SpecimenGallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.SpecimenGallery-item { flex: 0 0 var(--gallery-width); min-width: 0; scroll-snap-align: center; }
.SpecimenGallery-art { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #e7fe86; color: #292f13; transform: scale(.94) rotate(-1.5deg); transform-origin: center; transition: transform 650ms cubic-bezier(.2,.7,.2,1); opacity: 1; }
.SpecimenGallery-item:nth-child(even) .SpecimenGallery-art { transform: scale(.94) rotate(1.5deg); }
.SpecimenGallery-item.is-current .SpecimenGallery-art { transform: scale(1) rotate(0); opacity: 1; }
.SpecimenGallery-item:nth-child(2) .SpecimenGallery-art { background: #cbb9f2; color: #442865; }
.SpecimenGallery-item:nth-child(3) .SpecimenGallery-art { background: #ff946e; color: #613823; }
.SpecimenGallery-item:nth-child(4) .SpecimenGallery-art { background: #b7dedc; color: #174c4d; }
.SpecimenGallery-item:nth-child(5) .SpecimenGallery-art { background: #ffb8d2; color: #692449; }
.SpecimenGallery-item:nth-child(6) .SpecimenGallery-art { background: #f6da6f; color: #5d4919; }
.SpecimenGallery-number { position: absolute; top: 1rem; left: 1rem; font-size: .75rem; }
.SpecimenGallery-letter { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'arole-bold', serif; font-size: clamp(110px, 17vw, 235px); line-height: 1; letter-spacing: -.07em; transform: translateY(7px); transition: transform 850ms cubic-bezier(.2,.7,.2,1); }
.SpecimenGallery-item.is-current .SpecimenGallery-letter { transform: translateY(0); }
.SpecimenGallery-caption { position: absolute; left: 1rem; bottom: 1rem; font-size: .7rem; }
.SpecimenGallery-footer { display: flex; justify-content: space-between; margin-top: .75rem; font-size: .7rem; color: var(--color-muted); }
.SpecimenGallery-track:focus-visible, .SpecimenGallery-navigation button:focus-visible { outline: 2px solid currentColor; outline-offset: -2px; }
@media(prefers-reduced-motion: no-preference) {
 .SpecimenGallery.is-enhanced:not(.is-revealed) .SpecimenGallery-item { transform: translateY(24px); }
 .SpecimenGallery.is-enhanced .SpecimenGallery-item { transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
 .SpecimenGallery.is-enhanced .SpecimenGallery-item:nth-child(2) { transition-delay: 70ms; }
 .SpecimenGallery.is-enhanced .SpecimenGallery-item:nth-child(3) { transition-delay: 140ms; }
}
@media(prefers-reduced-motion: reduce) { .SpecimenGallery *, .SpecimenGallery *::before { transition: none !important; animation: none !important; } .SpecimenGallery-art { transform: none !important; } }
@media(max-width: 600px) { .SpecimenGallery { --gallery-width: 72vw; padding-top: 1.5rem; } .SpecimenGallery-letter { font-size: 43vw; } .SpecimenGallery-header { align-items: center; } .SpecimenGallery-navigation button { width: 34px; height: 34px; } .SpecimenGallery-count { margin-right: 0; } }

/* Cover the shared frame only within this full-width gallery. */
.SpecimenGallery { position: relative; z-index: 11; background: var(--color-bg); }
.SpecimenGallery--small { --gallery-width: clamp(200px, 23vw, 330px); }
.SpecimenGallery--large { --gallery-width: clamp(280px, 36vw, 520px); }
.SpecimenGallery-art img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.SpecimenGallery--still .SpecimenGallery-art { transform: none !important; opacity: 1; transition: none; }
.SpecimenGallery--still.is-enhanced .SpecimenGallery-item { opacity: 1; transform: none; transition: none; }
/* Start the masking background at the preceding horizontal divider, not below the stack gap. */
#main > .SpecimenGallery.l-section { margin-top: 0; }
