#mosaic-galeria {
    background: linear-gradient(135deg, #212529, #343a40);
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}
#mosaic-galeria .container{
    padding: 80px;
}
.mosaic-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    gap: 15px;
    margin-top: 30px;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}
.gallery-item:hover img {
    transform: scale(1.1);
}
/* Mosaic Sizes */
.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item.medium {
    grid-column: span 1;
    grid-row: span 2;
}
.gallery-item.small {
    grid-column: span 1;
    grid-row: span 1;
}
/* Modal Carrossel */
.modal {background-color: rgba(0, 255, 21, 0);
    z-index: 0 !important;
    height: 100vh;
    padding: 50px;
}
.modal-backdrop {background-color: rgb(0, 0, 0);
    z-index: -1 !important;
    opacity: 0.5 !important;
    padding: 50px;
}
.modal-content {background-color: rgba(0, 0, 0, 0.822);
    /*background: var(--card-bg);*/
    padding: 0;
    border: none;
    border-radius: 15px;
    box-shadow: 0 0 20px #000000;
    z-index: 9 !important;
}
.modal-header {
    border-bottom: none;
    background: var(--card-bg);
    color: var(--text-color);
}
.modal-title {
    font-weight: 700;
}
.modal .btn-close {
    background-color: #fff;
    border-radius: 50%;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.modal .btn-close:hover {
    opacity: 1;
}
.modal .carousel-inner img {
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    margin: auto;
    filter: brightness(100%) !important;
}
.modal .carousel-control-prev,
.modal .carousel-control-next {
    width: 5%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
    z-index: 1065 !important;
}
.modal .carousel-control-prev:hover,
.modal .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Ajustes responsivos */
@media (max-width: 992px) {
    .mosaic-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 120px;
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .gallery-item.medium {
        grid-column: span 1;
        grid-row: span 1;
    }
}
@media (max-width: 767px) {
    #mosaic-galeria {
        padding: 40px 0;
    }

    .mosaic-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 10px;
    }

    .gallery-item.large,
    .gallery-item.medium,
    .gallery-item.small {
        grid-column: span 1;
        grid-row: span 1;
        height: 200px;
    }

    .carousel-inner img {
        max-height: 50vh;
    }
}