html{
    background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.918), rgba(221, 108, 33, 0.644)),
    url('../images/background/general.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    background-color: rgba(221, 108, 33, 0.644);
    margin: 0px;
    height: auto;
    width:100%;
    max-width: 100%;
    overflow:hidden;
}

body {
    color:#1e1d22;
    font-family: "Ysabeau SC", sans-serif;
    font-weight: bolder;
    text-align: center;
    align-items: center;
    align-content: center;
    margin: 5%;
    padding: 0;
    width: 90%;
    background-color: transparent;
}

.grid-gallery {
    position: relative !important;
    display: grid;
    grid-auto-rows: 200px;
    gap: 1rem;
    grid-auto-flow: row dense;
    margin-top:1%;
    width: 100%;
}

.grid-gallery__item {
    position: relative;
    display: inline-block;
    color:#d0d0d3;
    text-align: center;
    border-radius: 15px 15px 15px 15px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
    transition: transform 2s;
}

.grid-gallery__item:hover{
    position: relative !important;
    z-index: 100;
    transform: scale(1.2);
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
    color: #1e1d22;
}

.grid-gallery__image {
    background-size: cover;
    border-radius: 15px 15px 15px 15px;
    width: 100%;
    height: 100%;
}

.grid-gallery__name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cartel {
    display: inline-block;
    padding: 10px;
    border: none;
    text-decoration: none;
    text-align: center;
    -o-text-overflow: clip;
    text-overflow: clip;
    white-space: pre;
    text-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}

.img-faraon{
    background-image:
    linear-gradient(to bottom, transparent, rgba(37, 24, 17, 0.315)),
    url('../images/background/faraon.jpg');
}

.img-lenceria{
    background-image:
    linear-gradient(to bottom, transparent, rgba(37, 24, 17, 0.315)),
    url('../images/background/lenceria.jpg');
}

.img-sgegrabados{
    background-image:
    linear-gradient(to bottom, transparent, rgba(37, 24, 17, 0.315)),
    url('../images/background/sgegrabados.jpg');
}

.img-mastecno{
    background-image:
    linear-gradient(to bottom, transparent, rgba(37, 24, 17, 0.315)),
    url('../images/background/mastecno.jpg');
}

/*-----------------------------------------------------*/

/* Estilos para dispositivos móviles */
@media (320px <= width < 768px) {
    html{
        overflow-x: hidden;
        overflow-y: auto;
        font-size: 2vw;
    }
    .grid-gallery {
        grid-template-columns: repeat(1, 1fr);
    }
    .grid-gallery__name{
        font-size: 5vw;
    }
}
  
/* Estilos para dispositivos de escritorio */
@media (width > 768px) {
    .grid-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}