:root {
    --grid-margin: 1.5rem;
    --mobile-grid-margin: 6px;
}
.masonry {
    /*column-count: 1;
    column-gap: var(--grid-margin);*/
}
.grid-item {
    display: inline-grid;
    border-radius: var(--btn-border-radius);
}
.grid-item img {
    max-width: 100%;
    display: block;
}
.grid-item > .borders {
    grid-row: 1 / -1;
    grid-column: 1;
}
.grid .borders.description .read-more-arrow {
    display: block;
}
.grid-item img {
    width: 100%;
    z-index: 0;
    transition: 500ms transform ease-out;
}
.grid-item:hover {
    cursor: pointer;
}

.grid-item:hover .img img {
    /*transform: scale(1.05);*/
}
.grid-item:hover .img:after {
    content: attr(data-author);
    color: white;

}
.grid-item:hover .borders:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgb(0,0,0, .0) , rgba(0, 0, 0, 0.4));
}
.grid-item .borders {
    position: relative;
    overflow: hidden;
    border-radius: var(--btn-border-radius);
}
.grid-item .img:after {
    content: '';
    color: transparent;
    position: absolute;
    z-index: 3;
    bottom: .5em;
    right: 1em;
    text-shadow: 0 1px 0 black;
}



.meet-our-friends {
    background-color: var(--isabelline);
    /*
    background-image: url(/public/img/meet-our-friends.svg);
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100%;
     */
}
.grid-item figure {
    margin: 0;
}
.grid-item figcaption {
    position: absolute;
}
.meet-our-friends h1,
.meet-our-friends h2 {
    color: var(--copper-red);
}

.meet-our-friends .read-more-arrow {
    color: var(--gunmetal);
    display: block;
}
.meet-our-friends .read-more-arrow i {
    color: var(--gunmetal);
}
.meet-our-friends .read-more-arrow:hover,
.meet-our-friends .read-more-arrow:hover i {
    color: var(--copper-red);
}

/*
.meet-our-friends .content {
    display: flex;
}*/
ul.gallery {
    list-style: none;
    padding: 0;
    margin: 0;
}
ul.gallery li {


}
ul.gallery li a {
    position: relative;
    float: left;
    padding: 10px 10px 25px;
    background: #eee;
    border: 1px solid var(--isabelline);
    /*border: 1px solid red;*/
    -moz-box-shadow: 0 2px 15px #333;
}
ul.gallery li:first-child a {
    z-index: 1;
    transform: rotate(-10deg);
}
ul.gallery li:nth-child(2) a {
    z-index: 2;
    transform: rotate(-3deg);
}
ul.gallery li:nth-child(3) a {
    z-index: 3;
    transform: rotate(4deg);
}
ul.gallery li:nth-child(4) a {
    z-index: 4;
    transform: rotate(14deg);
}
ul.gallery li:nth-child(5) a {
    z-index: 5;
    transform: rotate(-12deg);
}
ul.gallery li:nth-child(6) a {
    z-index: 6;
    transform: rotate(5deg);
}
ul.gallery li:nth-child(4) a {
    top: -3em;
}
/*
.meet-our-friends .row > section:first-child li:nth-child(4) a {
    top: -3em;
    right: -3em;
}
.meet-our-friends .row > section:last-child li:nth-child(1) a {
    top: 4em;
    left: 3em;
    z-index: 3;
}*/
/*
ul.gallery a:after {
    content: attr(data-author);
    color: var(--color-darkblue);
    position: absolute;
    font-family: CaveatRegular, serif;
    bottom: 0;
}
/*
ul.gallery li a:hover {
    z-index: 10;
    -moz-box-shadow: 3px 5px 15px #333;
}*/

.meet-our-friends .content {
    display: flex;
    flex-direction: column;
    margin-bottom: -8em;
}
.meet-our-friends .content .header {
    order: 1;
}
.meet-our-friends .content .first-column {
    order: 2;
}
.meet-our-friends .content .second-column {
    order: 3;
}


@media (max-width: 576px) {
    section.meet-our-friends h1 {
        margin-bottom: var(--wrapper-margin-bottom);
    }
    .meet-our-friends h1, .meet-our-friends h2 {
        margin-bottom: 1.5em;
    }
    .meet-our-friends h2 {
        padding-top: 0.5em;
    }
    /*
    .grid-item {
        margin-bottom: 0.75em;
    }*/

    .meet-our-friends .first-column {
        margin-top: 1.5em;
    }

    .meet-our-friends .content .first-column ul.gallery li:first-child a {

    }
    .meet-our-friends .content .first-column ul.gallery li:nth-child(2) a {

        top: -2em;
    }
    .meet-our-friends .content .first-column ul.gallery li:nth-child(3) a {
        top: -2em;
    }
    .meet-our-friends .content .first-column ul.gallery li:nth-child(4) a {

        top: -6em;
    }
    .meet-our-friends .content .second-column ul.gallery li:first-child a {

        top: -6em;
    }
    .meet-our-friends .content .second-column ul.gallery li:last-child a {

        top: -8em;
    }

}
@media (min-width: 992px) {
    .meet-our-friends .content {
        margin-bottom: -5em;
    }
    .meet-our-friends .headlines {
        padding-left: 2em;
        padding-bottom: 2em;
    }
    /*
    .masonry {
        column-count: 4;
    }
    .grid-item {
        margin-bottom: var(--grid-margin);
    }*/
    .meet-our-friends h2 {
        margin-bottom: 5px;
    }

    .meet-our-friends .content {
        display: grid;
        grid-auto-rows: fit-content(1em);
        grid-template-columns: 1fr 1fr;
        grid-template-rows: .5fr 1fr;
        grid-auto-columns: 1fr;
        gap: 0 0;
        grid-auto-flow: row dense;
        grid-template-areas:
    "first-column header"
    "first-column second-column";
    }
    .meet-our-friends .content .first-column {
        grid-area: first-column;
    }
    .meet-our-friends .content .header {
        grid-area: header;
    }
    .meet-our-friends .content .second-column {
        grid-area: second-column;
    }
    .meet-our-friends .content .first-column ul.gallery li:first-child a {
        top: 1em;
        left: 1.5em;
    }
    .meet-our-friends .content .first-column ul.gallery li:nth-child(2) a {
        left: 1.5em;
    }
    .meet-our-friends .content .first-column ul.gallery li:nth-child(3) a {
        left: 1.5em;
    }
    .meet-our-friends .content .first-column ul.gallery li:last-child a {
        top: -6.7em;
        left: 3em;
    }
    .meet-our-friends .content .second-column ul.gallery li:first-child a {
        z-index: 3;
        top: 4.6em;
    }
    .meet-our-friends .content .second-column ul.gallery li:last-child a {
        top: 0.5em;
    }
}
@media (min-width: 992px) and (max-width: 1200px) {
    .meet-our-friends .content .first-column ul.gallery li:nth-child(3) a {
        left: 1.5em;
    }
    .meet-our-friends .content .second-column ul.gallery li:nth-child(1) a {
        left: 1.5em;
    }
}