:root {
  --ink: #16231d;
  --muted: #68736d;
  --paper: #fdfcf9;
  --ivory: #f1eee6;
  --green: #365847;
  --green-deep: #17372c;
  --burgundy: #7d3c48;
  --gold: #b99655;
  --line: rgba(22, 35, 29, 0.13);
  --white: #fff;
  --shadow: 0 16px 44px rgba(17, 33, 26, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: 80px 1fr 90px auto;
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 58px);
  color: var(--ink);
  background: rgba(253, 252, 249, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.monogram {
  width: 52px;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.monogram span {
  color: var(--burgundy);
  font-style: italic;
}

.site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 38px);
}

.site-header nav a,
.header-rsvp {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.header-rsvp {
  justify-self: end;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--burgundy);
}

.nav-toggle {
  display: none;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  grid-area: 1 / 1;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.site-header.is-nav-open .nav-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  padding: 150px clamp(24px, 7vw, 108px) 70px;
  color: var(--white);
  background-image:
    linear-gradient(180deg, rgba(8, 18, 14, 0.08) 20%, rgba(8, 18, 14, 0.82) 100%),
    url("/static/sala-weselna.png");
  background-position: center;
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding-bottom: 88px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker.light {
  color: #f3dcb7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(58px, 10vw, 126px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.hero h1 span {
  color: #e8cca0;
  font-style: italic;
}

.hero-date {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.2vw, 28px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.button-primary {
  color: var(--white);
  background: var(--green);
}

.button-glass {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.54);
}

.button-gold {
  color: #182219;
  background: #d8bd84;
}

.hero-facts {
  position: absolute;
  z-index: 1;
  right: clamp(24px, 7vw, 108px);
  bottom: 44px;
  display: flex;
  gap: 1px;
}

.hero-facts div {
  width: 140px;
  padding: 16px 20px;
  background: rgba(14, 36, 27, 0.78);
  backdrop-filter: blur(12px);
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  margin-bottom: 5px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
}

.hero-facts span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-transform: uppercase;
}

.section {
  padding: 92px clamp(22px, 7vw, 108px);
}

.section-tint {
  background: var(--ivory);
}

.countdown-band {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 60px;
  padding: 34px clamp(22px, 7vw, 108px);
  color: var(--white);
  background: var(--burgundy);
}

.countdown-band .kicker {
  margin-bottom: 6px;
}

.countdown-band h2 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.countdown div {
  padding: 8px 22px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

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

.countdown strong {
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
}

.countdown span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.opening {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: end;
  gap: 70px;
}

.opening h2,
.section-title h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: 0;
}

.opening-note,
.album-heading > p,
.seating-intro > p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.schedule {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
}

.schedule-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.schedule-list li {
  display: grid;
  grid-template-columns: 64px 20px 1fr;
  gap: 17px;
  min-height: 84px;
}

.schedule-list time {
  padding-top: 3px;
  color: var(--burgundy);
  font-weight: 900;
}

.schedule-list > li > span {
  position: relative;
  width: 11px;
  height: 11px;
  margin-top: 5px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--ivory);
}

.schedule-list > li > span::after {
  position: absolute;
  top: 13px;
  left: 3px;
  width: 1px;
  height: 64px;
  content: "";
  background: rgba(185, 150, 85, 0.5);
}

.schedule-list li:last-child > span::after {
  display: none;
}

.schedule-list strong,
.schedule-list small,
.schedule-list .dynamic-title,
.schedule-list .dynamic-description {
  display: block;
}

.schedule-list strong,
.schedule-list .dynamic-title {
  margin-bottom: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 400;
}

.schedule-list small,
.schedule-list .dynamic-description {
  color: var(--muted);
  line-height: 1.4;
}

.dynamic-title > :first-child,
.dynamic-description > :first-child {
  margin-top: 0;
}

.dynamic-title > :last-child,
.dynamic-description > :last-child {
  margin-bottom: 0;
}

.menu-section .section-title {
  margin-bottom: 42px;
}

.menu-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.menu-layout article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  min-height: 220px;
  padding: 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.menu-layout article > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 24px;
}

.menu-layout small {
  color: var(--burgundy);
  font-weight: 900;
  text-transform: uppercase;
}

.menu-layout h3,
.menu-layout .dynamic-title {
  margin: 10px 0;
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: 400;
}

.menu-layout p,
.menu-layout .dynamic-description {
  color: var(--muted);
  line-height: 1.65;
}

.section-dark {
  color: var(--white);
  background: var(--green-deep);
}

.seating {
  display: grid;
  grid-template-columns: minmax(290px, 0.7fr) minmax(570px, 1.3fr);
  gap: clamp(40px, 6vw, 90px);
}

.seating-intro {
  align-self: start;
  position: sticky;
  top: 105px;
}

.seating-intro > p {
  color: rgba(255, 255, 255, 0.65);
}

.lookup-form {
  display: grid;
  gap: 15px;
  margin-top: 30px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(185, 150, 85, 0.2);
}

.room-wrap {
  min-width: 0;
  padding: 24px;
  color: var(--ink);
  background: #ede9df;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
}

.room-label {
  margin: 16px auto 4px;
  color: #6c746f;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.room-plan {
  position: relative;
  aspect-ratio: 1.04;
  min-height: 540px;
  overflow: visible;
  background:
    linear-gradient(rgba(22, 35, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 35, 29, 0.035) 1px, transparent 1px),
    #f7f3ea;
  background-size: 44px 44px;
  border: 1px solid rgba(22, 35, 29, 0.14);
  border-radius: 7px;
}

.room-item {
  position: relative;
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%) rotate(var(--rotation));
  transition: background 180ms ease, box-shadow 180ms ease;
}

.room-item-label {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  align-content: center;
  place-content: center;
  padding: 6px;
  text-align: center;
  background: var(--white);
  border: 3px solid #121915;
  box-shadow: 0 8px 18px rgba(39, 49, 44, 0.13);
}

.room-item-round .room-item-label {
  border-radius: 50%;
}

.room-item-rectangle .room-item-label {
  border-radius: 2px;
}

.room-item-diamond .room-item-label {
  transform: rotate(45deg);
}

.room-item-diamond .room-item-label strong {
  transform: rotate(-45deg);
}

.room-item-label small,
.room-item-label strong {
  display: block;
}

.room-item-label small {
  color: #7b817c;
  font-size: 9px;
  text-transform: uppercase;
}

.room-item-label strong {
  font-family: Georgia, serif;
  font-size: clamp(13px, 1.6vw, 24px);
  font-weight: 400;
  line-height: 1.05;
}

.seat {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: clamp(20px, 2.2vw, 28px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: #68716c;
  background: #d6d0c4;
  border: 2px solid #ede9df;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--seat-radius) * -1)) rotate(calc(var(--angle) * -1));
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.room-item.is-mine {
  background: rgba(125, 60, 72, 0.1);
  box-shadow: 0 0 0 3px rgba(125, 60, 72, 0.38);
}

.seat.is-mine {
  z-index: 2;
  color: var(--white);
  background: var(--burgundy);
  border-color: #f0d8dc;
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(calc(var(--seat-radius) * -1)) rotate(calc(var(--angle) * -1)) scale(1.32);
  box-shadow: 0 0 0 7px rgba(125, 60, 72, 0.2);
  animation: pulse-seat 1.5s ease-in-out infinite;
}

@keyframes pulse-seat {
  50% { box-shadow: 0 0 0 12px rgba(125, 60, 72, 0.05); }
}

.form-message {
  display: none;
  padding: 13px 15px;
  color: var(--green-deep);
  background: #dce9df;
  border-left: 4px solid #6c9977;
  border-radius: 4px;
  line-height: 1.5;
}

.form-message.is-visible {
  display: block;
}

.form-message.error {
  color: #602e37;
  background: #f0dadd;
  border-color: var(--burgundy);
}

.form-message.waiting {
  color: #614e2d;
  background: #efe4cb;
  border-color: var(--gold);
}

.rsvp-section .section-title {
  max-width: 700px;
  margin-bottom: 36px;
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 900px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.rsvp-form input,
.rsvp-form textarea {
  border-color: var(--line);
  background: #fbfaf7;
}

.travel .section-title,
.gifts .section-title {
  margin-bottom: 40px;
}

.travel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.travel-grid article {
  min-height: 260px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 26px;
  padding: 38px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.place-number {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 28px;
}

.travel-grid small,
.list-label {
  color: var(--burgundy);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.travel-grid h3 {
  margin: 10px 0;
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
}

.travel-grid p {
  color: var(--muted);
  margin-bottom: 15px;
}

.travel-grid img {
  width: 100%;
  aspect-ratio: 16 / 5.2;
  display: block;
  object-fit: cover;
  border-radius: 7px;
  filter: brightness(0.76) saturate(0.9);
}

.route-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 24px;
  color: var(--green);
  padding: 12px 16px;
  color: var(--white);
  background: var(--green);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.gift-grid article {
  min-height: 250px;
  padding: 34px;
  background: var(--paper);
}

.gift-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 22px;
}

.gift-icon.no-flowers {
  background: var(--green);
}

.gift-grid h3,
.gift-grid .dynamic-title {
  margin-bottom: 10px;
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.gift-grid p,
.gift-grid .dynamic-description,
.interactive-heading > p {
  color: var(--muted);
  line-height: 1.65;
}

.interactive-heading {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 36px;
}

.music .interactive-heading > p {
  color: rgba(255, 255, 255, 0.66);
}

.interactive-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 1.15fr);
  gap: 54px;
}

.dark-form,
.light-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-self: start;
  padding: 28px;
  border-radius: 8px;
}

.dark-form {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.dark-form input,
.dark-form textarea,
.light-form input,
.light-form textarea {
  border-color: var(--line);
}

.light-form {
  background: var(--ivory);
  border: 1px solid var(--line);
}

.music-list,
.guestbook-list {
  display: grid;
  gap: 10px;
}

.list-label {
  margin-bottom: 14px;
  color: #e8cca0;
}

.music-list article {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.music-list span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.guestbook-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guestbook-list article {
  min-height: 150px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.guestbook-list p {
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
}

.guestbook-list strong {
  color: var(--burgundy);
  font-size: 12px;
}

.rsvp-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.rsvp-form legend {
  width: 100%;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 800;
}

.radio-choice {
  position: relative;
}

.radio-choice input {
  position: absolute;
  opacity: 0;
}

.radio-choice span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.radio-choice input:checked + span {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.wide {
  grid-column: 1 / -1;
}

.album-heading {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 60px;
  margin-bottom: 36px;
}

.upload-panel {
  max-width: 900px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.upload-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.upload-fields input {
  border-color: var(--line);
}

.dropzone {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 28px;
  text-align: center;
  border: 1px dashed #9ca69f;
  border-radius: 6px;
  cursor: pointer;
}

.dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.dropzone strong,
.dropzone small {
  display: block;
}

.dropzone small {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 400;
}

.upload-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: var(--white);
  background: var(--burgundy);
  border-radius: 50%;
  font-size: 24px;
}

.file-preview {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.file-preview div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  background: var(--ivory);
  border-radius: 4px;
  font-size: 12px;
}

.file-preview span {
  color: var(--muted);
}

.upload-panel > .form-message {
  margin-top: 14px;
}

.gallery-unlock {
  max-width: 900px;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.55fr) auto;
  align-items: end;
  gap: 18px;
  margin-top: 28px;
  padding: 26px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
}

.gallery-unlock h3 {
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.gallery-unlock p {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-unlock .kicker {
  margin-bottom: 5px;
  color: var(--burgundy);
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
}

.gallery-unlock .form-message {
  grid-column: 1 / -1;
}

.gallery-unlock input {
  border-color: var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 50px;
  scroll-margin-top: 92px;
}

.gallery:focus {
  outline: none;
}

.gallery figure {
  position: relative;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  background: #ddd;
  border-radius: 5px;
  cursor: zoom-in;
}

.gallery-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding-left: 4px;
  color: var(--white);
  background: rgba(16, 41, 31, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-size: 18px;
  pointer-events: none;
}

.gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 24px 12px 10px;
  color: var(--white);
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  font-size: 12px;
}

.gallery-empty {
  grid-column: 1 / -1;
  padding: 40px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
}

.photo-lightbox {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  color: var(--white);
  background: #0d1511;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
}

.photo-lightbox::backdrop {
  background: rgba(6, 12, 9, 0.88);
  backdrop-filter: blur(6px);
}

.photo-lightbox .lightbox-media img {
  width: 100%;
  max-height: calc(100vh - 100px);
  display: block;
  object-fit: contain;
}

.photo-lightbox .lightbox-media video {
  width: 100%;
  max-height: calc(100vh - 100px);
  display: block;
  background: #050806;
}

.gallery-unlock[hidden] {
  display: none;
}

.photo-lightbox p {
  margin: 0;
  padding: 14px 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--white);
  background: rgba(0, 0, 0, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 27px;
  cursor: pointer;
}

.thanks-section {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  padding-top: 110px;
  padding-bottom: 110px;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background-image:
    linear-gradient(rgba(13, 36, 27, 0.88), rgba(13, 36, 27, 0.94)),
    url("/static/sala-weselna.png");
  background-position: center;
  background-size: cover;
}

.thanks-section::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(232, 204, 160, 0.35);
  pointer-events: none;
}

.thanks-section > * {
  position: relative;
  z-index: 1;
}

.thanks-section h2 {
  max-width: 900px;
  margin: 0 auto 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 400;
  line-height: 1.05;
}

.thanks-message {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.75;
  white-space: pre-line;
}

.thanks-signature {
  margin: 28px 0 0;
  color: #e8cca0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-style: italic;
}

.thanks-ornament {
  width: min(360px, 70vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
  color: #e8cca0;
}

.thanks-ornament span {
  height: 1px;
  background: rgba(232, 204, 160, 0.55);
}

.thanks-ornament b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(22px, 7vw, 108px);
  color: rgba(255, 255, 255, 0.76);
  background: #10291f;
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer > a:last-child {
  color: rgba(255, 255, 255, 0.5);
}

.footer-mark {
  color: var(--white);
}

.dj-page {
  min-height: 100vh;
  background: #10291f;
}

.dj-board {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0;
}

.dj-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  color: var(--white);
}

.dj-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 400;
  line-height: 0.95;
}

.dj-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
}

.dj-actions span,
.dj-actions a {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 10px 14px;
  border-radius: 4px;
}

.dj-actions span {
  color: #f3dcb7;
  border: 1px solid rgba(243, 220, 183, 0.35);
}

.dj-actions a {
  color: var(--ink);
  background: #f3dcb7;
  text-decoration: none;
}

.dj-list {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.dj-list-head,
.dj-request {
  display: grid;
  grid-template-columns: 170px minmax(250px, 1.4fr) minmax(160px, 0.8fr) minmax(260px, 1fr);
  gap: 18px;
  align-items: center;
}

.dj-list-head {
  padding: 14px 18px;
  color: var(--muted);
  background: #ebe6da;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.dj-request {
  padding: 18px;
  border-top: 1px solid var(--line);
}

.dj-request time {
  color: var(--burgundy);
  font-weight: 900;
}

.dj-song strong,
.dj-song span {
  display: block;
}

.dj-song strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.dj-song span,
.dj-guest {
  color: var(--muted);
  font-weight: 800;
}

.dj-request p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.dj-empty {
  padding: 42px;
  color: var(--ink);
  background: var(--paper);
  border-radius: 8px;
}

.dj-empty h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

@media (max-width: 1050px) {
  .seating {
    grid-template-columns: 1fr;
  }

  .seating-intro {
    position: static;
  }

  .lookup-form {
    grid-template-columns: 1fr 1fr;
  }

  .lookup-form .button,
  .lookup-form .form-message {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .site-header {
    position: fixed;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    color: var(--white);
    background: rgba(14, 36, 27, 0.62);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .site-header nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 10px;
    color: var(--ink);
    background: rgba(253, 252, 249, 0.98);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-header.is-nav-open nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-header nav a {
    min-height: 42px;
    display: grid;
    place-items: center;
    padding: 9px 10px;
    border-radius: 4px;
    background: #f5f1e8;
    text-align: center;
  }

  .header-rsvp {
    display: none;
  }

  .nav-toggle {
    display: grid;
    justify-self: end;
  }

  .hero {
    min-height: 86vh;
    padding-top: 110px;
    background-position: 60% center;
  }

  .hero-content {
    padding-bottom: 120px;
  }

  .hero-facts {
    left: 22px;
    right: 22px;
    bottom: 24px;
  }

  .hero-facts div {
    width: auto;
    flex: 1;
    padding: 12px;
  }

  .opening,
  .schedule,
  .album-heading,
  .countdown-band,
  .interactive-heading,
  .interactive-layout,
  .gallery-unlock {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .countdown {
    border-left: 0;
  }

  .room-plan {
    min-height: 620px;
  }

  .menu-layout,
  .rsvp-form,
  .travel-grid,
  .gift-grid {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: auto;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dj-header,
  .dj-list-head,
  .dj-request {
    grid-template-columns: 1fr;
  }

  .dj-header {
    display: grid;
    align-items: start;
  }

  .dj-actions {
    justify-content: flex-start;
  }

  .dj-list-head {
    display: none;
  }

  .dj-request {
    gap: 10px;
    align-items: start;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 68px 18px;
  }

  .hero {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-facts strong {
    font-size: 18px;
  }

  .hero-facts span {
    font-size: 9px;
  }

  .lookup-form,
  .upload-fields,
  .dark-form,
  .light-form,
  .guestbook-list {
    grid-template-columns: 1fr;
  }

  .countdown-band {
    padding: 28px 18px;
  }

  .countdown div {
    padding: 7px 5px;
  }

  .countdown strong {
    font-size: 28px;
  }

  .travel-grid article {
    padding: 26px 18px;
  }

  .room-wrap {
    padding: 12px 7px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .room-plan {
    width: 760px;
    min-height: 780px;
  }

  .rsvp-form,
  .upload-panel {
    padding: 20px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .dj-board {
    width: min(100% - 24px, 1180px);
    padding: 26px 0;
  }

  .dj-request {
    padding: 16px;
  }

  .dj-song strong {
    font-size: 22px;
  }
}
