
.gal { background: var(--paper); }
.gal .section__head { margin-bottom: clamp(var(--sp-5), 3vw, var(--sp-7)); }
.gal:has(.gal__grid:empty) { display: none; }
.gal__filter { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0 0 var(--sp-5); }
.gal__chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--paper);
  color: var(--ink-2); font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.gal__chip:hover { border-color: var(--ink); color: var(--ink); }
.gal__chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.gal__chip[aria-pressed="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; }
.gal__chip-n { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.gal__chip[aria-pressed="true"] .gal__chip-n { color: var(--on-dark); }
.gal__grid {
  --rowh: 150px; --gap: 8px;
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--gap);
}
.gal__grid::after { content: ""; flex: 10000 1 0; }
.gal__item {
  --r: 1;
  position: relative; min-width: 0; margin: 0;
  flex: var(--r) 1 calc(var(--r) * var(--rowh));
  aspect-ratio: var(--r);
}
.gal__item--45  { --r: .8; }
.gal__item--11  { --r: 1; }
.gal__item--169 { --r: 1.7778; }
@media (min-width: 30em)  { .gal__grid { --rowh: 170px; } }
@media (min-width: 48em)  { .gal__grid { --rowh: 190px; --gap: 10px; } }
@media (min-width: 64em)  { .gal__grid { --rowh: 200px; --gap: 12px; } }
@media (min-width: 90em)  { .gal__grid { --rowh: 210px; } }
.gal__more { display: flex; justify-content: center; margin: var(--sp-6) 0 0; }
.gal__more[hidden] { display: none; }
.gal__more-n { font-weight: 500; opacity: .7; font-variant-numeric: tabular-nums; }
.gal--collapsed .gal__item.is-more { display: none; }
.gal--collapsed .gal__grid::after { display: none; }
@media (max-width: 47.99em) { .gal__more { justify-content: flex-start; margin-top: var(--sp-4); } }
.gal__link {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: var(--r-md); overflow: hidden; isolation: isolate;
  background: var(--paper-2); color: #FFFFFF; text-decoration: none;
}
.gal__link picture { display: block; width: 100%; height: 100%; }
.gal__img { width: 100%; height: 100%; object-fit: cover; }
.gal__link:hover { color: #FFFFFF; }
.gal__link:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.gal__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px;
  background: var(--red); transform: scaleX(0); transform-origin: left center;
}
.gal__link:hover::after, .gal__link:focus-visible::after { transform: scaleX(1); }
.gal__tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: rgb(17 23 30 / .74); color: #FFFFFF;
  font-size: .6875rem; font-weight: 600; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  max-width: calc(100% - 20px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gal__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 44px 14px 14px;
  background: linear-gradient(0deg, rgb(13 18 24 / .9) 0%, rgb(13 18 24 / .6) 55%, rgb(13 18 24 / 0) 100%);
  color: #FFFFFF; font-size: .875rem; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
@media (hover: hover) and (min-width: 48em) {
  .gal__cap { opacity: 0; transform: translateY(8px); }
  .gal__link:hover .gal__cap, .gal__link:focus-visible .gal__cap { opacity: 1; transform: none; }
}
@media (hover: none), (max-width: 47.99em) {
  .gal__cap {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
.gal__hint { display: none; }
@media (max-width: 47.99em) {
  .gal__grid {
    --h: min(70vw, 340px);
    flex-wrap: nowrap; align-items: stretch; gap: 10px;
    margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 16px; scroll-padding-inline: var(--gutter);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .gal__grid::-webkit-scrollbar { display: none; }
  .gal__filter {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter); margin-top: -6px; margin-bottom: var(--sp-2);
  }
  .gal__filter::-webkit-scrollbar { display: none; }
  .gal__chip { flex: none; white-space: nowrap; }
  .gal__grid::after { flex: 0 0 1px; }
  .gal__item {
    flex: 0 0 auto; aspect-ratio: auto;
    height: var(--h); width: calc(var(--h) * var(--r)); max-width: 86vw;
    scroll-snap-align: start;
  }
  .gal__link { border-radius: 14px; box-shadow: 0 10px 18px -14px rgb(17 23 30 / .5); }
  .gal__hint {
    display: flex; align-items: center; gap: 6px; margin: 4px 0 0; max-width: none;
    font-size: .8125rem; color: var(--ink-3);
  }
  .gal__hint span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); }
  .gal__hint span:first-child { width: 18px; border-radius: 3px; background: var(--red); }
  .gal__hint span:nth-child(3) { margin-right: 6px; }
}
.gal__cta {
  display: grid; gap: var(--sp-5); align-items: end;
  margin-top: clamp(var(--sp-7), 5vw, var(--sp-8)); padding-top: clamp(var(--sp-5), 3vw, var(--sp-6));
  border-top: 1px solid var(--line-2);
}
.gal__cta-title {
  margin: 0 0 var(--sp-3); font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.375rem); line-height: 1.1; letter-spacing: -.025em;
}
.gal__cta-text p { margin: 0; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; max-width: 52ch; }
.gal__cta .btn-row { gap: var(--sp-5); }
.gal__micro { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); color: var(--ink-3); }
@media (min-width: 64em) {
  .gal__cta { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-8); }
  .gal__cta-actions { justify-self: end; }
}
@media (prefers-reduced-motion: no-preference) {
  .gal__img { transition: transform 900ms var(--ease); }
  .gal__link:hover .gal__img { transform: scale(1.04); }
  .gal__link::after { transition: transform 420ms var(--ease); }
  .gal__cap { transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease); }
  .gal--anim .gal__item { transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
  .gal--anim .gal__grid:not(.is-in) .gal__item { opacity: 0; transform: translateY(18px); }
  .gal--anim .gal__item:nth-child(2)  { transition-delay: 50ms; }
  .gal--anim .gal__item:nth-child(3)  { transition-delay: 100ms; }
  .gal--anim .gal__item:nth-child(4)  { transition-delay: 150ms; }
  .gal--anim .gal__item:nth-child(5)  { transition-delay: 200ms; }
  .gal--anim .gal__item:nth-child(6)  { transition-delay: 250ms; }
  .gal--anim .gal__item:nth-child(7)  { transition-delay: 300ms; }
  .gal--anim .gal__item:nth-child(8)  { transition-delay: 350ms; }
  .gal--anim .gal__item:nth-child(n+9) { transition-delay: 400ms; }
  .gal--anim .gal__grid.is-done .gal__item { transition-delay: 0ms; }
}
@media (hover: none) { .gal__link:hover .gal__img { transform: none; } }
html.gal-lock { overflow: hidden; }
.gal-lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: #0B0F14; color: var(--on-dark);
  overscroll-behavior: contain;
}
.gal-lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.gal-lb::backdrop { background: rgb(11 15 20 / .96); }
.gal-lb :focus-visible { outline: 3px solid #FFFFFF; outline-offset: 3px; }
.gal-lb__progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgb(255 255 255 / .12); }
.gal-lb__progress span { display: block; height: 100%; background: var(--red); transform-origin: left center; transform: scaleX(0); }
.gal-lb__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding: 14px 16px 6px; }
.gal-lb__count { margin: 0; color: #FFFFFF; font-size: .9375rem; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.gal-lb__count span { color: var(--on-dark-2); font-weight: 500; }
.gal-lb__btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; flex: none;
  border: 1px solid rgb(255 255 255 / .3); border-radius: 50%; background: rgb(17 23 30 / .6); color: #FFFFFF; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.gal-lb__btn:hover { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }
.gal-lb__btn .icon { width: 22px; height: 22px; }
.gal-lb__prev .icon { transform: scaleX(-1); }
.gal-lb__stage {
  position: relative; min-height: 0; display: flex; align-items: center; justify-content: center;
  padding: 4px 16px 84px; touch-action: pan-y;
}
.gal-lb__fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; min-height: 0; }
.gal-lb__fig picture { display: block; min-height: 0; }
.gal-lb__img {
  width: auto; height: auto; max-width: 100%;
  max-height: calc(100vh - 210px); max-height: calc(100dvh - 210px);
  border-radius: var(--r-sm); background: #151B22;
}
.gal-lb__cap { margin-top: 14px; max-width: 70ch; text-align: center; color: var(--on-dark); font-size: .9375rem; line-height: 1.5; }
.gal-lb__kat { display: block; margin-bottom: 2px; color: #FFFFFF; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.gal-lb__prev, .gal-lb__next { position: absolute; bottom: 20px; }
.gal-lb__prev { left: 16px; }
.gal-lb__next { right: 16px; }
@media (min-width: 48em) {
  .gal-lb__bar { padding: 18px 24px 8px; }
  .gal-lb__stage { padding: 8px 96px 28px; }
  .gal-lb__img { max-height: calc(100vh - 190px); max-height: calc(100dvh - 190px); }
  .gal-lb__prev, .gal-lb__next { bottom: auto; top: 50%; margin-top: -24px; width: 56px; height: 56px; }
  .gal-lb__prev { left: 24px; }
  .gal-lb__next { right: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .gal-lb__img { transition: opacity var(--t-base) var(--ease); }
  .gal-lb__img.is-loading { opacity: .35; }
  .gal-lb__progress span { transition: transform 320ms var(--ease); }
  .gal-lb[open] { animation: gal-lb-in 220ms var(--ease); }
}
@keyframes gal-lb-in { from { opacity: 0; } to { opacity: 1; } }
