


/* ========== Gallery Carousel Styles ========== */

.gallery-section {
    margin-top: 20px;
    padding: 20px;

    .gallery-heading {
        margin-bottom: 20px;
        text-align: center;
        font-size: 40px;
    }
    
    .gallery-carousel-container {
        width: 100%;
        max-width: 1260px;
        margin: 0 auto;
    
        .gallery-image {
            cursor: pointer;
            transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
            border-radius: 16px;
            overflow: hidden;
            transform: scale(0.97);
            width: 100%;
            height: auto;
            box-shadow: 0 4px 8px rgba(111, 68, 255, 0.15);
    
            &:hover {
                transform: scale(1);
                filter: brightness(1.2) contrast(0.95);
                overflow: hidden;
                border-radius: 16px;
                box-shadow: var(--hover-shadow);
            }
        }
    
        /* Custom Slick Carousel Styling */
        .slick-prev, .slick-next {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 10;
            background-color: var(--light);
            border: none;
            border-radius: 50%;
            box-shadow: 0 4px 8px rgba(111, 68, 255, 0.15);
            width: 45px;
            height: 45px;
            display: flex !important;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            transition: all 0.3s ease;
            color: var(--primary);
    
            &:hover {
                background-color: var(--primary);
                color: var(--light);
                transform: translateY(-50%) scale(1.1);
            }
    
            &::before {
                display: none;
            }
    
            i {
                font-size: 28px;
            }
        }
    
        .slick-prev {
            left: -15px;
        }
    
        .slick-next {
            right: -15px;
        }
    
        .slick-dots {
            bottom: -30px;
    
            li {
                button::before {
                    color: var(--primary);
                    opacity: 0.25;
                    font-size: 10px;
                }
    
                &.slick-active button::before {
                    color: var(--primary);
                    opacity: 0.75;
                }
            }
        }
    }
}



/* ========== Gallery Modal Styles ========== */

.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;

    &.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .gallery-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
    }

    .gallery-modal-content {
        position: relative;
        width: 90%;
        max-width: 900px;
        max-height: 90%;
        background-color: white;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        z-index: 1;

        .gallery-modal-close {
            position: absolute;
            top: 15px;
            right: 20px;
            background-color: rgba(0, 0, 0, 0.7);
            color: var(--light);
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            font-size: 30px;
            cursor: pointer;
            z-index: 10;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
    
            &:hover {
                background-color: var(--light);
                color: var(--primary);
                transform: scale(1.1);
            }
        }

        .gallery-modal-carousel {
            width: 100%;
            height: 100%;

            &.hidden {
                display: none;
            }
    
            .gallery-modal-item {
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: white;
                cursor: grab;
        
                .gallery-modal-image {
                    max-width: 100%;
                    max-height: 100%;
                    border-radius: 8px;
                }
            }
    
    
            /* Custom Slick Carousel Styling */
            .slick-prev, .slick-next {
                position: absolute;
                top: 50%;
                transform: translateY(-50%);
                z-index: 10;
                background-color: rgba(0, 0, 0, 0.7);
                border: none;
                border-radius: 50%;
                box-shadow: 0 4px 8px rgba(111, 68, 255, 0.15);
                width: 60px;
                height: 60px;
                display: flex !important;
                align-items: center;
                justify-content: center;
                font-size: 24px;
                transition: all 0.3s ease;
                color: var(--light);
    
                &:hover {
                    background-color: var(--primary);
                    transform: translateY(-50%) scale(1.1);
                }
    
                &::before {
                    display: none;
                }
    
                i {
                    font-size: 40px;
                }
            }
    
            .slick-prev {
                left: 15px;
            }
    
            .slick-next {
                right: 15px;
            }
        }
    }
}




@media (max-width: 767px) {
    .gallery-section {
        .gallery-heading {
            font-size: 32px;
        }
    }
}

@media (max-width: 575px) {
    .gallery-section {
        .gallery-heading {
            font-size: 28px;
        }
        
        .gallery-modal .gallery-modal-content {
            .gallery-modal-carousel :is(.slick-prev, .slick-next) {
                width: 45px;
                height: 45px;

                i {
                    font-size: 28px;
                }
            }

            .gallery-modal-close {
                width: 42px;
                height: 42px;
                font-size: 26px;
            }
        }
    }
}