#custom-lightbox.lb-hidden {
    display: none;
}

#custom-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
}

/* ----- CONTENT ----- */
.lb-content {
    position: relative;
    z-index: 10;
}

/* ----- IMAGE WRAP ----- */
.lb-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 90vh;
    max-width: 90vw;
    overflow: hidden;
}

.lb-image-wrap img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
}

/* ----- CAPTION sát dưới ----- */
.lb-caption {
    position: fixed;
    bottom: 30px;
    width: 50%;
    color: #fff;
    font-size: var(--wp--preset--font-size--medium);
    text-align: center;
    line-height: 1.5;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200000;
}

/* ----- ARROWS cố định hai mép ----- */
.lb-prev, .lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    padding: 20px;
    z-index: 200000;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* ----- CLOSE ----- */
.lb-close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 200000;
}

/* ----- IMAGE INDEX ----- */
.lb-index {
    position: fixed;
    top: 20px;
    left: 30px;
    color: white;
    z-index: 200000;
}


/* ====== Zoom Icon on Hover (Top-Right) ====== */
.image-hover-wrapper {
    position: relative;
    display: inline-block;
}

.zoom-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(18, 18, 18, 0.4);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg' stroke='%23ffffff'%3E%3Cg  stroke-width='0'%3E%3C/g%3E%3Cg stroke-linecap='round' stroke-linejoin='round'%3E%3C/g%3E%3Cg %3E%3Cpath d='M8 20H4M4 20V16M4 20L10 14M16 4H20M20 4V8M20 4L14 10' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.2'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    border-radius: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
}

.image-hover-wrapper:hover .zoom-indicator {
    opacity: 1;
}


/* Mobile */
@media (max-width: 768px) {
    .lb-caption {
        width: 90%;
    }
    .lb-close {
    right: 20px;
    font-size: 30px;
    }
    .lb-prev, .lb-next {
    padding: 0;
    color: #ffffff70;
    }
}

