﻿:root {
    --primary: #A62621;
    --primary-light: #C94A44;
    --primary-dark: #851F1A;
    --secondary: #339CFF;
    --secondary-light: #66B3FF;
    --secondary-dark: #1A7CCC;
    --light: #F5FAF5;
    --light-accent: #E8F0E8;
    --dark: #263238;
    --dark-accent: #3A4B53;
    --accent: #F4A261;
    --accent-light: #F7B791;
    --success: #2ECC71;
    --warning: #E67E22;
    --error: #E74C3C;
    --neutral: #7F8C8D;
    --glow-accent: rgba(59, 130, 246, 0.3);
}

.gallery-wrapper {
    padding: 2rem 0;
}

    .gallery-wrapper .container {
        max-width: 1200px;
    }

    .gallery-wrapper .gallery-nav {
        margin-bottom: 1rem;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .gallery-wrapper .gallery-tab {
        background: rgba(96, 165, 250, 0.2); /* Slight blue for non-active tabs */
        color: var(--dark-accent);
        font-weight: 600;
        padding: 0.75rem 1rem;
        border: none;
        border-radius: 0.75rem;
        transition: all 0.3s ease;
        text-transform: uppercase;
        font-size: 0.7rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        cursor: pointer;
    }

        .gallery-wrapper .gallery-tab:hover {
            background: var(--accent-light);
            color: var(--light);
            transform: translateY(-2px);
            box-shadow: 0 4px 12px var(--glow-accent);
        }

        .gallery-wrapper .gallery-tab.active {
            background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
            color: var(--light);
            box-shadow: 0 4px 12px var(--glow-accent);
            transform: translateY(-2px);
        }

    .gallery-wrapper .gallery-content {
        background: var(--light);
        padding: 0.5rem;
        border-radius: 0.75rem;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    }

    .gallery-wrapper .gallery-title {
        color: var(--primary-dark);
        font-weight: 700;
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
        position: relative;
    }

        .gallery-wrapper .gallery-title::after {
            content: '';
            width: 50px;
            height: 3px;
            background: var(--primary-dark);
            position: absolute;
            bottom: -0.5rem;
            left: 0;
        }

    .gallery-wrapper .gallery-image-wrapper {
        position: relative;
        overflow: hidden;
        border-radius: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .gallery-wrapper .gallery-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border: 1px solid #e5e7eb;
        padding: 0.5rem;
        border-radius: 1rem;
        cursor: pointer;
        transition: transform 0.4s ease;
    }

    .gallery-wrapper .gallery-image-wrapper:hover .gallery-image {
        transform: scale(1.03);
    }

.gallery-zoom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000000;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

    .gallery-zoom-modal.modal-open .gallery-zoom-image {
        animation: zoomInFade 0.8s ease-in-out;
    }

.gallery-zoom-image {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.gallery-zoom-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--light);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .gallery-zoom-close:hover {
        color: var(--accent-light);
    }

@keyframes zoomInFade {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .gallery-wrapper .gallery-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .gallery-wrapper .gallery-image {
        height: 200px;
    }

    .gallery-wrapper .gallery-title {
        font-size: 1.2rem;
    }

    .gallery-zoom-image {
        max-width: 95%;
        max-height: 80vh;
    }
}
