/* ===== Kurzor csak a bejegyzés blokk-képeihez ===== */
figure.wp-block-image img {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

figure.wp-block-image img:hover {
    opacity: 0.88;
}

/* ===== Nagyító ikon a képeken ===== */
.mic-lightbox-zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.2s ease, transform 0.2s ease;
    pointer-events: auto;
    z-index: 2;
}

/* Ikon megjelenítése hover-re */
figure:hover > .mic-lightbox-zoom-icon,
*:hover > .mic-lightbox-zoom-icon {
    opacity: 1;
}

.mic-lightbox-zoom-icon:hover {
    background: rgba(0, 0, 0, 0.75);
    transform: scale(1.1);
}

/* ===== Lightbox overlay ===== */
.mic-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    transition: background 0.3s ease;
    -webkit-backdrop-filter: blur(0px);
    backdrop-filter: blur(0px);
}

.mic-lightbox-overlay.mic-lightbox-active {
    background: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* ===== Lightbox kép ===== */
.mic-lightbox-img {
    max-width: 92vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.3s ease;
}

.mic-lightbox-active .mic-lightbox-img {
    transform: scale(1);
    opacity: 1;
    cursor: zoom-out;
}

/* ===== Bezáró gomb ===== */
.mic-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 1000000;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease;
}

.mic-lightbox-active .mic-lightbox-close {
    opacity: 1;
}

.mic-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Képaláírás ===== */
.mic-lightbox-caption {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    max-width: 80vw;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.mic-lightbox-active .mic-lightbox-caption {
    opacity: 1;
}
