/* Popup Modal Styles */

.popup-modal {
    display: none;
    position: fixed;
    scale: 100%;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.popup-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
}

.popup-modal__content {
    position: relative;
    z-index: 10000;
    max-width: 550px;
    width: 90%;
    animation: popupSlideIn 0.4s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-modal__link {
    display: block;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.popup-modal__image {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.popup-modal__link:hover .popup-modal__image {
    transform: scale(1.02);
}

/* Close Button */
.popup-modal__close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 40px;
    height: 40px;
    background-color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.popup-modal__close:hover {
    background-color: #f1cba9;
    color: #fff;
    transform: rotate(90deg);
}

/* Navigation Arrows */
.popup-modal__nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 10001;
}

.popup-modal__arrow {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.popup-modal__arrow:hover {
    background-color: #f1cba9;
    color: #fff;
    transform: scale(1.1);
}

.popup-modal__arrow--prev {
    margin-right: auto;
}

.popup-modal__arrow--next {
    margin-left: auto;
}

/* Slide Indicators (Dots) */
.popup-modal__indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.popup-modal__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-modal__dot.active {
    background-color: #f1cba9;
    width: 30px;
    border-radius: 6px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popup-modal__content {
        max-width: 95%;
    }

    .popup-modal__close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .popup-modal__arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .popup-modal__nav {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .popup-modal__close {
        top: 5px;
        right: 5px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .popup-modal__arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .popup-modal__indicators {
        gap: 8px;
        margin-top: 15px;
    }

    .popup-modal__dot {
        width: 10px;
        height: 10px;
    }

    .popup-modal__dot.active {
        width: 25px;
    }
}
