/* WordPress-style full-size image overlay */

.img-lightbox-source {
    cursor: zoom-in;
}

.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.88);
}

.img-lightbox[hidden] {
    display: none;
}

.img-lightbox__figure {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
}

.img-lightbox__img {
    display: block;
    max-width: min(100vw - 3rem, 100%);
    max-height: min(100vh - 3rem, 100%);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    cursor: zoom-out;
}

.img-lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: #111;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.img-lightbox__close:hover,
.img-lightbox__close:focus {
    background: #fff;
}

body.img-lightbox-open {
    overflow: hidden;
}
