#zp-photobooks:is([data-pb-route="kalendari"],[data-pb-route="katalog"]) .pb-wrap {
  width: min(1352px,100% - 40px);
}

#zp-photobooks:is([data-pb-route="kalendari"],[data-pb-route="katalog"]) .pb-cal-hero {
  display: grid;
  grid-template-columns: minmax(0,48.5%) minmax(0,1fr);
  align-items: center;
  gap: clamp(16px,1.94vw,30px);
  min-height: 490px;
  border-radius: 10px;
  background: #f9f9f9;
  overflow: clip;
}

#zp-photobooks .pb-cal-hero-art { position: relative; align-self: stretch; min-height: 490px; }
#zp-photobooks .pb-cal-hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
#zp-photobooks .pb-cal-hero-copy { padding: 24px clamp(16px,3.5vw,55px) 24px 0; }
#zp-photobooks .pb-cal-hero h1 { max-width: 19ch; font-size: clamp(1.75rem,3.875vw,3.05rem); font-weight: 500; line-height: 1.12; letter-spacing: -.02em; }
#zp-photobooks .pb-cal-hero-city { margin: 8px 0 16px; font-size: 1rem; font-weight: 400; line-height: 1.25; }
#zp-photobooks .pb-cal-hero-city a { color: var(--pb-accent); font-weight: 500; text-underline-offset: .2em; }
#zp-photobooks .pb-cal-hero-city a:hover { text-decoration: underline; }
#zp-photobooks .pb-cal-hero ul { padding-inline-start: 15px; margin: 0 0 18px; color: var(--pb-muted); font-size: .875rem; line-height: 1.25; }
#zp-photobooks .pb-cal-hero li + li { margin-top: 6px; }
#zp-photobooks .pb-cal-hero-copy .pb-button { min-height: 48px; padding-inline: 24px; border-radius: 8px; }

#zp-photobooks :is(.pb-cal-types,.pb-cal-catalog,.pb-cal-bonus,.pb-cal-personal,.pb-cal-designs,.pb-cal-prep,.pb-cal-holiday) {
  margin-block: clamp(44px,8vw,104px);
  scroll-margin: 88px;
}

#zp-photobooks :is(.pb-cal-types,.pb-cal-designs) { padding-top: 0; border: 0; }
#zp-photobooks :is(.pb-cal-types,.pb-cal-catalog,.pb-cal-personal,.pb-cal-designs) > h2 {
  margin: 0 0 clamp(23px,4vw,43px);
  font-size: clamp(1.85rem,4vw,3.15rem);
  line-height: 1.14;
  text-align: center;
  text-wrap: balance;
}

#zp-photobooks :is(.pb-cal-format-grid,.pb-cal-design-grid) {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(16px,3vw,34px);
}
#zp-photobooks :is(.pb-cal-format-grid,.pb-cal-design-grid) > a {
  color: var(--pb-ink); display: block; min-width: 0; line-height: 1.4; padding: 4px;
}
#zp-photobooks :is(.pb-cal-format-grid,.pb-cal-design-grid) h3 {
  display: flex; align-items: center; justify-content: space-between; gap: 9px;
  font-size: clamp(1.15rem,2.35vw,1.65rem); margin-top: 15px;
}
#zp-photobooks :is(.pb-cal-format-grid,.pb-cal-design-grid) h3 svg { color: var(--pb-accent); flex: none; }
#zp-photobooks :is(.pb-cal-format-grid,.pb-cal-design-grid) p { color: var(--pb-muted); margin-top: 6px; }
#zp-photobooks :is(.pb-cal-format-art,.pb-cal-design-grid > a > div) { position: relative; height: clamp(174px,32vw,316px); }
#zp-photobooks :is(.pb-cal-format-art,.pb-cal-design-grid > a > div) > :is(.pb-cal-cutout,.pb-cal-cert-art) {
  position: absolute; inset: 0; margin: auto; display: block; width: 100%; height: 100%; object-fit: contain;
}
#zp-photobooks .pb-cal-cert-art { max-width: min(95%,282px); filter: drop-shadow(0 14px 11px rgb(40 29 45 / .15)); }

#zp-photobooks .pb-cal-sheet {
  position: relative;
  display: grid;
  width: min(74%,230px);
  padding: 9px;
  background: #fff;
  box-sizing: border-box;
  color: #27222d;
  box-shadow: 0 12px 23px rgb(35 22 42 / .20);
  container-type: inline-size;
}
#zp-photobooks .pb-cal-sheet::before {
  position: absolute;
  inset: -7px 5% auto;
  height: 11px;
  background: radial-gradient(ellipse at center,#7b727d 32%,#d2cad3 48%,transparent 61%) left top / 10px 11px repeat-x;
  content: "";
}
#zp-photobooks .pb-cal-sheet > img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
#zp-photobooks .pb-cal-sheet-dates { display: grid; padding: 7px 0 1px; text-align: center; }
#zp-photobooks .pb-cal-sheet-year { font-size: 7cqw; line-height: 1; margin-bottom: 5px; }
#zp-photobooks .pb-cal-sheet .pb-printed-month { font-size: 5.5cqw; }
#zp-photobooks .pb-cal-sheet .pb-printed-month > strong { font-size: 1.21em; margin-bottom: .36em; }
#zp-photobooks :is(.pb-cal-sheet,.pb-cal-marked-grid) .pb-printed-month > div { gap: .13em .17em; }
#zp-photobooks :is(.pb-cal-sheet,.pb-cal-marked-grid) .pb-printed-month span:nth-child(7n), 
#zp-photobooks :is(.pb-cal-sheet,.pb-cal-marked-grid) .pb-printed-month span:nth-child(7n - 1) { color: #963c60; }

#zp-photobooks .pb-cal-product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(15px,2.4vw,28px); }
#zp-photobooks .pb-cal-product { min-width: 0; display: flex; flex-direction: column; background: #f7f6f4; border-radius: 14px; overflow: clip; scroll-margin-top: 85px; }
#zp-photobooks .pb-cal-product-image { position: relative; min-width: 0; aspect-ratio: 1.19; overflow: clip; background: #efebe7; }
#zp-photobooks .pb-cal-product-image > .pb-printed-calendar {
  position: absolute; top: 50%; left: 50%; width: 100%; border-radius: 0; transform: translate(-50%,-50%);
}
#zp-photobooks .pb-cal-product-image > :is(.pb-print-cal-new-year-fir,.pb-print-cal-a3-coast-clean) { width: 147%; }
#zp-photobooks .pb-cal-product-image > .pb-print-cal-a2-birches-2027 { width: 126%; }
#zp-photobooks .pb-cal-product-image > .pb-print-cal-landscape-2027 { width: 119%; }
#zp-photobooks .pb-cal-product-image > :is(.pb-print-cal-new-year-2027,.pb-print-cal-new-year-quarter) { width: 55%; }
#zp-photobooks .pb-cal-product-image > img { display: block; width: 100%; height: 100%; object-fit: cover; }
#zp-photobooks .pb-cal-product-copy { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: clamp(16px,3.1vw,27px); }
#zp-photobooks .pb-cal-product-price { color: var(--pb-accent); font-size: 1.25rem; }
#zp-photobooks .pb-cal-product-copy h3 { font-size: clamp(1.2rem,2.55vw,1.65rem); margin-top: 7px; }
#zp-photobooks .pb-cal-product-copy ul { color: var(--pb-muted); padding-inline-start: 1.03em; margin: 10px 0 20px; line-height: 1.4; }
#zp-photobooks .pb-cal-product-copy li + li { margin-top: 5px; }
#zp-photobooks .pb-cal-product-copy .pb-button { align-self: stretch; margin-top: auto; border-radius: 999px; }

#zp-photobooks :is(.pb-cal-bonus,.pb-cal-prep,.pb-cal-holiday) {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center;
  gap: clamp(14px,3vw,45px); padding: clamp(23px,5vw,60px); border-radius: 16px; overflow: clip;
}
#zp-photobooks .pb-cal-bonus {
  min-height: clamp(300px,43vw,440px);
  padding: 0 clamp(22px,4vw,52px) 0 0;
  color: #40204d;
  background: linear-gradient(105deg,#f6dce9,#efd0e9 50%,#e6d6f5);
}
#zp-photobooks .pb-cal-bonus-art { position: relative; align-self: stretch; display: grid; place-items: center; min-height: 290px; }
#zp-photobooks .pb-cal-bonus-art img {
  position: absolute;
  display: block;
  width: auto;
  height: min(calc(100% + 54px),480px);
  max-width: none;
}
#zp-photobooks .pb-cal-bonus > div + div { padding-block: 26px; }
#zp-photobooks .pb-cal-bonus h2 { color: #40204d; font-weight: 600; }
#zp-photobooks .pb-cal-holiday h2 { color: #fff; }
#zp-photobooks :is(.pb-cal-bonus,.pb-cal-holiday,.pb-cal-prep) h2 { font-size: clamp(1.65rem,3.55vw,2.8rem); text-wrap: balance; }
#zp-photobooks :is(.pb-cal-bonus,.pb-cal-holiday,.pb-cal-prep) p { margin: 10px 0 18px; }
#zp-photobooks :is(.pb-cal-bonus,.pb-cal-holiday) .pb-button { border-radius: 999px; background: #fff; color: #501b76; }

#zp-photobooks .pb-cal-personal {
  background: #f2f0f6; border-radius: 16px; padding: clamp(21px,5vw,66px);
}
#zp-photobooks .pb-cal-personal > h2 { margin-bottom: 10px; }
#zp-photobooks .pb-cal-personal > p { text-align: center; max-width: 53ch; margin-inline: auto; }
#zp-photobooks .pb-cal-split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: center; gap: clamp(14px,5vw,50px); margin-top: clamp(32px,6vw,72px); }
#zp-photobooks .pb-cal-split h3 { font-size: clamp(1.45rem,3.1vw,2.4rem); line-height: 1.15; }
#zp-photobooks .pb-cal-split p { margin-top: 10px; }
#zp-photobooks .pb-cal-split .pb-button { margin-top: 18px; }
#zp-photobooks .pb-cal-flip-stack { display: grid; perspective: 900px; }
#zp-photobooks .pb-cal-flip-page { grid-area: 1 / 1; display: grid; place-items: start center; transform-origin: top; }
#zp-photobooks .pb-cal-flip-page[hidden], #zp-photobooks .pb-cal-flip-controls[hidden] { display: none; }
#zp-photobooks .pb-cal-flip-page .pb-cal-sheet { width: min(90%,285px); }
#zp-photobooks .pb-cal-flip-page .pb-printed-month > div { grid-template-rows: repeat(7,1.34em); align-items: center; }
#zp-photobooks .pb-cal-flip-controls { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 14px; }
#zp-photobooks .pb-cal-flip-controls span { min-width: 8.5ch; text-align: center; font-weight: 700; }
#zp-photobooks .pb-cal-flip-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--pb-accent); cursor: pointer; }
#zp-photobooks .pb-cal-flip-controls button:disabled { opacity: .35; }
#zp-photobooks .pb-cal-flip-controls svg { width: 23px; height: 23px; }
#zp-photobooks .pb-cal-marked-grid { background: #fff; border-radius: 8px; padding: clamp(14px,3.5vw,25px); }
#zp-photobooks .pb-cal-marked-grid .pb-printed-month { font-size: clamp(.86rem,1.9vw,1.1rem); }
#zp-photobooks .pb-cal-marked-grid .pb-printed-month strong { text-align: left; font-size: 1.2em; margin-bottom: 10px; }
#zp-photobooks .pb-cal-marked-grid .pb-printed-month span[data-cal-mark] {
  outline: 1.5px solid #a34982; outline-offset: -1px; border-radius: 999px; font-weight: 700; color: #7e2654;
}

#zp-photobooks .pb-cal-prep { min-height: clamp(265px,42vw,470px); background: linear-gradient(110deg,#f7f4f0 10%,#f8f6f4 44%,#e7e0ea 100%); }
#zp-photobooks .pb-cal-prep-art, #zp-photobooks .pb-cal-holiday-art { display: grid; place-items: center; }
#zp-photobooks .pb-cal-prep-art .pb-cal-cutout { width: min(100%,325px); height: auto; transform: rotate(6deg); }
#zp-photobooks .pb-cal-holiday { position: relative; color: #fff; background: linear-gradient(115deg,#6b1e50,#93315f 65%,#592b71); isolation: isolate; }
#zp-photobooks .pb-cal-holiday-art .pb-cal-cutout { width: min(100%,330px); height: auto; transform: rotate(-9deg); }
#zp-photobooks .pb-cal-holiday-motif { position: absolute; z-index: -1; pointer-events: none; top: -8%; left: 40%; color: #f3a3cf55; }
#zp-photobooks .pb-cal-holiday-motif svg { display: block; width: clamp(145px,24vw,280px); height: auto; transform: rotate(31deg); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #zp-photobooks :is(.pb-cal-format-art,.pb-cal-design-grid > a > div,.pb-cal-bonus-art img,.pb-cal-holiday-art) { transition: transform 330ms cubic-bezier(.2,.72,.28,1); }
  #zp-photobooks :is(.pb-cal-format-grid,.pb-cal-design-grid) > a:hover > div { transform: translateY(-7px); }
  #zp-photobooks .pb-cal-bonus:hover .pb-cal-bonus-art img { transform: translateY(-5px) rotate(-1.5deg); }
  #zp-photobooks .pb-cal-holiday:hover .pb-cal-holiday-art { transform: translateY(-5px) rotate(2deg); }
  #zp-photobooks .pb-cal-holiday-motif svg { transition: transform 600ms cubic-bezier(.18,.62,.25,1); }
  #zp-photobooks .pb-cal-holiday:hover .pb-cal-holiday-motif svg { transform: translate(8px, 12px) rotate(37deg); }
}

@media (max-width: 930px) {
  #zp-photobooks :is(.pb-cal-format-grid,.pb-cal-design-grid) { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 28px; }
}

@media (max-width: 605px) {
  #zp-photobooks:is([data-pb-route="kalendari"],[data-pb-route="katalog"]) .pb-wrap { width: calc(100% - 32px); }
  #zp-photobooks:is([data-pb-route="kalendari"],[data-pb-route="katalog"]) .pb-cal-hero,
  #zp-photobooks :is(.pb-cal-bonus,.pb-cal-prep,.pb-cal-holiday,.pb-cal-split,.pb-cal-product-grid) { grid-template-columns: minmax(0,1fr); }
  #zp-photobooks:is([data-pb-route="kalendari"],[data-pb-route="katalog"]) .pb-cal-hero { min-height: 0; gap: 0; }
  #zp-photobooks .pb-cal-hero-art { min-height: clamp(270px,86vw,395px); }
  #zp-photobooks .pb-cal-hero-copy { padding: 4px 18px 24px; }
  #zp-photobooks :is(.pb-cal-format-art,.pb-cal-design-grid > a > div) { height: 192px; }
  #zp-photobooks .pb-cal-bonus { padding: 0 18px 22px; gap: 0; }
  #zp-photobooks .pb-cal-bonus-art { min-height: 285px; }
  #zp-photobooks .pb-cal-bonus-art img { width: min(112%,340px); height: auto; }
  #zp-photobooks .pb-cal-bonus > div + div { padding-block: 0; }
  #zp-photobooks :is(.pb-cal-prep-art,.pb-cal-holiday-art) .pb-cal-cutout { width: min(100%,220px); }
}
