/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.gallery h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.gallery-item {
    transition: transform 0.3s ease;
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.artwork {
    height: 300px;
    background-color: var(--medium-gray);
    margin-bottom: 0px;
    position: relative;
    overflow: hidden;
}

.artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 127, 63, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


.artwork:hover .artwork-overlay {
    opacity: 1;
}

.view-btn {
    padding: 10px 20px;
    background-color: var(--white);
    color: var(--color-principal);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

.gallery-item h3 {
    margin: 0 15px 5px;
    font-size: 1.2rem;
}

.gallery-item p {
    margin: 0 15px 15px;
    color: #666;
    font-size: 0.9rem;
}

.gallery-cta {
    text-align: center;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-close:hover {
    color: var(--principal-oscuro);
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {    
    .gallery-grid{
        grid-template-columns: 1fr;
    }
}

