.custom-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(13, 13, 14, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto;
}

.custom-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-popup-container {
    background: transparent;
    color: var(--cor-primaria);
    border-radius: 8px;
    width: auto;
    max-height: 100vh;
    position: relative;
    padding: 30px;
    animation: popupFadeIn 0.4s ease-out;
}

.custom-popup-image img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 4px;
}

.custom-popup-text {
    margin-bottom: 25px;
    line-height: 1.6;
}

.custom-popup-close {
    position: absolute;
    top: 15px;
    right: 7px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--bs-white);
    transition: color 0.3s;
}

.custom-popup-close:hover {
    color: var(--cor-primaria);
}

@keyframes popupFadeIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .custom-popup-container {
        width: 95%;
        padding: 20px;
    }

    .custom-popup-content h3 {
        font-size: 1.3rem;
    }
}
