/* V708: separate image and count regions. */
body.ct-gallery-page .cg271-lightbox-wrap{display:grid;grid-template-rows:minmax(0,1fr) auto;height:100%;min-height:0}
body.ct-gallery-page .cg271-lightbox-media{position:relative;inset:auto;width:100%;height:100%;min-height:0;overflow:hidden}
body.ct-gallery-page .cg271-counter-bar{display:flex;align-items:center;justify-content:center;min-height:40px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:#151311;border-top:1px solid rgba(255,255,255,.1);flex-shrink:0}
body.ct-gallery-page .cg271-counter-bar .cg271-lightbox-count{position:static;left:auto;bottom:auto;transform:none;padding:0;border-radius:0;background:none;backdrop-filter:none;color:#d1c9c0;font-size:12px;line-height:20px;letter-spacing:.06em}
body.ct-gallery-page .cg271-lightbox-media img{max-height:calc(100% - 76px);object-fit:contain}
@media(max-width:700px){body.ct-gallery-page .cg271-lightbox-media img{max-height:calc(100% - 110px)}body.ct-gallery-page .cg271-lightbox-nav{bottom:12px}}
@media(max-height:520px) and (orientation:landscape){body.ct-gallery-page .cg271-lightbox-media img{max-height:calc(100% - 20px)}body.ct-gallery-page .cg271-lightbox-nav{top:50%;bottom:auto}}
/* Existing product caption stays in its own row below the image. */
body .beton218-lightbox figcaption{position:relative!important;inset:auto!important;flex-shrink:0!important}
body .beton218-lightbox-count{position:static!important;transform:none!important}
