.sg-gallery {min-width:0; --sg-ink:#3e3e3e; --sg-edge:#c9ccc3; --sg-paper:#f6f6f2}
.sg-stage {position:relative; min-width:0; background:var(--sg-paper)}
.sg-rail {display:flex; width:100%; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-color:#7a7d74 var(--sg-paper); scrollbar-width:thin}
.sg-rail:not(.sg-multiple) {scrollbar-width:none}
.sg-slide {box-sizing:border-box; display:grid; flex:0 0 100%; width:100%; min-width:0; aspect-ratio:1.618; place-items:center; scroll-snap-align:start; scroll-snap-stop:always; cursor:zoom-in}
.sg-gallery .sg-slide img {display:block; width:100%; height:100%; min-width:0; min-height:0; max-width:100%; object-fit:contain}
.sg-gallery .sg-arrow, .sg-dialog .sg-close {box-sizing:border-box; display:grid; place-items:center; width:44px; height:48px; padding:0; font:600 30px/1 Arial,sans-serif; cursor:pointer}
.sg-gallery .sg-arrow {position:absolute; z-index:1; top:50%; transform:translateY(-50%); border:1px solid #ffffff9c; background:#292929e8; color:#fff; box-shadow:0 1px 4px #0003}
.sg-gallery .sg-prev {left:0; border-radius:0 5px 5px 0}
.sg-gallery .sg-next {right:0; border-radius:5px 0 0 5px}
.sg-gallery .sg-arrow:disabled {background:#434343aa; color:#ffffffae; cursor:default}
.sg-gallery .sg-arrow:not(:disabled):hover {background:#313131; color:#ffed00}
.sg-gallery :is(button,a,.sg-rail):focus-visible, .sg-dialog .sg-close:focus-visible {outline:3px solid #df9e00; outline-offset:-3px}
.sg-caption {display:grid; gap:0; padding:4px 13px 2px; background:var(--sg-paper); border-top:1px solid var(--sg-edge); color:var(--sg-ink); font:500 .8rem/1.4 var(--sans,Arial,sans-serif)}
.sg-gallery .sg-tabs {display:flex; gap:4px; flex-wrap:nowrap; min-width:0; max-width:100%; overflow-x:auto; scrollbar-width:thin; padding:2px 0}
.sg-gallery .sg-tab {flex:0 0 auto; min-height:44px; border:1px solid #888d82; border-radius:4px; padding:6px 10px; background:#fff; color:var(--sg-ink); font:650 .8rem/1.25 var(--sans,Arial,sans-serif); cursor:pointer}
.sg-gallery .sg-tab[aria-pressed="true"] {color:#fff; background:#3e3e3e; border-color:#3e3e3e}
.sg-meta {display:flex; flex-wrap:wrap; align-items:center; column-gap:12px}
.sg-count {font:650 .8rem/1.3 var(--mono,monospace); white-space:nowrap; font-variant-numeric:tabular-nums}
.sg-label {flex:1 1 10rem; overflow-wrap:anywhere; padding-block:4px}
.sg-gallery .sg-meta a {display:inline-flex; align-items:center; min-height:44px; color:inherit; font-weight:650; text-decoration:underline; text-underline-offset:.2em}
.sg-gallery [hidden] {display:none !important}
.sg-sr {position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0}
.sg-static {grid-column:1/-1; width:100%; max-width:64rem; border:1px solid #c9ccc3; border-radius:5px; overflow:hidden}
.sg-dialog {box-sizing:border-box; width:98vw; width:min(98vw,1920px); max-width:none; height:95vh; height:95dvh; max-height:none; margin:auto; padding:0; background:#171717; border:1px solid #515151; border-radius:7px; color:#fff; overflow:hidden}
.sg-dialog[open] {display:grid; grid-template-rows:auto minmax(0,1fr)}
.sg-dialog::backdrop {background:#080808d9}
.sg-head {display:flex; align-items:center; justify-content:space-between; gap:12px; padding:4px 10px 4px 16px; border-bottom:1px solid #454545; color:#fff}
.sg-head strong {font:650 clamp(.9rem,1.4vw,1.15rem)/1.3 var(--sans,Arial,sans-serif); overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.sg-dialog .sg-close {height:44px; flex:none; color:#fff; background:#333; border:1px solid #777; border-radius:4px}
.sg-lightbox {display:grid; grid-template-rows:minmax(0,1fr) auto; min-height:0}
.sg-lightbox .sg-stage, .sg-lightbox .sg-rail {height:100%; min-height:0; background:#171717}
.sg-lightbox .sg-slide {height:100%; aspect-ratio:auto; cursor:zoom-in}
.sg-lightbox .sg-caption {--sg-paper:#242424; --sg-ink:#fff; --sg-edge:#444}
.sg-lightbox .sg-tab {color:#eee; background:#383838; border-color:#777}
.sg-lightbox .sg-tab[aria-pressed="true"] {color:#222; background:#ffef26; border-color:#ffef26}
@media (max-width:42rem) {
  .sg-gallery .sg-arrow {width:44px; height:44px}
  .sg-caption {padding-inline:8px}
  .sg-meta {column-gap:8px}
  .sg-label {flex-basis:55%}
  .sg-dialog {width:100%; height:100vh; height:100dvh; border:0; border-radius:0}
}
@media (forced-colors:active) {
  .sg-gallery .sg-arrow, .sg-gallery .sg-tab, .sg-dialog .sg-close {border:1px solid ButtonText}
  .sg-gallery .sg-tab[aria-pressed="true"] {outline:2px solid Highlight; outline-offset:-3px}
}
.sg-rail.sg-dragging, .sg-rail.sg-settling {scroll-snap-type:none; user-select:none}
.sg-rail.sg-dragging, .sg-rail.sg-dragging .sg-slide {cursor:grabbing}

/* Homepage banner arrow glyphs, on the edges of the drawing. */
.sg-gallery .sg-arrow {width:44px;height:44px;border-radius:0;background:#242827db}
.sg-gallery .sg-arrow svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
