.gal-content {
    margin-top: -250px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 50px; /* Espacio entre las imágenes */
    padding: 50px; /* Espacio alrededor del contenedor */
}
@media (max-width: 1200px) {
    .gal-content {
        margin-top: -150px;
        grid-gap: 20px;
        gap: 20px;
    }
}
@media (max-width: 650px) {
    .gal-content {
        margin-top: -100px;
    grid-template-columns: repeat(2, 1fr);
    display: block;
    grid-gap: 50px;
    gap: 50px;
    }
    .modal-dcd .modal-nav-btn {
        background-color:rgba(0, 0, 0, 0.9);
    }
}

.gal1 {
    grid-column: 1;
    grid-row: 1;
}

.gal2 {
    grid-column: 1;
    grid-row: 2;
}

.gal3 {
    grid-column: 2;
    grid-row: 1 / span 2;
}
.gal4 {
    grid-column: 3;
    grid-row: 1;
}

.gal5 {
    grid-column: 4;
    grid-row: 1;
}

.gal6 {
    grid-column: 3/ span 2;
    grid-row: 2 ;
}
.gal7 {
    grid-column: 1;
    grid-row: 3;
}

.gal8 {
    grid-column: 2;
    grid-row: 3;
}

.gal9 {
    grid-column: 1/span 2;
    grid-row:  4 ;
}
.gal10 {
    grid-column: 3;
    grid-row: 3;
}

.gal11 {
    grid-column: 3;
    grid-row: 4;
}

.gal12 {
    grid-column: 4;
    grid-row: 3 / span 2;
}

.gal-content img {    
    transition: transform 0.7s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    border: 2px solid transparent; /* Ancho del borde más delgado */
    border-image: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(246, 146, 30, 0.5)); /* Gradiente para el borde */
    border-image-slice: 1;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.9), rgba(246, 146, 30, 0.5)); /* Gradiente para el borde */
}
.wrrr:hover {
    transform: scale(.95); 
    cursor: pointer; 
}

.wrrr{
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.7s ease;
}
.gal-content img::before,
.wrrr::before{
    transition: all .5s ease-in;
    background-color: rgba(0, 0, 0, 0.9);    
    position: absolute;
    content: "";
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 9;  
    width: 100%;  
}
.gal-content img:hover::before,
.wrrr:hover::before{
    opacity: .6 ;
}
.wrrr:hover .dcd-gallery-button {
    visibility: visible; /* Botón visible al pasar el ratón sobre la imagen */
}
.dcd-gallery-button {
    visibility: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color:transparent;
    background-image: url('../img/galery/lupa1.png');
    background-size: 50px;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent;
    padding: 30px 30px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    z-index: 10;
}

.dcd-gallery-button:hover {
    background-image: url('../img/galery/lupa2.png');
}


/* Pantalla completa */
.modal-dcd {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 0px;
    left: 0;
    top: 0px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
   
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-items: center;
    text-align: center;
}

.modal-content-dcd {
    margin: auto;
    text-align: center;
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-items: center;
}
.modal-dcd  img{
    margin-top:30px;
height:80%
}
.modal-img-dcd {
    justify-content: center;
    align-items: center;
    align-content: center;
    justify-items: center;   
}

.close-dcd {
    position: absolute;
    top: 15px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close-dcd:hover,
.close-dcd:focus {
    color: transparent;
    text-decoration: none;
    cursor: pointer;
}


/* Estilos para los botones de navegación */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px; /* Ancho fijo del botón */
    height: 50px; /* Alto fijo del botón */
    overflow: hidden; /* Ocultar cualquier contenido que sobresalga */
    background-color:transparent;/* rgba(255, 255, 255, 0.5);  Color de fondo semi-transparente */
    border: none;
    cursor: pointer;
    font-size: 30px; /* Tamaño de la fuente */
    color: white; /* Color del texto */
}



/* Estilos para el botón de navegación a la izquierda */
.modal-nav-btn.left {
    left: 10px; /* Posición izquierda */
}

/* Estilos para el botón de navegación a la derecha */
.modal-nav-btn.right {
    right: 10px; /* Posición derecha */
}