@page {
  size: A4;
  margin: 0;
}

@media print {
  html,
  body {
    background: #fff !important;
  }

  .controls,
  dialog,
  .primary {
    display: none !important;
  }

  .scene {
    width: 210mm;
    min-height: 297mm;
    height: auto;
    padding: 15mm;
    break-after: page;
    page-break-after: always;
    overflow: hidden;
  }

  .scene:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .water {
    animation: none;
  }

  .cover {
    color: #30231d;
    background: linear-gradient(#f4eadac7, #efe0cbd4),
      url("./assets/paper-warm.jpg") center / cover;
  }

  .cover-photo,
  .ending-photo {
    width: 68mm;
    max-height: 105mm;
    margin: 8mm 0;
  }

  .gallery {
    display: block;
    padding-top: 15mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .film {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6mm;
    width: 100%;
    overflow: visible;
    padding: 6mm 0;
  }

  .film button {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    flex: none;
  }

  .ticket .card {
    box-shadow: none;
  }
}
