/* Gallery Page Styles */

/* Gallery Full Section */
.gallery-full {
    padding: calc(var(--base-spacing) * 10) 0;
    background-color: var(--color-background-light);
}

.gallery-section {
    margin-bottom: calc(var(--base-spacing) * 8);
}

.gallery-section h3 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: calc(var(--base-spacing) * 4);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--base-spacing) * 2);
}

.gallery-section h3 i {
    color: var(--color-secondary);
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--base-spacing) * 3);
    margin-top: calc(var(--base-spacing) * 4);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

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

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

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: calc(var(--base-spacing) * 3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 1.2rem;
    margin-bottom: calc(var(--base-spacing));
    color: var(--color-accent);
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: calc(var(--base-spacing) * 6);
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: calc(var(--base-spacing) * 2);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 2px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--color-text-primary);
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: calc(var(--base-spacing) * 2);
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .gallery-section h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: calc(var(--base-spacing));
    }
    
    .gallery-full {
        padding: calc(var(--base-spacing) * 6) 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 180px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .gallery-section h3 {
        font-size: 1.3rem;
    }
}

/* Gallery Lightbox (if needed for future enhancement) */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.gallery-lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}