/* -------------------------------------------------------------------------- *
 *  Présentation bien — palette lumineuse, éditoriale, calme
 * -------------------------------------------------------------------------- */

:root {
  --bg: #faf8f5;
  --bg-elevated: #ffffff;
  --ink: #1a1917;
  --ink-muted: #5c5854;
  --line: rgba(26, 25, 23, 0.08);
  --accent: #6f7569;
  --accent-soft: rgba(111, 117, 105, 0.14);
  --radius: 2px;
  --shadow: 0 18px 48px rgba(26, 25, 23, 0.06);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-serif: "IBM Plex Serif", Georgia, serif;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

main {
  padding-bottom: clamp(2.5rem, 5vw, 3.25rem);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

a:hover {
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* —— Header —— */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  background: rgba(250, 248, 245, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    border-color 0.35s var(--ease),
    background 0.35s var(--ease);
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.site-header__inner {
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
}

.site-brand:hover {
  opacity: 0.72;
}

.site-nav {
  display: none;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
}

@media (min-width: 52rem) {
  .site-nav {
    display: flex;
  }
}

.site-nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition:
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.site-nav__link:hover {
  color: var(--ink);
}

.site-nav__link.is-active {
  color: var(--ink);
  border-color: var(--accent);
}

.site-header__cta {
  margin-left: auto;
}

.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

@media (min-width: 52rem) {
  .nav-toggle {
    display: none;
  }
  .site-header__cta {
    margin-left: 0;
  }
}

body.nav-open .site-nav {
  display: flex;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem var(--gutter);
  gap: 0.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  z-index: 35;
}

body.nav-open .site-nav__link {
  font-size: 0.9rem;
}

/* —— Buttons —— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.2s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(26, 25, 23, 0.18);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}

.btn--solid {
  background: var(--ink);
  color: #fdfcfa;
  border-color: var(--ink);
}

.btn--solid:hover {
  background: #2e2d2a;
  border-color: #2e2d2a;
}

.btn--accent {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: rgba(111, 117, 105, 0.35);
}

.btn--accent:hover {
  background: rgba(111, 117, 105, 0.22);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin-top: 1.75rem;
}

/* —— Sections —— */

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* États réel maison / appartement : alternance blanc ↔ crème (le reste du flux garde --bg) */
#maison.section {
  background: var(--bg-elevated);
}

#appartement.section {
  background: var(--bg);
}

.section__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.section__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  max-width: 20ch;
}

.section__lead {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.section__grid-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 48rem) {
  .section__grid-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 2.5rem;
  }
}

.muted {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.divider {
  height: 1px;
  background: var(--line);
  margin-block: clamp(2rem, 5vw, 3rem);
}

.pull-quote {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  max-width: 36rem;
}

/* —— Hero —— */

.hero {
  position: relative;
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2.75rem, 7vw, 4.5rem);
  color: #fdfcfa;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 25, 23, 0.72) 0%,
    rgba(26, 25, 23, 0.5) 42%,
    rgba(26, 25, 23, 0.34) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.hero__grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  align-items: stretch;
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(12.5rem, 20rem);
    gap: clamp(2rem, 4.5vw, 3.75rem);
  }

  .hero__copy {
    align-self: start;
  }

  .hero__panel {
    align-self: end;
  }
}

.hero__copy {
  min-width: 0;
}

.hero__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.75rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5.5vw, 3.35rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: min(24ch, 100%);
}

@media (min-width: 56rem) {
  .hero__title {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(1.85rem, 2.35vw + 0.65rem, 2.95rem);
  }
}

.hero__subtitle {
  margin: 0;
  max-width: 38rem;
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.92;
}

.hero__dpe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 1.1rem;
}

.hero__dpe-note {
  font-size: 0.8125rem;
  color: rgba(253, 252, 250, 0.88);
}

.hero__dpe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero__dpe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 4px;
  border: 1px solid rgba(253, 252, 250, 0.35);
  background: rgba(253, 252, 250, 0.12);
  color: #fdfcfa;
}

.hero__dpe-badge abbr {
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0.9;
}

.hero__dpe-badge--dpe {
  border-color: rgba(200, 184, 80, 0.55);
  background: rgba(200, 184, 80, 0.18);
}

.hero__dpe-badge--ges {
  border-color: rgba(120, 175, 120, 0.55);
  background: rgba(120, 175, 120, 0.2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-top: clamp(1.35rem, 3vw, 1.85rem);
}

.hero__panel {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(253, 252, 250, 0.09);
  border: 1px solid rgba(253, 252, 250, 0.22);
  box-shadow: 0 12px 40px rgba(26, 25, 23, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero__panel-eyebrow {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.hero__panel-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(253, 252, 250, 0.9);
}

.hero__panel-text strong {
  font-weight: 600;
  color: #fdfcfa;
}

.hero__panel-cta {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  text-align: center;
  padding-inline: 1rem;
}

@media (min-width: 56rem) {
  .hero__actions {
    flex-wrap: nowrap;
  }

  .hero .hero__actions .btn {
    font-size: 0.74rem;
    padding: 0.52rem 0.82rem;
    letter-spacing: 0.028em;
  }

  .hero .hero__actions .btn--hero-contact {
    font-size: 0.7rem;
  }
}

.btn--hero-contact {
  letter-spacing: 0.03em;
}

.hero .btn--ghost {
  border-color: rgba(253, 252, 250, 0.45);
  color: #fdfcfa;
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fdfcfa;
}

.hero .btn--solid {
  background: #fdfcfa;
  color: var(--ink);
  border-color: #fdfcfa;
}

.hero .btn--solid:hover {
  background: #ebe8e3;
  border-color: #ebe8e3;
}

/* —— Bandeau contexte (maison vs projection) —— */

.context-band {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.5rem;
}

.context-pill {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink-muted);
}

.context-pill--projection {
  border-color: rgba(111, 117, 105, 0.35);
  background: var(--accent-soft);
  color: var(--ink);
}

/* —— Galeries —— */

.gallery {
  display: grid;
  gap: 0.65rem;
}

.gallery--maison {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(9rem, 11vw);
}

.gallery--maison > .gallery__fig {
  grid-column: span 12;
}

.gallery__fig {
  margin: 0;
}

.gallery__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e4de;
  box-shadow: var(--shadow);
  height: 100%;
}

main .gallery__frame {
  cursor: zoom-in;
}

main .gallery__frame img {
  cursor: inherit;
}

.gallery__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s var(--ease),
    opacity 0.5s var(--ease);
}

.gallery__fig:hover .gallery__frame img {
  transform: scale(1.02);
}

.gallery__cap {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.gallery--maison .gallery__fig--hero {
  grid-row: span 2;
}

@media (min-width: 48rem) {
  .gallery--maison .gallery__fig--hero {
    grid-column: span 7;
    grid-row: span 2;
  }
  .gallery--maison .gallery__fig--tall {
    grid-column: span 5;
    grid-row: span 2;
  }
  .gallery--maison .gallery__fig--square {
    grid-column: span 4;
  }
  .gallery--maison .gallery__fig--wide {
    grid-column: span 6;
  }
}

.gallery--tiles {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(11rem, 18vw);
}

@media (min-width: 40rem) {
  .gallery--tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery--tiles .gallery__fig--tile:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

@media (min-width: 40rem) {
  .gallery--tiles .gallery__fig--tile:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery--airbnb {
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 48rem) {
  .gallery--airbnb {
    grid-template-columns: 1.2fr 0.85fr;
    align-items: stretch;
  }
}

.gallery--airbnb .gallery__fig {
  min-height: 14rem;
}

.gallery--airbnb .gallery__frame {
  height: 100%;
  min-height: 16rem;
}

/* Mobile : éviter la fente d’un pixel (fond #e8e4de) sous l’image + légende un peu plus aérée */
@media (max-width: 47.99rem) {
  .gallery--airbnb .gallery__frame img {
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    max-width: none;
    margin: -1px;
    object-position: center;
  }

  .gallery--airbnb .gallery__cap {
    margin-top: 0.7rem;
  }
}

/* —— Usage blocks —— */

.usage-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow);
}

.usage-block__title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  margin: 0 0 0.65rem;
}

.usage-block__text {
  margin: 0 0 1.25rem;
  color: var(--ink-muted);
  max-width: 40rem;
}

.point-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.point-list li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* Liste à puces après la galerie : éviter que la légende de la dernière tuile touche les puces */
.usage-block .gallery + .point-list {
  margin-top: clamp(1.75rem, 3.5vw, 2.4rem);
}

.compare {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 42rem) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare__item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.compare__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.projection__hero {
  margin: 0;
}

.projection__hero .gallery__frame {
  min-height: min(28rem, 70vw);
}

/* —— Conclusion —— */

.outro {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(4rem, 10vw, 6rem);
  color: #fdfcfa;
}

.outro__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.outro__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.outro__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 25, 23, 0.86) 0%,
    rgba(26, 25, 23, 0.68) 42%,
    rgba(26, 25, 23, 0.55) 100%
  );
}

.outro .container {
  position: relative;
  z-index: 1;
}

.outro__title {
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.5vw, 2.1rem);
  margin: 0 0 1rem;
}

.outro__text {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  color: rgba(253, 252, 250, 0.88);
}

.outro .btn--solid {
  background: #fdfcfa;
  color: var(--ink);
  border-color: #fdfcfa;
}

.outro .btn--solid:hover {
  background: #ebe8e3;
  border-color: #ebe8e3;
}

.site-footer {
  padding: 1.25rem var(--gutter)
    max(2.75rem, calc(2rem + env(safe-area-inset-bottom, 0px) + 2.5rem));
  text-align: center;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
}

.site-footer__credit {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  opacity: 0.88;
}

.site-footer__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.site-hint {
  position: fixed;
  left: 50%;
  bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.65rem));
  z-index: 32;
  translate: -50% 0;
  margin: 0;
  padding: 0.5rem 1.1rem;
  max-width: min(22rem, calc(100vw - var(--gutter) * 2));
  box-sizing: border-box;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s var(--ease),
    visibility 0.25s var(--ease);
}

@media (min-width: 48rem) {
  .site-hint {
    max-width: calc(100vw - var(--gutter) * 2);
    white-space: nowrap;
  }

  .site-hint__br {
    display: none;
  }
}

.site-hint.is-visible {
  opacity: 1;
  visibility: visible;
}

html.lightbox-open .site-hint {
  opacity: 0;
  visibility: hidden;
}

code {
  font-size: 0.85em;
}

/* —— Lightbox (dialog) —— */

html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  padding: 0;
  border: none;
  max-width: none;
  max-height: none;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(26, 25, 23, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox__layout {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: center;
  width: 100%;
  min-height: 100dvh;
  box-sizing: border-box;
}

.lightbox__scrim {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
  z-index: 0;
}

.lightbox__panel {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: min(96vw, 88rem);
  padding: clamp(3.5rem, 8vw, 4.5rem) var(--gutter) 2rem;
  box-sizing: border-box;
  pointer-events: none;
}

.lightbox__panel > * {
  pointer-events: auto;
}

.lightbox__close {
  position: fixed;
  top: calc(var(--header-h) * 0.35 + 0.5rem);
  right: var(--gutter);
  z-index: 2;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  color: #fdfcfa;
  background: rgba(26, 25, 23, 0.45);
  border: 1px solid rgba(253, 252, 250, 0.35);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.lightbox__close:hover {
  background: rgba(26, 25, 23, 0.65);
  border-color: rgba(253, 252, 250, 0.55);
}

.lightbox__stage {
  position: relative;
  flex: 0 1 auto;
  max-width: min(96vw, 88rem);
  max-height: min(82vh, 1200px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img,
.lightbox__video {
  display: block;
  max-width: 100%;
  max-height: min(82vh, 1200px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.lightbox__video {
  background: #0e0e0d;
}

.lightbox__img[hidden],
.lightbox__video[hidden] {
  display: none;
}

.lightbox__caption {
  margin: 1rem 0 0;
  max-width: 40rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(253, 252, 250, 0.88);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lightbox__caption[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__close {
    transition: none;
  }
}
