html, body {
    background-color: rgba(0, 0, 0, .7);
}

#wrapper {
    padding: 22px;
    padding-top: 0;
    margin: 0;
}

header {
    position: sticky; 
    top: 0;
    padding: 16px 22px 8px 22px;
    margin-bottom: 15px;
    background-color: var(--background);
    background-position: center;
    background-size: contain;
    z-index: 9;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#back {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 140px;
    height: 180px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
    filter: drop-shadow(0px 10px 0px blue);
}
#back:hover {
    transform: translate(0, 10px);
    filter: drop-shadow(0px 0px 0px rgba(0, 0, 255, 0));
}

#back span {
    position: absolute;
    bottom: 10%;
    left: 0;
    color: #fff;
    background: #000;
    padding: 3px 6px;
    box-sizing: border-box;
    font-size: 1.5rem; 
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

:root {
    --drop-shadow: 10px;
}

h1 {
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(2.4rem, 4vw, 4rem);
    color: #fff;
    -webkit-text-stroke: 1.5px #fff;
    margin: 0;
    padding: 0;
    text-shadow: 4px 5px 0px rgba(0, 0, 0, .7);
}

h2 {
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    font-weight: 400;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #fff;
    margin: 0;
    padding: 0;
}

a {
    color: #fff;
}

p {
    font-family: 'Roboto', sans-serif;
    color: #fff;
}

article {
    padding-top: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
article:first-of-type {
    padding-top: 0;
}
article:last-of-type {
    border-bottom: 0px;
}

.section_container {
    margin: 10px 0;
    display: table;
}

section {
    position: relative;
    display: inline-block;
    margin: 0 10px 10px 0;
    vertical-align: top;
}

.gallery section img {
    height: 300px;
}

.grid figure .thumbnail{
    background: rgba(0, 0, 0, 0.04);
    padding-bottom: 55%;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

.content {
    padding: 54.05% 0 0 0;
    background-color: lightgray;
    position: relative;
    margin-bottom: 5px;
}

.project_description {
    font-size: 1rem;
}

.content_description {
    font-size: 1rem;
    margin-top: 5px;
    word-wrap: break-word;
}


.pswp-arrow {
    width: 75px;
    height: 75px;
    background: url('/assets/img/arrow-1.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0;
    padding: 0;
    border: 0;
}
.pswp-arrow:hover {
    opacity: .5;
}
.pswp-arrow.next {
    -webkit-transform: scaleX(-1);
    transform: scaleX(-1);
}

.pswp__button--arrow--prev {
    right: auto;
    left: 15px !important;
}

.pswp__button--arrow--next {
    right: 15px !important;
}


@media (max-width: 1280px) {
    .section_container {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery section img {
        height: 280px;
    }
}

@media (max-width: 992px) {
    #wrapper {
        padding: 20px;
        padding-top: 0;
    }

    header {
        padding: 10px 20px;
        margin-bottom: 10px;
    }

    .gallery section img {
        height: 240px;
    }

    article {
        padding-top: 20px;
    }

    .section_container {
        grid-template-columns: repeat(2, 1fr);
    }

    #back {
        width: 120px;
        height: 150px;
    }
    #back:hover {
        transform: translate(0, 5px);
        filter: drop-shadow(0px 0px 0px);
    }

    #back span {
        font-size: 1.2rem; 
    }

    :root {
        --drop-shadow: 5px;
    }
}

@media (max-width: 576px) {
    section {
        display: grid;
        margin: 5px 0;
        width: 100% !important;
    }

    .gallery section img {
        height: auto;
        width: 100% !important;
    }

    .section_container {
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }

    #back {
        width: 80px;
        height: 100px;
    }
    #back:hover {
        transform: translate(0, 5px);
        filter: drop-shadow(0px 0px 0px);
    }

    #back span {
        font-size: 1rem; 
        bottom: 5%;
    }

    :root {
        --drop-shadow: 5px;
    }
}