@charset "UTF-8";
@charset "UTF-8";
/* ==========================================
   PREMIUM GALLERY PAGE
   - Cinematic hero
   - Sticky collector toolbar
   - Asymmetric grid
   - Forged buttons
   ========================================== */

/* ------------------------------------------
   LAYOUT SHELL
------------------------------------------ */

.page-gallery {
  --gallery-accent-hot: #ffb36a;
  --gallery-accent-cool: #78b4ff;
  --gallery-hero-bg-top: rgba(10, 10, 10, 0.62);
  --gallery-hero-bg-bottom: rgba(10, 10, 10, 0.78);
  --gallery-toolbar-bg: rgba(10, 12, 16, 0.96);
  --gallery-chip-active-border: rgba(255, 196, 120, 0.8);
  --gallery-chip-active-glow: rgba(255, 210, 150, 0.32);
  --gallery-tile-glow-warm: rgba(255, 180, 120, 0.16);
}

.page-gallery.world-wasteland {
  /* Apocalyptic Realms — keep tan / rust */
  --gallery-accent-hot: #ffae61;
  --gallery-accent-cool: #ff7a45;
  --gallery-hero-bg-top: rgba(26, 12, 4, 0.74);
  --gallery-hero-bg-bottom: rgba(8, 6, 5, 0.88);
  --gallery-toolbar-bg: rgba(16, 10, 8, 0.96);
}

.page-gallery.world-abstract {
  /* Abstract Goth — dark purple world with tan accents */
  --gallery-accent-hot: #e0b37a;
  --gallery-accent-cool: #b89463;
  --gallery-hero-bg-top: rgba(13, 6, 26, 0.78);
  --gallery-hero-bg-bottom: rgba(6, 4, 16, 0.94);
  --gallery-toolbar-bg: rgba(10, 6, 20, 0.96);
}

.page-gallery.world-fantasy {
  /* Dark Fantasy — muted tan + deep green (no neon) */
  --gallery-accent-hot: #e0b37a;
  --gallery-accent-cool: #3f7a55;
  --gallery-hero-bg-top: rgba(6, 20, 10, 0.78);
  --gallery-hero-bg-bottom: rgba(4, 10, 6, 0.9);
  --gallery-toolbar-bg: rgba(6, 14, 9, 0.96);
}

.page-gallery.world-horror {
  /* Noir Edge — black */
  --gallery-accent-hot: #ffffff;
  --gallery-accent-cool: #777777;
  --gallery-hero-bg-top: rgba(0, 0, 0, 0.94);
  --gallery-hero-bg-bottom: rgba(0, 0, 0, 0.98);
  --gallery-toolbar-bg: rgba(0, 0, 0, 0.96);
}

.page-gallery.world-ink {
  /* Ink & Chaos — dark orange */
  --gallery-accent-hot: #ff9350;
  --gallery-accent-cool: #ffcc8a;
  --gallery-hero-bg-top: rgba(20, 8, 2, 0.82);
  --gallery-hero-bg-bottom: rgba(12, 6, 3, 0.92);
  --gallery-toolbar-bg: rgba(16, 8, 4, 0.96);
}

.page-gallery.world-mythic {
  /* Mythic Warlords — white */
  --gallery-accent-hot: #ffffff;
  --gallery-accent-cool: #e0e0e0;
  --gallery-hero-bg-top: rgba(20, 20, 20, 0.7);
  --gallery-hero-bg-bottom: rgba(8, 8, 8, 0.9);
  --gallery-toolbar-bg: rgba(10, 10, 10, 0.96);
}

.page-gallery.world-void {
  /* Void & Steel — keep existing cool steel/void palette */
  --gallery-accent-hot: #ff824f;
  --gallery-accent-cool: #6fd5ff;
  --gallery-hero-bg-top: rgba(6, 8, 18, 0.74);
  --gallery-hero-bg-bottom: rgba(3, 3, 8, 0.9);
  --gallery-toolbar-bg: rgba(3, 4, 10, 0.96);
}

.page-gallery.world-titans {
  /* Dread Titans — cobalt world with tan accents */
  --gallery-accent-hot: #e0b37a;
  --gallery-accent-cool: #b89463;
  --gallery-hero-bg-top: rgba(6, 12, 24, 0.8);
  --gallery-hero-bg-bottom: rgba(4, 8, 16, 0.94);
  --gallery-toolbar-bg: rgba(4, 8, 18, 0.96);
}

.page-gallery .gallery-shell {
  width: 90vw;
  margin-inline: auto;
}

/* ------------------------------------------
   HERO STRIP
------------------------------------------ */

.page-gallery .gallery-hero-strip {
  position: relative;
  padding: 1.5rem 0 1rem;
  overflow: hidden;
}

.page-gallery .gallery-hero-strip__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.38;
  transform: scale(1.04);
  filter: blur(2px);
  transform-origin: center;
  z-index: 0;
}

.page-gallery .gallery-hero-strip .gallery-shell {
  position: relative;
  z-index: 2;
}

.page-gallery .gallery-hero-strip__plate {
  position: relative;
  z-index: 2;
  padding: 1.25rem 1.25rem 1.6rem;
  overflow: visible;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--gallery-accent-hot) 6%, transparent), transparent 70%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--gallery-hero-bg-top) 24%, transparent),
      color-mix(in srgb, var(--gallery-hero-bg-bottom) 26%, transparent)
    );
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.page-gallery .gallery-hero-strip__top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.page-gallery .gallery-hero-strip__media {
  min-width: 0;
}

.page-gallery .gallery-hero-strip__title-img {
  width: 100%;
  max-width: 640px;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.9));
}

.page-gallery .gallery-hero-strip__side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.6rem;
}

.page-gallery .gallery-hero-strip__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.6);
}

.page-gallery .gallery-hero-strip__summary {
  margin: 0;
  max-width: 720px;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.88);
}

.page-gallery .gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.page-gallery .gallery-count {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at top, rgba(255, 240, 210, 0.12), transparent 60%),
    rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.95);
}

.page-gallery .gallery-count::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd08a 0, #f58b2b 55%, transparent 65%);
}

/* ------------------------------------------
   HERO WORLD NAV
------------------------------------------ */

.page-gallery .gallery-hero-strip__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: 0.95rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-gallery .gallery-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.9));
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  transition: background 0.22s ease, transform 0.16s ease, box-shadow 0.22s ease, border-color 0.2s ease;
}

.page-gallery .gallery-chip:hover {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.14), rgba(0, 0, 0, 0.92));
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65);
}

.page-gallery .gallery-chip.is-active {
  border-color: rgba(255, 196, 120, 0.8);
  background:
    radial-gradient(circle at top left, rgba(255, 210, 150, 0.32), rgba(0, 0, 0, 0.9));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 200, 140, 0.35), 0 16px 36px rgba(0, 0, 0, 0.78);
}

/* ------------------------------------------
   STICKY COLLECTOR TOOLBAR
------------------------------------------ */

.page-gallery .gallery-toolbar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.35rem 0 0.7rem;
  backdrop-filter: blur(12px);
}

.page-gallery .gallery-toolbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 8, 0.7), rgba(5, 5, 8, 0.6), transparent);
  pointer-events: none;
  z-index: -1;
}

.page-gallery .gallery-toolbar .gallery-shell {
  position: relative;
}

.page-gallery .gallery-toolbar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  align-items: center;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--gallery-accent-hot) 5%, transparent), transparent 72%),
    radial-gradient(circle at bottom right, color-mix(in srgb, var(--gallery-accent-cool) 4%, transparent), transparent 65%),
    color-mix(in srgb, var(--gallery-toolbar-bg) 18%, transparent);
  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.page-gallery .gallery-toolbar__primary {
  min-width: 0;
}

.page-gallery .gallery-toolbar__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.52);
}

.page-gallery .gallery-toolbar__title {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-gallery .gallery-toolbar__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.page-gallery .gallery-toolbar__count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.page-gallery .gallery-toolbar__count-number {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--gallery-accent-hot);
}

.page-gallery .gallery-toolbar__filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.page-gallery .toolbar-pill {
  border: 0;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  cursor: default;
}

.page-gallery .toolbar-pill.is-active {
  background: color-mix(in srgb, var(--gallery-accent-hot) 26%, rgba(0, 0, 0, 0.85));
  border: 1px solid color-mix(in srgb, var(--gallery-accent-hot) 60%, transparent);
  color: #ffe8c4;
}

.page-gallery .gallery-toolbar__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* ------------------------------------------
   FORGED BUTTON SYSTEM
------------------------------------------ */

.page-gallery .btn-forged {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.25s ease,
    transform 0.16s ease,
    color 0.22s ease;
}

.page-gallery .btn-forged__label {
  position: relative;
  z-index: 2;
}

.page-gallery .btn-forged::before,
.page-gallery .btn-forged::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
}

.page-gallery .btn-forged::before {
  background:
    radial-gradient(circle at top left, rgba(255, 232, 196, 0.3), transparent 55%),
    radial-gradient(circle at bottom right, rgba(255, 168, 95, 0.25), transparent 55%),
    linear-gradient(135deg, #20140c, #0c0e12);
}

.page-gallery .btn-forged::after {
  opacity: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35), transparent 55%);
  mix-blend-mode: screen;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: scale(0.9);
}

.page-gallery .btn-forged--primary {
  border-color: color-mix(in srgb, var(--gallery-accent-hot) 80%, transparent);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.85),
    0 0 0 1px color-mix(in srgb, var(--gallery-accent-hot) 30%, transparent);
  color: #ffe7c1;
}

.page-gallery .btn-forged--secondary {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.9);
}

.page-gallery .btn-forged:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.92),
    0 0 0 1px color-mix(in srgb, var(--gallery-accent-hot) 45%, transparent);
}

.page-gallery .btn-forged:hover::after {
  opacity: 1;
  transform: scale(1.05);
}

.page-gallery .btn-forged:active {
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.9),
    0 0 0 1px color-mix(in srgb, var(--gallery-accent-hot) 60%, transparent);
}

/* ------------------------------------------
   GRID AREA
------------------------------------------ */

.page-gallery .gallery-grid-section {
  padding: 0.4rem 0 2.6rem;
}

.page-gallery .gallery-wrap {
  width: 100%;
  margin: 0 auto;
}

.page-gallery .gallery-grid.gallery-curated {
  column-count: 2;
  column-gap: 20px;
}

.page-gallery .gallery-grid.gallery-curated .gallery-item {
  position: relative;
  /* Block avoids inline-block baseline quirks in column-count layouts. */
  display: block;
  width: 100%;
  margin: 0 0 20px;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03), rgba(5, 5, 6, 0.96));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
  isolation: isolate;
  transform-origin: center top;
}

.page-gallery .gallery-grid.gallery-curated .gallery-media {
  position: relative;
  display: block;
  width: 100%;
  text-decoration: none;
}

.page-gallery .gallery-grid.gallery-curated .gallery-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Idle scale removed: transforms don't expand layout, so paint can overlap the next tile. */
  transform: none;
  transition: transform 0.4s ease, filter 0.35s ease;
}

.page-gallery .gallery-grid.gallery-curated .gallery-item:nth-child(3n+1) .gallery-img {
  transform-origin: top center;
}

.page-gallery .gallery-grid.gallery-curated .gallery-item:nth-child(3n+2) .gallery-img {
  transform-origin: center center;
}

.page-gallery .gallery-grid.gallery-curated .gallery-item:nth-child(3n+3) .gallery-img {
  transform-origin: bottom center;
}

.page-gallery .gallery-grid.gallery-curated .gallery-item:hover .gallery-img {
  transform: scale(1.045);
  filter: saturate(1.05);
}

.page-gallery .gallery-grid.gallery-curated .gallery-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 12px 16px 13px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.4), transparent);
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.page-gallery .gallery-grid.gallery-curated .gallery-item:hover .gallery-label {
  opacity: 1;
  transform: translateY(0);
  font-weight: 800;
}

.page-gallery .gallery-grid.gallery-curated .gallery-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(circle at bottom, var(--gallery-tile-glow-warm), transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.25s ease;
}

.page-gallery .gallery-grid.gallery-curated .gallery-item:hover .gallery-glow {
  opacity: 1;
}

.page-gallery .tile-collect {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--gallery-accent-hot) 38%, transparent), transparent 60%),
    rgba(0, 0, 0, 0.82);
  border: 1px solid color-mix(in srgb, var(--gallery-accent-hot) 70%, transparent);
  color: #ffe5c3;
  text-decoration: none;
  font-size: 0.82rem;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.9);
  transition: width 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.25s ease;
}

.page-gallery .tile-collect i {
  font-size: 0.88rem;
}

.page-gallery .tile-collect__text {
  opacity: 0;
  margin-left: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: opacity 0.18s ease;
}

.page-gallery .gallery-item:hover .tile-collect {
  width: 128px;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--gallery-accent-hot) 46%, transparent), transparent 65%),
    rgba(0, 0, 0, 0.94);
  border-color: color-mix(in srgb, var(--gallery-accent-hot) 90%, transparent);
  box-shadow:
    0 20px 42px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 220, 180, 0.7);
}

.page-gallery .gallery-item:hover .tile-collect__text {
  opacity: 1;
}

/* ------------------------------------------
   SEO BLOCK
------------------------------------------ */

.page-gallery .gallery-seo-block {
  padding: 0 0 3rem;
}

.page-gallery .gallery-seo-block__inner {
  max-width: 1400px;
  padding-top: 1.6rem;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-gallery .gallery-seo-block__title {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.page-gallery .gallery-seo-block__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.78;
  color: rgba(255, 255, 255, 0.82);
}

/* ------------------------------------------
   LIGHTBOX (restored styling)
------------------------------------------ */

.wicked-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.84);
}

.wicked-lightbox.is-open {
  display: flex;
}

.lb-stage {
  width: min(1400px, 96vw);
  height: min(86vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58);
  position: relative;
  background: rgba(8, 10, 14, 0.7);
}

.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.22s ease;
}

.lb-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  padding: 1rem 1.2rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.lb-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lb-desc {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(8, 10, 14, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.22s ease, border-color 0.22s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 26px;
}

.lb-prev,
.lb-next {
  top: 50%;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  font-size: 42px;
  transform: translateY(-50%);
}

.lb-prev {
  left: 18px;
}

.lb-next {
  right: 18px;
}

.wicked-lightbox .lb-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.wicked-lightbox .lb-collect {
  position: relative;
  padding: 1.1rem 2.8rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 60px;
  border: 1px solid rgba(255, 180, 80, 0.45);
  background: linear-gradient(145deg, #1c1f25, #0e1015);
  color: #e7c28b;
  box-shadow:
    inset 0 0 14px rgba(255, 150, 50, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}


/* ------------------------------------------
   REVEALS (baseline for JS enhancements)
   - For gallery, keep content visible on load
------------------------------------------ */

.page-gallery .wicked-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.page-gallery .wicked-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------
   NOT FOUND STATE
------------------------------------------ */

.page-gallery.page-404 .gallery-not-found {
  padding: 3rem 0 3.5rem;
}

.page-gallery.page-404 .gallery-not-found__inner {
  padding: 2.2rem 2rem 2.4rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at top, rgba(255, 210, 150, 0.2), transparent 60%),
    radial-gradient(circle at bottom, rgba(120, 150, 255, 0.16), transparent 60%),
    rgba(12, 14, 18, 0.96);
  text-align: center;
}

.page-gallery.page-404 .gallery-not-found__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 3.1vw, 2.6rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-gallery.page-404 .gallery-not-found__copy {
  margin: 0 0 1.55rem;
  font-size: 0.98rem;
  color: rgba(255, 255, 255, 0.82);
}

.page-gallery.page-404 .btn-forged {
  margin-top: 0.25rem;
}

/* ------------------------------------------
   RESPONSIVE
------------------------------------------ */

@media (max-width: 1200px) {
  .page-gallery .gallery-toolbar__inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1.1fr);
  }

  .page-gallery .gallery-wrap {
    width: min(96vw, 1200px);
  }

}

@media (min-width: 1600px) {
  .page-gallery .gallery-grid.gallery-curated {
    column-count: 3;
  }
}

@media (max-width: 991.98px) {
  .page-gallery .gallery-hero-strip__top {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .page-gallery .gallery-hero-strip__title-img {
    max-width: 380px;
    margin-inline: auto;
  }

  .page-gallery .gallery-toolbar__inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.6fr);
    grid-template-rows: auto auto;
  }

  .page-gallery .gallery-toolbar__actions {
    grid-column: span 2;
    justify-content: flex-start;
  }

  .page-gallery .gallery-toolbar__title {
    white-space: normal;
  }
}

@media (max-width: 767.98px) {
  .page-gallery .gallery-hero-strip__plate {
    padding: 1rem;
    border-radius: 16px;
  }

  .page-gallery .gallery-chip {
    font-size: 0.68rem;
  }

  .page-gallery .gallery-grid-section {
    padding-bottom: 2.2rem;
  }

  .page-gallery .gallery-wrap {
    width: min(96vw, 720px);
  }

  .page-gallery .gallery-grid.gallery-curated {
    column-count: 1;
    column-gap: 0;
  }

  .page-gallery .gallery-grid.gallery-curated .gallery-item {
    margin-bottom: 16px;
  }

  .page-gallery .gallery-grid.gallery-curated .tile-collect__text {
    display: none;
  }

  .page-gallery .gallery-toolbar {
    padding-top: 0.2rem;
  }

  .page-gallery .gallery-toolbar__inner {
    border-radius: 18px;
    padding-inline: 0.9rem;
    grid-template-columns: 1fr;
  }

  .page-gallery .gallery-toolbar__actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .page-gallery .btn-forged {
    padding-inline: 1.2rem;
    letter-spacing: 0.16em;
  }

  .page-gallery .gallery-toolbar__filters {
    display: none;
  }
}