/* -------------------------------------------------------- */
/* SKETCHBOOK PAGE                                          */
/* Loads AFTER style.css. Only what is unique to this page. */
/* -------------------------------------------------------- */

/* Page background and active nav button for this page */
:root {
  --background-color: #ae7df6;
  --page-ratio: 3 / 4;      /* shape of ONE page: width / height. Change to match your scans (e.g. 5 / 7) */
}

.media-nav-button.active {
  background-color: #f4a518;
  color: black;
}

/* One wide column: the main box is the open book, so no sidebar here */
.content-container {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "main";
}

/* -------------------------------------------------------- */
/* THE BOOK                                                 */
/* -------------------------------------------------------- */

.book {
  border: 1px dashed white;
  box-shadow: 5px 5px black;
}

/* Only the current spread is shown */
.spread         { display: none; }
.spread.visible { display: grid; grid-template-columns: 1fr 1fr; }

/* The cover is a single page, centered at one page's width */
.spread.cover.visible {
  grid-template-columns: 50%;
  justify-content: center;
}

.sketch-page {
  position: relative;
  aspect-ratio: var(--page-ratio);
  overflow: hidden;
  background: #f3ecd8;           /* paper */
  color: #111;
}

.sketch-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* The spine between the two pages, with a soft shadow */
.spread:not(.cover) .sketch-page:first-child {
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0.14), transparent 8%);
}

.spread:not(.cover) .sketch-page:last-child {
  border-left: 1px dashed #111;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0.14), transparent 8%);
}

/* Placeholder shown until you swap in an image (see directions in sketchbook.html) */
.sketch-page.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
  text-align: center;
  outline: 1px dashed rgba(0, 0, 0, 0.35);
  outline-offset: -10px;
}

.sketch-page.empty p {
  margin: 0;
  font-size: clamp(11px, 1.6vw, 16px);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* -------------------------------------------------------- */
/* FLIP BUTTONS (reuse .journal-nav-btn from style.css)     */
/* -------------------------------------------------------- */

.journal-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.journal-nav-btn:disabled:hover {
  background: black;
  color: white;
  transform: rotate(-0.5deg);
}

@media (max-width: 600px) {
  .main-box { padding: 12px; }
  .journal-nav-btn { min-width: 80px; padding: 10px 12px; font-size: 16px; }
}