/*
 * =========================================================
 * AAMWEB IMAGE LIGHTBOX
 * =========================================================
 */

.aamweb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background: rgba(10, 15, 25, 0.92);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.aamweb-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}


/*
 * Image
 */

.aamweb-lightbox-image {
    display: block;

    max-width: 94vw;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 4px;

    box-shadow:
        0 20px 80px rgba(0, 0, 0, 0.4);

    transform: scale(0.96);

    transition:
        transform 0.2s ease;
}


.aamweb-lightbox.is-open
.aamweb-lightbox-image {
    transform: scale(1);
}


/*
 * Content
 */

.aamweb-lightbox-content {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
}


/*
 * Close
 */

.aamweb-lightbox-close {
    position: absolute;

    top: 20px;
    right: 24px;

    z-index: 2;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #fff;

    font-size: 38px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    opacity: 0.8;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.aamweb-lightbox-close:hover {
    opacity: 1;

    transform: scale(1.08);
}


/*
 * Prevent page scrolling
 */

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


/*
 * Mobile
 */

@media (max-width: 767px) {

    .aamweb-lightbox {
        padding: 20px;
    }

    .aamweb-lightbox-image {
        max-width: 96vw;
        max-height: 82vh;
    }

    .aamweb-lightbox-close {
        top: 10px;
        right: 12px;

        width: 40px;
        height: 40px;

        font-size: 34px;
    }

}