/* Új frontend — képnézegető (front/js/lightbox.js, 29. csomag). */
.lb { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(10, 14, 30, .92); }
html.lb-open { overflow: hidden; }

.lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 64px clamp(12px, 6vw, 88px) 72px; }
.lb-figure { margin: 0; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.lb-figure img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transition: opacity .2s ease; }
.lb-figure img.is-loading { opacity: 0; }

/* YouTube: 16:9, a Shorts álló 9:16 */
.lb-figure.is-video iframe { display: block; width: min(100%, 1100px, calc((100vh - 136px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; background: #000; }
.lb-figure.is-video.is-vertical iframe { width: auto; height: min(100%, 860px); aspect-ratio: 9 / 16; max-width: 100%; }

.lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background .2s ease; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn[hidden] { display: none; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }

.lb-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 16px; padding: 20px 72px; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .85); text-align: center; pointer-events: none; }
.lb-caption:empty, .lb-count:empty { display: none; }
.lb-count { flex: none; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; }

/* Mobilon a lapozó gombok a kép alá kerülnek, hogy ne takarják. */
@media (max-width: 640px) {
    .lb-stage { padding: 60px 8px 112px; }
    .lb-prev, .lb-next { top: auto; bottom: 52px; transform: none; }
    .lb-prev { left: calc(50% - 60px); }
    .lb-next { right: calc(50% - 60px); }
    .lb-bar { padding: 14px 16px; }
}

/* A termékoldal nagy képe: nagyító kurzor, hogy látsszon, hogy kattintható */
a[data-lightbox] img { cursor: zoom-in; }
a[data-lightbox-type="video"] img { cursor: pointer; }
