/* WC300 Photobook Design System */
.wc300-photoBookOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 3vw, 48px) clamp(24px, 4vw, 64px) 112px;
  background:
    linear-gradient(rgba(14, 47, 68, 0.78), rgba(14, 47, 68, 0.82)),
    rgba(8, 28, 42, 0.72);
  backdrop-filter: blur(18px);
}

.wc300-photoBookShell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(92vw, 1500px);
  height: min(78vh, 850px);
}

.wc300-photoBookSpread {
  position: relative;
  --book-safe: clamp(28px, 3.2vw, 58px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 100%;
  max-height: 920px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #f8f3e7;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.34),
    0 6px 18px rgba(0, 0, 0, 0.18);
  transition: transform 0.32s ease, opacity 0.32s ease;
}

.wc300-photoBookSpread.is-turning-next {
  transform: perspective(1400px) rotateY(-3deg) scale(0.985);
  opacity: 0.72;
}

.wc300-photoBookSpread.is-turning-prev {
  transform: perspective(1400px) rotateY(3deg) scale(0.985);
  opacity: 0.72;
}

.wc300-photoBookSpread::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.65), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.42), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 5%, transparent 45%, rgba(0, 0, 0, 0.16) 49.5%, rgba(255, 255, 255, 0.35) 50%, rgba(0, 0, 0, 0.14) 50.5%, transparent 55%, transparent 95%, rgba(0, 0, 0, 0.09));
  mix-blend-mode: multiply;
  opacity: 0.62;
}

.wc300-bookPage {
  position: relative;
  display: grid;
  align-content: center;
  overflow: visible;
  padding: clamp(34px, 4vw, 74px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.32), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.035)),
    #fbf7ed;
}

.wc300-bookCover {
  position: relative;
  width: min(84vw, 980px, 112vh);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: #123a54;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
}

.wc300-bookCover img.wc300-coverImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) contrast(1.08);
}

.wc300-coverContent {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 56px;
  color: #fff;
  text-align: center;
}

.wc300-coverLogo {
  display: grid;
  place-items: center;
  overflow: visible;
  width: clamp(96px, 8.5vw, 134px);
  height: clamp(96px, 8.5vw, 134px);
  margin-bottom: 22px;
  padding: 0;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.30));
}

.wc300-coverLogo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.wc300-coverKicker {
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wc300-coverTitle,
.wc300-bookTitle {
  font-family: "Roboto Serif", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: calc(1em * 1.08) !important;
  letter-spacing: -0.035em;
}

.wc300-coverTitle {
  max-width: 720px;
  font-size: clamp(48px, 6.4vw, 92px);
}

.wc300-coverDate,
.wc300-datePill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(231, 244, 240, 0.92);
  color: #143d5b;
  font-size: 12px;
  font-weight: 800;
}

.wc300-bookTitle {
  max-width: 88%;
  color: #163d5b;
  font-size: clamp(34px, 4.2vw, 68px);
  line-height: calc(1em * 1.1) !important;
}

.wc300-bodyText {
  max-width: 760px;
  color: #536172;
  font-size: clamp(17px, 1.3vw, 23px);
  line-height: calc(1em * 1.55) !important;
}

.wc300-quoteText {
  position: relative;
  margin: 0;
  max-width: 90%;
  color: #163d5b;
  font-family: "Roboto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.32vw, 70px);
  line-height: calc(1em * 1.08) !important;
  letter-spacing: -0.04em;
}

.wc300-quoteText::before {
  content: "“";
  position: absolute;
  top: -0.08em;
  left: -0.5em;
  color: #4fb0b4;
}

.wc300-quoteText::after {
  content: "”";
  color: #4fb0b4;
}

.wc300-photo {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 8px;
  isolation: isolate;
  overflow: visible;
  padding: clamp(9px, 0.9vw, 14px);
  border-radius: 4px;
  background: #fff;
  box-shadow:
    0 18px 34px rgba(26, 47, 63, 0.2),
    0 2px 4px rgba(26, 47, 63, 0.08);
  transform-origin: 50% 50%;
  cursor: zoom-in;
}

.wc300-photo.has-caption {
  grid-template-rows: minmax(0, 1fr) auto;
}

.wc300-photo:not(.has-caption) {
  padding-bottom: clamp(9px, 0.9vw, 14px);
}

.wc300-photo::before,
.wc300-photo::after {
  display: none;
  content: none;
}

.wc300-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: min(50vh, 100%);
  object-fit: cover;
  object-position: center center;
  background: #f3f3f0;
}

.wc300-photo.is-portrait img {
  background: #f3f3f0;
  object-fit: cover;
}

.wc300-photo.is-panoramic img {
  object-fit: cover;
}

.wc300-photoCaption {
  position: relative;
  z-index: 2;
  min-height: 1.2em;
  padding: 0 2px;
  color: #647080;
  font-family: "Bradley Hand", "Comic Sans MS", "Segoe Print", cursive;
  font-size: clamp(12px, 0.82vw, 15px);
  line-height: calc(1em * 1.32) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wc300-tape {
  display: none;
  position: absolute;
  top: -10px;
  left: 50%;
  z-index: 4;
  width: var(--tape-w, 72px);
  height: 22px;
  background: rgba(210, 193, 151, 0.62);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%) rotate(var(--tape-r, -2deg));
}

.wc300-tape.wide {
  width: var(--tape-w, 106px);
  opacity: 0.7;
  transform: translateX(-50%) rotate(2deg);
}

.wc300-tape.soft {
  opacity: 0.48;
  transform: translateX(-50%) rotate(-5deg);
}

.wc300-tape.short {
  width: var(--tape-w, 58px);
  opacity: 0.78;
}

.wc300-tape.corner-left {
  left: 18px;
  transform: rotate(-9deg);
}

.wc300-tape.corner-right {
  right: 18px;
  left: auto;
  transform: rotate(8deg);
}

.wc300-notesCard {
  margin-bottom: 14px;
  padding: 22px 24px;
  border: 1px solid rgba(19, 61, 91, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 8px 18px rgba(20, 51, 74, 0.06);
}

.wc300-notesCard h3 {
  margin: 0 0 14px;
  color: #163d5b;
  font-family: "Roboto Serif", Georgia, serif;
  font-size: 23px;
  line-height: calc(1em * 1.18) !important;
}

.wc300-notesCard p {
  margin: 0;
  color: #445466;
  font-size: 16px;
  line-height: calc(1em * 1.52) !important;
}

.wc300-spreadNotes {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.wc300-spreadNotes .wc300-notesCard {
  margin-bottom: 0;
}

.wc300-spreadNotes--hero {
  position: absolute;
  right: clamp(42px, 5vw, 86px);
  bottom: clamp(42px, 5vw, 86px);
  z-index: 4;
  width: min(360px, 28vw);
}

.wc300-spreadNotes--hero .wc300-notesCard {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.wc300-spreadNotes--collage {
  position: absolute;
  right: var(--book-safe);
  bottom: var(--book-safe);
  z-index: 5;
  width: min(360px, 30vw);
}

.wc300-notesCard--inline h3 {
  font-size: clamp(17px, 1.25vw, 21px);
}

.wc300-notesCard--inline p {
  font-size: clamp(13px, 0.95vw, 15px);
}

.wc300-template-heroFull {
  display: block;
  background: #102f46;
}

.wc300-template-heroFull .wc300-heroImage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.wc300-template-heroFull.is-panoramic .wc300-heroImage {
  object-fit: cover;
  object-position: center center;
}

.wc300-template-heroFull::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 28, 42, 0.78), rgba(7, 28, 42, 0.18) 48%, rgba(7, 28, 42, 0.72)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.4), transparent 45%);
}

.wc300-template-heroFull .wc300-heroText {
  position: absolute;
  bottom: clamp(48px, 7vw, 110px);
  left: clamp(48px, 7vw, 110px);
  z-index: 2;
  max-width: 720px;
  color: #fff;
}

.wc300-template-heroFull.is-panoramic .wc300-heroText {
  max-width: min(680px, 42%);
}

.wc300-template-heroFull .wc300-bookTitle,
.wc300-template-heroFull .wc300-bodyText {
  color: #fff;
}

.wc300-template-opening .wc300-bookPage:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding-left: clamp(48px, 5vw, 92px);
  padding-right: clamp(48px, 5vw, 92px);
}

.wc300-template-opening .wc300-bookTitle {
  max-width: 94%;
  font-size: clamp(34px, 4vw, 60px);
  line-height: calc(1em * 1.12) !important;
}

.wc300-template-opening .wc300-bookPage:nth-child(2) {
  display: grid;
  place-items: center;
  overflow: visible;
  padding-left: clamp(42px, 4vw, 76px);
  padding-right: clamp(42px, 4vw, 76px);
}

.wc300-template-opening .wc300-photo {
  width: min(86%, 560px);
  aspect-ratio: 16 / 10;
  margin: auto;
  justify-self: center;
  align-self: center;
}

.wc300-template-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
  align-items: stretch;
  padding: var(--book-safe);
}

.wc300-template-collage .wc300-bookPage {
  display: none;
}

.wc300-template-collage .wc300-photo {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  height: 100%;
  transform: none;
}

.wc300-template-collage .wc300-photo img {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.wc300-template-collage.wc300-collage-count-1 {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
}

.wc300-template-collage.wc300-collage-count-1 .wc300-photo {
  width: min(78%, 860px);
  height: min(82%, 620px);
  justify-self: center;
}

.wc300-template-collage.wc300-collage-count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
}

.wc300-template-collage.wc300-collage-count-3 .wc300-photo:nth-of-type(1) {
  grid-row: 1 / 3;
}

.wc300-template-collage.wc300-collage-count-3 .wc300-photo:nth-of-type(2),
.wc300-template-collage.wc300-collage-count-3 .wc300-photo:nth-of-type(3) {
  align-self: stretch;
}

.wc300-template-collage .wc300-photo:nth-of-type(even) {
  transform: none;
}

.wc300-template-collage .wc300-photo.is-portrait img {
  max-height: none;
}

.wc300-template-portraitFeature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(22px, 3vw, 46px);
  align-items: center;
  padding: var(--book-safe);
}

.wc300-template-portraitFeature .wc300-photo {
  width: min(78%, 430px);
  justify-self: center;
  transform: none;
}

.wc300-template-portraitFeature .wc300-photo img {
  max-height: 62vh;
}

.wc300-template-portraitPair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 0.48fr);
  gap: clamp(16px, 2vw, 30px);
  align-items: center;
  padding: var(--book-safe);
}

.wc300-template-portraitPair .wc300-photo {
  width: 100%;
}

.wc300-template-portraitPair .wc300-photo:nth-of-type(1) {
  transform: none;
}

.wc300-template-portraitPair .wc300-photo:nth-of-type(2) {
  transform: none;
}

.wc300-template-portraitPair .wc300-textPanel,
.wc300-template-portraitFeature .wc300-textPanel {
  position: relative;
  top: auto;
  right: auto;
  width: auto;
}

.wc300-template-notes .wc300-notesWrap {
  display: grid;
  align-content: start;
  gap: 20px;
}

.wc300-template-notes .wc300-bookPage {
  display: grid;
  align-content: center;
  padding-left: clamp(48px, 5vw, 92px);
  padding-right: clamp(48px, 5vw, 92px);
}

.wc300-template-notes .wc300-bookPage:nth-child(2):has(.wc300-photo) {
  display: grid;
  place-items: center;
  padding: clamp(28px, 3vw, 54px);
}

.wc300-template-notes .wc300-photo--notes-feature {
  width: min(84%, 560px);
  height: auto;
  max-height: min(62vh, 76%);
  align-self: center;
  justify-self: center;
}

.wc300-template-notes .wc300-photo--notes-feature img {
  height: auto;
  max-height: calc(min(62vh, 100%) - 72px);
  object-fit: cover;
}

.wc300-template-quote .wc300-quoteText {
  position: relative;
  top: auto;
  left: auto;
  width: min(90%, 900px);
  margin: auto;
}

.wc300-template-quote .wc300-bookPage:nth-child(2) {
  display: grid;
  place-items: center;
  overflow: visible;
  padding: clamp(28px, 3vw, 54px);
}

.wc300-template-quote .wc300-photo {
  width: min(92%, 680px);
  height: min(78%, 560px);
  border-radius: 4px;
  background: #fff;
  box-shadow:
    0 18px 34px rgba(26, 47, 63, 0.2),
    0 2px 4px rgba(26, 47, 63, 0.08);
}

.wc300-template-quote .wc300-photo img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.wc300-template-quote .wc300-photoCaption {
  color: #647080;
  text-shadow: none;
}

.wc300-template-photoStory {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.72fr);
  gap: clamp(22px, 3vw, 46px);
  align-items: center;
  padding: var(--book-safe);
  padding-left: clamp(42px, 4.5vw, 82px);
  padding-right: clamp(42px, 4.5vw, 82px);
}

.wc300-template-photoStory .wc300-photo {
  width: min(100%, 760px);
  aspect-ratio: 4 / 3;
  transform: none;
}

.wc300-template-photoStory .wc300-textPanel {
  position: relative;
  top: auto;
  right: auto;
  width: auto;
  max-width: 430px;
}

.wc300-textPanel .wc300-bookTitle {
  max-width: none;
  line-height: calc(1em * 1.12) !important;
}

.wc300-template-photoStory .wc300-photo img {
  max-height: 58vh;
}

.wc300-template-notes .wc300-bookPage,
.wc300-template-quote .wc300-bookPage {
  display: grid;
  align-items: center;
}

.wc300-template-quote .wc300-bookPage:first-child {
  padding: var(--book-safe);
}

.wc300-template-quote--empty .wc300-bookPage {
  display: grid;
  place-items: center;
}

.wc300-template-backCover .wc300-bookPage {
  display: grid;
  place-items: end center;
}

.wc300-backCoverMark {
  display: grid;
  place-items: center;
  overflow: visible;
  width: clamp(62px, 5vw, 86px);
  height: clamp(62px, 5vw, 86px);
  margin-bottom: clamp(28px, 4vw, 56px);
  border-radius: 999px;
  background: transparent !important;
  box-shadow: none !important;
  filter: drop-shadow(0 10px 18px rgba(11, 60, 93, 0.16));
}

.wc300-backCoverMark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wc300-backCoverLine {
  max-width: 360px;
  margin: 14px 0 clamp(42px, 5vw, 72px);
  color: #526173;
  font-family: "Roboto Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.05vw, 18px);
  line-height: calc(1em * 1.45) !important;
  text-align: center;
}

.wc300-photoBookControls {
  position: fixed;
  bottom: 28px;
  left: 50%;
  z-index: 100001;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(14, 47, 68, 0.86);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  transform: translateX(-50%);
}

.wc300-photoBookControls button {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #4fb0b4;
  color: #fff;
  cursor: pointer;
}

.wc300-photoBookControls .wc300-spreadCount {
  min-width: 96px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.wc300-photoBookPageNav {
  position: fixed;
  top: 50%;
  z-index: 100001;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: #0B3C5D;
  color: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
  cursor: pointer;
  transform: translateY(-50%);
}

.wc300-photoBookPageNav--prev {
  left: max(22px, calc((100vw - min(92vw, 1500px)) / 2 - 78px));
}

.wc300-photoBookPageNav--next {
  right: max(22px, calc((100vw - min(92vw, 1500px)) / 2 - 78px));
}

.wc300-photoBookPageNav svg {
  display: block;
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.wc300-photoBookClose {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100002;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #4fb0b4;
  color: #fff;
}

.wc300-photoBookContents {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 28, 42, 0.5);
}

.wc300-photoBookContents[hidden] {
  display: none;
}

.wc300-photoBookContentsPanel {
  width: min(560px, 92vw);
  max-height: 76vh;
  overflow: auto;
  padding: 22px;
  border-radius: 22px;
  background: #fbf7ed;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.wc300-photoBookContentsPanel h2 {
  margin: 0 0 14px;
  color: #163d5b;
  font-family: Georgia, serif;
}

.wc300-photoBookContentsPanel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px;
  border: 1px solid rgba(19, 61, 91, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: #163d5b;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: left;
}

.wc300-photoBookContentsPanel button span {
  min-width: 0;
}

.wc300-photoBookContentsPanel button small {
  flex: 0 0 auto;
  color: #647080;
  font-size: 12px;
  font-weight: 700;
}

.wc300-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100003;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(5, 18, 28, 0.88);
}

.wc300-lightboxClose {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #4fb0b4;
  color: #fff;
  cursor: pointer;
}

.wc300-lightbox.is-open {
  display: flex;
}

.wc300-lightbox figure {
  margin: 0;
  color: #fff;
  text-align: center;
}

.wc300-lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.wc300-lightbox figcaption {
  margin-top: 12px;
  font-family: "Bradley Hand", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 18px;
}

.wc300-photobook-editor {
  position: fixed;
  inset: 0;
  z-index: 100004;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
  background:
    linear-gradient(rgba(11, 60, 93, 0.88), rgba(11, 60, 93, 0.92)),
    #0b3c5d;
  color: #1a1a1a;
  font-family: Roboto, Arial, sans-serif;
}

.wc300-photobook-editor__header,
.wc300-photobook-editor__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1440px, 100%);
  margin: 0 auto;
}

.wc300-photobook-editor__header {
  color: #fff;
}

.wc300-photobook-editor__header h2 {
  margin: 0;
  color: #fff;
  font-family: "Roboto Serif", Georgia, serif;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 600;
  line-height: 1.02;
}

.wc300-photobook-editor__header p {
  max-width: 680px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.5;
}

.wc300-photobook-editor__eyebrow,
.wc300-photobook-editor__kicker {
  margin: 0 0 7px;
  color: #8ed8db;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.wc300-photobook-editor__close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #1fa3a6;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.wc300-photobook-editor__body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 18px;
  width: min(1440px, 100%);
  min-height: 0;
  margin: 0 auto;
}

.wc300-photobook-editor__filmstrip,
.wc300-photobook-editor__canvas,
.wc300-photobook-editor__panel {
  min-height: 0;
  border: 1px solid rgba(11, 60, 93, 0.12);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(242, 197, 118, 0.16), transparent 32%),
    #fbf7ed;
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.2);
}

.wc300-photobook-editor__filmstrip,
.wc300-photobook-editor__panel {
  overflow: auto;
  padding: 18px;
}

.wc300-photobook-editor__canvas {
  display: grid;
  place-items: center;
  overflow: auto;
  padding: clamp(16px, 2vw, 26px);
}

.wc300-photobook-editor__section-head h3,
.wc300-photobook-editor-panel__head h3 {
  margin: 0 0 12px;
  color: #0b3c5d;
  font-family: "Roboto Serif", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}

.wc300-photobook-editor__spread-card {
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid rgba(11, 60, 93, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  color: #0b3c5d;
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.wc300-photobook-editor__spread-card:hover,
.wc300-photobook-editor__spread-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(31, 163, 166, 0.5);
  box-shadow: 0 12px 26px rgba(11, 60, 93, 0.12);
}

.wc300-photobook-editor__spread-number {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(31, 163, 166, 0.12);
  color: #0b3c5d;
  font-size: 11px;
  font-weight: 800;
}

.wc300-photobook-editor__spread-card strong,
.wc300-photobook-template-card strong {
  color: #0b3c5d;
  font-family: "Roboto Serif", Georgia, serif;
  font-size: 18px;
  line-height: 1.15;
}

.wc300-photobook-editor__spread-card small,
.wc300-photobook-template-card small,
.wc300-photobook-editor__muted,
.wc300-photobook-editor__help {
  color: #647080;
  font-size: 13px;
  line-height: 1.4;
}

.wc300-photobook-editor-preview {
  position: relative;
  width: min(100%, 860px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: clamp(22px, 3vw, 42px);
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.36), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.04)),
    #fbf7ed;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.24),
    inset 1px 0 0 rgba(255, 255, 255, 0.28);
}

.wc300-photobook-editor-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, 0.12) 49.5%, rgba(255, 255, 255, 0.28) 50%, rgba(0, 0, 0, 0.1) 50.5%, transparent 53%);
}

.wc300-photobook-editor-preview__header {
  position: relative;
  z-index: 1;
  max-width: 62%;
}

.wc300-photobook-editor-preview__header h3 {
  margin: 0;
  color: #0b3c5d;
  font-family: "Roboto Serif", Georgia, serif;
  font-size: clamp(28px, 3.4vw, 54px);
  line-height: 1.02;
}

.wc300-photobook-editor-preview__photos {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  margin-top: 22px;
}

.wc300-photobook-editor-preview--full_spread_hero .wc300-photobook-editor-preview__photos,
.wc300-photobook-editor-preview--photo_text_spread .wc300-photobook-editor-preview__photos,
.wc300-photobook-editor-preview--portrait_feature .wc300-photobook-editor-preview__photos {
  grid-template-columns: minmax(0, 1fr);
  max-width: 58%;
}

.wc300-photobook-editor-preview--masonry_photo_grid .wc300-photobook-editor-preview__photos {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wc300-photobook-editor-photo {
  margin: 0;
  padding: 8px 8px 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(11, 60, 93, 0.18);
}

.wc300-photobook-editor-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wc300-photobook-editor-photo.is-portrait img {
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: #f3f3f0;
}

.wc300-photobook-editor-photo figcaption {
  margin-top: 7px;
  color: #647080;
  font-family: "Bradley Hand", "Comic Sans MS", "Segoe Print", cursive;
  font-size: 13px;
  line-height: 1.2;
}

.wc300-photobook-editor-preview__body {
  position: absolute;
  right: 42px;
  bottom: 38px;
  z-index: 1;
  max-width: 34%;
  color: #536172;
  font-size: 16px;
  line-height: 1.5;
}

.wc300-photobook-editor-preview__placeholder,
.wc300-photobook-editor-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed rgba(11, 60, 93, 0.24);
  border-radius: 18px;
  color: #647080;
  text-align: center;
}

.wc300-photobook-template-list {
  display: grid;
  gap: 10px;
}

.wc300-photobook-template-card {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(11, 60, 93, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  text-align: left;
}

.wc300-photobook-template-card:hover,
.wc300-photobook-template-card.is-active {
  border-color: rgba(31, 163, 166, 0.52);
  background: rgba(31, 163, 166, 0.08);
}

.wc300-photobook-editor__footer {
  justify-content: flex-end;
}

.wc300-photobook-editor__ghost,
.wc300-photobook-editor__save {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 800;
  cursor: pointer;
}

.wc300-photobook-editor__ghost {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.wc300-photobook-editor__save {
  background: #1fa3a6;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.wc300-photoBookToast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100010;
  max-width: min(360px, calc(100vw - 32px));
  padding: 13px 16px;
  border-radius: 16px;
  background: #fbf7ed;
  color: #0b3c5d;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wc300-photoBookToast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.wc300-photoBookToast--error {
  color: #8a1f1f;
}

.wc300-photobook-editor-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .wc300-photoBookOverlay {
    align-items: flex-start;
    overflow-y: auto;
    padding: 18px;
  }

  .wc300-photoBookShell {
    width: 100%;
    height: auto;
  }

  .wc300-photoBookSpread {
    display: block;
    height: auto;
    overflow: visible;
    aspect-ratio: auto;
  }

  .wc300-bookCover {
    width: min(100%, 760px);
  }

  .wc300-bookPage {
    min-height: 76vh;
    padding: 32px 22px;
  }

  .wc300-photo {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    margin: 24px 0;
    transform: none;
  }

  .wc300-photo img {
    height: auto;
  }

  .wc300-photoBookPageNav {
    display: none;
  }

  .wc300-photobook-editor {
    overflow: auto;
  }

  .wc300-photobook-editor__header,
  .wc300-photobook-editor__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .wc300-photobook-editor__body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .wc300-photobook-editor-preview {
    aspect-ratio: auto;
    min-height: 520px;
  }

  .wc300-photobook-editor-preview__header,
  .wc300-photobook-editor-preview__body,
  .wc300-photobook-editor-preview--full_spread_hero .wc300-photobook-editor-preview__photos,
  .wc300-photobook-editor-preview--photo_text_spread .wc300-photobook-editor-preview__photos,
  .wc300-photobook-editor-preview--portrait_feature .wc300-photobook-editor-preview__photos {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
  }

  .wc300-photobook-editor-preview__photos,
  .wc300-photobook-editor-preview--masonry_photo_grid .wc300-photobook-editor-preview__photos {
    grid-template-columns: 1fr;
  }
}
