/*
  gallery-page.css — Full-viewport gallery layout
  Applies only when body has .gallery-page class.
*/

/* ── Full-viewport layout ──────────────────────────────────────── */

body[data-site-page="home"].gallery-page {
  overflow: hidden;
  height: 100dvh;
}

body[data-site-page="home"].gallery-page .home-v2-main {
  height: calc(100dvh - var(--gp-header-h, 64px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.gallery-editor-grid-mode {
  height: auto !important;
  overflow-y: auto !important;
}

body.gallery-editor-grid-mode[data-site-page="home"].gallery-page,
body.site-editor-mode[data-site-page="home"].gallery-page {
  height: auto !important;
  min-height: 100dvh !important;
  overflow-x: hidden;
  overflow-y: auto !important;
}

body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-main,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-main {
  height: auto !important;
  min-height: calc(100dvh - var(--gp-header-h, 64px));
  overflow: visible !important;
}

body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-section,
body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-section > .home-v2-container,
body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-shell,
body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-surface,
body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-viewport,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-section,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-section > .home-v2-container,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-shell,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-surface,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-viewport {
  flex: none !important;
  overflow: visible !important;
}

body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid {
  height: auto !important;
  min-height: 0 !important;
  align-content: start;
  padding-bottom: 2rem;
}

body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid .home-v2-gallery-card,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid .home-v2-gallery-card {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 0.92 / 1.08 !important;
  border-radius: 2.45rem;
}

body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid .home-v2-gallery-card-inner,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid .home-v2-gallery-card-inner {
  height: 100%;
  border-radius: inherit;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-section {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  background: transparent !important;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-section > .home-v2-container {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 1.75rem;
  padding-bottom: 0.5rem;
}

/* ── Compact page header text ───────────────────────────────────── */

body[data-site-page="home"].gallery-page .home-v2-section-heading {
  flex-shrink: 0;
  margin-bottom: 0;
  padding-bottom: 1.25rem;
}

body[data-site-page="home"].gallery-page .home-v2-section-heading h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.6rem);
  line-height: 1;
}

body[data-site-page="home"].gallery-page .home-v2-section-heading p {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ── Strip the decorative pill box ─────────────────────────────── */

body[data-site-page="home"].gallery-page .home-v2-gallery-surface {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-surface-glow,
body[data-site-page="home"].gallery-page .home-v2-gallery-shadow,
body[data-site-page="home"].gallery-page .home-v2-gallery-edge {
  display: none !important;
}

/* ── Gallery shell → surface → viewport → stage fill chain ─────── */

body[data-site-page="home"].gallery-page .home-v2-gallery-shell {
  flex: 1;
  min-height: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-surface {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-viewport {
  flex: 1;
  min-height: 0;
  padding-block: 0.75rem 1rem;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-stage {
  height: 100%;
  min-height: 20rem;
}

/* ── Cards: sized by stage height, not vw ───────────────────────── */

body[data-site-page="home"].gallery-page .home-v2-gallery-card {
  height: clamp(20rem, 74%, 50rem);
  width: auto;
  /* Slower, more cinematic transition than homepage */
  transition: transform 550ms cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 400ms ease !important;
}

/* ── Controls & hint: tighter spacing for full-page ─────────────── */

body[data-site-page="home"].gallery-page .home-v2-gallery-controls {
  margin-top: 1rem;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

/* Mobile gallery: release the one-viewport desktop stage so cards and CTAs do not clip. */
@media (max-width: 720px) {
  html,
  body[data-site-page="home"].gallery-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  body[data-site-page="home"].gallery-page {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  body[data-site-page="home"].gallery-page .home-v2-main {
    height: auto;
    min-height: 0;
    overflow: visible;
    display: block;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-section {
    min-height: 0;
    display: block;
    padding: 1.1rem 0 2.25rem !important;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-section > .home-v2-container {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    min-height: 0;
    display: block;
    padding-top: 0;
    padding-bottom: 0;
  }

  body[data-site-page="home"].gallery-page .home-v2-section-heading {
    width: 100%;
    max-width: 100%;
    padding-bottom: 0.8rem;
  }

  body[data-site-page="home"].gallery-page .home-v2-section-heading h2 {
    max-width: 10.5ch;
    margin-inline: auto;
    font-size: clamp(1.8rem, 8.8vw, 2.35rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
  }

  body[data-site-page="home"].gallery-page .home-v2-section-heading p {
    max-width: 100%;
    font-size: 0.95rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-shell,
  body[data-site-page="home"].gallery-page .home-v2-gallery-surface,
  body[data-site-page="home"].gallery-page .home-v2-gallery-viewport {
    min-height: 0;
    display: block;
    overflow: hidden;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-viewport {
    padding-block: 0.5rem 0.75rem;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-stage {
    width: 100%;
    height: auto;
    min-height: clamp(22rem, 112vw, 32rem);
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-card {
    width: min(100%, 20rem);
    max-width: calc(100vw - 1.5rem);
    height: auto;
    aspect-ratio: 0.78 / 1;
    border-radius: 1.2rem;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-card-inner,
  body[data-site-page="home"].gallery-page .home-v2-gallery-card-media {
    border-radius: inherit;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-card-copy {
    inset-inline: 0.65rem;
    bottom: 0.65rem;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-card-title,
  body[data-site-page="home"].gallery-page .home-v2-gallery-card-text {
    overflow-wrap: anywhere;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-card-action a {
    width: 100%;
    min-height: 2.75rem;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-controls {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.65rem;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-hint {
    max-width: 100%;
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
}

/* Simple standalone product photo galleries */

body[data-site-page="home"].gallery-page {
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 14% 16%, rgba(160, 85, 247, 0.22), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgba(103, 80, 255, 0.16), transparent 24rem),
    linear-gradient(180deg, #07070b 0%, #0b0a13 48%, #07070b 100%);
  color: rgba(255, 255, 255, 0.92);
}

body[data-site-page="home"].gallery-page .home-v2-header,
body[data-site-page="home"].gallery-page .home-v2-main,
body[data-site-page="home"].gallery-page .footer {
  position: relative;
  z-index: 1;
}

body[data-site-page="home"].gallery-page .home-v2-main {
  display: block;
  height: auto;
  min-height: calc(100dvh - var(--gp-header-h, 64px));
  overflow: visible;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-section {
  display: block;
  padding: clamp(1.5rem, 4vw, 3.25rem) 0 clamp(3rem, 6vw, 5rem) !important;
  background: transparent !important;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-section > .home-v2-container {
  display: block;
  width: min(1320px, calc(100% - clamp(1rem, 4vw, 3rem)));
  min-height: 0;
  padding: 0;
}

body[data-site-page="home"].gallery-page .home-v2-section-heading {
  max-width: 54rem;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  padding: 0;
  text-align: left;
}

body[data-site-page="home"].gallery-page .home-v2-section-heading h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.95;
}

body[data-site-page="home"].gallery-page .home-v2-section-heading p {
  display: none;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-shell,
body[data-site-page="home"].gallery-page .home-v2-gallery-surface,
body[data-site-page="home"].gallery-page .home-v2-gallery-viewport {
  display: block;
  min-height: 0;
  overflow: visible;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-shell {
  position: relative;
  margin-top: 0;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-shell::before {
  content: "";
  position: absolute;
  inset: -1.5rem -1rem auto;
  height: 20rem;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(186, 102, 255, 0.16), transparent 68%);
  filter: blur(10px);
}

body[data-site-page="home"].gallery-page .home-v2-gallery-surface {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-surface-glow,
body[data-site-page="home"].gallery-page .home-v2-gallery-shadow,
body[data-site-page="home"].gallery-page .home-v2-gallery-edge,
body[data-site-page="home"].gallery-page .home-v2-gallery-controls,
body[data-site-page="home"].gallery-page .home-v2-gallery-hint,
body[data-site-page="home"].gallery-page .is-static-hidden {
  display: none !important;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-viewport {
  padding: 0;
  touch-action: pan-y;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-static-grid,
body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.4vw, 1.1rem);
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  padding: 0;
  perspective: none;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-static-grid .home-v2-gallery-card,
body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid .home-v2-gallery-card,
body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid .home-v2-gallery-card {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  pointer-events: auto;
  border-radius: clamp(0.8rem, 1.6vw, 1.2rem);
  background: #000;
  transform: none !important;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-card::after,
body[data-site-page="home"].gallery-page .home-v2-gallery-card-dim,
body[data-site-page="home"].gallery-page .home-v2-gallery-card-sheen,
body[data-site-page="home"].gallery-page .home-v2-gallery-card-copy,
body[data-site-page="home"].gallery-page .home-v2-gallery-card-action {
  display: none !important;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-card-inner {
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  border: 1px solid rgba(213, 186, 255, 0.16);
  background: #000;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 52px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(142, 82, 255, 0.08);
}

body[data-site-page="home"].gallery-page .home-v2-gallery-card-media {
  height: 100%;
  border-radius: inherit;
  background: #000;
}

body[data-site-page="home"].gallery-page .home-v2-gallery-card-media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  background: #000;
}

body[data-gallery-product="LUMAGLOW"][data-site-page="home"].gallery-page .home-v2-gallery-stage.is-static-grid .home-v2-gallery-card,
body[data-gallery-product="LUMAGLOW"].gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid .home-v2-gallery-card,
body[data-gallery-product="LUMAGLOW"].site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid .home-v2-gallery-card {
  aspect-ratio: 3 / 4 !important;
}

@media (hover: hover) and (pointer: fine) {
  body[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-static-grid .home-v2-gallery-card:hover {
    transform: translateY(-3px) !important;
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-static-grid .home-v2-gallery-card:hover .home-v2-gallery-card-inner {
    border-color: rgba(218, 187, 255, 0.28);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 22px 64px rgba(0, 0, 0, 0.42),
      0 0 42px rgba(167, 92, 255, 0.14);
  }
}

@media (min-width: 821px) {
  body[data-site-page="home"].gallery-page .home-v2-section-heading {
    max-width: none;
  }

  body[data-site-page="home"].gallery-page .home-v2-section-heading h2 {
    white-space: nowrap;
  }
}

@media (max-width: 820px) {
  body[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-static-grid,
  body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid,
  body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-section {
    padding-top: 1.25rem !important;
  }
}

@media (max-width: 520px) {
  body[data-site-page="home"].gallery-page .home-v2-gallery-section > .home-v2-container {
    width: min(100% - 0.85rem, 1320px);
  }

  body[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-static-grid,
  body.gallery-editor-grid-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid,
  body.site-editor-mode[data-site-page="home"].gallery-page .home-v2-gallery-stage.is-editor-grid {
    gap: 0.55rem;
  }
}


/* Compact SEO example index beneath standalone galleries */

body[data-site-page="home"].gallery-page .seo-gallery-seo-section {
  padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 18rem),
    linear-gradient(180deg, rgba(7, 7, 11, 0), rgba(7, 7, 11, 0.72));
}

body[data-site-page="home"].gallery-page .seo-gallery-seo-section .seo-container {
  width: min(1320px, calc(100% - clamp(1rem, 4vw, 3rem)));
  margin: 0 auto;
}

body[data-site-page="home"].gallery-page .seo-gallery-seo-section .seo-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(18rem, 1.18fr);
  gap: clamp(0.85rem, 2vw, 1.35rem);
  align-items: end;
  margin: 0 0 clamp(0.8rem, 1.8vw, 1.15rem);
  padding-top: clamp(0.9rem, 2vw, 1.2rem);
  border-top: 1px solid rgba(213, 186, 255, 0.16);
}

body[data-site-page="home"].gallery-page .seo-gallery-seo-section .seo-kicker,
body[data-site-page="home"].gallery-page .seo-gallery-seo-section .seo-card-tag {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
  color: rgba(220, 202, 255, 0.66);
}

body[data-site-page="home"].gallery-page .seo-gallery-seo-section .seo-section-heading h2 {
  margin: 0.2rem 0 0;
  font-family: var(--home-v2-font-display);
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  font-weight: 650;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.96);
}

body[data-site-page="home"].gallery-page .seo-gallery-seo-section .seo-section-heading p {
  margin: 0;
  max-width: 46rem;
  font-size: clamp(0.78rem, 1vw, 0.9rem);
  line-height: 1.55;
  color: rgba(232, 227, 244, 0.7);
}

body[data-site-page="home"].gallery-page .seo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.55rem, 1vw, 0.75rem);
}

body[data-site-page="home"].gallery-page .seo-gallery-card {
  position: relative;
  min-width: 0;
  padding: 0.45rem;
  border: 1px solid rgba(213, 186, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022)),
    rgba(9, 9, 15, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 42px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

body[data-site-page="home"].gallery-page .seo-gallery-card > a:first-child {
  display: block;
  height: clamp(4.75rem, 6.2vw, 6.2rem);
  margin-bottom: 0.58rem;
  border-radius: 6px;
  overflow: hidden;
  background: #050507;
}

body[data-site-page="home"].gallery-page .seo-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 220ms ease, filter 220ms ease;
}

body[data-site-page="home"].gallery-page .seo-gallery-card > div {
  display: grid;
  gap: 0.34rem;
  min-width: 0;
}

body[data-site-page="home"].gallery-page .seo-gallery-card h2 {
  margin: 0;
  font-family: var(--home-v2-font-display);
  font-size: clamp(0.82rem, 0.95vw, 0.94rem);
  font-weight: 650;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.95);
}

body[data-site-page="home"].gallery-page .seo-gallery-card p:not(.seo-card-tag) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 0;
  overflow: hidden;
  font-size: 0.68rem;
  line-height: 1.45;
  color: rgba(229, 224, 242, 0.62);
}

body[data-site-page="home"].gallery-page .seo-inline-cta {
  justify-self: start;
  margin-top: 0.14rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(242, 233, 255, 0.88);
  text-decoration: none;
}

body[data-site-page="home"].gallery-page .seo-inline-cta::after {
  content: " ->";
  color: rgba(184, 124, 255, 0.9);
}

body[data-site-page="home"].gallery-page .seo-gallery-card a:focus-visible {
  outline: 2px solid rgba(196, 137, 255, 0.72);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  body[data-site-page="home"].gallery-page .seo-gallery-card:hover {
    transform: translateY(-2px);
    border-color: rgba(218, 187, 255, 0.28);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.028)),
      rgba(12, 11, 20, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 54px rgba(0, 0, 0, 0.34), 0 0 34px rgba(146, 83, 255, 0.1);
  }

  body[data-site-page="home"].gallery-page .seo-gallery-card:hover img {
    transform: scale(1.045);
    filter: saturate(1.06) contrast(1.04);
  }
}

@media (max-width: 1180px) {
  body[data-site-page="home"].gallery-page .seo-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-site-page="home"].gallery-page .seo-gallery-card {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  body[data-site-page="home"].gallery-page .seo-gallery-card > a:first-child {
    height: 100%;
    min-height: 6.2rem;
    margin-bottom: 0;
  }
}

@media (max-width: 720px) {
  body[data-site-page="home"].gallery-page .seo-gallery-seo-section {
    padding-top: 1rem;
  }

  body[data-site-page="home"].gallery-page .seo-gallery-seo-section .seo-section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body[data-site-page="home"].gallery-page .seo-gallery-grid {
    grid-template-columns: 1fr;
  }

  body[data-site-page="home"].gallery-page .seo-gallery-card {
    grid-template-columns: 4.85rem minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.42rem;
  }

  body[data-site-page="home"].gallery-page .seo-gallery-card > a:first-child {
    min-height: 5.6rem;
  }
}
