.js-image-modal {
    cursor: zoom-in;
}

.image-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;

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

    padding: 30px;

    background: rgba(0, 0, 0, 0.85);
}

.image-modal.is-open {
    display: flex;
}

.image-modal-image {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}

.image-modal-close {
    position: absolute;

    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}

/* ==================================================
   Responsive
================================================== */

@media (max-width: 480px) {

    .image-modal {
        padding: 20px;
    }

    .image-modal-close {
        top: 12px;
        right: 12px;

        width: 34px;
        height: 34px;

        font-size: 24px;
    }

}
