/* ==========================================================================
   Nakshathra Residency — the photographs page

   Page-specific only. Everything structural (the grid itself, the buttons,
   the lightbox, the masthead, the footer) comes from style.css.

   One constraint shapes this file: main.js reads every button inside the
   single #gallery-grid, so the whole page has to be ONE grid. The set titles
   are therefore rows of that same grid, spanning it end to end.
   ========================================================================== */

/* --- the page head ------------------------------------------------------- */

.pagehead { padding-bottom: clamp(2rem, 4vw, 3rem); }

.pagehead .sec-head { margin-bottom: 1.75rem; }

/* jump links to each set — pills, sized for a thumb */
.setnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setnav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35em 1em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.setnav a:hover {
  color: var(--text);
  border-color: var(--gold);
  background: var(--surface);
}

/* --- set titles, living inside the one grid ------------------------------ */

.gallery--sets { row-gap: 0.75rem; }

/* a full-width row of the photo grid, so the grid stays unbroken */
.set-head {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: clamp(2rem, 4.5vw, 3.25rem);
  padding-bottom: 0.35rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}

/* the first set opens the grid, so it needs no rule above it */
.set-head:first-child { padding-top: 0; border-top: 0; }

.set-head h2 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--step-2);
}

.set-head h2 .star { width: 0.7em; height: 0.7em; }

.set-head p {
  color: var(--text-2);
  font-size: 0.95rem;
  max-width: 60ch;
}

.set-head__count {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --- captions ------------------------------------------------------------ */

/* there is no hover on a touch screen, so the caption would never appear */
@media (hover: none) {
  .gallery--sets figcaption { opacity: 1; }
}

/* --- the closing block --------------------------------------------------- */

.visit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.visit__address {
  font-family: "Anek Latin", sans-serif;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--block-gold);
  color: var(--block-text-2);
}

/* --- narrow screens ------------------------------------------------------ */

@media (max-width: 46rem) {
  .set-head h2 { font-size: var(--step-1); }
  .set-head p { font-size: 0.92rem; }
}

@media (max-width: 34rem) {
  .gallery--sets { gap: 0.5rem; }
  .setnav a { font-size: 0.8rem; padding-inline: 0.85em; }
}
