:root {
  --paper: #f8f6ef;
  --paper-2: #eeeade;
  --white: #fffef9;
  --ink: #414a3f;
  --muted: #7f887d;
  --line: rgba(65, 74, 63, 0.13);
  --sage: #9da79f;
  --sage-dark: #5e6948;
  --rose: #d45e54;
  --rose-light: #e7a19a;
  --orange: #df7437;
  --olive: #68713c;
  --mustard: #d5ae3d;
  --sky: #91bed0;
  --lavender: #a69ab1;
  --gold: #d5ae3d;
  --cta: #89957e;
  --cta-dark: #748068;
  --serif: "Italiana", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --script: "Parisienne", cursive;
  --shadow: 0 22px 70px rgba(38, 44, 39, 0.17);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(248, 246, 239, 0.95), rgba(248, 246, 239, 0.95)),
    url("assets/watercolor-floral-paper.webp") top center / min(100%, 1000px) auto repeat-y;
  font-family: var(--sans);
  font-size: 14px;
}

body:has(dialog[open]) {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  height: 68px;
  padding: 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: rgba(250, 248, 241, 0.91);
  backdrop-filter: blur(15px);
}

.brand {
  display: grid;
  place-items: center;
  width: 38px;
  height: 50px;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 39px;
}

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

.privacy-title span {
  display: block;
}

.privacy-title span {
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
}

.privacy-title i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 4px 1px 0;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 3px rgba(104, 113, 60, 0.13);
}

main {
  width: min(100%, 1320px);
  margin: auto;
}

.event-hero {
  position: relative;
  height: min(66svh, 570px);
  min-height: 430px;
  color: white;
  overflow: hidden;
}

@media (max-width: 759px) {
  .event-hero {
    height: 245px;
    min-height: 0;
  }

  .event-hero > img {
    object-position: center;
  }

  .event-hero__shade {
    background:
      linear-gradient(90deg, rgba(49, 56, 44, 0.63), rgba(49, 56, 44, 0.28) 48%, transparent 76%),
      linear-gradient(0deg, rgba(49, 56, 44, 0.5), transparent 70%);
  }

  .event-logo {
    display: none;
  }

  .event-hero__content {
    right: auto;
    bottom: 13px;
    left: 20px;
    width: 53%;
    text-align: left;
  }

  .event-hero__content > p {
    margin-bottom: 4px;
    font-size: 7px;
  }

  .event-hero__content h1 {
    font-size: 37px;
    line-height: 0.82;
  }

}

.event-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  animation: heroIn 1.4s ease-out both;
}

.event-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 30, 24, 0.2), transparent 35%),
    linear-gradient(0deg, rgba(53, 57, 43, 0.73), transparent 60%);
}

.event-hero__content {
  position: absolute;
  right: 24px;
  bottom: 35px;
  left: 24px;
  text-align: center;
}

.event-logo {
  width: auto;
  height: 58px;
  margin-bottom: 10px;
  opacity: 0.92;
  filter: drop-shadow(0 3px 12px rgba(25, 31, 27, 0.22));
}

.event-hero__content > p {
  margin: 0 0 10px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.event-hero__content h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 15vw, 112px);
  font-weight: 400;
  line-height: 0.8;
  letter-spacing: -0.04em;
}

.event-hero__content h1 em {
  display: inline-block;
  margin: 0 -0.04em;
  color: #efc7b6;
  font-family: var(--script);
  font-size: 0.7em;
  font-style: normal;
  transform: rotate(-8deg) translateY(0.08em);
}

.quick-share {
  position: relative;
  z-index: 2;
  margin: -1px 12px 0;
  padding: 30px 18px 22px;
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(rgba(255, 254, 249, 0.93), rgba(255, 254, 249, 0.93)),
    url("assets/watercolor-floral-paper.webp") center 7% / 540px auto;
  box-shadow: 0 20px 55px rgba(47, 51, 45, 0.1);
}

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

.quick-share h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(27px, 7vw, 42px);
  font-weight: 400;
  line-height: 1.08;
}

.quick-share__copy > p {
  max-width: 490px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.quick-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.primary-action,
.voice-action {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 66px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  text-align: left;
}

.primary-action {
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
  box-shadow: 0 11px 25px rgba(83, 96, 76, 0.17);
}

.primary-action__icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.17);
}

.primary-action svg,
.voice-action svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.primary-action strong,
.primary-action small,
.voice-action strong,
.voice-action small {
  display: block;
}

.primary-action strong,
.voice-action strong {
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
}

.primary-action small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 8px;
}

.voice-action {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
}

.voice-action > svg {
  width: 49px;
  padding: 13px;
  color: var(--olive);
  border-radius: 11px;
  background: rgba(145, 190, 208, 0.2);
}

.voice-action small {
  color: var(--muted);
  font-size: 8px;
}

.album-section {
  position: relative;
  padding: 80px 14px 120px;
  background:
    linear-gradient(rgba(248, 246, 239, 0.74), rgba(248, 246, 239, 0.82)),
    url("assets/watercolor-floral-paper.webp") top center / min(100%, 1000px) auto repeat-y;
}

.album-section::before {
  position: absolute;
  top: 210px;
  right: 6%;
  width: 110px;
  height: 1px;
  background: rgba(183, 114, 101, 0.25);
  box-shadow: 0 5px 0 rgba(183, 114, 101, 0.1);
  content: "";
  transform: rotate(-7deg);
}

.album-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto 30px;
}

.section-kicker {
  color: var(--rose);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.album-heading h2 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: clamp(36px, 9vw, 72px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.035em;
}

.album-heading h2 em {
  color: var(--rose);
  font-family: var(--script);
  font-size: 0.95em;
  font-style: normal;
}

.album-stats {
  flex: 0 0 auto;
  text-align: right;
}

.album-stats > div:first-child strong,
.album-stats > div:first-child span {
  display: block;
}

.album-stats > div:first-child strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}

.album-stats > div:first-child span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.avatar-stack {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  padding-right: 1px;
}

.avatar-stack span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-right: -6px;
  color: white;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--sky);
  font-family: var(--serif);
  font-size: 8px;
}

.avatar-stack span:nth-child(2) {
  background: var(--rose);
}

.avatar-stack span:nth-child(3) {
  background: var(--mustard);
}

.avatar-stack span:last-child {
  color: var(--ink);
  background: var(--paper-2);
}

.filter-wrap {
  position: sticky;
  top: 68px;
  z-index: 35;
  margin: 0 -14px 20px;
  padding: 9px 14px;
  background: rgba(248, 246, 239, 0.9);
  backdrop-filter: blur(13px);
}

.filters {
  display: flex;
  gap: 7px;
  max-width: 1120px;
  margin: auto;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.filter {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 500;
}

.filter.is-active {
  color: white;
  border-color: var(--olive);
  background: var(--olive);
}

.gallery {
  columns: 2;
  column-gap: 13px;
  max-width: 1120px;
  margin: auto;
  padding: 12px 3px;
}

.media-card {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: auto;
  margin: 0 0 18px;
  padding: 7px 7px 13px;
  color: var(--ink);
  border: 0;
  border-radius: 1px;
  background: #fffef9;
  box-shadow:
    0 16px 30px rgba(49, 49, 42, 0.14),
    0 3px 7px rgba(49, 49, 42, 0.08);
  break-inside: avoid;
  overflow: hidden;
  text-align: left;
  transform: rotate(-1.2deg);
  transform-origin: center;
  transition: transform 0.32s ease, box-shadow 0.32s ease;
  animation: cardIn 0.5s ease both;
}

.media-card:nth-child(2n) {
  transform: rotate(1.4deg);
}

.media-card:nth-child(3n) {
  transform: rotate(-2deg);
}

.media-card:nth-child(5n) {
  transform: rotate(2.1deg);
}

.media-card:hover,
.media-card:focus-visible {
  z-index: 3;
  outline: none;
  box-shadow:
    0 24px 45px rgba(49, 49, 42, 0.2),
    0 5px 10px rgba(49, 49, 42, 0.1);
  transform: rotate(0) translateY(-5px) scale(1.015);
}

.media-card[hidden] {
  display: none;
}

.media-card__image {
  position: relative;
  display: block;
  order: 1;
  width: 100%;
  height: 172px;
  flex: 0 0 auto;
  background-position: center;
  background-size: cover;
  transition: transform 0.5s ease;
}

.media-card--tall .media-card__image {
  height: 226px;
}

.media-card--wide .media-card__image,
.media-card--hero .media-card__image {
  height: 190px;
}

.media-card:hover .media-card__image {
  transform: none;
}

.media-card::after {
  order: 2;
  padding: 11px 5px 3px;
  color: var(--olive);
  font-family: var(--script);
  font-size: clamp(17px, 4.7vw, 24px);
  line-height: 1;
  content: attr(data-caption);
}

.sprite {
  background-image: url("assets/wedding-moments-grid.webp");
  background-repeat: no-repeat;
  background-size: 200% 200%;
}

.sprite--cheers {
  background-position: 0 0;
}

.sprite--friends {
  background-position: 100% 0;
}

.sprite--dinner {
  background-position: 0 100%;
}

.sprite--dance {
  background-position: 100% 100%;
}

.crop-alt {
  background-size: 240% 240%;
}

.crop-hero {
  background-position: 35% 60%;
}

.media-card__overlay {
  position: static;
  display: flex;
  order: 3;
  justify-content: space-between;
  align-items: center;
  padding: 4px 5px 2px;
  color: var(--muted);
  background: none;
}

.media-card__overlay span,
.media-card__overlay strong,
.media-card__overlay small {
  display: inline;
}

.media-card__overlay strong {
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media-card__overlay strong::before {
  content: "Ajouté par ";
}

.media-card__overlay small {
  margin-left: 5px;
  color: rgba(117, 128, 120, 0.72);
  font-size: 6px;
  letter-spacing: 0.08em;
}

.media-card__overlay small::before {
  content: "· ";
}

.media-card__overlay > i {
  color: var(--rose);
  font-family: var(--serif);
  font-size: 17px;
  font-style: normal;
}

.play-badge {
  position: absolute;
  top: 75px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(25, 31, 27, 0.42);
  backdrop-filter: blur(7px);
  transform: translate(-50%, -50%);
}

.play-badge svg {
  width: 18px;
  fill: white;
}

.duration {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 7px;
  border-radius: 99px;
  background: rgba(20, 25, 22, 0.57);
  font-size: 7px;
}

.media-card--guest.is-new {
  animation: newPolaroid 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-end {
  margin: 50px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  font-style: italic;
  text-align: center;
}

.gallery-end span {
  display: block;
  margin-bottom: 8px;
  color: var(--rose);
  font-size: 13px;
}

dialog {
  color: var(--ink);
}

.sheet {
  width: min(100%, 620px);
  max-width: none;
  max-height: 92svh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: visible;
}

.sheet::backdrop {
  background: rgba(26, 34, 29, 0.66);
  backdrop-filter: blur(6px);
}

.sheet[open] {
  animation: sheetUp 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sheet__panel {
  max-height: 92svh;
  margin: 0;
  padding: 13px 20px 28px;
  overflow-y: auto;
}

.sheet__handle {
  width: 42px;
  height: 4px;
  margin: 0 auto 22px;
  border-radius: 99px;
  background: rgba(38, 49, 43, 0.15);
}

.sheet__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.sheet__heading span {
  color: var(--rose);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sheet__heading h2 {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.close-sheet {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.upload-step {
  display: none;
}

.upload-step.is-active {
  display: block;
  animation: stepIn 0.35s ease both;
}

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 245px;
  padding: 25px;
  border: 1px dashed rgba(82, 102, 90, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 20%, rgba(212, 94, 84, 0.1), transparent 35%),
    rgba(157, 167, 159, 0.09);
  text-align: center;
  cursor: pointer;
}

.upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-zone__icon {
  display: grid;
  place-items: center;
  width: 65px;
  height: 65px;
  color: white;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--cta), var(--cta-dark));
  box-shadow: 0 10px 26px rgba(77, 90, 70, 0.18);
}

.upload-zone__icon svg {
  width: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.3;
}

.upload-zone > strong {
  margin: 20px 0 7px;
  font-size: 13px;
}

.selection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.selection-heading > span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.selection-heading button {
  padding: 6px 10px;
  color: var(--rose);
  border: 1px solid rgba(183, 114, 101, 0.27);
  border-radius: 99px;
  background: transparent;
  font-size: 8px;
  font-weight: 600;
}

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

.selection-item {
  position: relative;
  min-height: 82px;
  border-radius: 10px;
  background: var(--paper-2) center / cover;
  overflow: hidden;
}

.selection-item--video {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #9c6b60, #3e5247);
  font-family: var(--serif);
  font-size: 10px;
}

.selection-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(29, 37, 32, 0.72);
  font-size: 15px;
}

.selection-help {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 8px;
}

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

.form-grid label > span,
.caption-field > span {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.caption-field > span i {
  font-weight: 400;
  font-style: normal;
  text-transform: none;
}

.form-grid input,
.form-grid select,
.caption-field textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: var(--paper);
  font-size: 11px;
}

.form-grid input:focus,
.form-grid select:focus,
.caption-field textarea:focus {
  border-color: var(--rose);
}

.caption-field {
  display: block;
  margin-top: 14px;
}

.caption-field textarea {
  min-height: 72px;
  resize: none;
}

.upload-submit,
.save-recording {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 15px;
  padding: 15px 18px;
  color: white;
  border: 0;
  border-radius: 12px;
  background: var(--olive);
  font-size: 10px;
}

.upload-submit strong {
  font-weight: 400;
  opacity: 0.65;
}

.upload-submit.is-uploading {
  cursor: wait;
  opacity: 0.68;
}

.upload-success {
  padding: 12px 0 20px;
  text-align: center;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0 auto 20px;
  color: white;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 11px rgba(104, 113, 60, 0.1);
}

.success-mark svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.upload-success > span {
  color: var(--rose);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.upload-success h2 {
  margin: 11px 0 12px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.05;
}

.upload-success p {
  color: var(--muted);
  font-size: 10px;
}

.view-upload,
.add-more {
  width: 100%;
  padding: 13px;
  border-radius: 11px;
  font-size: 10px;
}

.view-upload {
  margin-top: 18px;
  color: white;
  border: 0;
  background: linear-gradient(135deg, var(--cta), var(--cta-dark));
}

.add-more {
  margin-top: 8px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: transparent;
}

.voice-copy {
  max-width: 430px;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.recorder {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 25px 0 15px;
  padding: 24px 16px;
  border-radius: 18px;
  background: var(--paper);
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 42px;
  margin-bottom: 10px;
}

.waveform i {
  width: 2px;
  height: 8px;
  border-radius: 99px;
  background: var(--lavender);
  transition: height 0.18s ease;
}

.waveform i:nth-child(3n) {
  height: 22px;
}

.waveform i:nth-child(4n) {
  height: 31px;
}

.waveform.is-recording i {
  animation: wave 0.8s ease-in-out infinite alternate;
}

.waveform.is-recording i:nth-child(2n) { animation-delay: -0.25s; }
.waveform.is-recording i:nth-child(3n) { animation-delay: -0.55s; }

.recorder > strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}

.recorder > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.record-button {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin: 20px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose), var(--orange));
  box-shadow: 0 0 0 9px rgba(212, 94, 84, 0.11);
}

.record-button span {
  width: 23px;
  height: 23px;
  border: 2px solid white;
  border-radius: 50%;
}

.record-button.is-recording span {
  width: 19px;
  height: 19px;
  border: 0;
  border-radius: 4px;
  background: white;
}

.recorder > small {
  color: var(--muted);
  font-size: 8px;
}

.save-recording {
  justify-content: center;
  background: var(--sage-dark);
}

.save-recording:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  color: white;
  border: 0;
  background: #18211c;
}

.lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.lightbox__image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(19, 25, 21, 0.45);
  backdrop-filter: blur(7px);
}

.lightbox__close {
  top: max(18px, env(safe-area-inset-top));
  right: 18px;
  width: 38px;
  height: 38px;
  font-size: 25px;
}

.lightbox__nav {
  top: 50%;
  width: 38px;
  height: 38px;
  font-family: var(--serif);
  font-size: 28px;
  transform: translateY(-50%);
}

.lightbox__nav--prev {
  left: 12px;
}

.lightbox__nav--next {
  right: 12px;
}

.lightbox__info {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 24px max(26px, env(safe-area-inset-bottom));
  background: linear-gradient(0deg, rgba(15, 20, 17, 0.88), transparent);
}

.lightbox__info strong,
.lightbox__info span {
  display: block;
}

.lightbox__info strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

.lightbox__info span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 9px;
}

.lightbox__info b {
  font-weight: 600;
}

.lightbox__info button {
  padding: 0;
  color: white;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: 32px;
}

.lightbox__info button.is-liked {
  color: #e49b8e;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 16px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 390px;
  margin: auto;
  padding: 14px 17px;
  color: white;
  border-radius: 14px;
  background: var(--olive);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 0.35s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast span {
  color: var(--rose-light);
  font-family: var(--serif);
  font-size: 26px;
}

.toast p {
  margin: 0;
  font-size: 9px;
}

@keyframes heroIn {
  from { opacity: 0; transform: scale(1.04); }
}

@keyframes livePulse {
  50% { box-shadow: 0 0 0 7px rgba(183, 114, 101, 0); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px); }
}

@keyframes newPolaroid {
  0% {
    opacity: 0;
    transform: translateY(-35px) rotate(-6deg) scale(0.92);
  }
  55% {
    opacity: 1;
    transform: translateY(3px) rotate(1deg) scale(1.02);
  }
}

@keyframes sheetUp {
  from { opacity: 0; transform: translateY(100%); }
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
}

@keyframes wave {
  to { height: 34px; }
}

@media (min-width: 760px) {
  .app-header {
    padding-right: 30px;
    padding-left: 30px;
  }

  .event-hero {
    margin: 18px 24px 0;
    border-radius: 24px;
  }

  .quick-share {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: center;
    gap: 35px;
    max-width: 1000px;
    margin: -48px auto 0;
    padding: 24px;
    border-radius: 20px;
  }

  .quick-share__copy {
    padding-left: 13px;
    text-align: left;
  }

  .quick-share h2 {
    font-size: 31px;
  }

  .quick-actions {
    grid-template-columns: 1.15fr 0.85fr;
    margin: 0;
  }

  .album-section {
    padding-right: 30px;
    padding-left: 30px;
  }

  .gallery {
    columns: 4;
    column-gap: 24px;
    padding: 18px 12px;
  }

  .media-card {
    margin-bottom: 29px;
    padding: 10px 10px 16px;
  }

  .media-card__image {
    height: 220px;
  }

  .media-card--tall .media-card__image {
    height: 310px;
  }

  .media-card--wide .media-card__image,
  .media-card--hero .media-card__image {
    height: 245px;
  }

  .media-card::after {
    font-size: 23px;
  }

  .play-badge {
    top: 100px;
  }

  .sheet {
    margin: auto;
    border-radius: 24px;
  }

  .sheet__panel {
    padding: 15px 32px 32px;
  }
}

@media (min-width: 1100px) {
  .event-hero {
    height: 600px;
  }

  .album-section {
    padding-top: 105px;
  }
}

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