/* A Finished make's own page: a grid of straight square photos (Anne chose "B · Grid", 2026-11-04).
   Pages live in makes/; options/gallery-*.html keep the three layouts she compared. */

.g-wrap { max-width: 1100px; margin: 0 auto; padding: clamp(16px, 4vw, 40px) clamp(20px, 5vw, 64px) 0; }
.g-head { text-align: center; max-width: 720px; margin: 0 auto; }
.g-back { display: inline-block; margin-bottom: 10px; font-family: "Caveat", cursive; font-size: 22px; color: var(--clay); }
.g-meta { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); }
.g-title { font-family: var(--serif); font-weight: 350; font-size: clamp(40px, 5.6vw, 72px); line-height: 1.05; margin: 6px 0 14px; }
.g-note { font-size: 18px; color: var(--muted); max-width: 46ch; margin: 0 auto; }
.g-pattern { margin-top: 14px; font-size: 15px; }
.g-pattern a { color: var(--clay); }

/* Three across; a short last row (or a make with only one or two photos) sits in the middle */
.g-grid { --gap: clamp(12px, 2vw, 24px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); margin-top: 48px; }
.g-grid figure { margin: 0; width: calc((100% - 2 * var(--gap)) / 3); }
.g-img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--linen); cursor: zoom-in; }
.g-cap { font-family: "Caveat", cursive; font-size: 21px; color: var(--muted); margin-top: 6px; }
.g-footnote { margin: 32px 0 0; text-align: left; font-size: 15px; color: var(--muted); }

/* Big photo viewer */
.lightbox { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; background: rgba(59, 47, 39, .86); padding: 24px 64px; }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { display: block; max-width: min(86vw, 900px); max-height: 82vh; margin: 0 auto; }
.lightbox figcaption { font-family: "Caveat", cursive; font-size: 24px; color: #fffaf1; padding-top: 10px; }
.lightbox button { position: absolute; background: none; border: 0; color: #fffaf1; font: 400 44px/1 var(--serif); cursor: pointer; padding: 12px; }
.lb-close { top: 12px; right: 18px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

@media (max-width: 760px) {
  .g-grid figure { width: calc((100% - var(--gap)) / 2); }
  .lightbox { padding: 24px 12px; }
}

/* Tall doll photos shown whole: a soft, blurred copy of the same photo fills the sides (Anne chose "B · Blurred",
   options/photo-sides.html; other tall photos keep plain cream sides). Markup:
   <span class="g-blur" style="--bg: url(photo.jpg)"><img class="g-img" src="photo.jpg" style="object-fit: contain"></span> */
.g-blur { position: relative; display: block; overflow: hidden; aspect-ratio: 1; }
.g-blur::before { content: ""; position: absolute; inset: -30px; background: var(--bg) center / cover; filter: blur(16px); }
.g-blur .g-img { position: relative; background: transparent; }
