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

.content {
    background-color: #F7F8FA;
}

ul {
    display: flex;
    gap: 10px;
    padding: 0 10px;
    /* justify-content: space-between; */
    flex-wrap: wrap;
    list-style: none;
    /* margin: 15px; */
}

li {
    /* height: 24.7vh; */
    height: 200px;
    flex-grow: 1;
    /* margin: 5px; */
    cursor: pointer;
}

ul::after {
    content: "";
    flex-grow: 10000;
}

img {
    max-height: 100%;
    min-width: 100%;
    object-fit: cover;
    /* vertical-align: bottom; */
    /* border-radius: 15px; */
    /* box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); */
}

li:hover {
    box-shadow: 0 0 2px 1px rgba(0, 140, 186, 0.5);
    opacity: 0.7;
}


/* li:last-child {
    flex-grow: 10;
} */


/* ------------------------------------------------ */

#overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2;
}

#imgbox {
    position: absolute;
    /* top: 50%;
    left: 50%; */
    width: 100%;
    height: 100%;
    font-size: 40px;
    /* border: 3px solid rgb(255, 255, 255); */
    color: rgb(255, 255, 255);
    /* transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* border: 5px solid white; */
}

#imgsrc {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    object-fit: scale-down;
    /* padding-bottom: 70px; */
    /* border: 5px solid white; */
}


/* #imgsrc:hover {
    opacity: 1;
} */

#imgsrc::selection {
    /* color: red; */
    background: none;
}

#next {
    right: 10px;
}

#prev {
    left: 10px;
}

#xclose {
    top: 20px;
    left: 10px;
}

#prev,
#next,
#xclose {
    position: absolute;
    cursor: pointer;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    fill: white;
    z-index: 5;
}

#next:hover,
#prev:hover,
#xclose:hover {
    background-color: rgba(255, 255, 255, 0.3);
}


/* ------------------------------------------------ */

@media only screen and (max-width: 800px) {
    #prev,
    #next,
    #xclose {
        background-color: black;
    }
    #next:hover,
    #prev:hover,
    #xclose:hover {
        background-color: black;
    }
    ul {
        padding: 0;
    }
}


/* @media only screen and (max-width: 600px) {
    ul {
        flex-direction: row;
    }
    li {
        height: auto;
        width: 100%;
    }
    img {
        width: 100%;
        max-height: 75vh;
        min-width: 0;
    }
   
} */


/* @media (max-aspect-ratio: 1/1) {
    li {
        height: 30vh;
    }
}

@media (max-height: 480px) {
    li {
        height: 80vh;
    }
}

@media (max-aspect-ratio: 1/1) and (max-width: 480px) {
    ul {
        flex-direction: row;
    }
    li {
        height: auto;
        width: 100%;
    }
    img {
        width: 100%;
        max-height: 75vh;
        min-width: 0;
    }
} */


/*=======================LOADER*/

#loaderspine {
    display: block;
    /* background-color: rgba(0, 0, 0, 0.4); */
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    /* border-right: 8px solid #3498db; */
    border-left: 4px solid #3498db;
    width: 100px;
    height: 100px;
    z-index: 100;
    -webkit-animation: spin 1s linear infinite;
    /* Safari */
    animation: spin 1s linear infinite;
}


/* Safari */

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}