/* Carousel Styles */

/* Carousel Container */
.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/11.25;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: #f0f0f0;
}

/* Carousel Images */
.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
    pointer-events: none;
}

.carousel-image.active {
    opacity: 1;
    pointer-events: auto;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    bottom: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Image Popup Modal */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.image-popup-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.image-popup-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.image-popup-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-popup-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
    border-radius: 8px;
}

/* Popup Close Button */
.image-popup-close {
    position: absolute;
    top: -50px;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 1001;
}

.image-popup-close:hover {
    background-color: #fff;
    transform: scale(1.1);
}

/* Popup Navigation Buttons */
.image-popup-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    z-index: 1001;
}

.image-popup-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.image-popup-prev {
    left: -70px;
}

.image-popup-next {
    right: -70px;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .image-popup-btn {
        top: auto;
        bottom: -70px;
        transform: none;
    }

    .image-popup-prev {
        left: 50%;
        margin-left: -70px;
    }

    .image-popup-next {
        right: 50%;
        margin-right: -70px;
    }
}
