/* Photo archives, rendered from the existing album module. */
.bm-portal .bp-photos { color:#f5f3ef; min-width:0; }
.bm-portal .bp-gallery-intro { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin:0 0 28px; color:#b7ad9e; font:14px/1.6 Arial,Helvetica,sans-serif; }
.bm-portal .bp-gallery-intro p { margin:0; }
.bm-portal .bp-gallery-intro > span { color:#8f8578; font-size:12px; }
.bm-portal .bp-albums { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:32px 22px; }
.bm-portal .bp-album { min-width:0; padding-bottom:22px; border-bottom:1px solid #302b25; }
.bm-portal .bp-album-cover, .bm-portal .bp-photo-open { display:block; position:relative; overflow:hidden; background:#171511; }
.bm-portal .bp-album-cover { aspect-ratio:1.7; }
.bm-portal .bp-album-cover img, .bm-portal .bp-photo-open img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.bm-portal .bp-album-cover:hover img, .bm-portal .bp-photo-open:hover img { transform:scale(1.035); }
.bm-portal .bp-album-cover > span, .bm-portal .bp-photo-open > span { display:grid; place-items:center; position:absolute; right:12px; bottom:12px; width:30px; height:30px; border:1px solid #ffffff85; border-radius:50%; background:#05050577; color:#fff; font-size:18px; }
.bm-portal .bp-album-meta { display:flex; justify-content:space-between; gap:12px; margin:14px 0 9px; color:#a99b8a; font:11px/1.5 Arial,Helvetica,sans-serif; }
.bm-portal .bp-album-meta > span:last-child { color:#6f685d; font-size:10px; letter-spacing:.04em; }
.bm-portal .bp-album h2 { margin:0; font:400 21px/1.22 Arial,Helvetica,sans-serif; letter-spacing:-.025em; color:#f5f3ef; }
.bm-portal .bp-album h2 a:hover { color:#ff8a42; }
.bm-portal .bp-gallery-heading { margin:0 0 26px; padding-bottom:24px; border-bottom:1px solid #302b25; }
.bm-portal .bp-back { display:inline-block; margin-bottom:20px; color:#baaa94; font:12px/1.5 Arial,Helvetica,sans-serif; }
.bm-portal .bp-gallery-heading h2 { max-width:900px; margin:0 0 15px; color:#f5f3ef; font:400 clamp(25px,3.2vw,40px)/1.15 Arial,Helvetica,sans-serif; letter-spacing:-.04em; }
.bm-portal .bp-gallery-heading p { display:flex; flex-wrap:wrap; gap:8px; margin:0; color:#9d9282; font:12px/1.7 Arial,Helvetica,sans-serif; }
.bm-portal .bp-photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px 18px; }
.bm-portal .bp-photo { min-width:0; margin:0; }
.bm-portal .bp-photo-open { aspect-ratio:4/3; }
.bm-portal .bp-photo figcaption { display:flex; justify-content:space-between; align-items:center; gap:10px; padding-top:10px; color:#8d8376; font:11px/1.5 Arial,Helvetica,sans-serif; }
.bm-portal .bp-photo-download { display:inline-flex; align-items:center; gap:12px; color:#b7a58f; }
.bm-portal .bp-photo-download:hover, .bm-portal .bp-back:hover { color:#ff8a42; }
.bm-portal .bp-lightbox { box-sizing:border-box; width:min(1400px,96vw); max-width:none; max-height:94dvh; margin:auto; padding:0; border:1px solid #494136; background:#0d0c0a; color:#f5f3ef; overflow:auto; }
.bm-portal .bp-lightbox::backdrop { background:#000e; }
.bm-portal .bp-lightbox:not([open]), .bm-portal .bp-lightbox [hidden] { display:none !important; }
.bm-portal .bp-lightbox-inner { padding:18px 22px 22px; }
.bm-portal .bp-lightbox-top { display:flex; justify-content:space-between; align-items:center; gap:18px; padding-bottom:16px; font:12px/1.5 Arial,Helvetica,sans-serif; color:#a79c8b; }
.bm-portal .bp-lightbox button { cursor:pointer; color:#f5f3ef; background:transparent; border:1px solid #51483b; font:14px/1.4 Arial,Helvetica,sans-serif; }
.bm-portal .bp-lightbox-close { display:inline-flex; align-items:center; gap:20px; min-height:40px; padding:8px 14px; border-radius:30px; }
.bm-portal .bp-lightbox-close > span { font-size:24px; line-height:1; }
.bm-portal .bp-lightbox-stage { position:relative; display:grid; place-items:center; min-height:200px; background:#050505; }
.bm-portal .bp-lightbox-stage > img { display:block; width:100%; height:min(66dvh,760px); object-fit:contain; }
.bm-portal .bp-lightbox-prev, .bm-portal .bp-lightbox-next { position:absolute; top:50%; z-index:2; display:grid; place-items:center; width:46px; height:46px; margin-top:-23px; border-radius:50%; background:#050505bd !important; font-size:24px !important; }
.bm-portal .bp-lightbox-prev { left:14px; }
.bm-portal .bp-lightbox-next { right:14px; }
.bm-portal .bp-lightbox button:hover { background:#f5f3ef !important; color:#050505; }
.bm-portal .bp-lightbox-bottom { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:15px 28px; padding-top:20px; }
.bm-portal .bp-lightbox-bottom h3 { flex:1 1 280px; margin:0; color:#ddd4c8; font:400 16px/1.5 Arial,Helvetica,sans-serif; }
.bm-portal .bp-lightbox-bottom > div { display:flex; flex-wrap:wrap; gap:14px 22px; }
.bm-portal .bp-lightbox-bottom a { color:#c5b299; font:12px/1.7 Arial,Helvetica,sans-serif; text-decoration:underline; text-underline-offset:4px; }
.bm-portal .bp-lightbox-error { position:absolute; right:15%; left:15%; top:40%; margin:0; text-align:center; color:#b9aa96; font:14px/1.7 Arial,Helvetica,sans-serif; }
.bm-portal .bp-empty p { color:#b7ad9e; font:16px/1.7 Arial,Helvetica,sans-serif; }
.bm-portal .bp-empty a { color:#d9b08b; font:14px/1.5 Arial,Helvetica,sans-serif; }
.bm-portal .bp-photos a:focus-visible, .bm-portal .bp-photos button:focus-visible { outline:2px solid #ff8a42; outline-offset:4px; }
@media(max-width:900px) {
 .bm-portal .bp-albums, .bm-portal .bp-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .bm-portal .bp-album h2 { font-size:20px; }
}
@media(max-width:600px) {
 .bm-portal .bp-albums { grid-template-columns:minmax(0,1fr); gap:28px; }
 .bm-portal .bp-album h2 { font-size:24px; }
 .bm-portal .bp-photo-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:19px 12px; }
 .bm-portal .bp-photo figcaption { flex-wrap:wrap; gap:4px 10px; font-size:10px; }
 .bm-portal .bp-photo-open > span { width:25px; height:25px; right:8px; bottom:8px; font-size:15px; }
 .bm-portal .bp-gallery-heading h2 { font-size:28px; }
 .bm-portal .bp-gallery-heading p { display:block; }
 .bm-portal .bp-gallery-heading p > span { padding:0 5px; }
 .bm-portal .bp-lightbox { width:96vw; max-height:96dvh; }
 .bm-portal .bp-lightbox-inner { padding:12px; }
 .bm-portal .bp-lightbox-stage > img { height:54dvh; }
 .bm-portal .bp-lightbox-prev, .bm-portal .bp-lightbox-next { width:38px; height:38px; margin-top:-19px; }
 .bm-portal .bp-lightbox-prev { left:7px; }
 .bm-portal .bp-lightbox-next { right:7px; }
 .bm-portal .bp-lightbox-bottom h3 { font-size:14px; }
 .bm-portal .bp-lightbox-bottom > div { gap:12px 18px; }
}
@media(prefers-reduced-motion:reduce) { .bm-portal .bp-album-cover img, .bm-portal .bp-photo-open img { transition:none; } }

.bm-portal.bp-viewer-open { overflow:hidden; }
