/* ============================================================
   PHOTO GALLERY — shared pattern
   Basic responsive photo grid used by every simple photo-gallery
   page (workshop, illustration series, etc). Copy an existing
   gallery page (e.g. projects/ux-workshop-gallery.html) as the template —
   this file needs no changes to add a new gallery page.
   Swap .gallery-tile-img--placeholder divs for real
   <img class="gallery-tile-img"> tags as photos land.
   ============================================================ */

.gallery-hero {
  padding: 10rem 3rem 3rem;
  background: var(--cream);
  text-align: center;
}
.gallery-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--warm-gray);
  transition: color var(--ease-default);
}
.gallery-back:hover { color: var(--teal); }
.gallery-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  margin: 0.5rem 0 1rem;
}
.gallery-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--warm-gray);
  font-size: 1.05rem;
}

.gallery-grid-section { padding: 4rem 3rem 6rem; }

.gallery-grid-heading,
.gallery-note h2 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}

/* Supporting copy under the grid — gives the page real indexable content
   and an onward path, instead of dead-ending on a wall of photos. */
.gallery-note {
  max-width: 720px;
  margin: 4rem auto 0;
}
.gallery-note h2 { margin-bottom: 1rem; }
.gallery-note p {
  color: var(--warm-gray);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.gallery-note a {
  color: var(--teal-deep);
  border-bottom: 1px solid rgba(26, 158, 143, 0.35);
  transition: border-color var(--ease-default);
}
.gallery-note a:hover { border-color: var(--teal); }
.gallery-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-tile {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--light-gray);
  box-shadow: var(--shadow-soft);
  transition: transform var(--ease-default), box-shadow var(--ease-default);
}
.gallery-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.gallery-tile-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
/* .gallery-tile already lifts + shadows on hover — the image itself
   doesn't need its own .zoomable lift stacked on top of that (same
   pattern as .carousel-slide .zoomable in case-study.css). Cursor and
   click-to-zoom behavior are unaffected. */
.gallery-tile-img.zoomable:hover { transform: none; box-shadow: none; }
.gallery-tile-img.zoomable:active { transform: none; }
/* .zoomable's own border-radius (lightbox.css) is for standalone
   images — here the tile sits below it, so the image's own corners
   must stay square and let .gallery-tile's overflow:hidden do the
   rounding only at the tile's true top/bottom edges. Otherwise the
   image's bottom corners round independently and visibly clash with
   the flush-square label box beneath it. */
.gallery-tile-img.zoomable { border-radius: 0; }

.gallery-tile-label {
  display: block;
  padding: 0.85rem 1rem;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  text-align: center;
}
.gallery-tile-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.15rem;
  text-align: center;
  padding: 1rem;
}
.placeholder--teal  { background: linear-gradient(135deg, #046656, #3dfbd4); }
.placeholder--coral { background: linear-gradient(135deg, #b8250f, #ffaa5c); }
.placeholder--navy  { background: linear-gradient(135deg, #101b42, #4fa8ff); }
.placeholder--ink   { background: linear-gradient(135deg, #08080f, #8a8ac2); }
