.gallery {
            display: flex;
            flex-wrap: wrap;
        }

        .gallery img {
             width: 125px;
    height: 80px;
    object-fit: cover;
    margin: 5px;
    cursor: pointer;
    float: left;
        }

        #modal-container {
            display: none;
            position: fixed;
            z-index: 999;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgba(0, 0, 0, 0.9);
        }

        #modal-content {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
        }

        #modal-image {
            max-width: 80%;
            max-height: 80%;
        }

        .modal-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: white;
            font-size: 2em;
            cursor: pointer;
            user-select: none;
        }

        .modal-arrow.left {
            left: 10px;
			height: 100%;
			width: 10%;
			display: flex;
			align-items: center;
			justify-content: right;
			z-index: 1;
        }

        .modal-arrow.right {
            right: 10px;
			height: 100%;
			width: 10%;
			display: flex;
		    align-items: center;
        }
        
     #modal-image-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            position: relative;
        }
		 #modal-close {
            position: relative;
            color: white;
            font-size: 2em;
            cursor: pointer;
             height: 73%;
        }
		
		        /* Estilos específicos para pantallas pequeñas */
        @media (max-width: 767px) {
            .gallery img {
                width: 100%;
                height: auto;
                margin: 5px 0;
            }
			
			.small_gallery{
				width: 100%;
			}
			
			.small_gallery img {
                width: 75px;
                height: 75px;
                float: left;
            }

            #modal-content {
                flex-direction: column;
                padding: 10px;
            }

            #modal-image {
                max-width: 100%;
                max-height: 80vh;
            }

            .modal-arrow.left,
            .modal-arrow.right {
                font-size: 3em;
				    z-index: 1;
				 color: white; /* Color del texto: blanco */
				text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black; /* Borde negro */
            }
			#modal-close {
				position:absolute;
			}
        }