.event-image-open {
    display: block;
    width: 100%;
    margin: 20px 0;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
    cursor: zoom-in;
    text-align: inherit;
}

.event-image-open .detail-image {
    margin: 0;
    transition: filter .18s ease, transform .18s ease;
}

.event-image-open:hover .detail-image {
    filter: brightness(.94);
}

.event-image-open:focus-visible {
    outline: 3px solid #2f6f44;
    outline-offset: 4px;
}

.event-image-modal[hidden] {
    display: none;
}

.event-image-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(4, 13, 23, .94);
    cursor: zoom-out;
}

.event-image-modal-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.event-image-modal-image {
    display: block;
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
    cursor: default;
}

.event-image-modal-close {
    position: fixed;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    z-index: 1;
    width: 48px;
    height: 48px;
    padding: 0 0 4px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(17, 31, 45, .82);
    color: #fff;
    font: 400 38px/1 Arial, sans-serif;
    cursor: pointer;
}

.event-image-modal-close:hover,
.event-image-modal-close:focus-visible {
    background: #fff;
    color: #142336;
    outline: none;
}

body.event-image-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .event-image-modal {
        padding: 12px;
    }

    .event-image-modal-image {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        border-radius: 4px;
    }
}

