/* ── RAPTURE Photography — Individual Location Page ── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Fade-in on page load */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  font-family: 'Century Gothic', 'Futura', 'Nunito', sans-serif;
  font-weight: 300;
  background: #EDF5FD;
  min-height: 100vh;
  color: #2a2a2a;

  /* Smooth fade-in when the page loads */
  animation: pageFadeIn 0.55s ease both;

  /* Fade-out class (added by JS before navigating away) */
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.fade-out {
  opacity: 0;
  transform: translateY(-8px);
}

/* ── Top bar ── */
.location-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 2.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

/* RAPTURE wordmark — same weight and spacing as main site nav */
.location-nav__brand {
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #2a2a2a;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.location-nav__brand:hover { opacity: 1; }

/* Back link — quiet, uppercase */
.location-nav__back {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2a2a2a;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}

.location-nav__back:hover { opacity: 0.85; }

/* ── Hero block ── */
.location-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 7rem 2rem 4rem;
}

/* Location name — large and prominent */
.location-hero__title {
  font-size: clamp(2.4rem, 7vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 2rem;
}

/* Photo count — small label beneath the location name */
.location-hero__count {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.35;
  margin-bottom: 1.75rem;
}

/* Thin decorative rule below the count */
.location-hero__rule {
  width: 40px;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.18);
  margin-bottom: 2rem;
}

/* Subtext */
.location-hero__note {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  letter-spacing: 0.06em;
  line-height: 1.8;
  opacity: 0.45;
  max-width: 380px;
}

/* ── Live Airtable gallery ── */
.location-gallery {
  width: 100%;
  max-width: 1100px;
  margin: 5rem auto 0;
  padding: 0 2rem 8rem;
  padding-top: 5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.location-gallery .gallery__item {
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 5;
}

.location-gallery .gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  .location-gallery .gallery__item:hover img {
    transform: scale(1.03);
  }
}

.catalog-empty {
  grid-column: 1 / -1;
  min-height: 20vh;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.2;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .location-nav { padding: 1.2rem 1.5rem; }
  .location-hero { padding: 5rem 1.5rem 3rem; }
  .location-gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 3rem 1.5rem 5rem;
  }
}


/* ── Footer ── */

.location-footer {
  border-top: 1px solid #d6e4f0;
  padding-block: 2.5rem;
  text-align: center;
}

.location-footer p {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #8e99a6;
}

/* Footer links — Digital Download License, Privacy Policy, Contact */
.location-footer__links {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.location-footer__links a {
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #8e99a6;
  text-decoration: none;
  transition: color 0.2s ease;
}

.location-footer__links a:hover { color: #4a7fb5; }

.footer-verse {
  max-width: 48rem;
  margin: 1.75rem auto 0;
  padding-inline: 1.5rem;
}

.footer-verse p {
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: #8e99a6;
}

.footer-verse p + p {
  margin-top: 0.35rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  font-style: normal;
}


/* ── IMAGE PROTECTION ─────────────────────────────────────────
   Discourages casual copying of the photographs without changing
   how they look: blocks drag-to-desktop and long-press saving on
   mobile. Right-click and drag events are also handled by
   /image-protection.js. */
img {
  -webkit-user-drag: none;      /* Safari/Chrome: no dragging   */
  user-select: none;            /* no accidental selection      */
  -webkit-user-select: none;
  -webkit-touch-callout: none;  /* iOS: no long-press save menu */
}
