/* Desktop-only composition. The original mobile rules remain untouched. */
@media (min-width: 641px) {
  :root {
    --desktop-content: min(1280px, calc(100vw - 96px));
  }

  html,
  body {
    background: var(--surface);
  }

  #desktop-cover {
    display: none !important;
  }

  #app > main {
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
  }

  .stream-hero {
    min-height: 100vh;
    height: 100vh;
    background-color: var(--surface);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 100%;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, #090909 0%, #090909 38%, #090909d9 55%, #0909092e 78%, #0909098c 100%),
      linear-gradient(180deg, #00000014 0%, #00000024 62%, #000000d9 100%);
  }

  .hero-content {
    right: auto;
    bottom: 50%;
    left: 50%;
    width: var(--desktop-content);
    max-width: 1280px;
    padding: 0;
    transform: translate(-50%, 50%);
  }

  .hero-content > div {
    width: min(620px, 52vw);
  }

  .hero-content h1 {
    margin-top: 18px;
    font-size: clamp(3.75rem, 6.2vw, 6.8rem);
    line-height: 0.92;
  }

  .hero-content p {
    max-width: 580px;
    margin-top: 22px;
    font-size: 1.08rem;
    line-height: 1.75;
  }

  .hero-content .chip {
    padding: 7px 14px;
    font-size: 0.75rem;
  }

  .hero-meta {
    gap: 14px;
    margin-top: 18px;
  }

  .play-btn,
  .info-btn {
    min-height: 48px;
    padding-inline: 26px;
    font-size: 0.95rem;
  }

  .hero-actions {
    margin-top: 24px;
  }

  #groom-bride,
  #countdown,
  #save-date,
  #wedding-prayer,
  #our-story,
  #our-moment,
  #galleries,
  #guest-book,
  #wedding-gift {
    padding: clamp(72px, 8vw, 112px) max(48px, calc((100vw - 1280px) / 2));
  }

  #groom-bride > *,
  #countdown > *,
  #save-date > *,
  #wedding-prayer > *,
  #our-story > *,
  #our-moment > *,
  #galleries > *,
  #wedding-gift > * {
    width: 100%;
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
  }

  .section-head {
    margin-bottom: 34px;
  }

  .section-head h2 {
    margin-top: 12px;
    font-size: clamp(2.8rem, 4vw, 4.4rem);
    line-height: 1;
  }

  #groom-bride > .grid {
    gap: 28px;
  }

  .cast-card {
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
  }

  .cast-card img {
    width: 100%;
    height: clamp(380px, 42vw, 520px);
    border-radius: 12px;
    object-position: center 22%;
  }

  .cast-card h3 {
    margin-top: 18px;
    font-size: 1.45rem;
  }

  .cast-card .cast-family {
    max-width: 520px;
    font-size: 0.95rem;
  }

  .quote-band {
    min-height: 62vh;
    padding: 88px 48px;
  }

  .quote-band .container {
    width: min(900px, 80vw);
    max-width: 900px;
    padding: 0;
  }

  .quote-band p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 3.4vw, 3.65rem);
    line-height: 1.38;
  }

  .quote-band span {
    margin-top: 28px;
    font-size: 0.82rem;
  }

  #countdown .countdown-panel {
    max-width: 980px;
    gap: 32px;
    padding: 22px 0;
  }

  #countdown .countdown-item {
    padding: 22px 16px;
  }

  #countdown .countdown-item span {
    font-size: clamp(3rem, 5vw, 5rem);
  }

  #countdown .countdown-item small {
    margin-top: 12px;
    font-size: 0.72rem;
  }

  #events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .event-card {
    min-height: 310px;
    padding: 30px;
    border-radius: 18px;
  }

  .event-label {
    font-size: clamp(1.55rem, 1.8vw, 1.9rem);
  }

  .event-card h3,
  .event-card .event-time,
  .event-card .event-address {
    font-size: 1rem;
  }

  .event-card .event-place {
    margin-top: 20px;
    font-size: 1.2rem;
  }

  #timeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .story-row {
    min-height: 330px;
    padding: 24px;
  }

  .story-list h3 {
    font-size: 1.35rem;
  }

  .story-list p {
    display: block;
    overflow: visible;
    -webkit-box-orient: initial;
    -webkit-line-clamp: unset;
    font-size: 0.94rem;
  }

  #our-moment {
    background: #050505;
  }

  #our-moment > div {
    max-width: 1120px;
    border-radius: 18px;
  }

  #our-moment h3 {
    font-size: 2.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 18px;
    overflow: visible;
  }

  .gallery-grid figure {
    border-radius: 14px;
  }

  .gallery-grid img {
    aspect-ratio: 4 / 5;
  }

  #guest-book {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 48px;
    background: var(--panel);
  }

  #guest-book > .section-head {
    grid-column: 1 / -1;
    width: var(--desktop-content);
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
  }

  #guest-book > form,
  #guest-book > hr,
  #guest-book > div:not(.section-head) {
    width: 100%;
    max-width: 616px;
  }

  #guest-book > form {
    justify-self: end;
    padding: 28px;
  }

  #guest-book > hr {
    display: none;
  }

  #guest-book > div:not(.section-head) {
    justify-self: start;
  }

  .comments {
    gap: 12px;
  }

  #wedding-gift > * {
    max-width: 900px;
  }

  .gift-actions {
    gap: 14px;
  }

  .gift-toggle {
    min-height: 54px;
    font-size: 0.95rem;
  }

  .outro-scene {
    min-height: 100vh;
    background-color: var(--surface);
    background-position: right center;
    background-repeat: no-repeat;
    background-size: auto 100%;
  }

  .outro-overlay {
    background: linear-gradient(90deg, #090909 0%, #090909e6 48%, #09090940 78%, #090909bf 100%);
  }

  .outro-content {
    width: var(--desktop-content);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 0 18vh;
    text-align: left;
  }

  .outro-content h3 {
    font-size: clamp(3.6rem, 6vw, 6.5rem);
  }

  .outro-content > span {
    max-width: 560px;
    font-size: 1.05rem;
  }

  #footer {
    padding-block: 24px;
  }

  .splash-screen {
    position: fixed;
    z-index: 70;
  }

  .splash-content {
    width: min(100%, 720px);
  }

  .splash-logo {
    font-size: clamp(4rem, 8vw, 7rem);
  }

  .splash-profile-icon {
    width: 96px;
  }

  .backsound-toggle {
    right: 32px;
    bottom: 28px;
  }

  #guest-book-modal,
  #story-modal,
  #qris-modal {
    left: 0 !important;
    width: 100vw !important;
  }

  .story-modal-content {
    max-width: 720px;
  }

  .glightbox-container {
    left: 0 !important;
    width: 100vw !important;
  }
}

/* Centered desktop invitation frame, matching the compact reference composition. */
@media (min-width: 641px) {
  :root {
    --desktop-content: calc(100% - 64px);
  }

  .netflix-topbar__bar,
  .netflix-navigation {
    padding-right: 32px;
    padding-left: 32px;
  }

  #app {
    display: flex;
    justify-content: center;
    background: #000;
  }

  #app > main {
    width: min(860px, 100vw);
    max-width: 860px;
    box-shadow: 0 0 0 1px #202020;
  }

  #main {
    background: var(--surface);
  }

  .stream-hero {
    background-position: calc(50% + 40px) 54%;
    background-size: 112% auto;
  }

  .hero-overlay {
    opacity: 0.80;
  }

  .hero-content {
    right: 32px;
    bottom: 62%;
    left: 32px;
    width: auto;
    padding: 0;
    transform: translateY(50%);
  }

  .hero-content > div {
    width: min(500px, 68%);
  }

  .hero-content h1 {
    font-size: clamp(3.25rem, 5vw, 4.5rem);
  }

  .hero-content p {
    max-width: 500px;
    margin-top: 16px;
    font-size: .92rem;
    line-height: 1.65;
  }

  #groom-bride,
  #countdown,
  #save-date,
  #wedding-prayer,
  #our-story,
  #our-moment,
  #galleries,
  #guest-book,
  #wedding-gift {
    padding: 64px 32px;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head h2 {
    margin-top: 9px;
    font-size: clamp(2.35rem, 4vw, 3.25rem);
  }

  .cast-card {
    padding: 15px;
  }

  .cast-card img {
    height: 360px;
  }

  .cast-card h3 {
    margin-top: 14px;
    font-size: 1.2rem;
  }

  .cast-card .cast-family {
    font-size: .82rem;
  }

  .quote-band {
    display: flex;
    min-height: 420px;
    align-items: center;
    justify-content: center;
    padding: 64px 32px;
  }

  .quote-band .container {
    width: min(640px, 100%);
    margin: 0 auto;
    text-align: center;
  }

  .quote-band p {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    line-height: 1.65;
  }

  .quote-band span {
    display: block;
    margin-top: 22px;
    text-align: center;
  }

  #countdown .countdown-panel {
    gap: 16px;
  }

  #countdown .countdown-item {
    padding: 16px 10px;
  }

  #countdown .countdown-item span {
    font-size: clamp(2.5rem, 4vw, 3.6rem);
  }

  #events {
    gap: 16px;
  }

  .event-card {
    min-height: 280px;
    padding: 22px;
  }

  #timeline {
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 24px) / 3);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
  }

  .story-row {
    min-height: 300px;
    padding: 18px;
    scroll-snap-align: start;
  }

  .story-list h3 {
    font-size: 1.05rem;
  }

  .story-list p {
    font-size: .8rem;
  }

  .gallery-grid {
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 36px) / 4);
    grid-auto-flow: column;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
  }

  .gallery-grid figure {
    scroll-snap-align: start;
  }

  #guest-book {
    gap: 0 24px;
  }

  #guest-book > .section-head {
    width: 100%;
  }

  #guest-book > form {
    padding: 20px;
  }

  .netflix-thanks {
    padding: 24px;
  }

  .netflix-thanks__scene {
    min-height: calc(100vh - 48px);
  }

  .netflix-thanks__content {
    padding: 64px 32px;
  }

  .netflix-thanks__families {
    gap: 28px;
  }
}
