#zp-photobooks[data-pb-route^="model-"] {
  --pb-model-wash: #f5edf4;
  --pb-model-tint: #f7f1eb;
}

#zp-photobooks[data-pb-route^="model-"] .pb-product-stage {
  overflow: clip;
}

#zp-photobooks[data-pb-route^="model-"] .pb-product-showcase .pb-product-stage .pb-product-photo a {
  padding: 0;
  aspect-ratio: 6 / 5;
}

#zp-photobooks[data-pb-route^="model-"] .pb-product-showcase .pb-product-stage .pb-product-photo img {
  object-fit: cover;
}

#zp-photobooks :is(.pb-model-story,.pb-model-preflight) a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  color: var(--pb-accent);
  text-underline-offset: 4px;
}

#zp-photobooks[data-pb-route^="model-"] .pb-quick-dialog .pb-book-page-label {
  margin-bottom: 10px;
}

#zp-photobooks[data-pb-route^="model-"] .pb-quick-dialog [data-book-thumbnails] {
  display: flex;
  justify-content: safe center;
  flex-wrap: wrap;
  overflow: visible;
  gap: 8px;
  margin: 0 0 18px;
  padding: 4px;
}

#zp-photobooks[data-pb-route^="model-"] [data-book-thumbnails] button {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 clamp(48px, 14vw, 74px);
  height: clamp(44px, 12vw, 60px);
  padding: 3px;
  border: 1px solid var(--pb-line);
  background: #f9f6fa;
}

#zp-photobooks[data-pb-route^="model-"] [data-book-thumbnails] button[aria-pressed="true"] {
  border-color: var(--pb-accent);
  box-shadow: inset 0 0 0 1px var(--pb-accent);
}

#zp-photobooks[data-pb-route^="model-"] [data-book-thumbnails] .pb-book-art {
  width: min(100%, calc(39px * var(--pb-book-ratio)));
  border-radius: 2px;
  font-size: 0;
  pointer-events: none;
}

#zp-photobooks[data-pb-route^="model-"] [data-book-thumbnails] .pb-book-art :is(.pb-book-art-title,.pb-book-art-caption,.pb-book-frame-empty) {
  display: none;
}

#zp-photobooks .pb-model-story {
  display: grid;
  justify-items: center;
  text-align: center;
  background: #fff;
  margin-block: clamp(32px, 5vw, 72px);
  padding: clamp(20px,4vw,46px);
  scroll-margin-top: 90px;
}

#zp-photobooks .pb-model-story figure {
  width: min(100%,850px);
  min-width: 0;
  margin: 0;
}

#zp-photobooks .pb-model-story figure img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 13px rgb(44 32 42 / 16%));
}

#zp-photobooks .pb-model-story > .pb-model-story-copy {
  padding-top: clamp(17px,3vw,31px);
}

#zp-photobooks :is(.pb-model-story,.pb-model-print-specs,.pb-model-closeups,.pb-model-templates) h2 {
  text-wrap: balance;
}

#zp-photobooks .pb-model-story p {
  max-width: 49ch;
  margin: 12px auto 6px;
}

#zp-photobooks .pb-model-story-copy .pb-button {
  margin: 12px 0 0;
  text-decoration: none;
  color: #fff;
  border-radius: 999px;
}

#zp-photobooks .pb-model-closeups .pb-photo-features article {
  grid-template-columns: minmax(0,1fr);
  background: #fff;
  overflow: visible;
}

#zp-photobooks .pb-model-closeups .pb-photo-features article img {
  display: block;
  width: 100%;
  height: clamp(160px, 24vw, 290px);
  min-height: 0;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgb(44 32 42 / 16%));
}

#zp-photobooks .pb-model-variant-table { margin-top: 20px; }
#zp-photobooks .pb-model-variant-table > summary { padding-block: 20px; }
#zp-photobooks .pb-model-variant-table > summary > span { font-size: clamp(1.1rem,2.3vw,1.3rem); }
#zp-photobooks .pb-model-variant-table > summary small { font-size: 1rem; }

#zp-photobooks .pb-model-services { margin-block: clamp(42px,7vw,88px); }
#zp-photobooks .pb-model-services h2 {
  margin: 0 0 22px;
  color: var(--pb-accent);
  font-size: clamp(1.65rem,3.6vw,2.4rem);
  font-weight: 500;
  text-align: center;
}
#zp-photobooks .pb-model-services .pb-disclosure {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--pb-line);
  border-radius: 0;
  background: #fff;
}
#zp-photobooks .pb-model-services .pb-disclosure:last-child { border-bottom: 1px solid var(--pb-line); }
#zp-photobooks .pb-model-services summary { min-height: 61px; padding-inline: 0 5px; }
#zp-photobooks .pb-model-services summary > span {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1.8fr);
  align-items: baseline;
  gap: 16px;
  width: 100%;
  font-size: 1.125rem;
  font-weight: 500;
}
#zp-photobooks .pb-model-services summary small { margin: 0; font-size: .94rem; font-weight: 400; }
#zp-photobooks .pb-model-services .pb-disclosure-body { padding-inline: 0; }
#zp-photobooks .pb-model-services .pb-disclosure-body a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 5px;
  color: var(--pb-accent);
}

#zp-photobooks .pb-model-print-specs .pb-model-specs {
  grid-template-columns: repeat(4,minmax(0,1fr));
  max-width: none;
}

#zp-photobooks .pb-model-print-specs .pb-model-specs > div {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--pb-model-wash);
}

#zp-photobooks .pb-model-print-specs .pb-model-specs dd {
  margin: 4px 0 0;
}
#zp-photobooks .pb-model-template-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  align-items: start;
  gap: clamp(12px, 2.2vw, 30px);
}

#zp-photobooks .pb-model-template {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: var(--pb-ink);
  text-decoration: none;
  border-radius: 12px;
}

#zp-photobooks .pb-model-template figure {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: 0 0 8px;
  background: #fff;
}

#zp-photobooks .pb-model-template figure img {
  display: block;
  width: 78%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 7px 8px rgb(36 24 43 / 0.19));
}

#zp-photobooks .pb-model-template strong {
  font-size: clamp(1.0625rem, 1.8vw, 1.35rem);
}

#zp-photobooks .pb-model-template > span {
  color: var(--pb-muted);
}

#zp-photobooks .pb-model-template .pb-model-template-action {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--pb-accent);
}

#zp-photobooks .pb-model-all-themes {
  margin-top: 18px;
}

#zp-photobooks :is(.pb-model-preflight,.pb-model-finish) {
  margin-block: clamp(36px, 6vw, 82px) 16px;
  background: #fff;
}

#zp-photobooks .pb-model-finish:has(.pb-model-sizes > a:nth-child(2):last-child) .pb-model-sizes {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

#zp-photobooks :is(.pb-model-preflight,.pb-model-finish) h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.5rem);
  margin: 0 0 clamp(20px, 3.1vw, 35px);
  text-align: center;
  text-wrap: balance;
}

#zp-photobooks :is(.pb-model-preflight-steps,.pb-model-sizes) {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: clamp(12px,2vw,23px);
}

#zp-photobooks .pb-model-preflight-steps article {
  padding: clamp(15px,2.4vw,26px);
  border-radius: 12px;
  background: #f7f6f4;
}

#zp-photobooks .pb-model-preflight-steps img {
  width: clamp(65px,9vw,92px);
  height: auto;
  display: block;
  margin-bottom: 12px;
}

#zp-photobooks .pb-model-preflight-steps p { margin: 6px 0 0; line-height: 1.46; }
#zp-photobooks .pb-model-preflight > .pb-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  margin-top: 18px;
  border-radius: 999px;
  color: #fff;
}

#zp-photobooks .pb-model-sizes a {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 11px;
  min-width: 0;
  color: var(--pb-ink);
}

#zp-photobooks .pb-model-sizes a:hover span { text-decoration: underline; }
#zp-photobooks .pb-model-sizes img {
  display: block; width: 100%; height: auto; max-height: 290px; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 12px;
}

#zp-photobooks .pb-model-all-sizes {
  display: flex; justify-content: center; align-items: center; min-height: 44px; margin: 18px auto 0; width: fit-content;
  color: var(--pb-ink); text-decoration: underline; text-underline-offset: .24em;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #zp-photobooks .pb-model-template figure img {
    transition: transform 220ms ease;
  }

  #zp-photobooks .pb-model-template:hover figure img {
    transform: translateY(-4px);
  }
}

@media (max-width: 900px) {
  #zp-photobooks .pb-model-print-specs .pb-model-specs {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 600px) {
  #zp-photobooks .pb-model-story { padding-inline: 0; }
  #zp-photobooks .pb-model-services summary > span { grid-template-columns: minmax(0,1fr); gap: 2px; }
  #zp-photobooks .pb-model-preflight-steps { grid-template-columns: minmax(0,1fr); }
  #zp-photobooks :is(.pb-model-sizes,.pb-model-template-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
