:root {
  --brand-pink: #ff0080;
  --brand-purple: #7928ca;
  --brand-yellow: #ffd700;
  --ink: #17171a;
  --ink-soft: #25252b;
  --paper: #f7f7f9;
  --muted: #6b6b75;
  --line: rgba(23, 23, 26, 0.12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 24px 70px rgba(16, 16, 20, .12);
  --page: min(100% - 32px, 1320px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Kanit", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.lightbox-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.page-shell { width: var(--page); margin-inline: auto; }
.skip-link {
  position: fixed; z-index: 9999; top: 10px; left: 10px;
  padding: 10px 16px; border-radius: 10px; color: #fff;
  background: var(--brand-purple); transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 4px; }

/* Shared site navigation */
.site-nav {
  position: fixed; z-index: 1000; inset: 0 0 auto;
  border-bottom: 1px solid rgba(23, 23, 26, .08);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 30px rgba(18, 18, 24, .08);
  backdrop-filter: blur(16px);
}
.site-nav__row { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { width: auto; height: 48px; object-fit: contain; }
.site-nav__links { display: flex; align-items: center; gap: 4px; }
.site-nav__link {
  display: inline-flex; min-height: 44px; align-items: center; gap: 7px;
  padding: 9px 15px; border-radius: 999px; color: #555560;
  font-size: .92rem; font-weight: 500; transition: .3s var(--ease);
}
.site-nav__link:hover { color: var(--brand-pink); background: #fff0f7; transform: translateY(-2px); }
.site-nav__link[aria-current="page"] {
  color: #fff; background: linear-gradient(120deg, var(--brand-pink), var(--brand-purple));
  box-shadow: 0 8px 22px rgba(255, 0, 128, .24);
}
.site-nav__contact {
  margin-left: 6px; color: #fff;
  background: linear-gradient(120deg, var(--brand-pink), var(--brand-purple));
}
.mobile-toggle {
  display: none; width: 46px; height: 46px; place-items: center; padding: 0;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.mobile-toggle span, .mobile-toggle::before, .mobile-toggle::after {
  content: ""; display: block; width: 21px; height: 2px; border-radius: 4px; background: var(--ink);
  transition: .25s ease;
}
.mobile-toggle span { margin-block: 5px; }
.mobile-toggle[aria-expanded="true"] span { opacity: 0; }
.mobile-toggle[aria-expanded="true"]::before { transform: translateY(7px) rotate(45deg); }
.mobile-toggle[aria-expanded="true"]::after { transform: translateY(-7px) rotate(-45deg); }
.mobile-panel { display: none; border-top: 1px solid var(--line); padding: 12px 0 20px; }
.mobile-panel__links { display: grid; gap: 4px; }
.mobile-panel a { padding: 12px 14px; border-radius: 10px; color: #4f4f58; font-weight: 500; }
.mobile-panel a[aria-current="page"] { color: var(--brand-pink); background: #fff0f7; }

/* Hero */
.portfolio-main { padding-top: 76px; }
.breadcrumb { background: #fff; border-bottom: 1px solid var(--line); }
.breadcrumb ol {
  display: flex; min-height: 56px; align-items: center; gap: 9px; margin: 0; padding: 0;
  overflow-x: auto; color: #777782; font-size: .84rem; list-style: none; white-space: nowrap;
}
.breadcrumb li + li::before { content: "/"; margin-right: 9px; color: #b6b6bd; }
.breadcrumb a:hover { color: var(--brand-pink); }
.portfolio-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  background:
    radial-gradient(circle at 88% 15%, rgba(121, 40, 202, .33), transparent 36rem),
    radial-gradient(circle at 7% 95%, rgba(255, 0, 128, .19), transparent 30rem),
    #151519;
}
.portfolio-hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; opacity: .06;
  background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px);
  background-size: 72px 72px;
}
.portfolio-hero__grid {
  display: grid; min-height: min(760px, calc(100vh - 76px)); grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center; gap: clamp(36px, 6vw, 96px); padding-block: clamp(64px, 8vw, 112px);
}
.portfolio-hero__copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--brand-yellow); font-size: .76rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 42px; height: 2px; background: linear-gradient(90deg, var(--brand-pink), var(--brand-yellow)); }
.category-number { margin-top: 22px; color: rgba(255,255,255,.13); font-size: clamp(4rem, 10vw, 8.5rem); font-weight: 700; line-height: .8; letter-spacing: -.06em; }
.portfolio-hero h1 { max-width: 720px; margin: 24px 0 18px; font-size: clamp(2.7rem, 6vw, 5.5rem); line-height: 1.03; letter-spacing: -.045em; }
.portfolio-hero__description { max-width: 650px; margin: 0; color: #c4c4cb; font-size: clamp(1rem, 1.6vw, 1.18rem); font-weight: 300; line-height: 1.85; }
.project-count { display: flex; align-items: baseline; gap: 10px; margin-top: 28px; color: #fff; }
.project-count strong { color: var(--brand-yellow); font-size: 2rem; line-height: 1; }
.project-count span { color: #a9a9b2; font-size: .75rem; font-weight: 700; letter-spacing: .18em; }
.portfolio-hero__visual { position: relative; min-width: 0; }
.portfolio-hero__frame {
  position: relative; min-height: 520px; overflow: hidden; border: 1px solid rgba(255, 215, 0, .24);
  border-radius: 28px; background: #0e0e11; box-shadow: 0 38px 90px rgba(0,0,0,.42);
}
.portfolio-hero__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 64%, rgba(0,0,0,.45)); }
.portfolio-hero__frame img { width: 100%; height: 100%; min-height: 520px; object-fit: contain; }
.portfolio-hero__label { position: absolute; z-index: 2; right: 22px; bottom: 20px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; background: rgba(15,15,18,.7); font-size: .72rem; letter-spacing: .12em; backdrop-filter: blur(8px); }
.hero-reveal { opacity: 0; transform: translateY(28px); animation: heroIn .8s var(--ease) forwards; }
.hero-reveal--2 { animation-delay: .1s; }
.hero-reveal--3 { animation-delay: .2s; }
.portfolio-hero__visual.hero-reveal { transform: scale(.97); animation-name: heroImageIn; animation-delay: .18s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }
@keyframes heroImageIn { to { opacity: 1; transform: scale(1); } }

/* Content */
.section { padding-block: clamp(72px, 8vw, 126px); }
.section--soft { background: var(--paper); }
.section--dark { color: #fff; background: var(--ink); }
.section-heading { display: grid; grid-template-columns: minmax(0, .65fr) minmax(320px, 1fr); align-items: end; gap: 30px; margin-bottom: 40px; }
.section-heading__kicker { color: var(--brand-purple); font-size: .76rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.section-heading h2 { margin: 10px 0 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.section--dark .section-heading p { color: #aaaab3; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(36px, 7vw, 100px); align-items: start; }
.intro-copy h2 { margin: 0 0 22px; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.12; letter-spacing: -.035em; }
.intro-copy p { margin: 0; color: var(--muted); font-size: 1.04rem; line-height: 1.9; }
.topic-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.topic-list li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; font-weight: 500; }
.quality-panel { margin-top: 28px; padding: 24px; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--brand-purple), #4b176f); box-shadow: 0 20px 45px rgba(121,40,202,.18); }
.quality-panel strong { display: block; margin-bottom: 7px; color: var(--brand-yellow); }
.quality-panel p { margin: 0; color: rgba(255,255,255,.78); font-size: .9rem; line-height: 1.7; }

/* Featured and gallery */
.featured-grid { display: grid; height: min(660px, 58vw); min-height: 520px; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid transparent; border-radius: 18px; background: #202026; transition: transform .6s var(--ease), border-color .45s ease, box-shadow .6s var(--ease); }
.featured-grid .gallery-card:first-child { grid-row: 1 / 3; }
.gallery-card__button { display: block; width: 100%; height: 100%; padding: 0; border: 0; color: #fff; background: transparent; cursor: zoom-in; text-align: left; }
.gallery-card__media { position: relative; width: 100%; height: 100%; min-height: 240px; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .7s var(--ease); }
.gallery-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,8,11,.9), rgba(8,8,11,.08) 70%); opacity: .72; transition: opacity .4s ease; }
.gallery-card__caption { position: absolute; inset: auto 18px 17px; display: flex; align-items: end; justify-content: space-between; gap: 14px; transform: translateY(6px); transition: transform .55s var(--ease); }
.gallery-card__category { display: block; margin-bottom: 4px; color: var(--brand-yellow); font-size: .67rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.gallery-card__title { display: block; color: #fff; font-size: .98rem; font-weight: 600; line-height: 1.35; }
.gallery-card__icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-size: 1.25rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.gallery-grid .gallery-card { aspect-ratio: 4 / 5; }
.gallery-grid .gallery-card:nth-child(6n+2), .gallery-grid .gallery-card:nth-child(6n+5) { aspect-ratio: 1 / 1; }
.gallery-grid .gallery-card:nth-child(9n+3) { grid-row: span 2; aspect-ratio: auto; }
@media (hover: hover) and (pointer: fine) {
  .gallery-card:hover { z-index: 2; border-color: rgba(255,215,0,.65); box-shadow: 0 24px 55px rgba(0,0,0,.22); transform: translateY(-6px); }
  .gallery-card:hover img { transform: scale(1.055); filter: saturate(1.05); }
  .gallery-card:hover .gallery-card__overlay { opacity: 1; }
  .gallery-card:hover .gallery-card__caption { transform: translateY(0); }
}
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Category navigation */
.category-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.category-link { display: flex; min-height: 118px; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: .42s var(--ease); }
.category-link__number { color: var(--brand-purple); font-size: 1.6rem; font-weight: 700; }
.category-link__copy { min-width: 0; }
.category-link__copy strong { display: block; line-height: 1.4; }
.category-link__copy span { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; }
.category-link__arrow { margin-left: auto; color: var(--brand-pink); font-size: 1.3rem; }
.category-link:hover { border-color: rgba(121,40,202,.34); box-shadow: 0 16px 40px rgba(35,25,50,.09); transform: translateY(-4px); }
.category-pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.category-pager a { display: block; padding: 30px 0; }
.category-pager a:last-child { border-left: 1px solid var(--line); padding-left: 32px; text-align: right; }
.category-pager small { display: block; margin-bottom: 7px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.category-pager strong { font-size: 1.08rem; }
.category-pager a:hover strong { color: var(--brand-pink); }
.pager-placeholder { min-height: 1px; }

/* CTA */
.portfolio-cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(72px, 8vw, 120px); color: #fff; background: linear-gradient(120deg, #1a1a1e, #2c173c); text-align: center; }
.portfolio-cta::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; top: -300px; left: 50%; border-radius: 50%; background: rgba(255,0,128,.18); filter: blur(70px); transform: translateX(-50%); }
.portfolio-cta h2 { max-width: 850px; margin: 0 auto; font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.12; }
.portfolio-cta p { max-width: 670px; margin: 20px auto 0; color: #b9b9c1; line-height: 1.8; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; transition: .35s var(--ease); }
.button--primary { color: #fff; background: linear-gradient(120deg, var(--brand-pink), var(--brand-purple)); box-shadow: 0 12px 30px rgba(255,0,128,.25); }
.button--secondary { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.button:hover { transform: translateY(-3px); }

/* Overview */
.overview-hero { padding-block: clamp(88px, 10vw, 150px); text-align: center; }
.overview-hero .eyebrow { justify-content: center; }
.overview-hero h1 { max-width: 1000px; margin-inline: auto; }
.overview-hero__summary { max-width: 720px; margin: 20px auto 0; color: #c4c4cb; line-height: 1.85; }
.overview-list { display: grid; gap: clamp(32px, 6vw, 80px); }
.overview-card { display: grid; grid-template-columns: minmax(390px, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 6vw, 88px); align-items: center; }
.overview-card:nth-child(even) .overview-card__visual { order: 2; }
.overview-card__visual { display: grid; height: 480px; grid-template-columns: 1.25fr .75fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.overview-card__visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; }
.overview-card__visual img:first-child { grid-row: 1 / 3; }
.overview-card__number { color: var(--brand-purple); font-size: 4.5rem; font-weight: 700; line-height: 1; letter-spacing: -.06em; }
.overview-card h2 { margin: 14px 0 16px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; }
.overview-card p { margin: 0 0 22px; color: var(--muted); line-height: 1.8; }
.overview-card__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .08em; }
.overview-card__meta strong { color: var(--brand-pink); font-size: 1.1rem; }
.overview-card .button--primary { width: fit-content; }

/* Footer */
.site-footer { padding: 68px 0 28px; border-top: 4px solid var(--brand-pink); color: #fff; background: #1a1a1a; }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr .7fr; gap: 48px; margin-bottom: 48px; }
.site-footer__logo { height: 42px; width: auto; margin-bottom: 18px; border-radius: 5px; }
.site-footer p, .site-footer li { color: #a8a8b0; font-size: .88rem; line-height: 1.7; }
.site-footer h2 { margin: 0 0 18px; padding-left: 12px; border-left: 4px solid var(--brand-purple); font-size: 1.05rem; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 9px; }
.site-footer a:hover { color: var(--brand-pink); }
.site-footer__social { display: flex; gap: 10px; }
.site-footer__social a { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.09); font-weight: 700; }
.site-footer__bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; z-index: 3000; inset: 0; display: grid; padding: 18px; place-items: center; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__backdrop { position: absolute; inset: 0; border: 0; background: rgba(7,7,9,.91); cursor: zoom-out; backdrop-filter: blur(10px); }
.lightbox__dialog { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 36px); overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; color: #fff; background: #111115; box-shadow: 0 40px 100px rgba(0,0,0,.55); transform: translateY(14px) scale(.985); transition: transform .4s var(--ease); }
.lightbox.is-open .lightbox__dialog { transform: translateY(0) scale(1); }
.lightbox__media { position: relative; display: grid; height: min(76vh, 820px); place-items: center; background: #09090c; touch-action: pan-y; }
.lightbox__image { width: 100%; height: 100%; object-fit: contain; }
.lightbox__control { position: absolute; z-index: 2; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: #fff; background: rgba(17,17,21,.72); cursor: pointer; transition: .25s ease; }
.lightbox__control:hover { border-color: var(--brand-yellow); background: var(--brand-purple); }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 14px; }
.lightbox__next { right: 14px; }
.lightbox__meta { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 22px; }
.lightbox__category { color: var(--brand-yellow); font-size: .67rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.lightbox__title { margin: 3px 0 0; font-size: 1rem; }
.lightbox__counter { color: #aaaab4; font-size: .8rem; white-space: nowrap; }

@media (max-width: 1100px) {
  .site-nav__links { display: none; }
  .mobile-toggle { display: grid; }
  .mobile-panel.is-open { display: block; }
  .portfolio-hero__grid { min-height: auto; grid-template-columns: minmax(0, .9fr) minmax(380px, 1.1fr); }
  .portfolio-hero__frame, .portfolio-hero__frame img { min-height: 440px; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  :root { --page: min(100% - 28px, 1320px); }
  .portfolio-hero__grid { grid-template-columns: 1fr; gap: 38px; padding-block: 58px 70px; }
  .portfolio-hero__visual { order: 2; }
  .portfolio-hero__frame, .portfolio-hero__frame img { min-height: 0; }
  .portfolio-hero__frame { aspect-ratio: 4 / 3; }
  .portfolio-hero h1 { max-width: 650px; }
  .section-heading, .intro-grid { grid-template-columns: 1fr; }
  .featured-grid { height: 720px; min-height: 0; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(3, 1fr); }
  .featured-grid .gallery-card:first-child { grid-row: 1 / 3; }
  .featured-grid .gallery-card:nth-child(4), .featured-grid .gallery-card:nth-child(5) { grid-row: 3; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid .gallery-card:nth-child(9n+3) { grid-row: auto; aspect-ratio: 4 / 5; }
  .overview-card { grid-template-columns: 1fr; gap: 28px; }
  .overview-card:nth-child(even) .overview-card__visual { order: 0; }
  .overview-card__visual { height: 430px; }
}

@media (max-width: 560px) {
  :root { --page: min(100% - 22px, 1320px); }
  .site-nav__row { min-height: 68px; }
  .site-logo img { height: 41px; }
  .portfolio-main { padding-top: 68px; }
  .breadcrumb ol { min-height: 48px; }
  .portfolio-hero h1 { margin-top: 18px; font-size: clamp(2.35rem, 12vw, 3.5rem); }
  .category-number { margin-top: 17px; font-size: 4.5rem; }
  .project-count { margin-top: 22px; }
  .portfolio-hero__frame { border-radius: 20px; aspect-ratio: 4 / 3; }
  .portfolio-hero__label { right: 12px; bottom: 12px; }
  .section { padding-block: 64px; }
  .featured-grid { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: 310px 180px 180px; gap: 8px; }
  .featured-grid .gallery-card:first-child { grid-column: 1 / 3; grid-row: 1; }
  .featured-grid .gallery-card:nth-child(4), .featured-grid .gallery-card:nth-child(5) { grid-row: 3; }
  .gallery-card { border-radius: 12px; }
  .gallery-card__caption { inset: auto 11px 11px; }
  .gallery-card__category { font-size: .58rem; }
  .gallery-card__title { font-size: .82rem; }
  .gallery-card__icon { display: none; }
  .gallery-grid { gap: 8px; margin-top: 8px; }
  .gallery-grid .gallery-card { aspect-ratio: 4 / 5; }
  .category-links { grid-template-columns: 1fr; }
  .category-link { min-height: 94px; padding: 17px; }
  .category-pager a { padding: 22px 0; }
  .category-pager a:last-child { padding-left: 14px; }
  .category-pager strong { font-size: .87rem; }
  .cta-actions { display: grid; }
  .overview-card__visual { height: 360px; gap: 7px; }
  .overview-card__visual img { border-radius: 11px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .lightbox { padding: 0; }
  .lightbox__dialog { width: 100%; max-height: 100dvh; border-radius: 0; }
  .lightbox__media { height: calc(100dvh - 78px); }
  .lightbox__control { width: 44px; height: 44px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .lightbox__close { top: 8px; right: 8px; }
  .lightbox__meta { min-height: 78px; padding: 12px 14px; }
}

@media (max-width: 370px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-card, .gallery-grid .gallery-card:nth-child(6n+2), .gallery-grid .gallery-card:nth-child(6n+5) { aspect-ratio: 4 / 3; }
  .featured-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 250px); }
  .featured-grid .gallery-card:first-child, .featured-grid .gallery-card:nth-child(4), .featured-grid .gallery-card:nth-child(5) { grid-column: auto; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .hero-reveal, .js .reveal { opacity: 1; transform: none; }
}
