/* ===================================
   PROFESSIONAL GALLERY STYLES - OPTIMIZED
=================================== */

:root {
    --gallery-primary: #FF6600;
    --gallery-dark: #171717;
    --gallery-white: #ffffff;
    --gallery-overlay: rgba(23, 23, 23, 0.85);
    --gallery-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* ===== MAIN GALLERY CONTAINER ===== */
.professional-gallery {
    position: relative;
    padding: 100px 0;
    background: var(--gallery-dark);
    overflow: hidden;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== GALLERY HEADER ===== */
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--gallery-white);
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.5px;
}

.gallery-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== GALLERY GRID ===== */
.gallery-slider {
    position: relative;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    margin: 0 15px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--gallery-shadow);
    background: var(--gallery-white);
    will-change: transform, box-shadow;
}

.gallery-item:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== IMAGE STYLING ===== */
.gallery-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    border-radius: 15px;
    display: block;
    cursor: pointer;
    will-change: transform, filter;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.05);
}



/* ===== NAVIGATION ARROWS ===== */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gallery-white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-nav:hover {
    background: var(--gallery-primary);
    border-color: var(--gallery-primary);
}

.gallery-nav.prev {
    left: -70px;
}

.gallery-nav.next {
    right: -70px;
}

/* ===== DOTS INDICATOR ===== */
.gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 12px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-dot.active,
.gallery-dot:hover {
    background: var(--gallery-primary);
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--gallery-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: var(--gallery-primary);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gallery-white);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-nav:hover {
    background: var(--gallery-primary);
    border-color: var(--gallery-primary);
}

.lightbox-nav.lightbox-prev {
    left: 30px;
}

.lightbox-nav.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gallery-white);
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .gallery-nav.prev {
        left: -60px;
    }
    .gallery-nav.next {
        right: -60px;
    }
}

@media (max-width: 992px) {
    .gallery-title {
        font-size: 2.5rem;
    }
    
    .gallery-nav {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .gallery-nav.prev {
        left: -40px;
    }
    .gallery-nav.next {
        right: -40px;
    }
    
    .gallery-image {
        height: 300px;
    }
    
    .gallery-item:hover {
        transform: translate3d(0, -5px, 0);
    }
    
    .gallery-item:hover .gallery-image {
        transform: scale(1.05);
        filter: brightness(1.05) contrast(1.02);
    }
}

@media (max-width: 768px) {
    .professional-gallery {
        padding: 80px 0;
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-subtitle {
        font-size: 1rem;
    }
    
    .gallery-nav {
        display: none;
    }
    
    .gallery-image {
        height: 250px;
    }
    
    .gallery-item:hover {
        transform: translate3d(0, -3px, 0);
    }
    
    .gallery-item:hover .gallery-image {
        transform: scale(1.03);
        filter: brightness(1.03) contrast(1.01);
    }
}

@media (max-width: 480px) {
    .gallery-item {
        margin: 0 10px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .gallery-item:hover {
        transform: translate3d(0, -2px, 0);
    }
    
    .gallery-item:hover .gallery-image {
        transform: scale(1.02);
        filter: brightness(1.02) contrast(1.01);
    }
}

/* ===== LOADING ANIMATION ===== */
.gallery-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    color: var(--gallery-white);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 102, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--gallery-primary);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}



/* ===== SLICK SLIDER CUSTOMIZATION ===== */
.professional-gallery .slick-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 12px;
    position: static;
}

.professional-gallery .slick-dots li {
    width: 12px;
    height: 12px;
    margin: 0;
}

.professional-gallery .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0;
    padding: 0;
}

.professional-gallery .slick-dots li.slick-active button,
.professional-gallery .slick-dots li button:hover {
    background: var(--gallery-primary);
}

 