:root {
    --popup-font-size-title: 1rem;
    --popup-font-size-description: 1.5rem;
    --popup-font-size-link-text: 1.5 rem;
}

.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30%;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
}

@media (max-width:425px) {
    .popup {
        width: 85%;
    }

    .popup_close {
        display: none;
    }
}

@media (min-width:425px) and (max-width:768px) {
    .popup {
        width: 60%;
    }

    .popup_close {
        display: none;
    }
}

@media (min-width:768px) and (max-width:1024px) {
    .popup {
        width: 40%;
    }

    .popup_close {
        display: none;
    }
}

#popupImage {
    width: 100%;
    object-fit: contain;
}

#popupTitle {
    font-size: calc(var(--popup-font-size-title) * 2);
}

#popupDescription,
#popupLink,
p {
    font-size: var(--popup-font-size-description) !important;
}

.popup-content {
    text-align: center;
}

.popup-tooltip {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    padding: 5px;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

.popup_close {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}