/* ============================================
   GALLERY PAGE STYLES
   ============================================ */

/* Gallery Filters */
.gallery-filters {
    padding: 3rem 0;
    background: var(--gradient-dark);
    border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 2rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(26, 28, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(192, 192, 192, 0.2);
    border-radius: 4px;
    color: var(--color-silver);
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--color-copper);
    color: var(--color-copper);
    background: rgba(184, 115, 51, 0.1);
}

.filter-btn.active {
    background: var(--gradient-copper);
    border-color: var(--color-copper);
    color: white;
    box-shadow: 0 0 20px rgba(184, 115, 51, 0.4);
}

/* Gallery Grid */
.gallery-section {
    padding: var(--spacing-xl) 0;
    background: var(--color-dark);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    opacity: 1;
    transform: scale(1);
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 14, 15, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.gallery-item:hover {
    box-shadow: 0 10px 50px rgba(184, 115, 51, 0.3);
}

.gallery-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--gradient-copper);
    color: white;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 1rem;
    align-self: flex-start;
    font-weight: 600;
}

.gallery-title {
    font-size: 1.5rem;
    color: var(--color-chrome);
    margin-bottom: 0.5rem;
}

.gallery-description {
    color: var(--color-silver);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.gallery-btn {
    padding: 0.7rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: 2px solid var(--color-silver);
    border-radius: 4px;
    color: var(--color-silver);
    cursor: pointer;
    transition: all var(--transition-base);
    align-self: flex-start;
}

.gallery-btn:hover {
    border-color: var(--color-copper);
    color: var(--color-copper);
    background: rgba(184, 115, 51, 0.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 14, 15, 0.98);
    z-index: 2000;
    overflow-y: auto;
    animation: fadeIn 0.3s ease;
}

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

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

.lightbox-content {
    position: relative;
    width: 95%;
    max-width: 1400px;
    margin: 2rem auto;
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 50px;
    height: 50px;
    background: rgba(26, 28, 30, 0.9);
    border: 2px solid rgba(192, 192, 192, 0.2);
    border-radius: 50%;
    color: var(--color-chrome);
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lightbox-close:hover {
    background: var(--color-copper);
    border-color: var(--color-copper);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(26, 28, 30, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(192, 192, 192, 0.2);
    border-radius: 50%;
    color: var(--color-chrome);
    font-size: 2.5rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

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

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

.lightbox-nav:hover {
    background: var(--color-copper);
    border-color: var(--color-copper);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-main {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background: rgba(26, 28, 30, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(192, 192, 192, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.lightbox-image-container {
    position: relative;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.lightbox-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.lightbox-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--gradient-copper);
    color: white;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    align-self: flex-start;
    font-weight: 600;
}

.lightbox-title {
    font-size: 2.5rem;
    color: var(--color-chrome);
    margin-bottom: 1rem;
    background: var(--gradient-chrome);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lightbox-description {
    font-size: 1.1rem;
    color: var(--color-silver);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.lightbox-counter {
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--color-copper);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
}

.lightbox-details {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(14, 14, 15, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(192, 192, 192, 0.1);
}

.detail-item h4 {
    font-size: 0.9rem;
    color: var(--color-copper);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.detail-item p {
    color: var(--color-chrome);
    font-size: 1.1rem;
    font-weight: 500;
}

.lightbox-cta {
    margin-top: auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
}

@media (max-width: 968px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .lightbox-main {
        grid-template-columns: 1fr;
    }
    
    .lightbox-image-container {
        min-height: 400px;
    }
    
    .lightbox-info {
        padding: 2rem;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .lightbox-content {
        width: 100%;
        margin: 0;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .lightbox-info {
        padding: 1.5rem;
    }
    
    .lightbox-title {
        font-size: 2rem;
    }
}
