#zp-photobooks .pb-theme-cover-shelf {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: clamp(16px, 2vw, 29px);
  margin-bottom: clamp(38px, 7vw, 92px);
}

#zp-photobooks .pb-theme-shelf-cover {
  display: grid;
  align-content: start;
  gap: 5px;
  border-radius: 12px;
  color: var(--pb-ink);
  text-decoration: none;
}

#zp-photobooks .pb-theme-shelf-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 6px 6px rgb(38 27 33 / .16));
}

#zp-photobooks .pb-theme-shelf-cover span {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding-inline: 5px;
  font-weight: 700;
}

#zp-photobooks .pb-theme-shelf-cover svg {
  flex: none;
  color: var(--pb-accent);
}

#zp-photobooks .pb-theme-editorial {
  padding: clamp(32px,6vw,80px) clamp(4px,4vw,62px);
  background: #f3f1f6;
  box-shadow: 0 0 0 100vmax #f3f1f6;
  clip-path: inset(0 -100vmax);
}
#zp-photobooks .pb-theme-editorial > header { text-align: center; margin: 0 auto clamp(36px,7vw,90px); max-width: 54ch; }
#zp-photobooks .pb-theme-editorial > header h2 {
  font-size: clamp(1.8rem,4.1vw,3.35rem); line-height: 1.1; text-wrap: balance;
}
#zp-photobooks .pb-theme-editorial > header p { margin: 14px auto 0; color: var(--pb-muted); }
#zp-photobooks .pb-theme-index-family {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  grid-template-areas: "art copy";
  gap: clamp(22px,6vw,82px);
  align-items: center;
  scroll-margin-top: 95px;
}
#zp-photobooks .pb-theme-index-family + .pb-theme-index-family { margin-top: clamp(46px,8vw,110px); }
#zp-photobooks .pb-theme-index-family:nth-of-type(even) { grid-template-areas: "copy art"; }
#zp-photobooks .pb-theme-index-family > div { grid-area: copy; min-width: 0; }
#zp-photobooks .pb-theme-index-family figure { grid-area: art; margin: 0; min-width: 0; }
#zp-photobooks .pb-theme-index-family figure img {
  display: block; width: min(94%,480px); height: auto; max-height: 340px; margin: 0 auto; object-fit: contain;
  filter: drop-shadow(0 12px 13px rgb(39 25 51 / .19));
}
#zp-photobooks .pb-theme-index-family h3 { font-size: clamp(1.5rem,3.1vw,2.45rem); line-height: 1.15; }
#zp-photobooks .pb-theme-index-family p { margin: 10px 0 13px; color: var(--pb-muted); }
#zp-photobooks .pb-theme-index-topics {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  column-gap: clamp(10px, 2vw, 24px);
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

#zp-photobooks .pb-theme-index-topics li {
  min-width: 0;
  border-bottom: 1px solid var(--pb-line);
}

#zp-photobooks .pb-theme-index-topics a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 44px;
  padding-block: 6px;
  color: var(--pb-ink);
  text-decoration: none;
}

#zp-photobooks .pb-theme-index-topics svg {
  flex: none;
  color: var(--pb-accent);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #zp-photobooks .pb-theme-shelf-cover img {
    transition: transform 200ms ease;
  }

  #zp-photobooks .pb-theme-shelf-cover:hover img {
    transform: translateY(-3px);
  }
}


@media (max-width: 610px) {
  #zp-photobooks .pb-theme-cover-shelf { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #zp-photobooks .pb-theme-index-family,
  #zp-photobooks .pb-theme-index-family:nth-of-type(even) {
    grid-template-columns: minmax(0,1fr);
    grid-template-areas: "art" "copy";
  }
  #zp-photobooks .pb-theme-index-family figure img { max-height: 235px; }
}
@media (min-width: 611px) and (max-width: 800px) {
  #zp-photobooks .pb-theme-cover-shelf { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
