
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.popup-content {
    padding: 3px;
    background-color: #ffffff;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    position: absolute;
}

.popup-content img {
    display: block;
    margin: 0 auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.popup-close {
    position: absolute;
    top: 3px;
    right: 3px;
    background: #000;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 24px;
    text-align: center;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-prev,
.popup-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
    padding: 0.5rem;
}

.popup-prev {
    left: 10px;
}

.popup-next {
    right: 10px;
}

.wp-block-gallery.enable-popup img {
    cursor: pointer;
}
