body.pop-up-open {
    overflow: hidden;
}

.pop-up {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.pop-up.is-open {
    display: flex;
}

.pop-up-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 20, 70, 0.55);
}

.pop-up-dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 560px);
    max-height: min(85vh, 720px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
    padding: 0.75rem;
    overflow: hidden;
}

.pop-up-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 20, 70, 0.85);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pop-up-close:hover,
.pop-up-close:focus {
    background: #001446;
    transform: scale(1.05);
}

.pop-up-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(85vh - 1.5rem);
    object-fit: contain;
    border-radius: 10px;
}

@media (max-width: 576px) {
    .pop-up {
        padding: 0.75rem;
    }

    .pop-up-dialog {
        width: min(96vw, 420px);
        padding: 0.5rem;
        border-radius: 12px;
    }

    .pop-up-close {
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
    }
}
