/* ==========================================================================
   Maxa.On — Atmosphere photography (shared across all 3 designs)
   Uses only variables present in every theme: --line, --gold, --ease.
   Text/serif fall back gracefully when a design uses different tokens.
   ========================================================================== */

/* ----- Full-bleed atmospheric band ----- */
.photo-band {
  position: relative;
  height: clamp(340px, 46vw, 520px);
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.photo-band .pb-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.02);
}
.photo-band .pb-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(12,10,7,0.30) 0%, rgba(12,10,7,0.66) 100%);
}
.photo-band .pb-content { position: relative; z-index: 2; padding: 0 26px; max-width: 860px; }
.photo-band .pb-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.photo-band .pb-quote {
  font-family: var(--serif, "Cinzel", "Times New Roman", serif);
  color: #fff;
  font-size: clamp(1.5rem, 3.6vw, 2.7rem);
  line-height: 1.32;
  margin-top: 20px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}

/* ----- Atmosphere gallery ----- */
.atmo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(178px, 1fr);
  gap: 16px;
}
.atmo-cell {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(128, 128, 128, 0.06);
}
.atmo-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.1s var(--ease, ease);
}
.atmo-cell:hover img { transform: scale(1.06); }
.atmo-cell figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px;
  font-size: 0.78rem; letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.74), rgba(0,0,0,0) 100%);
}
.atmo-lg { grid-column: span 2; grid-row: span 2; }
.atmo-wide { grid-column: span 2; }

@media (max-width: 820px) {
  .atmo-grid { grid-template-columns: repeat(2, 1fr); }
  .atmo-lg { grid-column: span 2; grid-row: span 1; min-height: 260px; }
  .atmo-wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .atmo-grid { grid-template-columns: 1fr; }
  .atmo-lg, .atmo-wide { grid-column: span 1; }
}
