/* public/css/photos.css */
:root { --photo-overlay: rgba(15,25,18,.55); }

/* Page header strip */
.photo-header { position: relative; height: clamp(200px, 32vw, 340px); overflow: hidden; }
.photo-header__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-header__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,25,18,.15), rgba(15,25,18,.65)); }
.photo-header__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 1.75rem; }
.photo-header__label { font-family: 'Libre Baskerville', serif; font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: #e8dcc8; margin-bottom: .35rem; }
.photo-header__title { color: var(--stp-warm-white); font-size: clamp(1.6rem, 3.5vw, 2.6rem); }

/* Scripture band */
.scripture-band { position: relative; min-height: clamp(180px, 26vw, 280px); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.scripture-band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scripture-band__scrim { position: absolute; inset: 0; background: var(--photo-overlay); }
.scripture-band__content { position: relative; text-align: center; padding: 2.5rem 1.5rem; max-width: 720px; }
.scripture-band__verse { color: var(--stp-warm-white); font-style: italic; font-size: clamp(1.1rem, 2.4vw, 1.6rem); line-height: 1.4; }
.scripture-band__cite { color: #e8dcc8; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 1rem; }

/* Image card grid */
.image-card-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .image-card-grid.cols-2 { grid-template-columns: repeat(2,1fr); } .image-card-grid.cols-3 { grid-template-columns: repeat(3,1fr); } .image-card-grid.cols-4 { grid-template-columns: repeat(4,1fr); } }
.image-card { display: block; text-decoration: none; border: 1px solid var(--stp-stone); background: #fff; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.image-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.10); }
.image-card:focus-visible { outline: 2px solid var(--stp-green); outline-offset: 2px; }
/* The aspect ratio + crop ownership live on this wrapper, not the <img>
   itself: an <img> that tries to both establish its own aspect-ratio (from
   an arbitrary uploaded photo's real width/height) and crop via object-fit
   is one declaration away from spilling outside its box in some browsers.
   A wrapper with a fixed aspect-ratio and overflow:hidden guarantees the
   crop regardless of the source image's actual dimensions. */
.image-card__media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.image-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-card__body { display: block; padding: .9rem 1.1rem 1.1rem; }
.image-card__label { display: block; font-family: 'Libre Baskerville', serif; font-size: .62rem; text-transform: uppercase; letter-spacing: .2em; color: var(--stp-wood); margin-bottom: .25rem; }
.image-card__title { display: block; color: var(--stp-charcoal); font-size: 1.05rem; }
.image-card:hover .image-card__title { color: var(--stp-green); }

/* Detail diptych */
.detail-diptych { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
@media (min-width: 768px) { .detail-diptych { grid-template-columns: 5fr 7fr; } .detail-diptych.reverse .detail-diptych__media { order: 2; } }
.detail-diptych__media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.detail-diptych__label { font-family: 'Libre Baskerville', serif; font-size: .7rem; text-transform: uppercase; letter-spacing: .22em; color: var(--stp-wood); }
.detail-diptych__title { color: var(--stp-charcoal); font-size: 1.5rem; margin: .35rem 0 .75rem; }
.detail-diptych__body { font-size: 1rem; line-height: 1.8; color: #4a4540; }

/* Liturgical season tint (applied to .photo-header / .scripture-band via .tint-*) */
.tint-lent .scripture-band__scrim, .tint-lent .photo-header__scrim { background: linear-gradient(180deg, rgba(107,33,168,.30), rgba(107,33,168,.62)); }
.tint-advent .scripture-band__scrim, .tint-advent .photo-header__scrim { background: linear-gradient(180deg, rgba(75,0,130,.30), rgba(75,0,130,.62)); }
.tint-easter .scripture-band__scrim, .tint-easter .photo-header__scrim { background: linear-gradient(180deg, rgba(201,169,97,.30), rgba(15,25,18,.55)); }

/* Reduced motion: no parallax, no transitions */
@media (prefers-reduced-motion: reduce) { .image-card { transition: none; } }
