.g-zoom { position: absolute; right: 11px; bottom: 11px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--fm-dark, #0f0d0b) 55%, transparent); color: var(--fm-on-dark, #fff); display: flex; align-items: center; justify-content: center; font-size: 15px; opacity: 0; transition: opacity .3s; }
.g-tile:hover .g-zoom { opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 2100; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.is-open, dialog.lightbox[open] { display: flex; }
.lightbox-bg { position: absolute; inset: 0; }
dialog.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; background: transparent; }
.lightbox-bg, dialog.lightbox::backdrop { background: color-mix(in srgb, var(--fm-dark, #0f0d0b) 93%, transparent); }
.lightbox-fig { position: relative; margin: 0; max-width: 94vw; }
.lightbox-img { display: block; max-width: 94vw; max-height: 82vh; border-radius: 10px; box-shadow: 0 30px 80px color-mix(in srgb, var(--fm-dark, #000) 60%, transparent); }
.lightbox-cap { margin-top: 12px; text-align: center; color: var(--fm-on-dark-muted, rgba(245,243,239,.82)); font-size: 13px; line-height: 1.4; }
.lb-count { position: absolute; left: 0; right: 0; top: -28px; text-align: center; color: var(--fm-on-dark-muted, rgba(245,243,239,.55)); font-size: 12px; letter-spacing: .04em; }
.lb-btn { position: fixed; z-index: 2; padding: 0; border: 0; background: color-mix(in srgb, var(--fm-on-dark, #f5f3ef) 12%, transparent); color: var(--fm-on-dark, #f5f3ef); cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-family: var(--fm-font-ui, Arial, sans-serif); transition: background .2s; }
.lb-btn[hidden] { display: none; }
.lb-btn:hover { background: color-mix(in srgb, var(--fm-on-dark, #f5f3ef) 28%, transparent); }
.lb-close { top: 22px; right: 22px; width: 44px; height: 44px; font-size: 26px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 32px; line-height: 1; padding-bottom: 4px; }
.lb-prev { left: 22px; } .lb-next { right: 22px; }
@media (max-width: 600px) { .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { top: 12px; right: 12px; } .lb-prev, .lb-next { width: 44px; height: 44px; font-size: 26px; } }
