/* Мария & Александр — тёплое приглашение */

:root {
  --cream: #faf7f2;
  --cream-deep: #f0e8de;
  --blush: #fdeee6;
  --terracotta: #c45c3e;
  --terracotta-deep: #a34a32;
  --ink: #3a302b;
  --ink-soft: rgba(58, 48, 43, 0.62);
  --line: rgba(58, 48, 43, 0.12);
  --card: #fffefb;
  --shadow: 0 20px 50px rgba(58, 48, 43, 0.08);
  --radius: 18px;
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "DM Sans", system-ui, sans-serif;
  --max: 560px;
  --max-wide: 720px;
  --safe-top: max(12px, env(safe-area-inset-top, 0px));
  --safe-bot: max(12px, env(safe-area-inset-bottom, 0px));

  /* Вторая координата object-position hero-фото (только с %). Меньше — выше по кадру, больше — ниже. */
  --hero-photo-y: 42%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--terracotta-deep);
}

/* Широкий экран — заглушка; узкий viewport (телефон) — сайт. Только по ширине окна, не User-Agent */
.desk-gate {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 80000;
  align-items: center;
  justify-content: center;
  padding: 28px;
  padding-top: max(28px, env(safe-area-inset-top, 0px));
  padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(160deg, var(--blush) 0%, var(--cream) 45%, var(--cream-deep) 100%);
}

.desk-gate__card {
  max-width: 400px;
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.desk-gate__tag {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.desk-gate__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
}

.desk-gate__text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.site {
  display: none;
}

body {
  overflow: hidden;
}

@media (max-width: 768px) {
  .desk-gate {
    display: none !important;
  }

  .site {
    display: block !important;
  }

  body {
    overflow: visible;
  }
}

/* ——— Поворот в альбом ——— */
.tilt-hint {
  display: none;
}

@media (orientation: landscape) and (max-height: 520px) {
  .tilt-hint {
    position: fixed;
    inset: 0;
    z-index: 60000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(8px);
  }

  body:has(.tilt-hint[aria-hidden="false"]) {
    overflow: hidden;
    touch-action: none;
  }
}

.tilt-hint__card {
  max-width: 300px;
  text-align: center;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tilt-hint__glyph {
  display: block;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--terracotta);
  transform: rotate(-90deg);
}

.tilt-hint__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
}

.tilt-hint__text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ——— Splash ——— */
.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.splash.gone {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__inner {
  text-align: center;
  padding: 32px;
}

.splash__names {
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 36px);
  font-weight: 600;
  color: var(--ink);
}

.splash__amp {
  font-style: italic;
  font-weight: 400;
  opacity: 0.85;
  padding: 0 0.15em;
}

.splash__hint {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.splash__bar {
  width: 40px;
  height: 3px;
  margin: 24px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--terracotta), transparent);
  animation: splash-pulse 1.2s ease-in-out infinite;
}

@keyframes splash-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleX(0.85);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: var(--safe-top) 20px var(--safe-bot);
  overflow: hidden;
  background: var(--cream);
  isolation: isolate;
}

/* Фото на весь hero, под затемнением и текстом — без рамки */
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center var(--hero-photo-y, 42%);
  opacity: 1;
  filter: saturate(1.04) contrast(1.03) brightness(0.96);
  pointer-events: none;
  will-change: transform;
}

/* Снизу длиннее и плотнее тень — текст сидит на «полке», не на лице */
.hero__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(12, 10, 9, 0.32) 0%,
    rgba(14, 12, 10, 0.2) 18%,
    rgba(16, 13, 12, 0.26) 35%,
    rgba(20, 16, 14, 0.45) 48%,
    rgba(24, 20, 18, 0.72) 62%,
    rgba(28, 24, 22, 0.88) 78%,
    rgba(32, 28, 26, 0.96) 100%
  );
}

/* Слабее «отбеливание» снизу, чтобы не съедать затемнение под типографикой */
.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 0%, transparent 52%, rgba(250, 247, 242, 0.05) 82%, rgba(250, 247, 242, 0.14) 100%),
    radial-gradient(ellipse 100% 65% at 50% 0%, rgba(196, 92, 62, 0.05) 0%, transparent 50%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 120px rgba(0, 0, 0, 0.2),
    inset 0 -40px 120px rgba(0, 0, 0, 0.38);
}

.hero__shell {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero__kicker,
.hero__title,
.hero__title .hero__and,
.hero__date,
.hero__place {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.55),
    0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero__kicker {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #ffd4c4;
  margin-bottom: 6px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 7.5vw, 42px);
  line-height: 1.08;
  color: #fffaf7;
}

.hero__name {
  display: block;
}

.hero__and {
  display: block;
  font-size: 0.42em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.12em;
  color: rgba(255, 250, 245, 0.78);
  margin: 0.1em 0;
}

.hero__date {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(17px, 4vw, 21px);
  font-weight: 500;
  color: #fff;
}

.hero__place {
  margin-top: 6px;
  font-size: 14px;
  color: rgba(255, 248, 242, 0.88);
  line-height: 1.4;
  max-width: 22em;
  margin-left: auto;
  margin-right: auto;
}

.hero__count {
  margin-top: 16px;
  padding: 12px 10px 14px;
  border-radius: var(--radius);
  background: rgba(255, 254, 251, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.hero__count-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.hero__count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.hero__count-cell {
  padding: 7px 4px;
  border-radius: 11px;
  background: rgba(240, 232, 222, 0.55);
}

.hero__count-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 4.6vw, 24px);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.hero__count-unit {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  min-height: 46px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
  box-shadow: 0 10px 28px rgba(196, 92, 62, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__btn:active {
  transform: scale(0.98);
}

/* ——— Blocks ——— */
.block {
  padding: 48px 20px 52px;
}

.block--gallery {
  background: var(--cream);
}

.block--cream {
  background: linear-gradient(180deg, var(--cream-deep) 0%, var(--cream) 100%);
}

.block--rsvp {
  padding-bottom: 64px;
  background: var(--cream);
}

.block__inner {
  width: min(var(--max-wide), 100%);
  margin: 0 auto;
}

.block__inner--narrow {
  max-width: var(--max);
}

.block__eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.block__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 30px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

.block__lead {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 36em;
  margin-bottom: 28px;
}

.block__lead--tight {
  margin-bottom: 22px;
}

.block__note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 32em;
}

/* ——— Gallery carousel ——— */
.block__lead--gallery {
  margin-bottom: 14px;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: min(420px, 100%);
  margin: 0 auto;
}

.carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius);
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

.carousel__track {
  display: flex;
  width: 100%;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  margin: 0;
  padding: 0;
}

.carousel__slide:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.carousel__frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream-deep);
  box-shadow: var(--shadow);
}

.carousel__img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.45s ease;
}

.carousel__slide:hover .carousel__img {
  transform: scale(1.02);
}

.carousel__ph {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  background: linear-gradient(145deg, var(--cream-deep), var(--cream));
}

.carousel__slide.is-placeholder .carousel__img {
  display: none;
}

.carousel__slide.is-placeholder .carousel__ph {
  display: flex;
  aspect-ratio: 3 / 4;
}

.carousel__cap {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 8px;
}

.carousel__arrow {
  position: absolute;
  top: calc(50% - 28px);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 252, 247, 0.92);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(58, 48, 43, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.carousel__arrow:hover {
  transform: scale(1.05);
}

.carousel__arrow:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

.carousel__arrow--prev {
  left: 6px;
}

.carousel__arrow--next {
  right: 6px;
}

.carousel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.carousel__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.carousel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__dot:hover {
  background: var(--ink-soft);
}

.carousel__dot.is-active {
  background: var(--terracotta);
  transform: scale(1.15);
}

.carousel__dot:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 2px;
}

@media (max-width: 380px) {
  .carousel__arrow {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .carousel__arrow--prev {
    left: 2px;
  }

  .carousel__arrow--next {
    right: 2px;
  }
}

/* ——— Timeline ——— */
.timeline {
  display: grid;
  gap: 16px;
}

.timeline__card {
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(58, 48, 43, 0.05);
}

.timeline__time {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 6px;
}

.timeline__head {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}

.timeline__text {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  background: rgba(250, 247, 242, 0.9);
  border: 1px solid var(--line);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pill:hover {
  background: #fff;
  border-color: rgba(196, 92, 62, 0.35);
}

/* ——— Dress chips ——— */
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  justify-content: center;
}

.chips__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
}

.chips__dot {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c, #ccc);
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(58, 48, 43, 0.1);
}

.chips__dot--ring {
  box-shadow:
    0 0 0 2px rgba(58, 48, 43, 0.12),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.chips__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-style: italic;
  text-align: center;
  color: var(--ink-soft);
  max-width: 9em;
}

/* ——— RSVP paper ——— */
.paper {
  padding: 28px 22px 26px;
  border-radius: calc(var(--radius) + 4px);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form {
  display: grid;
  gap: 18px;
}

.form__field {
  display: grid;
  gap: 8px;
}

.form__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.form__input,
.form__select {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.95);
  font-family: var(--font-ui);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__input:focus,
.form__select:focus {
  border-color: rgba(196, 92, 62, 0.45);
  box-shadow: 0 0 0 3px rgba(196, 92, 62, 0.12);
}

.form__select-wrap {
  position: relative;
}

.form__select-wrap::after {
  content: "▾";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--terracotta-deep);
  pointer-events: none;
}

.form__fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.form__fieldset .form__label {
  padding: 0;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form__grid--attendance {
  grid-template-columns: 1fr;
}

.form__check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.85);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form__check:has(input:checked) {
  border-color: rgba(196, 92, 62, 0.4);
  background: rgba(253, 238, 230, 0.65);
}

.form__check input {
  accent-color: var(--terracotta);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}

.form__submit {
  min-height: 52px;
  border: none;
  border-radius: 14px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.form__submit:hover:not(:disabled) {
  transform: translateY(-1px);
}

.form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.form__status {
  min-height: 22px;
  font-size: 14px;
  text-align: center;
  color: var(--ink-soft);
}

.paper__deadline {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
}

.paper__contacts {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.paper__contacts-title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 20px;
}

.paper__contact-row {
  text-align: center;
  margin-bottom: 22px;
}

.paper__contact-row:last-child {
  margin-bottom: 0;
}

.paper__contact-role {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.paper__contact-name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.paper__tel {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.paper__tel:hover {
  color: var(--terracotta-deep);
}

.paper__contact-tg {
  margin-top: 12px;
}

.paper__tg-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.paper__tg {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--terracotta-deep);
  text-decoration: none;
}

.paper__tg:hover {
  text-decoration: underline;
}

.hidden-field {
  display: none !important;
}

/* ——— Footer ——— */
.foot {
  text-align: center;
  padding: 36px 20px 48px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}

.foot__line {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  color: var(--ink-soft);
}

.foot__sign {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ——— Reveal ——— */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(58, 48, 43, 0.78);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(880px, 100%);
  max-height: 92vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: min(78vh, 880px);
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.lightbox__cap {
  margin: 0;
  max-width: 36em;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(15px, 3.5vw, 18px);
  font-style: italic;
  line-height: 1.45;
  color: rgba(255, 252, 247, 0.92);
}

.lightbox__cap[hidden] {
  display: none;
}

.lightbox__x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
}
