/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

/* Hidden State */
.popup-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Popup Content Container */
.popup-content {
    position: relative;
    max-width: 500px;
    width: 100%;
    background-color: transparent;
    border-radius: 12px;
    transform: scale(1);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: popupFadeIn 0.5s ease;
}

/* Popup Image */
.popup-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    cursor: pointer;
}

/* Close Button */
.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 36px;
    height: 36px;
    background-color: var(--primary-red, #e3000f);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transition: background-color 0.2s, transform 0.2s;
    padding-bottom: 2px;
}

.popup-close:hover {
    background-color: #b3000c;
    transform: scale(1.1);
}

/* Image Container & Hotspots */
.popup-image-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.popup-hotspots {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    /* Lower 25% of image for the buttons */
    display: flex;
}

.hotspot {
    flex: 1;
    height: 100%;
    cursor: pointer;
    z-index: 10;
}

@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}