/*
 * Samundri Theme — Site-wide Image Lightbox styles
 */

/* Content images par zoom cursor (icons/logo ke ilawa) */
main img:not(.no-lightbox),
article img:not(.no-lightbox),
.vpage img:not(.no-lightbox) {
    cursor: zoom-in;
}

/* Overlay */
.smd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(10, 12, 16, .92);
    padding: 20px;
}

.smd-lightbox.is-open {
    display: flex;
    animation: smdLbFade .18s ease;
}

@keyframes smdLbFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Scroll lock jab lightbox khula ho */
.smd-lightbox-lock,
.smd-lightbox-lock body {
    overflow: hidden;
}

/* Figure + image */
.smd-lightbox-figure {
    margin: 0;
    max-width: 96vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.smd-lightbox-img {
    max-width: 96vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
    cursor: default;
}

.smd-lightbox-caption {
    color: #e5e7eb;
    font-size: .95rem;
    text-align: center;
    max-width: 90vw;
    line-height: 1.8;
    direction: rtl;
}

/* Close button */
.smd-lightbox-close {
    position: absolute;
    top: 14px;
    inset-inline-end: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}

.smd-lightbox-close:hover,
.smd-lightbox-close:focus {
    background: rgba(255, 255, 255, .25);
    outline: none;
}

@media (max-width: 560px) {
    .smd-lightbox { padding: 10px; }
    .smd-lightbox-img { max-height: 78vh; }
}
