.gbl-open { overflow: hidden; }
.gbl-overlay[hidden] { display: none !important; }
.gbl-overlay { position: fixed; inset: 0; z-index: 2147483646; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; color: #fff; font-family: inherit; }
.gbl-stage { width: calc(100% - 110px); height: calc(100% - 115px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.gbl-image { display: block; max-width: 100%; max-height: calc(100% - 36px); width: auto; height: auto; object-fit: contain; }
.gbl-caption { text-align: center; font-size: 14px; line-height: 1.4; }
.gbl-overlay button { appearance: none; border: 0; background: transparent; color: #fff; cursor: pointer; padding: 8px 14px; font-size: 44px; line-height: 1; }
.gbl-overlay button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gbl-close { position: absolute; top: 10px; right: 14px; font-size: 36px !important; z-index: 2; }
.gbl-prev { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); }
.gbl-next { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
.gbl-counter { position: absolute; bottom: 15px; left: 0; right: 0; text-align: center; font-size: 13px; }
@media (max-width: 600px) { .gbl-stage { width: calc(100% - 64px); height: calc(100% - 100px); } .gbl-overlay button { padding: 6px; font-size: 32px; } .gbl-prev { left: 2px; } .gbl-next { right: 2px; } }
