/* Gallery Page Styles */

.gallery-section {
    padding-top: 120px;
    //min-height: 100vh;
    background: var(--bg);
}

.gallery-logo {
    color: var(--secondary) !important;
}

/* Main Viewer */
.gallery-viewer {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
}

.gallery-main {
    flex: 1;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
}

.gallery-blur-bg {
    position: absolute;
    inset: -40px;
    z-index: 0;
    filter: blur(60px);
    opacity: 0.5;
    transition: background-color 0.6s ease;
    background-color: var(--bg-light);
}

.gallery-image-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    min-height: 500px;
}

.gallery-image-wrapper img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: opacity 0.4s ease;
}

.gallery-info {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 32px 32px;
}

.gallery-info h3 {
    font-size: 24px;
    color: var(--secondary);
    margin-bottom: 8px;
}

.gallery-info p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 12px;
}

.gallery-counter {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
}

/* Navigation Buttons */
.gallery-nav {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--secondary);
    font-size: 18px;
}

.gallery-nav:hover {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.gallery-nav:active {
    transform: scale(0.95);
}

/* Thumbnail Carousel */
.gallery-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-nav {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    font-size: 14px;
}

.carousel-nav:hover {
    background: var(--primary);
    color: white;
    border-color: transparent;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-nav:disabled:hover {
    background: white;
    color: var(--text-light);
    border-color: var(--border);
}

.carousel-track-wrapper {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 16px;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-thumb {
    width: 140px;
    height: 100px;
    min-width: 140px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
    transition: var(--transition);
    opacity: 0.5;
    transform: scale(0.9);
}

.carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-thumb.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.carousel-thumb:not(.active):hover {
    opacity: 0.8;
    transform: scale(0.95);
    border-color: var(--border);
}

.carousel-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: var(--transition);
}

.carousel-thumb.active::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-viewer {
        flex-direction: column;
        gap: 16px;
    }

    .gallery-nav {
        width: 48px;
        height: 48px;
        min-width: 48px;
        font-size: 16px;
    }

    .gallery-viewer .gallery-nav {
        position: absolute;
        z-index: 10;
    }

    .gallery-viewer {
        position: relative;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }

    .gallery-image-wrapper {
        min-height: 300px;
        padding: 24px;
    }

    .gallery-image-wrapper img {
        max-height: 300px;
    }

    .gallery-info h3 {
        font-size: 20px;
    }

    .carousel-thumb {
        width: 100px;
        height: 72px;
        min-width: 100px;
    }

    .carousel-nav {
        display: none;
    }

    .gallery-carousel {
        gap: 8px;
    }

    .carousel-track {
        gap: 10px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .carousel-track::-webkit-scrollbar {
        display: none;
    }
}
