/* ==============================
   ALAPKÉP – HOVER ZOOM
============================== */
img.js-zoom {
    cursor: zoom-in;
    transition: transform .75s ease, box-shadow .75s ease;
    position: relative;
    z-index: 1;
}

img.js-zoom:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* ==============================
   FULLSCREEN OVERLAY
============================== */

/* Alap overlay – rejtve, enyhén kicsinyítve + áttetsző (hogy szépen nyíljon) */
.zoom-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    padding: 0;

    opacity: 0;
    transform: scale(0.97);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

/* Látható állapot */
.zoom-overlay.zoom-overlay--visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* FELSŐ SÁV – #2b2d42 háttérrel */
.zoom-overlay-header {
    background: #2b2d42;
    color: #fff;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Bal oldali cím */
.zoom-overlay-title {
    font-size: 0.95rem;
    font-weight: 500;
}

/* X gomb a jobb oldalon */
.zoom-overlay-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

/* TARTALOM – kép középre igazítva */
.zoom-overlay-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.zoom-overlay-img {
     max-width: calc(100vw - 40px);
    max-height: calc(100vh - 100px);
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border-radius: 8px;
    background: #fff;
    cursor: zoom-out;
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.95s ease, transform 0.95s ease;
}

.zoom-overlay.zoom-overlay--visible .zoom-overlay-img {
    opacity: 1;
    transform: translateY(0);
}
