/* Photography page additions. The site's bn_style.css remains the source of
   truth for typography, global colours, theme and responsive navigation. */
.photography-main { max-width: 1100px; margin-top: 70px; }
.photography-heading { max-width: 850px; margin: 0 auto 38px; text-align: center; }
.photography-heading h1 { margin: 4px 0 12px; }
.photography-heading .kicker { margin-bottom: 8px; }
.photography-intro { max-width: 760px; margin: 0 auto; text-align: center; color: inherit; }
.photography-section { margin: 0 auto 55px; }
.photography-section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:0 0 22px; text-align:left; }
.photography-section-heading h2,.photo-album-heading h2 { margin:0 0 4px; text-align:left; }
.photography-section-heading p,.photo-album-heading p { margin:0; font-size:1rem; color:inherit; opacity:.78; text-align:left; }
.gallery-total { white-space:nowrap; font-size:.95rem; opacity:.75; }
.album-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; }
.album-card { appearance:none; border:1px solid rgba(148,163,184,.28); padding:0; overflow:hidden; border-radius:13px; background:#1e293b; color:#f1f5f9; text-align:left; cursor:pointer; box-shadow:0 7px 20px rgba(0,0,0,.22); transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease; font:inherit; }
.album-card:hover,.album-card:focus-visible { transform:translateY(-5px); box-shadow:0 13px 28px rgba(0,0,0,.32); border-color:#22d3ee; outline:none; }
.album-cover-wrap { position:relative; aspect-ratio:16/10; overflow:hidden; background:#334155; }
.album-cover { display:block; width:100%; height:100%; object-fit:cover; transition:transform .45s ease; user-select:none; -webkit-user-drag:none; }
.album-card:hover .album-cover { transform:scale(1.045); }
.album-count { position:absolute; right:12px; bottom:12px; padding:5px 10px; border-radius:20px; background:rgba(0,0,0,.72); color:#fff; font-size:.82rem; }
.album-info { padding:14px 16px 16px; }
.album-info h3 { margin:0 0 4px; color:inherit; font-size:1.2rem; }
.album-info p { margin:0; font-size:.95rem; color:inherit; opacity:.75; text-align:left; }
.photo-view-toolbar { display:flex; align-items:flex-start; gap:22px; margin:0 0 22px; text-align:left; }
.gallery-back { flex:0 0 auto; border:1px solid rgba(148,163,184,.45); border-radius:6px; padding:9px 13px; background:#334155; color:#fff; cursor:pointer; font:inherit; transition:background .2s ease; }
.gallery-back:hover { background:#3b5998; }
.photo-album-heading { flex:1; }
.photo-grid { columns:3 250px; column-gap:16px; }
.photo-tile { display:block; width:100%; break-inside:avoid; margin:0 0 16px; padding:0; border:0; border-radius:9px; overflow:hidden; position:relative; background:#1e293b; cursor:zoom-in; box-shadow:0 5px 16px rgba(0,0,0,.2); }
.photo-tile img { display:block; width:100%; height:auto; max-height:600px; object-fit:cover; transition:transform .35s ease,filter .35s ease; user-select:none; -webkit-user-drag:none; }
.photo-tile:hover img { transform:scale(1.035); filter:brightness(1.06); }
.photo-tile:focus-visible { outline:3px solid #22d3ee; outline-offset:3px; }
.photo-tile-caption { display:block; padding:9px 12px; color:#fff; background:rgba(15,23,42,.94); font-size:.92rem; text-align:left; }
.gallery-empty { padding:28px 18px; border:1px dashed rgba(148,163,184,.55); border-radius:10px; text-align:center; opacity:.8; }
.gallery-empty code { color:#22d3ee; }
[hidden] { display:none !important; }
/* Lightbox is intentionally independent of the site's article/container rules. */
.photo-lightbox { position:fixed; inset:0; z-index:10000; display:none; background:rgba(0,0,0,.97); color:#fff; overflow:hidden; user-select:none; -webkit-user-select:none; touch-action:pan-y; }
.photo-lightbox.is-open { display:block; }
.lightbox-topbar { position:absolute; z-index:5; top:0; left:0; right:0; height:58px; display:flex; justify-content:space-between; align-items:center; padding:8px 18px; background:linear-gradient(rgba(0,0,0,.7),transparent); }
.lightbox-counter { font-size:.95rem; color:#ddd; }
.lightbox-tools { display:flex; gap:8px; }
.lightbox-tools button,.lightbox-nav { width:42px; height:42px; border:1px solid rgba(255,255,255,.22); border-radius:50%; background:rgba(35,43,55,.78); color:#fff; cursor:pointer; font-size:1rem; }
.lightbox-tools button:hover,.lightbox-nav:hover { background:#3b5998; }
.lightbox-stage { position:absolute; inset:60px 70px 105px; display:flex; align-items:center; justify-content:center; overflow:hidden; cursor:grab; touch-action:none; }
.lightbox-stage.is-dragging { cursor:grabbing; }
.lightbox-image-wrap { position:relative; display:flex; align-items:center; justify-content:center; max-width:100%; max-height:100%; transform:translate3d(0,0,0) scale(1); transform-origin:center center; will-change:transform; }
.lightbox-image-wrap img { display:block; max-width:min(100%, calc(100vw - 150px)); max-height:calc(100vh - 190px); width:auto; height:auto; object-fit:contain; pointer-events:none; user-select:none; -webkit-user-drag:none; }
.image-protection-layer { position:absolute; inset:0; z-index:2; pointer-events:none; background:transparent; }
.lightbox-nav { position:absolute; z-index:5; top:50%; transform:translateY(-50%); }
.lightbox-prev { left:16px; }.lightbox-next { right:16px; }
.lightbox-caption { position:absolute; z-index:4; bottom:38px; left:70px; right:70px; text-align:center; color:#f1f5f9; font-size:1rem; }
.lightbox-hint { position:absolute; bottom:12px; left:10px; right:10px; text-align:center; color:#aeb7c4; font-size:.75rem; }
body.gallery-lock { overflow:hidden; }
/* Light theme follows the site's light-theme class, while the viewer stays dark. */
body.light-theme .album-card { background:#e5e7eb; color:#111827; border-color:rgba(15,23,42,.2); box-shadow:0 7px 20px rgba(0,0,0,.13); }
body.light-theme .album-info p { color:#374151; }
body.light-theme .gallery-back { background:#e5e7eb; color:#111827; border-color:#9ca3af; }
body.light-theme .gallery-back:hover { background:#dbeafe; }
body.light-theme .gallery-empty { color:#222; border-color:#9ca3af; }
body.light-theme .photo-tile-caption { background:rgba(241,245,249,.96); color:#111827; }
.photography-bn .photography-intro,.photography-bn .photography-section-heading p,.photography-bn .album-info p,.photography-bn .photo-album-heading p { font-size:1.12rem; }
@media (max-width:900px) { .album-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .photo-grid { columns:2 220px; } }
@media (max-width:600px) {
 .photography-main { margin-top:42px; padding-left:14px; padding-right:14px; }
 .photography-heading { margin-bottom:28px; }
 .photography-section-heading { align-items:flex-start; flex-direction:column; gap:6px; }
 .album-grid { grid-template-columns:1fr; gap:16px; }
 .album-cover-wrap { aspect-ratio:16/9; }
 .photo-view-toolbar { flex-direction:column; gap:13px; }
 .photo-grid { columns:2 145px; column-gap:10px; }
 .photo-tile { margin-bottom:10px; }
 .photo-tile-caption { padding:7px 8px; font-size:.82rem; }
 .lightbox-stage { inset:62px 8px 115px; }
 .lightbox-image-wrap img { max-width:calc(100vw - 24px); max-height:calc(100vh - 190px); }
 .lightbox-prev { left:8px; }.lightbox-next { right:8px; }
 .lightbox-nav { width:36px; height:36px; background:rgba(15,23,42,.72); }
 .lightbox-caption { left:12px; right:12px; bottom:43px; font-size:.9rem; }
 .lightbox-hint { font-size:.65rem; }
}
@media (max-width:380px) { .photo-grid { columns:1; } }
@media (prefers-reduced-motion:reduce) { .album-card,.album-cover,.photo-tile img { transition:none; } }
