/* Galeria Section */
.gallery-section {
    padding: var(--space-2xl) 0;
    background-color: var(--color-white);
}

.gallery-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.gallery-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.gallery-header h2 {
    font-size: var(--text-2xl);
    font-weight: var(--text-bold);
    color: var(--color-text-black);
    position: relative;
    padding-left: var(--space-md);
}

.gallery-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background-color: var(--color-yellow-500);
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.filter-tag {
    background-color: var(--color-yellow-500);
    color: var(--color-text-black);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: var(--text-sm);
    font-weight: var(--text-medium);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.filter-tag:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.filter-tag.active {
    background-color: var(--color-green-700);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 141, 54, 0.3);
}

.gallery-grid {
    display: flex;
    gap: var(--space-sm);
    padding: 0 var(--space-lg);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.gallery-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    height: 280px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: var(--space-lg) var(--space-sm) var(--space-sm);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay p {
    color: var(--color-text-white);
    font-weight: var(--text-bold);
    font-size: var(--text-base);
    margin: 0;
}

.gallery-footer {
    text-align: center;
    margin-top: var(--space-lg);
}

/* Modal Lightbox */
.gallery-modal-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-modal-lightbox.active {
    opacity: 1;
}

.gallery-modal-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.gallery-modal-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-modal-lightbox__content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.gallery-modal-lightbox__close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.gallery-modal-lightbox__close:hover {
    transform: scale(1.2);
}

.gallery-modal-lightbox__info {
    margin-top: var(--space-md);
    text-align: center;
    color: var(--color-white);
}

.gallery-modal-lightbox__info p {
    font-size: var(--text-lg);
    font-weight: var(--text-bold);
    margin: 0 0 var(--space-xs) 0;
}

.gallery-modal-lightbox__info span {
    font-size: var(--text-sm);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        flex-direction: column;
        padding: 0;
    }
    
    .gallery-column {
        width: 100%;
    }
    
    .gallery-filters {
        justify-content: center;
    }
    
    .gallery-modal-lightbox__content img {
        max-height: 70vh;
    }
}