.wp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 0;
    box-sizing: border-box;
}

.wp-popup-overlay.active {
    display: flex;
}

.wp-popup-container {
    position: relative;
    background: transparent;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.wp-popup-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    z-index: 1000;
    transition: background 0.3s;
}

.wp-popup-close:hover {
    background: #fff;
}

.wp-popup-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-popup-item {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.wp-popup-item.active {
    display: flex;
    flex-direction: column;
}

.wp-popup-item img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wp-popup-video-wrapper {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.wp-popup-video {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.wp-popup-item h3 {
    margin: 15px 0 10px 0;
    font-size: 24px;
    color: #fff;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.wp-popup-description {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    text-align: center;
    max-width: 600px;
    margin-top: 10px;
    padding: 0 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.wp-popup-item a {
    display: block;
}

.wp-popup-prev,
.wp-popup-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.wp-popup-prev {
    left: 20px;
}

.wp-popup-next {
    right: 20px;
}

.wp-popup-prev:hover,
.wp-popup-next:hover {
    background: #fff;
}

.wp-popup-prev:disabled,
.wp-popup-next:disabled {
    background: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.wp-popup-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.wp-popup-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
}

.wp-popup-indicator.active {
    background: #fff;
}

.wp-popup-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .wp-popup-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .wp-popup-prev,
    .wp-popup-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .wp-popup-prev {
        left: 10px;
    }
    
    .wp-popup-next {
        right: 10px;
    }
    
    .wp-popup-video {
        max-height: 80vh;
    }
    
    .wp-popup-item img {
        max-height: 80vh;
    }
}