:root {
    --red: #E62B58;
    --blue: #142247;
    --white: #fff;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

::selection {
    background: var(--blue);
}

::-moz-selection {
    background: var(--blue);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--red);
    background-image: url(img/red-monday-background.svg);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: none;
}

p, a, li {
    color: var(--white);
    font-family: Futura-pt, sans-serif;
    text-align: center;
}

nav {
    background-color: var(--blue);
    color: var(-red);
    min-height: 200px;
    position: sticky; top: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    max-width: 140px;
}

h1 {
    font-family: 'futura-pt-bold', sans-serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1;
    margin: 0 auto;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 0;
}

ul li {
    list-style: none;
    color: var(--red);
    font-size: 1rem;
    font-weight: 700;
    background: var(--blue);
    padding: 12px 20px;
    margin: 5px;
    border-radius: 50px;
    cursor: pointer;
}

ul li.active {
    background: var(--white);
}

.gallery-container {
    text-align: center;
    padding: 1rem;
}

.container {
    text-align: center;
    padding: 2rem;
}

.grid-gallery {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 50px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
    grid-gap: 20px;
}

.grid-gallery .itemBox {
    position: relative;
    overflow: hidden;
}


.grid-gallery .itemBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.itemBox {
    opacity: 0;
}

itemBox.loaded > img {
    opacity: 1;
}

itemBox > img {
    transition: opacity 200ms ease-in-out;
}

.itemBox.show {
    opacity: 1;
    background-image: url(img/loading.png);
    background-size: cover;
    background-position: center;
}

.grid-gallery .itemBox:hover img {
    transform: scale(1.05);
}

.grid-gallery .itemBox a {
    cursor : zoom-in;
}

.grid-gallery .itemBox.hide {
    display: none;
}

.grid-gallery .itemBox:nth-child(4n - 2) {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width:768px) {

    body {
            background-image: url(img/red-monday-background.svg);
            background-attachment: fixed;
            background-size: cover;
            background-repeat: none;
    }
    
    .grid-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-auto-rows: 250px;
    }

    .grid-gallery .itemBox:nth-child(4n - 2) {
        grid-column: unset;
        grid-row: unset;
    }
    
}

#load-more{
    margin-top: 20px;
    display: inline-block;
    padding:13px 30px;
    border:1px solid #334;
    color:#334;
    font-size: 16px;
    background-color: #fff;
    cursor: pointer;
  }
  
  #load-more:hover{
    background-color: crimson;
    border-color: crimson;
    color:#fff;
  }


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

@media (min-width: 576px) {
    .logos {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 10rem;
        max-width: 620px;
        margin-left: auto;
        margin-right: auto;
    }

    .logos div {
        padding: 0 2rem;
    }
}


@media (min-width: 1200px) {
    h1,
    .form {
        max-width: 960px;
    }

    h1 {
        font-size: 3rem;
    }
    .terms {
        font-size: 0.75rem;
    }

    .logos {
        margin-top: 8rem
    }

        .gallery-container {
                width: 70vw;
                margin: 0 auto;
                padding: 3rem;
        }

        .container {
            width: 70vw;
            margin: 0 auto;
            padding: 3rem;
    }
}

@media (max-width: 960px) {
    body {
        background-image: none;
    }    
}