.home-film {
  margin: 0;
  overflow: hidden;
}
.album-spread {
  position: relative;
  isolation: isolate;
  aspect-ratio: var(--album-ratio, 2 / 1);
}
.album-spread::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/assets/photo-album.webp') center / 100% 100% no-repeat;
  /* Follow the cover outline so the site's own paper shows around the book. */
  clip-path: polygon(0.7% 9%, 1.1% 7%, 2.2% 5.8%, 48% 5%, 50% 5.6%, 52% 4.9%, 97.8% 4.9%, 98.8% 6%, 99.3% 8%, 99.3% 91.8%, 98.9% 93.6%, 97.6% 94.4%, 52% 94.4%, 50% 94%, 48% 94.6%, 2.2% 94.2%, 1.1% 93.5%, 0.7% 91.5%);
}
.album-map, .album-photo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.album-map {
  left: 7%;
  width: 35%;
  transform: translateY(-50%) rotate(-3deg);
  opacity: .82;
  mix-blend-mode: multiply;
}
.album-map img {
  width: 100%;
  display: block;
  height: auto;
  filter: sepia(.75) saturate(.65);
  -webkit-mask-image: radial-gradient(ellipse farthest-corner, black 68%, transparent 97%);
  mask-image: radial-gradient(ellipse farthest-corner, black 68%, transparent 97%);
}
.album-photo {
  left: 54%;
  width: 39%;
  box-sizing: border-box;
  padding: clamp(3px,.6vw,9px);
  transform: translateY(-50%) rotate(1.4deg);
  background: #f3ecdb;
  box-shadow: 0 2px 4px #3e2c2166;
}
.album-photo::after {
  content: '';
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background:
    linear-gradient(135deg,#352d26 46%,#8b7761 49%,transparent 52%) top left,
    linear-gradient(225deg,#352d26 46%,#8b7761 49%,transparent 52%) top right,
    linear-gradient(45deg,#352d26 46%,#8b7761 49%,transparent 52%) bottom left,
    linear-gradient(315deg,#352d26 46%,#8b7761 49%,transparent 52%) bottom right;
  background-repeat: no-repeat;
  background-size: clamp(9px,1.3vw,20px) clamp(9px,1.3vw,20px);
}
@media (max-width: 600px) {
  .album-spread { width: 165%; margin-left: -65%; }
  .album-photo { left: 53%; width: 41%; }
}
.album-spread { touch-action: pan-y pinch-zoom; }
.album-pager { position: absolute; inset: 4% 1% 5%; display: flex; }
.album-pager[hidden] { display: none; }
.album-pager button {
  flex: 1; border: 0; padding: 0; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.album-pager button:focus-visible { outline: 2px solid #64523e; outline-offset: -6px; }
.album-pager button:disabled { cursor: default; }
.album-pager span {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.album-leaf {
  position: absolute; inset: 6% 1% 6% 50%; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg,#b29b78,#dfc9a3 12%,#ead9b6 85%,#cdb38e);
  transform-origin: left center;
}
