.small-screen-notice {
  display: none;
}

@media (max-width: 1366px) and (pointer: coarse) {
  html {
    height: auto;
    min-height: 100%;
    cursor: auto;
    background: #f8f8ff url("gallery/bg.jpg") center / cover fixed;
  }

  body {
    display: block !important;
    width: 100%;
    height: auto;
    min-height: 100svh;
    overflow: auto;
    color: #282e4a;
    background: transparent;
    cursor: auto;
  }

  body > :not(.small-screen-notice) {
    display: none !important;
  }

  body > .small-screen-notice {
    box-sizing: border-box;
    min-height: 100svh;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
  }

  .small-screen-polaroid {
    box-sizing: border-box;
    width: min(160px, 70vw);
    margin: 0;
    padding: 25px 13px 16px;
    background: #f7f7f1 url("gallery/polaroid-paper.png") top / 100% auto repeat-y;
    color: #282e4a;
    filter: drop-shadow(1px 4px 4px rgba(0, 0, 0, 0.5));
    transform: rotate(-2.1deg);
  }

  .small-screen-polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 35%;
    filter: sepia(0.16) saturate(0.85) contrast(0.9) brightness(1.08);
  }

  .small-screen-polaroid figcaption {
    padding-top: 17px;
    font-family: 'Caveat', cursive;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
  }

  .small-screen-copy {
    max-width: 202px;
    color: #282e4a;
    font-family: 'EB Garamond', Garamond, 'Times New Roman', serif;
    font-size: 15px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-align: center;
  }

  .small-screen-copy p { margin: 0; }
  .small-screen-copy p + p { margin-top: 1.4em; }
}
