/* ==========================================================
     1. ROOT VARIABLES / GLOBAL TOKENS
     -------------------------------------------------------
     Keep the whole palette + type system in one place so
     colors/fonts are easy to swap later in Dreamweaver.
  ========================================================== */
  :root{
    --color-bg:        #FBF9F4; /* soft warm cream, global background */
    --color-bg-alt:    #F3EEE3; /* slightly deeper cream for alt sections */
    --color-bg-faint:  #FDFCFA; /* almost white, used for the Storyprints section */
    --color-text:      #333333; /* warm charcoal body copy */
    --color-text-soft: #6b6459; /* muted caption / subtitle tone */
    --color-accent:    #B5673A; /* warm terracotta, used sparingly for links/hovers */
    --color-line:      #E4DCCB; /* hairline dividers */
    --color-white:     #FFFFFF;

    --font-display: "Ivy Presto Display", "Cormorant Garamond", Georgia, serif;
    --font-body:    "Avenir", "Jost", "Helvetica Neue", Arial, sans-serif;

    --container-max: 1320px;
  }

  html{
    scroll-behavior: smooth;
  }

  body{
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  /* Respect reduced-motion preferences */
  @media (prefers-reduced-motion: reduce){
    *{ animation: none !important; transition: none !important; }
    html{ scroll-behavior: auto; }
  }

  h1, h2, h3, h4,
  .font-display{
    font-family: var(--font-display);
    color: var(--color-text);
    letter-spacing: 0.01em;
  }

  a{
    color: inherit;
    text-decoration: none;
  }

  .container-wide{
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Small uppercase eyebrow / label style used for section titles.
     The trailing letter-spacing after the last character throws
     off optical centering wherever this sits above a centered
     heading (e.g. "What Drives Me" over "My Creative Goals"), so
     it's canceled out with a matching negative margin. */
  .section-eyebrow{
    font-family: var(--font-body);
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    margin-right: -0.22em;
    text-transform: uppercase;
    color: var(--color-text-soft);
  }

  .section-title{
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
  }

  .section-subtitle{
    font-family: var(--font-body);
    color: var(--color-text-soft);
    font-size: 1rem;
    font-style: italic;
  }

  .section-pad{
    padding-top: clamp(1.75rem, 3.5vw, 3.5rem);
    padding-bottom: clamp(1.75rem, 3.5vw, 3.5rem);
  }

  .divider-hairline{
    border: none;
    border-top: 1px solid var(--color-line);
    margin: 0;
  }

  /* Arrow link style used throughout (Portfolio cards, book list, etc.) */
  .arrow-link{
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;   /* ~2pt larger than the original 1.05rem */
    color: var(--color-text);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    white-space: nowrap;   /* caption text always stays on one line */
    transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }
  .arrow-link:hover{
    color: var(--color-accent);
    border-color: var(--color-accent);
  }
  .arrow-link:hover .arrow-glyph{
    transform: translateX(4px);
  }
  .arrow-glyph{
    display: inline-block;
    width: 15px;       /* fixed size, drawn inline as SVG so there is no external file to size */
    height: 10px;
    flex: 0 0 auto;
    vertical-align: middle;
    margin-top: -1px;
    transition: transform 0.25s ease;
  }


  /* ==========================================================
     2. NAVIGATION
  ========================================================== */
  .site-header{
    background-color: rgba(251, 249, 244, 0.94);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--color-line);
    z-index: 1030;
  }

  /* On short viewports (phones in landscape), a sticky header eats too
     much of the visible screen. Let it scroll away with the page instead
     of staying pinned, and shrink it a bit so more content shows up front. */
  @media (max-height: 500px){
    .site-header.sticky-top{
      position: static;
    }
    .site-header .navbar{
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
    .brand-name{
      font-size: 1.4rem;
    }
    .brand-subtitle{
      display: none;
    }
  }

  .brand-name{
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 2.6vw, 2.15rem);
    line-height: 1.1;
    margin: 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .brand-subtitle{
    font-family: var(--font-body);
    font-size: 0.66rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-text-soft);
    display: block;
    white-space: nowrap;
  }

  .nav-links a{
    font-family: var(--font-body);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text);
    margin-left: 1.75rem;
    position: relative;
  }
  .nav-links a::after{
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0%;
    height: 1px;
    background-color: var(--color-accent);
    transition: width 0.25s ease;
  }
  .nav-links a:hover::after{
    width: 100%;
  }

  .nav-icons a{
    font-size: 1.05rem;
    margin-left: 1.1rem;
    color: var(--color-text);
    transition: color 0.25s ease;
  }
  .nav-icons a:hover{
    color: var(--color-accent);
  }

  /* Mobile nav toggler custom color */
  .navbar-toggler{
    border: none;
    padding: 0;
  }
  .navbar-toggler:focus{
    box-shadow: none;
  }


  /* ==========================================================
     3. HERO BANNER
     The headline copy is baked into the artwork itself, so this
     section is purely a responsive image frame.
  ========================================================== */
  .hero-banner{
    width: 100%;
    line-height: 0; /* removes inline-image gap */
  }
  .hero-banner img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }


  /* ==========================================================
     4. PORTFOLIO GRID
     Images keep their own native aspect ratio (no forced height
     or object-fit cropping) so Row 2 can read visually shorter
     than Row 1, matching an open, editorial picture-book feel.
  ========================================================== */
  .portfolio-card{
    display: block;
  }
  .portfolio-card img{
    width: 100%;
    height: auto;      /* intrinsic aspect ratio, never cropped */
    display: block;
    border-radius: 2px;
    transition: opacity 0.35s ease;
  }
  .portfolio-card:hover img{
    opacity: 0.92;
  }
  /* Row 1 (Characters / Composition): a content-sized flex row
     instead of fixed 7/5 Bootstrap columns, so the two covers sit
     as close together as their (bigger) natural widths allow,
     sharing one height — same fixed-height/natural-width technique
     used for the book covers elsewhere on the site. */
  .portfolio-row-pair{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
  }
  .portfolio-row-pair .portfolio-card{
    flex: 0 0 auto;
  }
  .portfolio-card.equal-height img{
    width: auto;
    height: 400px;
    max-width: 100%;
    margin: 0;
  }
  @media (max-width: 991.98px){
    .portfolio-card.equal-height img{ height: 320px; }
  }
  @media (max-width: 575.98px){
    .portfolio-row-pair{
      flex-direction: column;
    }
    .portfolio-row-pair .portfolio-card{
      flex: 1 1 100%;
      width: 100%;
    }
    .portfolio-card.equal-height img{ width: 100%; height: auto; }
  }
  .portfolio-caption{
    display: flex;
    justify-content: flex-start;
    padding-top: 0.85rem;
  }
  .portfolio-caption .arrow-link{
    font-size: 1.2rem;   /* ~2pt larger than the default 1.05rem arrow-link size */
    transition: color 0.25s ease, transform 0.25s ease;
  }
  .portfolio-card:hover .portfolio-caption .arrow-link{
    color: var(--color-accent);
    transform: translateX(4px);
  }


  /* ==========================================================
     5. PUBLISHED BOOKS
  ========================================================== */
  .books-row{
    gap: 1.5rem;
    align-items: flex-end; /* covers of different widths still sit on a shared baseline */
    flex-wrap: wrap;
  }
  .book-cover{
    flex: 0 0 auto; /* width follows each cover's own aspect ratio */
  }
  .book-cover a{
    display: block;
  }
  .book-cover img{
    height: 270px;   /* shared height across every cover, sized so 4 covers fit on one line */
    width: auto;      /* width varies naturally with each cover's aspect ratio */
    max-width: 100%;
    display: block;
    box-shadow: 0 14px 30px -18px rgba(51,51,51,0.45);
    border-radius: 2px;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  }
  .book-cover a:hover img{
    opacity: 0.78; /* obscures slightly on hover to signal it's a link */
    transform: translateY(-6px);
    box-shadow: 0 22px 34px -16px rgba(51,51,51,0.5);
  }
  @media (max-width: 991.98px){
    .book-cover img{ height: 210px; }
  }
  @media (max-width: 767.98px){
    .book-cover img{ height: 165px; }
  }
  @media (max-width: 575.98px){
    .books-row{ justify-content: center; }
  }


  /* ==========================================================
     6. WOW PIECE (full width illustration banner)
  ========================================================== */
  .wow-piece img{
    width: 100%;
    height: auto;
    display: block;
  }
  .wow-tagline{
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--color-text-soft);
    padding: 1.75rem 1.5rem;
  }


  /* ==========================================================
     7. ABOUT + PROCESS SPLIT
  ========================================================== */
  .about-photo-wrap{
    overflow: hidden;
    border-radius: 2px;
    height: 100%;
  }
  .about-photo-wrap img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 320px;
  }

  .process-thumbs{
    gap: 1rem;
  }
  .process-thumb{
    flex: 1 1 0;
    text-align: center;
  }
  .process-thumb img{
    width: 100%;
    aspect-ratio: 1800 / 2491; /* matches the original portrait artwork, no cropping */
    object-fit: cover;
    border-radius: 2px;
    display: block;
    border: 1px solid var(--color-line);
  }
  /* Draft + tonal study stages are shown in grayscale so the finished
     painting is the single moment of color in the sequence */
  .process-thumb.is-mono img{
    filter: grayscale(100%);
  }
  .process-thumb span{
    display: block;
    margin-top: 0.5rem;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-soft);
  }

  /* Creative Goals — three-up icon list */
  .goals-row{
    gap: 2.5rem;
  }
  .goal-item{
    flex: 1 1 0;
    text-align: center;
  }
  .goal-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border: 1px solid var(--color-line);
    border-radius: 50%;
    color: var(--color-accent);
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .goal-item h3{
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
  }
  .goal-item p{
    color: var(--color-text-soft);
    font-size: 0.92rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  @media (max-width: 767.98px){
    .goals-row{ flex-wrap: wrap; }
    .goal-item{ flex: 1 1 100%; }
  }

  /* Outside the Studio — closing personal note */
  .studio-note{
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
  }


  /* ==========================================================
     8. STORYPRINTS FOOTER SECTION
  ========================================================== */
  .storyprints-section{
    background-color: var(--color-bg-faint); /* almost white */
  }
  .shelf-visual{
    max-width: 100%;
    height: auto;
    display: block;
    margin-left: auto;   /* right-align within its column */
    margin-right: 0;
    border-radius: 2px;
  }


  /* ==========================================================
     9. CONTACT / BOTTOM BAR
  ========================================================== */
  .contact-section{
    text-align: center;
  }
  .contact-email{
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.25s ease;
  }
  .contact-email:hover{
    color: var(--color-accent);
  }
  .social-row a{
    font-size: 1.3rem;
    margin: 0 0.65rem;
    color: var(--color-text);
    transition: color 0.25s ease, opacity 0.25s ease;
  }
  .social-row a:hover{
    color: var(--color-accent);
  }
  .pinterest-icon{
    width: 1.3rem;
    height: 1.3rem;
    vertical-align: middle;
    transition: opacity 0.25s ease;
  }
  .social-row a:hover .pinterest-icon{
    opacity: 0.7;
  }
  .site-footer-legal{
    background-color: var(--color-text);
    color: #d9d3c6;
  }
  .site-footer-legal p{
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0;
  }

  /* Focus visibility for keyboard users (accessibility floor) */
  a:focus-visible,
  button:focus-visible{
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
  }

  /* ==========================================================
     10. RESPONSIVE ADJUSTMENTS
  ========================================================== */
  @media (max-width: 767.98px){
    .process-thumbs{
      flex-wrap: wrap;
    }
    .process-thumb{
      flex: 1 1 calc(50% - 0.5rem);
    }
    .nav-links, .nav-icons{
      margin-top: 0.75rem;
    }
    .nav-links a{
      margin: 0 0.85rem 0.5rem 0;
      display: inline-block;
    }
  }

  @media (max-width: 575.98px){
    .about-photo-wrap img{
      min-height: 220px;
    }
    .book-cover{
      flex: 0 1 calc(50% - 0.75rem); /* two covers per line instead of an uneven wrap */
    }
    .book-cover img{
      width: 100%;
      height: auto;
      max-height: 240px;
      object-fit: contain;
    }
    .wow-tagline{
      padding: 1.25rem 1rem;
    }
    .contact-email{
      font-size: 1.05rem;
      word-break: break-word;
    }
  }


/* ==========================================================
   11. SUB-PAGES (Portfolio hub/detail, Books hub/detail,
       About, Contact) — shared with index.html via style.css
========================================================== */
.page-hero{
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
}
.page-hero p.section-eyebrow{
  margin-bottom: 0.75rem;
}
.page-intro{
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-text-soft);
}

.back-link{
  margin-bottom: 1.5rem;
}
.back-links-group{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.back-links-group .back-link{
  margin-bottom: 0;
}
.back-link .arrow-glyph{
  transform: scaleX(-1);
  margin-right: 0.2rem;
}
.back-link:hover .arrow-glyph{
  transform: scaleX(-1) translateX(4px);
}

.hub-card{
  display: block;
}
.hub-card img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  transition: opacity 0.35s ease;
}
.hub-card:hover img{
  opacity: 0.92;
}
.hub-card-caption{
  padding-top: 0.85rem;
}
.hub-card:hover .hub-card-caption .arrow-link{
  color: var(--color-accent);
  transform: translateX(4px);
}

.detail-image{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  margin-bottom: 2rem;
}

.book-detail-cover img{
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  box-shadow: 0 14px 30px -18px rgba(51,51,51,0.45);
  border-radius: 2px;
}
.book-detail-byline{
  color: var(--color-text-soft);
  font-style: italic;
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
}
.placeholder-note{
  color: var(--color-text-soft);
  font-size: 0.85rem;
  font-style: italic;
  border-left: 2px solid var(--color-line);
  padding-left: 0.85rem;
}

.about-full p{
  max-width: 640px;
}
.about-full p.section-eyebrow{
  max-width: none;
}

.contact-form label{
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 0.4rem;
}
.contact-form .form-control{
  background-color: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: 2px;
  color: var(--color-text);
  padding: 0.65rem 0.85rem;
}
.contact-form .form-control:focus{
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(181,103,58,0.15);
}
.contact-form button{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  background-color: var(--color-text);
  color: var(--color-bg);
  border: none;
  border-radius: 2px;
  padding: 0.7rem 1.75rem;
  transition: background-color 0.25s ease;
}
.contact-form button:hover{
  background-color: var(--color-accent);
}


/* ==========================================================
   12. PORTFOLIO GALLERY (filterable masonry grid)
========================================================== */
.portfolio-filters{
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 1.25rem;
}
.filter-btn{
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.filter-btn:hover{
  color: var(--color-text);
}
.filter-btn.is-active{
  color: var(--color-text);
  border-color: var(--color-accent);
}

/* Measured CSS Grid Masonry — used on the Portfolio hub and all 4
   category pages. grid-auto-rows defines a fine unit; a small
   companion script (identical on all 5 pages) reads each image's
   real rendered height and sets grid-row-end: span N accordingly,
   so every tile fits its image's true aspect ratio exactly — no
   guessed proportions, no white space. .span-2 lets a landscape
   piece break across two columns instead of being squeezed into
   one. */
.portfolio-columns-gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1px;
  gap: 2rem;
  width: 100%;
}
.masonry-tile{
  overflow: hidden;
}
.masonry-tile.span-2{
  grid-column: span 2;
}
.masonry-tile a{
  display: block;
  cursor: pointer;
}
.masonry-tile img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  transition: opacity 0.35s ease;
}
.masonry-tile:hover img{
  opacity: 0.55;
}
@media (max-width: 991.98px){
  .portfolio-columns-gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px){
  .portfolio-columns-gallery{ grid-template-columns: 1fr; }
  .masonry-tile.span-2{ grid-column: span 1; }
}

/* Composition page — Roscoe + the penguins, shown side by side on
   a shared height (same fixed-height/natural-width technique as
   the book covers), instead of the JS-measured masonry sizing. */
.composition-pair-row{
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}
.composition-pair-cover{
  display: block;
  cursor: pointer;
}
.composition-pair-cover img{
  height: 320px;
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: 2px;
  transition: opacity 0.35s ease;
}
.composition-pair-cover:hover img{
  opacity: 0.55;
}
@media (max-width: 991.98px){
  .composition-pair-cover img{ height: 260px; }
}
@media (max-width: 575.98px){
  .composition-pair-row{ justify-content: center; }
  .composition-pair-cover img{ height: 220px; }
}

/* Taller, spread variant — jimmy/roscoe and laura/cricket: left
   image flush left, right image flush right, both bigger. */
.composition-pair-row.is-spread{
  justify-content: space-between;
}
.composition-pair-row.is-tall .composition-pair-cover img{
  height: 340px;
}
@media (max-width: 991.98px){
  .composition-pair-row.is-tall .composition-pair-cover img{ height: 300px; }
}
@media (max-width: 575.98px){
  .composition-pair-row.is-tall .composition-pair-cover img{ height: 240px; }
}

/* Jimmy + Roscoe — narrower combined aspect ratio than the other
   pairs, so there's room for them to run bigger and still fit
   comfortably on one line. */
.composition-pair-row.is-xl .composition-pair-cover img{
  height: 390px;
}
@media (max-width: 991.98px){
  .composition-pair-row.is-xl .composition-pair-cover img{ height: 320px; }
}
@media (max-width: 575.98px){
  .composition-pair-row.is-xl .composition-pair-cover img{ height: 240px; }
}

/* Laura + cricket — wider combined aspect ratio than jimmy/roscoe,
   so it tops out a bit lower to still fit on one line. */
.composition-pair-row.is-lg .composition-pair-cover img{
  height: 365px;
}
@media (max-width: 991.98px){
  .composition-pair-row.is-lg .composition-pair-cover img{ height: 305px; }
}
@media (max-width: 575.98px){
  .composition-pair-row.is-lg .composition-pair-cover img{ height: 240px; }
}

/* Composition page — full-width standalone spreads (France, Italy):
   the image fills the container at its own natural aspect ratio. */
.composition-full-row{
  margin-top: 2rem;
}
.composition-full-cover{
  display: block;
  cursor: pointer;
}
.composition-full-cover img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  transition: opacity 0.35s ease;
}
.composition-full-cover:hover img{
  opacity: 0.9;
}

.portfolio-cta{
  text-align: center;
  border-top: 1px solid var(--color-line);
  padding-top: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.portfolio-cta p.section-subtitle{
  margin-bottom: 1rem;
}

/* Temporary "coming soon" state for a gallery — used to hold a
   category page back from public view (e.g. pending a client's
   go-ahead) without deleting any of its content. Add the class
   "is-coming-soon" to a .gallery-hold wrapper to hide the real
   gallery and show the placeholder notice instead; remove the
   class to restore the page exactly as it was. */
.gallery-hold .coming-soon-notice{
  display: none;
}
.gallery-hold.is-coming-soon .portfolio-columns-gallery{
  display: none;
}
.gallery-hold.is-coming-soon .coming-soon-notice{
  display: block;
  text-align: center;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  background-color: var(--color-bg-alt);
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.coming-soon-notice p.section-title{
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.coming-soon-notice p.section-subtitle{
  color: var(--color-text-soft);
  max-width: 480px;
  margin: 0 auto;
}

/* Lightbox — click any gallery tile to see it larger, in place,
   with a close (×) button instead of a bare new browser tab. */
.lightbox-overlay{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 22, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem);
}
.lightbox-overlay.is-active{
  display: flex;
}
.lightbox-overlay img{
  max-width: 100%;
  max-height: 88vh;
  display: block;
  border-radius: 2px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.lightbox-close{
  position: absolute;
  top: clamp(1rem, 3vw, 1.75rem);
  right: clamp(1rem, 3vw, 1.75rem);
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.lightbox-close:hover{
  opacity: 0.65;
}
.lightbox-close svg{
  width: 26px;
  height: 26px;
}
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.lightbox-nav:hover{
  opacity: 1;
}
.lightbox-nav svg{
  width: 30px;
  height: 30px;
}
.lightbox-prev{
  left: clamp(0.5rem, 3vw, 1.75rem);
}
.lightbox-next{
  right: clamp(0.5rem, 3vw, 1.75rem);
}

/* ==========================================================
   13. PUBLISHED BOOKS — FEATURED PROJECTS + ALL BOOKS GRID
   Both rows use the same technique as the homepage .books-row:
   every cover shares one fixed height and keeps its own native
   width (no cropping), wrapping naturally onto new lines as
   needed so covers of every aspect ratio sit on a shared
   baseline without distortion.
========================================================== */
.featured-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem 1.5rem;
  margin-bottom: 3rem;
}
.featured-card{
  flex: 0 0 auto;
  text-align: left;
  max-width: 100%;
}
.featured-cover{
  margin-bottom: 1rem;
}
.featured-cover a{
  display: block;
}
.featured-cover img{
  height: 280px;   /* shared height across all 4 covers; width follows each cover's own aspect ratio */
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: 2px;
  box-shadow: 0 14px 30px -18px rgba(51,51,51,0.45);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.featured-cover a:hover img{
  opacity: 0.82;
  transform: translateY(-4px);
  box-shadow: 0 22px 34px -16px rgba(51,51,51,0.5);
}
.featured-byline{
  font-size: 0.92rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}
.featured-placeholder{
  display: inline-block;
  color: var(--color-text-soft);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-line);
  border-radius: 2px;
  padding: 0.35rem 0.75rem;
}
@media (max-width: 991.98px){
  .featured-cover img{ height: 220px; }
}
@media (max-width: 575.98px){
  .featured-row{ justify-content: center; }
  .featured-cover img{ height: 200px; }
}

.all-books-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.75rem 1.5rem;
}
.book-tile{
  flex: 0 0 auto;
  max-width: 100%;
  text-align: center;
}
.book-tile-cover a{
  display: block;
  cursor: pointer;
}
.book-tile-cover img{
  height: 220px;   /* shared height across every cover; width follows each cover's own aspect ratio */
  width: auto;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 10px 22px -16px rgba(51,51,51,0.4);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.book-tile-cover a:hover img{
  opacity: 0.78;
  transform: translateY(-4px);
  box-shadow: 0 18px 28px -14px rgba(51,51,51,0.45);
}
.book-tile-meta{
  margin-top: 0.6rem;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  line-height: 1.4;
}
@media (max-width: 991.98px){
  .book-tile-cover img{ height: 175px; }
}
@media (max-width: 575.98px){
  .all-books-row{ justify-content: center; }
  .book-tile-cover img{ height: 140px; }
}


/* ==========================================================
   14. BOOK DETAIL PAGE (Featured Project pages)
========================================================== */
.book-hero-cover img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 24px 48px -22px rgba(51,51,51,0.5);
}
.book-hero-title{
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
}
.book-hero-byline{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-text);
  margin-bottom: 0.15rem;
}
.book-hero-year{
  color: var(--color-text-soft);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.book-meta-list{
  margin-top: 1.75rem;
  margin-bottom: 0;
  border-top: 1px solid var(--color-line);
  padding-top: 1.25rem;
}
.book-meta-row{
  display: flex;
  gap: 1.25rem;
  padding: 0.45rem 0;
  font-size: 0.92rem;
}
.book-meta-row dt{
  flex: 0 0 120px;
  color: var(--color-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  margin: 0;
  padding-top: 0.2rem;
}
.book-meta-row dd{
  margin: 0;
}

.spread-single img,
.spread-stack img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
.spread-stack{
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sketch-stage-wrap{
  text-align: center;
}
.sketch-stage-wrap img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--color-line);
  margin-bottom: 0.6rem;
}
.sketch-stage-label{
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.next-projects-row{
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.next-project-cover{
  display: block;
}
.next-project-cover img{
  height: 220px;
  width: auto;
  max-width: 100%;
  display: block;
  border-radius: 2px;
  box-shadow: 0 14px 30px -18px rgba(51,51,51,0.45);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.next-project-cover:hover img{
  opacity: 0.85;
  transform: translateY(-4px);
  box-shadow: 0 22px 34px -16px rgba(51,51,51,0.5);
}
@media (max-width: 575.98px){
  .next-project-cover img{ height: 180px; }
}
