.cover.opening-config-pending::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--paper, #f4ede6);
}

.photo-zoom-cover[hidden] { display: none; }
.cover[data-opening-style="photo_zoom"]::before,
.cover[data-opening-style="photo_zoom"] > .cover-photo,
.cover[data-opening-style="photo_zoom"] > .cover-shade,
.cover[data-opening-style="photo_zoom"] > .cover-content { display: none; }

.photo-zoom-cover {
  /* Adjust only these values to fine-tune the new cover, not the existing design. */
  --zoom-scale: 1.9;
  --zoom-duration: 3s;
  --zoom-focus-x: 50%;
  --zoom-focus-y: 40%;
  --opening-bottom: 12%;
  position: absolute;
  inset: 0;
  isolation: isolate;
  color: #fffaf6;
  letter-spacing: 0;
}

.photo-zoom-image {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 70%;
  filter: brightness(0.82) saturate(0.96);
  transform: scale(1);
  transform-origin: var(--zoom-focus-x) var(--zoom-focus-y);
  transition: transform var(--zoom-duration) cubic-bezier(0.18, 0.7, 0.16, 1);
}

.photo-zoom-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.12);
}

.photo-zoom-trigger {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fffaf6;
  cursor: pointer;
  transition: opacity 600ms ease, visibility 600ms;
}

.photo-zoom-trigger > span {
  position: absolute;
  left: 50%;
  bottom: max(var(--opening-bottom), env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: max-content;
  max-width: 90%;
  min-height: 52px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 250, 246, 0.7);
  border-radius: 999px;
  background: rgba(21, 22, 19, 0.28);
  font: 400 26px/1.1 Georgia, "Times New Roman", serif;
  text-shadow: 0 1px 8px #0009;
  animation: opening-click-nudge 1.8s ease-in-out infinite;
}

.opening-click-label { font-weight: 400; overflow-wrap: anywhere; }
.opening-click-arrow { font-family: Arial, sans-serif; font-style: normal; }
@keyframes opening-click-nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -4px); }
}
.photo-zoom-cover.is-zooming .photo-zoom-trigger > span { animation: none; }

.photo-zoom-details {
  position: absolute;
  top: 34%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  width: min(88%, 480px);
  max-height: calc(68svh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease;
  text-shadow: 0 2px 12px #0008;
}

.photo-zoom-eyebrow {
  margin: 0 0 14px;
  color: #d0aa86;
  font: 600 13px/1.3 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.photo-zoom-guest {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
  color: #f7efe9;
  font: 400 24px/1.2 Georgia, "Times New Roman", serif;
}

.photo-zoom-details .photo-zoom-names {
  margin: 0;
  color: #fffaf6;
  line-height: 0.95;
  font-weight: 400;
}

.photo-zoom-names .couple-name {
  font: 400 78px/0.95 "Moon Dance", "Brush Script MT", cursive;
}
.photo-zoom-names .ampersand {
  font: 400 38px/1 Georgia, "Times New Roman", serif;
}
.photo-zoom-names .couple-name:last-child { display: block; }

.photo-zoom-date {
  margin: 18px 0 24px;
  color: #f7efe9;
  font: 600 13px/1.4 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
}

.photo-zoom-enter {
  min-height: 44px;
  border: 1px solid #f7efe980;
  border-radius: 4px;
  padding: 10px 24px;
  background: #1116;
  color: #f7efe9;
  cursor: pointer;
}
.photo-zoom-trigger:focus-visible,
.photo-zoom-enter:focus-visible { outline: 2px solid #fffaf6; outline-offset: -6px; }
.photo-zoom-cover.is-zooming .photo-zoom-image { transform: scale(var(--zoom-scale)); }
.photo-zoom-cover.is-zooming .photo-zoom-trigger { opacity: 0; visibility: hidden; }
.photo-zoom-cover.is-ready .photo-zoom-details { opacity: 1; visibility: visible; }

@media (min-width: 768px) {
  .photo-zoom-trigger > span { font-size: 32px; }
  .photo-zoom-eyebrow { font-size: 16px; }
  .photo-zoom-guest { font-size: 34px; }
  .photo-zoom-names .couple-name { font-size: 108px; }
  .photo-zoom-names .ampersand { font-size: 48px; }
  .photo-zoom-date { font-size: 16px; }
}
@media (max-width: 360px), (max-height: 650px) {
  .photo-zoom-names .couple-name { font-size: 64px; }
  .photo-zoom-guest { font-size: 22px; }
  .photo-zoom-details { top: 39%; }
  .photo-zoom-date { margin: 14px 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-zoom-image { transition: none; }
  .photo-zoom-cover.is-zooming .photo-zoom-image { transform: none; }
  .photo-zoom-trigger, .photo-zoom-details { transition-duration: 1ms; }
  .photo-zoom-trigger > span { animation: none; }
}
@media (max-height: 500px) and (min-width: 480px) {
  .photo-zoom-details { top: 50%; max-height: calc(100svh - 32px); }
  .photo-zoom-eyebrow { font-size: 12px; margin-bottom: 8px; }
  .photo-zoom-guest { font-size: 20px; margin-bottom: 8px; }
  .photo-zoom-names .couple-name { font-size: 64px; }
  .photo-zoom-names .ampersand { font-size: 30px; }
  .photo-zoom-date { font-size: 12px; margin: 10px 0; }
}

[data-color-theme="modern_minimal"] :is(.photo-zoom-cover, .photo-zoom-trigger, .photo-zoom-guest, .photo-zoom-date, .photo-zoom-enter, .photo-zoom-details .photo-zoom-names) { color: #f8f9fa; }
[data-color-theme="modern_minimal"] .photo-zoom-eyebrow { color: #ced4da; }
[data-color-theme="modern_minimal"] .photo-zoom-trigger > span,
[data-color-theme="modern_minimal"] .photo-zoom-enter { border-color: rgba(248, 249, 250, 0.7); background: rgba(33, 37, 41, 0.4); }
[data-color-theme="modern_minimal"] :is(.photo-zoom-trigger, .photo-zoom-enter):focus-visible { outline-color: #f8f9fa; }
