.ph-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ph-popup.is-visible {
    display: flex;
}

.ph-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.ph-popup__box {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: 90vh;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.ph-popup__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;

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

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);
    color: #222;

    font-size: 34px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;

    transition: transform .2s ease;
}

.ph-popup__close:hover {
    transform: scale(1.08);
}

.ph-popup__image {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .ph-popup {
        padding: 14px;
        align-items: flex-end;
    }

    .ph-popup__box {
        width: 100%;
        max-height: 85vh;
        border-radius: 14px;
    }

    .ph-popup__close {
        top: 8px;
        right: 8px;
    }
}