@media only screen and (min-width: 3840px) and (min-height: 2159px) {

    /* Modal Content */
    .modal-content {
        position: relative;
        background-color: #fefefe;
        margin: auto;
        padding: 0;
        top: 10px;
        width: 70%;
        max-width: 2500px !important;
        background-size: contain;
    }

    /* Number text (1/3 etc) */
    .modal-content .numbertext {
        color: #f2f2f2;
        font-size: 60px !important;
        padding: 8px 12px;
        position: absolute;
        top: 0;
    }

    /* .caption-container {
                    text-align: center;
                    background-color: black;
                    padding: 2px 16px;
                    font-size: 45px;
                    color: white;
                } */

    /* Next & previous buttons */
    .modal-content .prev,
    .modal-content .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 25px !important;
        margin-top: -100px;
        color: white;
        font-weight: bold;
        font-size: 100px !important;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        -webkit-user-select: none;
        text-decoration: none;
    }

    .modal-content .moreimages {
        color: #f2f2f2;
        font-size: 58px !important;
        padding: 8px 12px;
        position: absolute;
        bottom: 0 !important;
        right: 0;
    }

}

@media only screen and (min-width: 2560px) and (min-height: 1439px) {

    /* Modal Content */
    .modal-content {
        position: relative;
        background-color: #fefefe;
        margin: auto;
        padding: 0;
        top: 10px;
        width: 70%;
        max-width: 1600px;
        background-size: contain;
    }

    /* The Close Button */
    .close {
        color: rgb(36, 35, 35);
        position: absolute;
        top: 50px;
        right: 100px !important;
        font-size: 110px !important;
        font-weight: bold;
    }

    /* Number text (1/3 etc) */
    .numbertext {
        color: #f2f2f2;
        font-size: 45px !important;
        padding: 8px 12px;
        position: absolute;
        top: 0;
    }

    /* .caption-container {
                text-align: center;
                background-color: black;
                padding: 2px 16px;
                font-size: 45px;
                color: white;
            } */

    /* Next & previous buttons */
    .prev,
    .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 25px !important;
        margin-top: -50px;
        color: white;
        font-weight: bold;
        font-size: 70px !important;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        -webkit-user-select: none;
        text-decoration: none;
    }

    .moreimages {
        color: #f2f2f2;
        font-size: 38px !important;
        padding: 8px 12px;
        position: absolute;
        bottom: 0 !important;
        right: 0;
    }

}

@media only screen and (min-width: 1920px) {

    /* The Close Button */
    .close {
        color: rgb(36, 35, 35);
        position: absolute;
        top: 50px;
        right: 50px;
        font-size: 70px;
        font-weight: bold;
        /* background-color: yellowgreen; */
    }

    /* Number text (1/3 etc) */
    .numbertext {
        color: #f2f2f2;
        font-size: 25px;
        padding: 8px 12px;
        position: absolute;
        top: 0;
    }

    /* .caption-container {
            text-align: center;
            background-color: black;
            padding: 2px 16px;
            font-size: 45px;
            color: white;
        } */

    /* Next & previous buttons */
    .prev,
    .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 16px;
        margin-top: -50px;
        color: white;
        font-weight: bold;
        font-size: 40px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        -webkit-user-select: none;
        text-decoration: none;
    }

    .moreimages {
        color: #f2f2f2;
        font-size: 21px;
        padding: 8px 12px;
        position: absolute;
        bottom: 0 !important;
        right: 0;
    }
}

@media only screen and (min-width: 640px) and (max-width: 768px) {
    /* The Modal (background) */
    .modal {
        position: fixed;
        z-index: 20;
        top: 0;
        width: 100%;
        transform: translateY(-20px);
        overflow: auto;
        background-color: rgb(224, 224, 199);
        z-index: 9999;

    }

    .moreimages {
        color: #f2f2f2;
        font-size: 11px;
        padding: 8px 12px;
        position: absolute;
        bottom: 0 !important;
        right: 0;
    }
   
}

@media only screen and (min-width: 480px) and (max-width: 640px) {
    .moreimages {
        color: #f2f2f2;
        font-size: 10px;
        padding: 8px 12px;
        position: absolute;
        bottom: 0 !important;
        right: 0;
    }
}

@media only screen and (min-width: 0px) and (max-width: 480px) {

    /* The Modal (background) */
    .modal {
        position: absolute;
        z-index: 20;
        top: 0;
        width: 100%;
        height: auto;
        transform: translateY(-90px);
        overflow: auto;
    }

    /* The Close Button */
    .close {
        color: rgb(36, 35, 35);
        position: absolute;
        top: 80px;
        right: 25px;
        font-size: 35px;
        font-weight: bold;
    }

    /* Number text (1/3 etc) */
    .numbertext {
        color: #f2f2f2;
        font-size: 9px;
        padding: 8px 12px;
        position: absolute;
        top: 0;
    }

    .caption-container {
        text-align: center;
        background-color: black;
        padding: 2px 16px;
        color: white;
    }

    /* Next & previous buttons */
    .prev,
    .next {
        cursor: pointer;
        position: absolute;
        top: 50%;
        width: auto;
        padding: 11px;
        margin-top: -30px;
        color: white;
        font-weight: bold;
        font-size: 16px;
        transition: 0.6s ease;
        border-radius: 0 3px 3px 0;
        user-select: none;
        -webkit-user-select: none;
        text-decoration: none;
    }

    .moreimages {
        color: #f2f2f2;
        font-size: 8px;
        padding: 8px 12px;
        position: absolute;
        bottom: 0 !important;
        right: 0;
    }

}