html {
    font-size: 10px;
}

body {
    font-size: 1.6rem;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.layout {
    width: 100%;
    min-height: 100%;
    position: absolute;
    padding: 5rem 10rem;
}

.layout__main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem 0rem;  /*gap primero separacion entre lineas y el último entre elementos*/
}

.main__image {
    flex-basis: calc(25% - 1rem);
    height: 30rem;
    cursor: pointer;
    overflow: hidden;  /*para que se oculte lo que se salga de la máscara*/
    transition: all 300ms linear;
}

.main__image:hover {
    transform: scale(0.8);
}

.selection {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px); /*para que ponga una capa de difuminado*/
    opacity: 0;
    visibility: hidden;
    position: fixed; /*para que se quede fija*/
    z-index: 2;
    transform: scale(0);
    transition: all 300ms ease;
}

.selection--show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);

}

.selection__close {
    font-size: 4rem;
    top: 3rem;
    right: 3rem;
    cursor: pointer;
    position: absolute;
}

.selection__image {
    width: 55rem;
    height: 70rem;
    overflow: hidden;
}


