﻿h2 {
    text-align: center;
    font-family: sans-serif;
}

.flex {
    display: flex;
    justify-content: center;
}

img {
    cursor: pointer;
    margin: 1em;
    border-radius: 0.25em;

}

    img:hover {
        opacity: .7;
        transition: opacity .3s ease-out;
    }

.modal img:hover {
    opacity: 1;
}

@media only screen and (min-width: 1000px) {
    .modal > img {
        height: 90%!important;
    }

    .slider-btn-prev {
        position: absolute;
        top: 50%;
        left: 35px;
        color: lightgrey;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        vertical-align: middle;
        padding: 20px 40px;
    }

    .slider-btn-next {
        position: absolute;
        top: 50%;
        right: 35px;
        color: lightgrey;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        vertical-align: middle;
        padding: 20px 40px;
    }
}

@media (max-width: 990px) and (orientation: portrait) {
    .modal > img {
        height: auto !important;
    }

    .slider-btn-prev {
        position: absolute;
        top: 16%;
        left: 35px;
        color: lightgrey;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        vertical-align: middle;
        padding: 20px 40px;
    }

    .slider-btn-next {
        position: absolute;
        top: 16%;
        right: 35px;
        color: lightgrey;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        vertical-align: middle;
        padding: 20px 40px;
    }
}


@media (min-width: 200px) and (max-width: 989px) {
    /*    .modal > img {
        max-height: 55% !important;
    }
*/ /*.modal {
        overflow: hidden !important;
        background-color: red !important;*/ /* Fallback color */
        /*background-color: red !important;*/ /* Black w/ opacity */
    /*}*/

    .modal > img {
        max-height: 90%!important;
        width: 100%;
    }

}


@media only screen and (max-width: 990px) and (orientation: landscape) {

    .slider-btn-prev {
        position: absolute;
        top: 50%;
        left: 35px;
        color: lightgrey;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        vertical-align: middle;
        padding: 20px 40px;
    }

    .slider-btn-next {
        position: absolute;
        top: 50%;
        right: 35px;
        color: lightgrey;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
        vertical-align: middle;
        padding: 20px 40px;
    }
}

    .desc, #caption {
        text-align: center;
        font-family: sans-serif;
    }

    .modal {
        display: none;
        position: fixed;
        z-index: 10000;
        padding-top: 1em;
        left: 0;
        top: 0px;
        width: 100%;
        height: 100%;
        overflow: hidden;
        background-color: rgb(0, 0, 0); /* Fallback color */
        background-color: rgba(0, 0, 0, 0.8); /* Black w/ opacity */
    }

    .modal-content {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
    }

    #caption {
        margin: auto;
        display: block;
        width: 80%;
        max-width: 700px;
        text-align: center;
        color: #ccc;
        padding: 10px 0;
        height: 150px;
    }

    .modal-content, #caption {
        -webkit-animation-name: zoom;
        -webkit-animation-duration: 0.6s;
        animation-name: zoom;
        animation-duration: 0.6s;
    }

    @-webkit-keyframes zoom {
        from {
            transform: scale(0);
        }

        to {
            transform: scale(1);
        }
    }

    @keyframes zoom {
        from {
            transform: scale(0.1);
        }

        to {
            transform: scale(1);
        }
    }

    .close {
        position: absolute;
        top: 15px;
        right: 35px;
        color: lightpink;
        font-size: 40px;
        font-weight: bold;
        transition: 0.3s;
    }


        .close:hover, .close:focus,
        .slider-btn-prev:hover, .slider-btn-prev:focus,
        .slider-btn-next:hover, .slider-btn-next:focus {
            color: red;
            text-decoration: none;
            cursor: pointer;
        }

    .slider-btn-prev-disabled,
    .slider-btn-next-disabled {
        color: lightgrey !important;
        cursor: not-allowed !important;
    }