.album-popup {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #555;
  border-radius: 4px;
  background: #111;
  color: #fff;
  box-shadow: 0 24px 100px #0009;
}
.album-popup::backdrop { background: #000c; backdrop-filter: blur(6px); }
body.album-popup-open { overflow: hidden; }
/* Native dialogs sit above the document's custom cursor, regardless of z-index. */
body.album-popup-open #cursor { display: none !important; }
.album-popup,
.album-popup *,
.album-popup::backdrop { cursor: auto !important; }
.album-popup .album-popup-link,
.album-popup .album-popup-link *,
.album-popup .album-popup-close { cursor: pointer !important; }
.album-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: 1px solid #777;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font: 30px/1 Arial, sans-serif;
  cursor: pointer;
  z-index: 1;
}
.album-popup-link, .album-popup-link:hover { display: block; color: #fff; text-decoration: none; }
.album-popup-link img { display: block; width: 100%; height: auto; }
.album-popup-caption { padding: 22px 24px 26px; text-align: center; }
.album-popup-eyebrow { font-size: 10px; letter-spacing: 3px; color: #bbb; }
.album-popup-caption h2 { margin: 10px 0 18px; font-size: clamp(22px, 5vw, 28px); }
.album-popup-cta { display: block; padding: 12px 20px; border: 1px solid #ddd; font-size: 15px; }
.album-popup-link:hover .album-popup-cta { background: #fff; color: #111; }
.album-popup-close:focus-visible, .album-popup-link:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
@media (max-height: 650px) {
  .album-popup { width: min(360px, calc(100vw - 32px)); }
  .album-popup-link img { max-height: 55dvh; object-fit: contain; }
  .album-popup-caption { padding: 12px 18px; }
  .album-popup-caption h2 { margin: 6px 0 12px; }
}
