/* =========================================================
   WestVirginia.co.jp
   site.css
   Japanese editorial travel magazine style
   Woodblock / Appalachian / river / rail / mountain memory
   ========================================================= */

:root {
  --ink: #1d1b18;
  --ink-soft: #3e3931;
  --paper: #f7f0e4;
  --paper-warm: #fbf6ed;
  --paper-deep: #eadbc5;
  --mist: #d9dfd8;
  --river: #315f68;
  --river-dark: #203f46;
  --mountain: #2f4635;
  --forest: #273d2e;
  --coal: #181715;
  --rail: #6f4d32;
  --rust: #9b5333;
  --gold: #c89b4a;
  --cream: #fffaf1;
  --white: #ffffff;
  --line: rgba(29, 27, 24, 0.16);
  --shadow: 0 22px 70px rgba(29, 27, 24, 0.18);
  --shadow-soft: 0 12px 34px rgba(29, 27, 24, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
  --max: 1180px;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Times New Roman", serif;
  --sans: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif;
}

/* =========================================================
   Reset / Base
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 155, 74, 0.12), transparent 34rem),
    radial-gradient(circle at 80% 18%, rgba(49, 95, 104, 0.11), transparent 32rem),
    linear-gradient(180deg, var(--paper-warm), var(--paper));
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.92;
  letter-spacing: 0.02em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--rust);
}

p {
  margin: 0 0 1.25em;
}

strong,
b {
  color: var(--ink);
  font-weight: 800;
}

::selection {
  color: var(--cream);
  background: var(--river-dark);
}

/* =========================================================
   Layout Helpers
   ========================================================= */

.wrap,
.container,
.site-wrap {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section {
  padding: 86px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-deep {
  padding: 118px 0;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--rust);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kicker::before,
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.08rem, 1.2vw, 1.28rem);
  line-height: 2;
  color: var(--ink-soft);
}

.muted {
  color: rgba(29, 27, 24, 0.66);
}

.note {
  padding: 1rem 1.2rem;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 241, 0.72);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.75;
}

hr {
  width: min(100%, var(--max));
  margin: 72px auto;
  border: 0;
  border-top: 1px solid var(--line);
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--cream);
  background: rgba(24, 23, 21, 0.9);
  border-bottom: 1px solid rgba(255, 250, 241, 0.18);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 32px), var(--max));
  min-height: 74px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.site-brand .brand-main {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.site-brand .brand-sub {
  color: rgba(255, 250, 241, 0.72);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.65rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.45rem 0.68rem;
  color: rgba(255, 250, 241, 0.88);
  border-radius: 999px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--coal);
  background: var(--gold);
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--cream);
  background: var(--coal);
}

.hero.hero-small {
  min-height: 48vh;
}

.hero img,
.hero .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(18, 17, 15, 0.9), rgba(18, 17, 15, 0.54) 46%, rgba(18, 17, 15, 0.18)),
    linear-gradient(180deg, rgba(18, 17, 15, 0.16), rgba(18, 17, 15, 0.84));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mix-blend-mode: soft-light;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 140px 0 92px;
}

.hero-content.narrow {
  max-width: 820px;
  margin-left: max(20px, calc((100vw - var(--max)) / 2));
}

.hero .kicker,
.hero .eyebrow {
  color: var(--gold);
}

.hero h1 {
  max-width: 920px;
  margin: 0 0 1.35rem;
  font-size: clamp(2.45rem, 6vw, 6.8rem);
  line-height: 1.04;
  letter-spacing: 0.015em;
  text-wrap: balance;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 250, 241, 0.88);
  font-size: clamp(1.06rem, 1.35vw, 1.34rem);
  line-height: 2;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn,
.button,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.78rem 1.18rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--river-dark);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover,
.button:hover,
.cta:hover {
  transform: translateY(-2px);
  color: var(--cream);
  background: var(--rust);
}

.btn-light {
  color: var(--coal);
  background: var(--gold);
}

.btn-light:hover {
  color: var(--coal);
  background: var(--cream);
}

.btn-ghost {
  color: var(--cream);
  background: rgba(255, 250, 241, 0.1);
  border-color: rgba(255, 250, 241, 0.34);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--coal);
  background: var(--cream);
}

/* =========================================================
   Intro / Editorial Blocks
   ========================================================= */

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.intro h2,
.section-title,
.article-title {
  margin: 0 0 1.1rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.16;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.intro-card {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.86), rgba(234, 219, 197, 0.54));
  box-shadow: var(--shadow-soft);
}

.intro-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.intro-card p {
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.82;
}

/* =========================================================
   Cards / Grids
   ========================================================= */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 241, 0.78);
  box-shadow: var(--shadow-soft);
}

.card a {
  text-decoration: none;
}

.card:hover img {
  transform: scale(1.045);
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-deep);
}

.card-image.tall {
  aspect-ratio: 3 / 4;
}

.card-image.wide {
  aspect-ratio: 16 / 9;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.card-body {
  padding: 1.25rem 1.25rem 1.4rem;
}

.card-body h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 2vw, 1.72rem);
  line-height: 1.32;
}

.card-body p {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.94rem;
  line-height: 1.78;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: rgba(49, 95, 104, 0.1);
  color: var(--river-dark);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* =========================================================
   Feature Highlight
   ========================================================= */

.feature-band {
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(24, 23, 21, 0.97), rgba(32, 63, 70, 0.96)),
    var(--coal);
}

.feature-band .section-title,
.feature-band h2,
.feature-band h3 {
  color: var(--cream);
}

.feature-band p {
  color: rgba(255, 250, 241, 0.78);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.feature-row.reverse {
  grid-template-columns: minmax(320px, 0.75fr) minmax(0, 0.9fr);
}

.feature-row.reverse .feature-media {
  order: -1;
}

.feature-media {
  overflow: hidden;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

/* =========================================================
   Article Pages
   ========================================================= */

.article-shell {
  width: min(calc(100% - 40px), 960px);
  margin: 0 auto;
  padding: 84px 0;
}

.article-shell.wide {
  width: min(calc(100% - 40px), var(--max));
}

.article-header {
  margin-bottom: 3rem;
  text-align: left;
}

.article-header h1 {
  margin: 0 0 1.2rem;
  font-size: clamp(2.2rem, 5vw, 5.5rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.article-header .lead {
  max-width: 820px;
}

.article-content {
  font-size: clamp(1.03rem, 1.1vw, 1.16rem);
  line-height: 2.08;
}

.article-content h2 {
  margin: 3.2rem 0 1rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.26;
}

.article-content h3 {
  margin: 2.2rem 0 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.36;
}

.article-content p {
  margin-bottom: 1.42em;
}

.article-content ul,
.article-content ol {
  padding-left: 1.4em;
}

.article-content li {
  margin-bottom: 0.7em;
}

.article-content blockquote {
  margin: 2.5rem 0;
  padding: 1.6rem 1.8rem;
  border-left: 6px solid var(--gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 250, 241, 0.7);
  color: var(--ink-soft);
  font-size: 1.22rem;
  line-height: 1.9;
}

.article-figure,
figure {
  margin: 2.6rem 0;
}

.article-figure img,
figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

figcaption,
.caption {
  margin-top: 0.75rem;
  color: rgba(29, 27, 24, 0.65);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.65;
}

/* =========================================================
   Real Places / Listings
   ========================================================= */

.place-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.place-card {
  padding: 1.3rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 8px 22px rgba(29, 27, 24, 0.08);
}

.place-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.28rem;
}

.place-card p {
  margin: 0.22rem 0;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.68;
}

.place-card a {
  color: var(--river-dark);
  font-weight: 800;
}

/* =========================================================
   Gallery
   ========================================================= */

.gallery-hero {
  padding: 82px 0 42px;
  text-align: center;
}

.gallery-hero h1 {
  margin: 0 auto 1rem;
  max-width: 900px;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  line-height: 1.12;
}

.gallery-hero p {
  max-width: 760px;
  margin-inline: auto;
  color: var(--ink-soft);
}

.gallery-grid {
  width: min(calc(100% - 32px), 1380px);
  margin: 0 auto;
  columns: 3 290px;
  column-gap: 1rem;
  padding-bottom: 80px;
}

.gallery-item {
  break-inside: avoid;
  display: block;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper-deep);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

.gallery-item img {
  width: 100%;
  transition: transform 0.55s ease, filter 0.55s ease;
}

.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.03);
}

.gallery-item span {
  display: block;
  padding: 0.7rem 0.85rem 0.85rem;
  color: var(--ink-soft);
  background: rgba(255, 250, 241, 0.92);
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* Lightbox hooks for site.js */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(18, 17, 15, 0.92);
}

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

.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 86vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  max-width: min(90vw, 900px);
  color: rgba(255, 250, 241, 0.86);
  font-family: var(--sans);
  font-size: 0.9rem;
  text-align: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 101;
  border: 1px solid rgba(255, 250, 241, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.1);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 1rem;
  cursor: pointer;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 46px;
  height: 46px;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  width: 50px;
  height: 50px;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

/* =========================================================
   Tables / Sitemap
   ========================================================= */

.link-list,
.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
}

.link-list a,
.sitemap-list a {
  display: block;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 241, 0.72);
  font-family: var(--sans);
  font-weight: 800;
  text-decoration: none;
}

.link-list a:hover,
.sitemap-list a:hover {
  color: var(--cream);
  background: var(--river-dark);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  color: rgba(255, 250, 241, 0.82);
  background:
    linear-gradient(180deg, rgba(32, 63, 70, 0.98), rgba(24, 23, 21, 1)),
    var(--coal);
  border-top: 1px solid rgba(255, 250, 241, 0.15);
}

.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
  padding: 58px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr) minmax(220px, 0.8fr);
  gap: 2rem;
}

.site-footer h2,
.site-footer h3 {
  margin: 0 0 0.8rem;
  color: var(--cream);
  line-height: 1.28;
}

.site-footer p {
  color: rgba(255, 250, 241, 0.72);
  font-family: var(--sans);
  font-size: 0.92rem;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
}

.footer-links a {
  color: rgba(255, 250, 241, 0.78);
  font-family: var(--sans);
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 250, 241, 0.16);
  color: rgba(255, 250, 241, 0.58);
  font-family: var(--sans);
  font-size: 0.82rem;
}

/* =========================================================
   Utility Classes
   ========================================================= */

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.max-narrow {
  max-width: 780px;
}

.max-mid {
  max-width: 960px;
}

.mx-auto {
  margin-inline: auto;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.paper-panel {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.86), rgba(247, 240, 228, 0.74));
  box-shadow: var(--shadow-soft);
}

.dark-panel {
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: var(--radius-lg);
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(32, 63, 70, 0.98), rgba(24, 23, 21, 0.98));
  box-shadow: var(--shadow-soft);
}

.dark-panel p {
  color: rgba(255, 250, 241, 0.76);
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 980px) {
  .header-inner {
    min-height: auto;
    padding: 0.8rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
    font-size: 0.82rem;
  }

  .intro-grid,
  .feature-row,
  .feature-row.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-media {
    order: 0;
  }

  .card-grid,
  .card-grid.two,
  .card-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 68vh;
  }

  .hero-content {
    padding: 118px 0 70px;
  }

  .feature-media img {
    min-height: 320px;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 16px;
    line-height: 1.86;
  }

  .wrap,
  .container,
  .site-wrap,
  .hero-content,
  .footer-inner,
  .article-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .section {
    padding: 62px 0;
  }

  .section-deep {
    padding: 78px 0;
  }

  .hero {
    min-height: 72vh;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(18, 17, 15, 0.35), rgba(18, 17, 15, 0.92)),
      linear-gradient(90deg, rgba(18, 17, 15, 0.58), rgba(18, 17, 15, 0.26));
  }

  .hero-content {
    padding: 104px 0 56px;
  }

  .hero h1 {
    font-size: clamp(2.28rem, 12vw, 4.1rem);
  }

  .hero p {
    font-size: 1rem;
  }

  .site-nav a {
    min-height: 32px;
    padding: 0.34rem 0.52rem;
  }

  .card-grid,
  .card-grid.two,
  .card-grid.four,
  .link-list,
  .sitemap-list {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 1.05rem 1.05rem 1.2rem;
  }

  .article-header h1 {
    font-size: clamp(2.1rem, 11vw, 3.7rem);
  }

  .article-content {
    line-height: 1.96;
  }

  .article-content blockquote {
    padding: 1.25rem 1.35rem;
    font-size: 1.06rem;
  }

  .gallery-grid {
    width: min(calc(100% - 24px), 1380px);
    columns: 1;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
  }

  .lightbox-caption {
    bottom: 12px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
