/* --- Hero Section for Galeria --- */
.hero-galeria {
        background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), var(--bg-hero-galeria);
    background-size: cover;
    background-position: center;
    color: #f4f4f4;
    text-align: center;
    padding: 340px 0 350px;
}

.hero-galeria h1 {
    color: #f4f4f4;
    font-size: 3.5rem;
    line-height: 4.5rem;
    margin-bottom: 10px;
}

.hero-galeria p {
    font-size: 20px;
    font-weight: 500;
}

/* --- Gallery Section --- */
.gallery-section {
    padding: 10px 0;
    background-color: #1a1a1a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
    border: 1px solid #444;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

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

.gallery-item:hover img {
    opacity: 0.8;
}


.cta-brochure {
    text-align: center;
    background-color: #1a1a1a;
    color: #fff;
    padding: 20px 20px 0 20px;
}

.cta-brochure h3 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #ef7f16;
}

.cta-brochure p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* Mosaic layout adjustments */
.gallery-item:nth-child(2) {
    grid-column: span 2;
    grid-row: span 1;
}

.gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-item:nth-child(8) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item:nth-child(11) {
    grid-column: span 1;
    grid-row: span 2;
}

.gallery-item:nth-child(15) {
    grid-column: span 2;
    grid-row: span 1;
}

@media (max-width: 768px) {
    .hero-galeria {
        padding: 350px 20px 350px;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* --- Modal Styles --- */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gallery-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 5px;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}