.gallery-showcase { padding: 0 30px 28px; }
.showcase-page .gallery-heading { padding-top: 16px; padding-bottom: 12px; }
.showcase-page .gallery-heading h1 { font-size: 1.5rem; margin-bottom: 4px; }
.showcase-page .gallery-heading .eyebrow { display: none; }
.showcase-page .gallery-collections { margin-bottom: 8px; }
.showcase-intro, .showcase-help { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.showcase-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 18px 0; }
.showcase-filters label { display: grid; gap: 6px; color: var(--muted); font-size: .75rem; }
.showcase-filters label:first-child { flex: 1 1 220px; }
.showcase-filters input[type="search"], .showcase-filters select { width: 100%; min-height: 40px; border: 1px solid #484a51; border-radius: 4px; background: #1e1f22; color: #dbdee1; padding: 8px 10px; font: inherit; }
.showcase-filters .showcase-saved-filter { display: flex; align-items: center; align-self: center; min-height: 44px; }
.showcase-viewer { min-width: 0; }
.showcase-bar { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 8px 0; }
#showcase-position { text-align: center; }
#showcase-position { color: #b5bac1; font-variant-numeric: tabular-nums; font-size: .8rem; }
.showcase-stage { min-height: 180px; height: min(66vh, 850px); display: flex; flex-direction: column; align-items: center; justify-content: center; background: #17181b; border: 1px solid #383a40; overflow: hidden; touch-action: pan-y pinch-zoom; }
#showcase-frame { display: flex; position: relative; margin: 0; max-width: 100%; max-height: 100%; min-height: 0; }
#showcase-image { display: block; max-width: 100%; max-height: min(66vh - 2px, 848px); width: auto; height: auto; object-fit: contain; }
#showcase-image-error { padding: 16px; color: #dbdee1; font-size: .85rem; }
.showcase-caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 12px 0; font-size: .85rem; }
.showcase-caption span { color: var(--muted); font-size: .75rem; }
.showcase-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.showcase-actions button { gap: 4px; }
.showcase-viewer button:not(.image-id-copy), .showcase-viewer .showcase-actions a, .showcase-filters button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 12px; border: 1px solid #484a51; border-radius: 4px; color: #dbdee1; background: #2b2d31; font: inherit; font-size: .8rem; text-decoration: none; cursor: pointer; }
.showcase-viewer button:not(.image-id-copy):hover, .showcase-actions a:hover { background: #404249; }
.showcase-viewer button:disabled { opacity: .45; cursor: default; }
.gallery-showcase :focus-visible, #showcase-dialog :focus-visible { outline: 2px solid #b7b3ff; outline-offset: 3px; }
#showcase-dialog { box-sizing: border-box; position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 12px clamp(12px, 3vw, 50px); color: #dbdee1; background: rgb(10 11 13 / 97%); overflow: auto; }
#showcase-dialog::backdrop { background: rgb(0 0 0 / 90%); }
#showcase-dialog .showcase-stage { height: calc(100dvh - 244px - var(--image-collection-space, 0px)); min-height: 120px; border: 0; background: transparent; }
#showcase-dialog #showcase-image { max-height: calc(100dvh - 244px - var(--image-collection-space, 0px)); }
#showcase-dialog .showcase-viewer { max-width: 1800px; margin: auto; }
#showcase-dialog .showcase-help { margin-bottom: 0; }
.showcase-fullscreen-open { overflow: hidden; }
#showcase-dialog .image-id-collection { z-index: 5; bottom: 8px; }
#showcase-dialog .image-id-toast { z-index: 6; }
@media (max-width: 620px) {
  .showcase-bar span:not(#showcase-position) { display: none; }
  .gallery-showcase { padding: 0 14px 24px; }
  .showcase-stage { height: 52vh; }
  #showcase-image { max-height: 52vh; }
  .showcase-viewer button, .showcase-viewer .showcase-actions a { min-height: 44px; }
  #showcase-dialog .showcase-stage { height: calc(100dvh - 320px - var(--image-collection-space, 0px)); }
  #showcase-dialog #showcase-image { max-height: calc(100dvh - 320px - var(--image-collection-space, 0px)); }
  #showcase-dialog .showcase-caption { font-size: .75rem; }
}
@media (min-width: 621px) {
  .showcase-page .showcase-stage { height: max(240px, calc(100dvh - 470px - var(--image-collection-space, 0px))); }
  .showcase-page #showcase-image { max-height: max(240px, calc(100dvh - 472px - var(--image-collection-space, 0px))); }
}
