
/* --- GALERIA PAGE SPECIFIC STYLES --- */

/* Global Reset for this page to remove gaps */
main {
    padding-bottom: 0;
}
main section {
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    padding: 0;
}

/* Hero Section */
.galeria-hero {
    position: relative;
    height: 48vh;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin: 0;
    padding: 0;
}

.galeria-hero video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    display: block;
}

.video-overlay-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../imagenes/PatronPuntos.png');
    background-repeat: repeat;
    background-size: 5px 5px;
    opacity: 0.5;
    z-index: 1;
}

.galeria-hero .hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.galeria-hero h2 {
    font-size: 4em;
    font-weight: normal;
    margin-bottom: 0px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.galeria-hero p {
    font-size: 1.5em;
    font-weight: 300;
    font-style: italic;
    margin-top: -5px;
}

/* Gallery Grid Section */
.gallery-grid-section {
    padding: 20px 5% !important;
    background-color: #000;
    border-top: 4px solid rgb(232, 223, 56);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-auto-rows: 140px;
    grid-auto-flow: dense;
    gap: 4px;
    padding: 0;
}

.gallery-item {
    overflow: hidden;
}

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

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

/* Mosaic layout — wider items (span 2 columns) */
.gallery-item:nth-child(1),
.gallery-item:nth-child(6),
.gallery-item:nth-child(13),
.gallery-item:nth-child(19) {
    grid-column: span 2;
}

/* Mosaic layout — taller items (span 2 rows) */
.gallery-item:nth-child(3),
.gallery-item:nth-child(10),
.gallery-item:nth-child(17),
.gallery-item:nth-child(23) {
    grid-row: span 2;
}

/* Extra large item (2x2) */
.gallery-item:nth-child(1) {
    grid-row: span 2;
}

/* Responsive — Tablet */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 118px;
    }

    .galeria-hero h2 {
        font-size: 3em;
    }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .galeria-hero h2 {
        font-size: 2.5em;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 102px;
    }
}
