/* Public homepage galleries. Scoped to avoid changes to the member portal. */
.emw-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.emw-photo{margin:0;min-width:0;background:#10151c;border:1px solid #242d38;border-radius:14px;overflow:hidden;transition:border-color .2s,transform .2s}
.emw-photo:hover{border-color:#647180;transform:translateY(-3px)}
.emw-photo-link{display:block;position:relative;overflow:hidden;aspect-ratio:16/10;background:#090d12;cursor:zoom-in}
.emw-photo-link img{width:100%;height:100%;object-fit:cover;transition:transform .45s}
.emw-photo-link:hover img{transform:scale(1.035)}
.emw-photo-zoom{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#0a101bcc;border:1px solid #ffffff50;color:white;font-size:21px;backdrop-filter:blur(8px)}
.emw-photo figcaption{padding:15px 17px;line-height:1.5}
.emw-photo figcaption strong{display:block;font-size:15px;color:#f2f4f8;font-weight:650}
.emw-photo figcaption span{display:block;margin-top:5px;font-size:12px;color:#a7b3c1}
.emw-behind{margin:56px 0;padding:28px;display:grid;grid-template-columns:1fr 1.3fr;gap:36px;align-items:center;background:linear-gradient(125deg,#111923,#0b1017);border:1px solid #273240;border-radius:18px}
.emw-behind h3,.emw-archive-head h3{font-size:clamp(25px,3vw,39px);line-height:1.12;letter-spacing:-.035em;margin:0 0 16px}
.emw-behind-copy p{color:#a7b3c1;margin-bottom:0}
.emw-behind-photos{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.emw-behind-photos .emw-photo-link{aspect-ratio:4/5;max-height:260px}
.emw-behind-photos img{object-position:center 70%}
.emw-behind-photos figcaption{padding:10px 12px}
.emw-behind-photos figcaption strong{font-size:12px}
.emw-archive-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:0 0 24px}
.emw-archive-head p{max-width:340px;font-size:14px;color:#a7b3c1}
.emw-archive-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.emw-incident-intro{display:grid;grid-template-columns:1fr 1fr;gap:48px;margin-bottom:32px}
.emw-incident-intro p{margin:0 0 16px;color:#aeb9c6}
.emw-incident-intro .lead{color:#eef1f5;font-size:20px;line-height:1.65}
.emw-incident-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.emw-incident-grid .emw-photo-link{aspect-ratio:4/5}
.emw-incident-grid figcaption strong{font-size:14px}
.emw-gallery-section a:focus-visible,.emw-incidents a:focus-visible,.emw-lightbox button:focus-visible{outline:3px solid #51c8ef;outline-offset:4px}
.emw-lightbox{position:fixed;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;border:0;padding:18px;background:rgba(5,8,13,.96);color:white;overflow:hidden}
.emw-lightbox::backdrop{background:#030509dd;backdrop-filter:blur(12px)}
.emw-lightbox[open]{display:flex;flex-direction:column;animation:emw-gallery-enter .2s ease-out}
.emw-lightbox-top{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:0 0 12px}
.emw-lightbox-label{font-size:13px;color:#bcc8d5;letter-spacing:.025em}
.emw-lightbox button{flex:none;border:1px solid #546170;background:#18212c;color:#fff;border-radius:50%;height:48px;width:48px;font-size:27px;display:grid;place-items:center}
.emw-lightbox button:hover{background:#303e50}
.emw-lightbox-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;gap:16px}
.emw-lightbox-figure{margin:0;min-width:0;height:100%;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px}
.emw-lightbox-img{display:block;min-height:0;max-height:calc(100% - 100px);max-width:100%;width:auto;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 20px 80px #0008}
.emw-lightbox-caption{flex:none;text-align:center;max-width:850px;max-height:85px;overflow:auto;font-size:14px;line-height:1.5;color:#d8e0eb}
.emw-lightbox-error{color:#f5bec1}
@keyframes emw-gallery-enter{from{opacity:0;transform:scale(.985)}to{opacity:1;transform:scale(1)}}
@media(min-width:1400px){.emw-photo-grid:not(.emw-archive-grid):not(.emw-incident-grid){grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1000px){.emw-photo-grid,.emw-archive-grid,.emw-incident-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.emw-behind{grid-template-columns:1fr;gap:24px}.emw-behind-photos .emw-photo-link{aspect-ratio:4/3;max-height:240px}.emw-incident-intro{gap:24px}.emw-lightbox-stage{gap:8px}}
@media(max-width:600px){.emw-photo-grid{gap:14px}.emw-gallery-section .emw-photo-grid,.emw-incident-grid{grid-template-columns:1fr}.emw-behind{padding:20px;margin:36px 0}.emw-behind-photos{gap:10px}.emw-behind-photos .emw-photo-link{aspect-ratio:3/4}.emw-behind-photos figcaption{padding:9px}.emw-archive-head{display:block}.emw-incident-intro{grid-template-columns:1fr;gap:0}.emw-incident-intro .lead{font-size:18px}.emw-incident-grid .emw-photo-link{aspect-ratio:4/3}.emw-lightbox{padding:12px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}.emw-lightbox-stage{position:relative;padding-bottom:60px}.emw-lightbox-stage>button{position:absolute;bottom:0}.emw-lightbox-prev{left:calc(50% - 58px)}.emw-lightbox-next{right:calc(50% - 58px)}.emw-lightbox-caption{font-size:13px;max-height:110px}.emw-lightbox-img{max-height:calc(100% - 125px)}}
@media(prefers-reduced-motion:reduce){.emw-photo,.emw-photo-link img,.emw-lightbox[open]{transition:none;animation:none}.emw-photo:hover,.emw-photo-link:hover img{transform:none}}

/* Camera portraits retain their natural 3:4 proportions, including on mobile. */
.emw-behind .emw-behind-photos{grid-template-columns:repeat(2,minmax(0,195px));justify-content:end;align-items:start}
.emw-behind .emw-behind-photos .emw-photo{width:100%;align-self:start}
.emw-behind .emw-behind-photos .emw-photo-link{position:relative;display:block;width:100%;height:auto;aspect-ratio:3/4;max-height:none}
.emw-behind .emw-behind-photos .emw-photo-link img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center}
@media(max-width:1000px){.emw-behind .emw-behind-photos{justify-content:start}}

/* Six incident photographs: three columns on desktop, two on tablet, one on mobile. */
.emw-incidents .emw-incident-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:1000px){.emw-incidents .emw-incident-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.emw-incidents .emw-incident-grid{grid-template-columns:1fr}}
