/* Global */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
}

/* Gallery */

.galeria {
    /*box-shadow: inset 0px 8px 14px #9ea19e,
    inset 0px -6px 10px #ffffff;*/
    border-bottom: 1px solid white;
}

.gallery {
    position: relative;
    width: 100%;
    height: 1000px;
    max-height: 35vh;
    overflow: hidden;
    padding: 10px 0;
}

.gallery__prev:hover img,
.gallery__next:hover img {
    box-shadow: 0 0 10px var(--grey-95);
    border-radius: 50%;
}

.gallery_nav_left {
    left: 20px;
}

.gallery_nav_right {
    right: 20px;
}

.gallery_nav_left:hover,
.gallery_nav_right:hover {
    box-shadow: 0 0 10px var(--grey-95);
}

.gallery__stream {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
}

.no-gallery__stream {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
}

.gallery__item {
    position: absolute;
    width: 80%;
    height: 100%;
    transition: 1s all ease;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.no-gallery__stream .gallery__item {
    position: relative;
    margin: 0 10px;
}

.no-gallery__stream .gallery__item:first-child {
    margin: 0 10px 0 0;
}

.no-gallery__stream .gallery__item:last-child {
    margin: 0;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery__stream .gallery__item:nth-child(1) {
    left: -35%;
    z-index: 1;
    transform: translateX(-100%);
}

.gallery__stream .gallery__item:nth-child(2) {
    left: -35%;
    z-index: 5;
    transform: translateX(-50%);
}

.gallery__stream .gallery__item:nth-child(3) {
    left: 50%;
    z-index: 4;
    transform: translateX(-50%);
}

.gallery__stream .gallery__item:nth-child(4) {
    left: 135%;
    z-index: 2;
    transform: translateX(-50%);
}

.gallery__stream .gallery__item:nth-child(n+5) {
    left: 135%;
    z-index: 1;
    transform: translateX(-50%);
}


/* Controllers */

.gallery__prev,
.gallery__next {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 25%;
    height: 100%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 20px;
}

.gallery__prev img,
.gallery__next img {
    width: 40px;
    height: 40px;
}

.gallery__prev img {
    left: 20px;
}

.gallery__next img {
    right: 20px;
}

.gallery__prev {
    left: 0;
    justify-content: flex-start;
    /*background: linear-gradient(90deg, rgba(21, 25, 21, 1) 0%, rgba(21, 25, 21, 0) 65%)!important;*/
}

.gallery__next {
    right: 0;
    justify-content: flex-end;
    /*background: linear-gradient(270deg, rgba(21, 25, 21, 1) 0%, rgba(21, 25, 21, 0) 65%)!important;*/

}


/* Tablet and up */
@media (min-width: 768px) {
    .gallery {
        padding: 30px 0 0 0;
        max-height: 30vw;
    }

    .no-gallery__stream .gallery__item:first-child {
        margin: 0 20px 0 0;
    }

    .no-gallery__stream .gallery__item:last-child {
        margin: 0 0 0 20px;
    }

    .gallery__stream .gallery__item:nth-child(1) {
        left: 0;
    }

    .gallery__stream .gallery__item:nth-child(2) {
        left: 0;
    }

    .gallery__stream .gallery__item:nth-child(3) {
        left: 33%;
    }

    .gallery__stream .gallery__item:nth-child(4) {
        left: 66%;
        z-index: 3;
    }

    .gallery__stream .gallery__item:nth-child(5) {
        left: 99%;
        z-index: 2;
    }

    .gallery__stream .gallery__item:nth-child(n+6) {
        left: 99%;
        z-index: 1;
    }

    .gallery__item {
        width: 30%;
    }
}

/* iPad or tablet*/
@media (min-width: 768px) {
    .gallery {
        max-height: 30vw;
    }

    .gallery__prev,
    .gallery__next {
        width: 15%;
    }
}

/* Low laptop screen */
@media (min-width: 992px) and (orientation: landscape) {
    .gallery {
        max-height: 25vw;
    }
}

/* Low laptop screen */
@media (min-width: 1400px) and (orientation: landscape) {
    .gallery {
        max-height: 20vw;
    }
}
