/* A film keepsake in the same stationery palette as the memory wall. */
.wedding-film {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  max-width: 1020px;
  margin: 0 auto 60px;
  padding: 34px;
  background: #ffffffa6;
  border: 1px solid #b99dda59;
  border-radius: 24px;
}
.wedding-film-copy .eyebrow { color: var(--rust); margin-bottom: 16px; font-size: 11px; }
.wedding-film-copy h3 { font: clamp(36px, 3.7vw, 52px)/1.06 var(--serif); letter-spacing: -.02em; }
.wedding-film-copy > p:not(.eyebrow) { margin-top: 18px; max-width: 320px; font-size: 15px; color: var(--muted); }
.wedding-film-note { display: block; margin-top: 22px; font-size: 11px; color: var(--muted); }
.wedding-film-note > span { color: var(--rust); margin-inline: 5px; }
.wedding-film-preview {
  position: relative;
  display: block;
  min-width: 0;
  padding: 9px 9px 0;
  background: var(--white);
  border: 1px solid #34234f14;
  border-radius: 12px;
  box-shadow: 0 12px 28px #64409615;
  transform: rotate(-1.5deg);
  transition: transform var(--quick) var(--ease), box-shadow var(--quick);
}
.wedding-film-preview:hover, .wedding-film-preview:focus-visible { transform: rotate(0); box-shadow: 0 16px 36px #64409625; }
.wedding-film-sticker {
  position: absolute;
  z-index: 2;
  right: 14px;
  top: -13px;
  padding: 6px 11px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .07em;
  background: var(--lemon);
  border-radius: 4px;
  transform: rotate(4deg);
}
.wedding-film-still { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: var(--ink); }
.wedding-film-still::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #24132a44, #24132a08); }
.wedding-film-still img { width: 100%; height: 100%; object-fit: contain; }
.wedding-film-play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid #ffffffb3;
  background: var(--rust);
  color: white;
  box-shadow: 0 4px 24px #24132a55;
  transform: translate(-50%, -50%);
}
.wedding-film-play svg { width: 28px; height: 28px; fill: currentColor; margin-left: -2px; }
.wedding-film-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 5px; font-size: 13px; }
.wedding-film-caption > span { color: var(--muted); font-size: 11px; }
.wedding-film-caption > span > span { margin-left: 10px; color: var(--rust); font-size: 18px; }
.wedding-film-lightbox {
  width: min(1100px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100svh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid #ffffff26;
  border-radius: 18px;
  background: #21182d;
  color: var(--paper);
  box-shadow: 0 24px 100px #160d2466;
  overscroll-behavior: contain;
}
.wedding-film-lightbox::backdrop { background: #1c1227de; backdrop-filter: blur(6px); }
.wedding-film-lightbox[open] { animation: wedding-film-in .25s var(--ease) both; }
.wedding-film-panel { padding: 18px; }
.wedding-film-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.wedding-film-toolbar h2 { font: 25px/1.2 var(--serif); letter-spacing: 0; }
.wedding-film-toolbar h2 em { color: #cbb2f1; }
.wedding-film-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #ffffff33; border-radius: 50%; background: #ffffff0d; color: white; font-size: 18px; }
.wedding-film-close:hover { background: #ffffff26; }
#wedding-film-player { display: block; width: 100%; max-height: calc(100svh - 220px); max-height: calc(100dvh - 220px); aspect-ratio: 16 / 9; object-fit: contain; border-radius: 8px; background: #08060c; }
.wedding-film-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 12px; color: #d5c8e6; }
.wedding-film-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.wedding-film-status { margin-top: 12px; font-size: 13px; color: var(--lemon); }
.wedding-film-lightbox :focus-visible { outline-color: var(--lemon); }
.performance-lite .wedding-film-lightbox::backdrop { backdrop-filter: none; }
@keyframes wedding-film-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) {
  .wedding-film { grid-template-columns: 1fr; gap: 28px; padding: 24px 18px; margin-bottom: 38px; border-radius: 18px; }
  .wedding-film-copy { text-align: center; }
  .wedding-film-copy > p:not(.eyebrow) { margin-inline: auto; }
  .wedding-film-copy h3 { font-size: 41px; }
  .wedding-film-note { margin-top: 16px; }
  .wedding-film-preview { width: 100%; max-width: 480px; margin-inline: auto; }
  .wedding-film-play { width: 56px; height: 56px; }
  .wedding-film-lightbox { width: calc(100% - 20px); max-height: calc(100svh - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .wedding-film-panel { padding: 12px; }
  .wedding-film-toolbar { gap: 10px; margin-bottom: 10px; }
  .wedding-film-toolbar h2 { font-size: 20px; }
  .wedding-film-toolbar h2 em { display: block; font-size: 18px; }
  .wedding-film-footer { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .wedding-film-preview { transform: none; transition: none; }
  .wedding-film-lightbox[open] { animation: none; }
}
