﻿img.hover-shadow {
    transition: all 0.3s;
}

.carousel-row {
    max-width: 85%;
    margin: 20px auto;
    display: grid;
    grid-gap: 12px;
    grid-template-columns: repeat(3,minmax(0,1fr));
    height: fit-content;
}

.carousel-row--img {
    min-width: 100%;
    margin-bottom: 10px;
    margin: 0 auto;
    height:250px;
    display: flex;
    border-radius: 16px;
}
    .carousel-row--img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        cursor: pointer;
        transition: 0.4s;
        border-radius: 16px;
    }

.carousel-row--img img:hover {
        box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.2), 0 12px 20px 0 rgba(0, 0, 0, 0.19);
}

.column-box {
    white-space: nowrap;
    background-color: transparent;
    width: 100%;
    overflow: hidden;
}

.column-box .column {
    width: 20%;
    display: inline-block;
    transition: all 1s;
}

.column-box .column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.first--img {
    grid-row-start: 1;
    grid-row-end: 3;
}

/* The Modal */
.modal {
    display: none;
}

    .modal.no-select {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        -khtml-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

.modal-content {
    margin: auto;
    width: 50%;
    overflow: hidden;
}

@media only screen and (max-width: 37.5em) {
    .modal-content {
        width: 90%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@@keyframes anime {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.my-slides {
    display: none;
    height: 60vh;
    transition: all 2s;
    overflow: hidden;
    animation: anime 0.8s ease-in;
    position: relative;
}

@media only screen and (max-width: 56.25em) {
    .my-slides {
        height: 70vh;
    }
}

@media only screen and (max-width: 37.5em) {
    .my-slides {
        height: 30vh;
    }
}

.my-slides img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.my-slides--number {
    color: #f2f2f2;
    font-size: 12px;
    padding: 8px 12px;
    position: absolute;
    top: 0;
}

.demo {
    opacity: 0.5;
    transition: all 0.4s;
}

    .demo.active, .demo:hover {
        opacity: 1;
    }
/* Caption text */
.caption-container {
    text-align: center;
    padding: 6px 16px;
    color: white;
}

/* The Close Button */
.close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
}

    .close:hover, .close:focus {
        color: #999;
        text-decoration: none;
        cursor: pointer;
    }

/* Next & previous buttons */
.prev,
.next {
    cursor: pointer;
    position: fixed;
    top: 50%;
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 50px;
    transition: 0.6s ease;
    transform: translateY(-50%);
}

@media only screen and (max-width: 37.5em) {
    .prev,
    .next {
        position: fixed;
        top: 95%;
        padding: 10px;
        font-size: 40px;
        transform: translateY(-50%);
    }
}

.prev:active,
.next:active {
    font-size: 30px;
}

/* Position the "next button" to the right */
.next {
    right: 0;
}

.prev {
    left: 0;
}

@media only screen and (max-width: 37.5em) {
    .prev {
        left: 80%;
    }
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media only screen and (max-width: 37.5em) {
    .prev:hover,
    .next:hover {
        background-color: transparent;
    }
}


@media only screen and (max-width: 992px) {
    .carousel-row {
        max-width: 85%;
        margin: 20px auto;
        display: grid;
        grid-gap: 12px;
        grid-template-columns: repeat(2,minmax(0,1fr));
        height: 300px;
    }
    .carousel-row--img {
        min-height: 100px;
        height: 100%;
    }
}