/* ==========================================================================
// Global Styling
// ========================================================================*/

* {
    box-sizing: border-box;
}

body {
    max-width: 100%;
    margin: auto;
}

main {
    margin: 0 auto;
    padding: 2em 0;
    max-width: 1200px;
    height: 100vh;
    text-align: center;
    align-items: center;
}

input {
    margin: 0 auto;
}

.latest {
    font-family: "Chakra Petch", sans-serif;
    font-weight: 700;
    font-style: normal;
    text-align: center;
    margin-top: 30px;
    font-size: 50px;
    color: #000;
}

input[type="search"] {
    display: block;
    width: 40%;
    margin: 0 auto 2em;
    padding: 0.3125em;
    border: 2px solid #999;
    border-radius: 5px;
    outline: none;
}

h1 {
    font-family: "Anton", sans-serif;
    text-align: center;
    align-items: center;
    position: relative;
}

input::placeholder {
    color: #999;
}

ul {
    list-style: none;
    padding: 0;
}

#container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 10px;
}

#container li a img {
    width: 300px;
    height: 300px;
    border-radius: 10px;
}

#container li a img:hover {
    box-shadow: rgba(0, 0, 0, 0.2) 0px 60px 40px -7px;
    transition: 1s;
    opacity: .7;
}

.gallery-container {
    background-color: #fff;
    margin-right: 5px;
    padding: auto;
}

.gallery {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 6px;
    padding-top: 10px;
}

/* .gallery__item {
	width: 100%;
	height: 100%;
	object-fit: cover;
} */

.title {
    background-color: red;
    /* Create the gradient. */
    background-image: linear-gradient(45deg, #f70845, #fafa6e);
    /* Set the background size and repeat properties. */
    background-size: 100%;
    background-repeat: repeat;
    /* Use the text as a mask for the background. */
    /* This will show the gradient as a text color rather than element bg. */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
}

#search {
    font-size: 17px;
    border: 2px solid rgb(168, 168, 168);
    border-radius: 6px;
    min-width: 30%;
    margin: auto;
    margin-bottom: 2%;
    padding: 12px 20% 12px 12px;
    color: rgb(91, 91, 91);
}

input:focus {
    outline: 2px solid orange;
}

img {
    flex-basis: 29.7%;
    grid-gap: 5px;
    opacity: 0.9;
    cursor: pointer;
    padding-bottom: 1.9rem;
}

a:hover {
    opacity: 1;
}

.gallery img {
    max-width: 100%;
    height: auto;
}

.lb-nav a.lb-prev {
    color: tomato;
}

figcaption {
    color: orangered;
    background-color: aliceblue;
}

.start {
    background: var(--international-orange-engineering);
    display: flex;
    justify-content: center;
    color: white;
    font-weight: bold;
    padding: 5px 40px;
    border-radius: 3px;
}

.startdiv {
    display: flex;
    justify-content: center;
}

@media (max-width: 767px) {
    .gallery {
        width: 100%;
    }

    #container li a img {
        width: 300px;
        height: 300px;
        border-radius: 10px;
    }

    #container li a img:hover {
        box-shadow: rgba(0, 0, 0, 0.2) 0px 60px 40px -7px;
        transition: 1s;
        opacity: .7;
    }

    #container {
        display: block !important;
    }

    /* .gallery img {
        height: 500px;
        width: 500px;
    } */

    .lb-data .lb-close {
        position: fixed;
        left: 10px;
        top: 20px;
    }

    .lb-nav a.lb-next {
        position: fixed;
        right: 35px;
        top: 0;
    }

    .lb-nav a.lb-prev {
        position: fixed;
        left: 35px;
        top: 0;
    }
}

@media (max-width: 480px) {
    #container li a img {
        width: 300px;
        height: 300px;
        border-radius: 10px;
    }

    #container li a img:hover {
        box-shadow: rgba(0, 0, 0, 0.2) 0px 60px 40px -7px;
        transition: 1s;
        opacity: .7;
    }

    #container {
        display: block !important;
    }

    img {
        flex-basis: 100%;
        margin-bottom: 21px;
    }

    .lightbox-content {
        width: 90%;
        margin: 20% auto;
    }
}