.gallery {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    background-color: #000000ff;
    gap: 0.5rem;
    padding: 0.5rem;
}

.gallery img {
    max-width: 100%;
    grid-column: span 4;
}

.gallery video {
    max-width: 100%;
}

.media-item {
    display: grid;
    grid-column: span 20;
}

.media-item-content {
    padding-bottom: 3rem;
}

.media-item-content h1 {
    color: #c7a462ff;
    padding: 0.5rem;
}

.media-item-content p {
    font-size: 0.8rem;
    padding: 0.5rem;
}


/* -- 4 max image positions */
.gallery.four {
    grid-template-columns: repeat(12, 1fr);
}

.media-item.four {
    grid-column: span 12;
}

.gallery.four img {
    grid-column: span 3;
    max-width: 100%;
}

.four-tall {
    grid-row: span 2;
    grid-column: span 4;
}

.four-wide {
    grid-column: span 12;
}

.four-short {
    grid-column: span 4;
    grid-row: span 3;
}

/* ----- 6 max image positions -------- */

.gallery.six {
    grid-template-columns: repeat(30, 1fr);
}

.media-item.six {
    grid-column: span 30;
}

.gallery.six img {
    grid-column: span 6;
    max-width: 100%;
}

.six-tall {
    grid-row: span 6;
    grid-column: span 4;
}

.six-wide {
    grid-column: span 30;
}

.six-short {
    grid-column: span 6;
    grid-row: span 6;
}

.six-narrow {
    grid-column: span 5;
}

/* ----- 3 max image positions -------- */

.gallery.three {
    grid-template-columns: repeat(6, 1fr);
}

.media-item.three {
    grid-column: span 6;
}

.gallery.three img {
    grid-column: span 2;
    max-width: 100%;
}

.three-big {
    grid-column: span 3;
    grid-row: span 4;
    max-width: 100%;
}

/* ----- 5 max image positions -------- */

.gallery.five {
    grid-template-columns: repeat(20, 1fr);
}

.media-item.five {
    grid-column: span 4;
}

.gallery.five img {
    grid-column: span 4;
    max-width: 100%;
}

.five-big {
    grid-column: span 10;
    grid-row: span 3;
}

@media (min-width: 1098px) {

    .media-item {
        display: block;
        columns: 2;
        width: auto;
    }

    .media-item.four {
        display: block;
        columns: 2;
        width: auto;
    }

    .media-item.five {
        display: block;
        columns: 2;
        width: auto;
    }

    .media-item.six {
        display: block;
        columns: 2;
        width: auto;
    }

    .media-item-content h1 {
        font-size: 200%;
    }

    .media-item-content p {
        font-size: 200%;
    }
}