/* photos.css — shared engagement-photo primitives for option-a/b/c.
   Warm editorial palette preserved. Motion is subtle + reduced-motion aware. */

/* ---- picture hydration ------------------------------------------------- */
.photo {
  display: block;
  position: relative;
  overflow: hidden;
  background-color: var(--parchment);
}
picture.photo { line-height: 0; }
.photo .photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.photo.is-loaded .photo-img { opacity: 1; }

/* warm wash so text stays readable over any photo */
.photo-wash::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(46,40,32,0.55) 0%, rgba(46,40,32,0.12) 45%, rgba(245,240,232,0.04) 100%);
  pointer-events: none;
  z-index: 2;
}
.photo-wash--soft::after {
  background: linear-gradient(to top, rgba(46,40,32,0.34), rgba(46,40,32,0.05) 60%);
}

/* thin gold frame used throughout */
.framed {
  border: 1px solid rgba(184,151,106,0.55);
  box-shadow: 0 18px 50px -28px rgba(46,40,32,0.55);
}

/* ---- Ken Burns --------------------------------------------------------- */
.kenburns { overflow: hidden; }
.kenburns .photo-img {
  transform-origin: 58% 42%;
  will-change: transform;
}
.kenburns.kenburns-on .photo-img {
  animation: kenburns 18s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.07); }
}

/* ---- Parallax band ----------------------------------------------------- */
.band {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.band__media {
  position: absolute;
  left: 0;
  right: 0;
  top: -16%;
  height: 132%;       /* slack so parallax translate never reveals edges */
  z-index: 0;
  will-change: transform;
}
.band__media .photo,
.band__media .photo-img {
  width: 100%;
  height: 100%;
}
.band__inner {
  position: relative;
  z-index: 3;
  padding: 40px;
  color: var(--cream);
}
.band__date {
  font-family: 'Cormorant', serif;
  font-weight: 300;
  letter-spacing: 0.3em;
  font-size: clamp(1.1rem, 3vw, 2rem);
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(46,40,32,0.6);
}
.band__quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1.3rem, 3.4vw, 2.4rem);
  line-height: 1.4;
  max-width: 18ch;
  margin: 0 auto;
  text-shadow: 0 2px 24px rgba(46,40,32,0.55);
}
.band__label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245,240,232,0.85);
  margin-bottom: 18px;
}

/* ---- Gallery (grayscale by default, colour on hover desktop) ----------- */
.gallery-photo {
  filter: grayscale(100%) contrast(1.02);
  transition: filter 0.7s ease, transform 0.7s ease;
}
@media (hover: hover) and (pointer: fine) {
  .gallery-photo:hover { filter: grayscale(0%); }
}

/* ---- Lightbox ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  background: rgba(30,26,20,0.92);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; animation: lb-in 0.3s ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  border: 1px solid rgba(245,240,232,0.15);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--cream);
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}
.lightbox-close:hover { opacity: 1; }

/* ---- Reduced motion: everything static -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .kenburns .photo-img { animation: none !important; transform: none !important; }
  .band__media .photo-img { transform: scale(1) !important; }
  .photo .photo-img { transition: none; opacity: 1; }
}
