body.image-modal-open {
    overflow: hidden;
}
.image-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.image-modal[hidden] {
    display: none !important;
}
.image-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.76);
}
.image-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(96vw, 1400px);
    height: min(96vh, 1040px);
    margin: 0;
    padding: 16px;
}
.image-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #14213d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.image-modal__figure {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.image-modal__picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}
.image-modal__picture img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: transparent;
}
