/* Gallery Slider Styles */
.gallery-slider-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.gallery-slider {
    position: relative;
    margin-bottom: 60px;
    padding: 0 20px;
}

.gallery-slide {
    height: 350px;
    width: 350px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 15px;
}

.gallery-slide:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-slide:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,107,53,0.8), rgba(255,107,53,0.6));
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-slide:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: white;
    font-size: 48px;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.gallery-slide:hover .gallery-icon {
    transform: scale(1);
}

.swiper-button-next, .swiper-button-prev {
    background: rgba(255,107,53,0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white !important;
    font-size: 20px;
    margin-top: -30px;
    transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: rgba(255,107,53,1);
    transform: scale(1.1);
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255,107,53,0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: #ff6b35;
    transform: scale(1.3);
}

/* Modal Lightbox Styles */
.gallery-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    animation: fadeIn 0.3s ease;
}

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

.gallery-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

.gallery-modal img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
}

.gallery-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-modal-close:hover {
    color: #ff6b35;
    transform: scale(1.2);
}

.gallery-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,107,53,0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-modal-nav:hover {
    background: rgba(255,107,53,1);
    transform: translateY(-50%) scale(1.1);
}

.gallery-modal-prev {
    left: 20px;
}

.gallery-modal-next {
    right: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 1200px) {
    .gallery-slide {
        height: 300px;
        width: 300px;
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    .gallery-slide {
        height: 350px;
        width: 100%;
        margin: 0 10px;
    }
    
    .gallery-slider {
        padding: 0 15px;
    }
    
    .swiper-button-next, .swiper-button-prev {
        width: 45px;
        height: 45px;
        margin-top: -22px;
    }
    
    .gallery-modal-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .gallery-modal-close {
        font-size: 30px;
        top: -40px;
    }
}

@media (max-width: 480px) {
    .gallery-slide {
        height: 280px;
        width: 100%;
        margin: 0 8px;
    }
    
    .gallery-slider {
        padding: 0 15px;
    }
    
    .gallery-slider-section {
        padding: 60px 0;
    }
}
