/* Gallery captions, without modifying the existing 4-column theme layout. */
.bkp-gallery-content .wp-block-gallery figure.wp-block-image.bkgl-clickable { cursor: zoom-in; }
.bkp-gallery-content .wp-block-gallery figure.wp-block-image.bkgl-clickable:focus-visible,
.bkp-gallery-content .wp-block-gallery figure.wp-block-image.bkgl-clickable a:focus-visible { outline: 3px solid #ff8968; outline-offset: 4px; }
.bkp-gallery-content .wp-block-gallery figure.wp-block-image.bkgl-clickable img { transition: filter .2s ease; }
.bkp-gallery-content .wp-block-gallery figure.wp-block-image.bkgl-clickable:hover img { filter: brightness(.88); }
.bkp-gallery-content .wp-block-gallery figure.wp-block-image figcaption.bkgl-caption { position:absolute; bottom:0; inset-inline:0; padding:30px 12px 12px; margin:0; color:#fff; background:linear-gradient(transparent,rgba(0,0,0,.84)); text-align:left; font-size:13px; line-height:1.4; pointer-events:none; }
.bkgl-modal { position:fixed; inset:0; margin:auto; padding:0; background:#0a0c12; border:1px solid rgba(255,255,255,.12); border-radius:16px; color:#fff; width:min(96vw,1380px); max-width:1380px; max-height:96vh; overflow:hidden; box-shadow:0 24px 75px rgba(0,0,0,.55); }
.bkgl-modal::backdrop { background:rgba(4,7,15,.91); backdrop-filter:blur(6px); }
.bkgl-dialog-body { position:relative; width:100%; max-height:94vh; padding:22px 70px 50px; display:grid; place-items:center; }
.bkgl-full-figure { margin:0; padding:0; display:flex; flex-direction:column; align-items:center; justify-content:center; max-width:100%; }
.bkgl-large-img { display:block; width:auto; max-width:100%; height:auto; max-height:calc(94vh - 135px); object-fit:contain; border-radius:7px; }
.bkgl-large-caption { color:#ecf0f8; font-size:15px; line-height:1.5; text-align:center; margin-top:14px; max-width:85ch; }
.bkgl-modal button { position:absolute; z-index:2; display:grid; place-items:center; color:#fff; background:rgba(32,41,57,.85); border:1px solid rgba(255,255,255,.2); border-radius:999px; cursor:pointer; }
.bkgl-modal button:hover, .bkgl-modal button:focus-visible { background:#f68663; color:#171d26; }
.bkgl-close { top:12px; right:12px; width:40px; height:40px; font-size:18px; }
.bkgl-prev, .bkgl-next { width:44px; height:44px; top:50%; transform:translateY(-50%); font-size:30px; }
.bkgl-prev { left:12px; }
.bkgl-next { right:12px; }
.bkgl-count { position:absolute; bottom:13px; left:0; right:0; text-align:center; color:#bcc5d4; font-size:12px; letter-spacing:.1em; }
.bkgl-modal [hidden] { display:none!important; }
@media (max-width:640px){ .bkgl-dialog-body { padding:56px 12px 48px; } .bkgl-large-img { max-height:calc(94vh - 170px); } .bkgl-prev, .bkgl-next { width:36px; height:36px; top:auto; bottom:12px; transform:none; font-size:24px; } .bkgl-close { top:10px; right:10px; } .bkgl-count { bottom:20px; } }
@media (prefers-reduced-motion:reduce){.bkp-gallery-content .wp-block-gallery figure.wp-block-image img { transition:none!important; }}
