/** galeria **/
.masonry-grid {
    column-count: 2;
    column-gap: 8px;
}

@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 4;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-grid img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 8px;
    break-inside: avoid;
    border-radius: 0;
    object-fit: contain;
}

/** foto expandida **/
.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: #000;
    z-index: 20;
}

.expanded-image {
    max-width: calc(100% - 20px);
    max-height: calc(100% - 20px);
    object-fit: contain;
    border-radius: 0;
    display: block;
    margin: 0 auto;
}

.ui-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-content: center;
    justify-content: center;
}

button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    transition: opacity 0.2s ease;
}

.nav-button:hover, .nav-button:active {
    opacity: 1;
}

.prev-button {
    left: 5px;
}

.next-button {
    right: 5px;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 48;
    font-size: 32px;
}

.nav-button .material-symbols-outlined {
    font-size: 48px;
}

.ios-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    pointer-events: none;
}

.galeria-titulo > h2 {
    max-width: 50%;
    justify-self: end;
}

.galeria-titulo .boton {
    justify-self: end;
    margin-top: 20px;
}

@media screen and (max-width: 600px) {
    .galeria-titulo > h2 {
        max-width: 100%;
        text-align: center;
        justify-self: center;
    }

    .galeria-titulo .boton {
        justify-self: center;
    }
}