.gallery-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: row;
    gap: var(--border-radius-base);
}

.gallery-card h3 {
    position: absolute;
    top: var(--border-radius-base);
    left: var(--border-radius-base);
    margin: 0;
    z-index: 1;
    text-shadow: -1px -1px 0 var(--base-color-bg), 1px -1px 0 var(--base-color-bg), -1px 1px 0 var(--base-color-bg), 1px 1px 0 var(--base-color-bg);
}

.gallery-card {
    background-color: var(--highlight-color-bg);
    min-width: 10rem;
    width: 20vw;
    overflow: hidden;
    position: relative;
}

.gallery-card p {
    margin: .5em var(--border-radius-large);
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
}

.gallery-list :nth-child(even) .gallery-card {
    box-shadow: 0 0 1em 0 var(--sides-accent1);
    border-radius: var(--border-radius-large) var(--border-radius-small) var(--border-radius-large) var(--border-radius-small);
}
.gallery-list :nth-child(odd) .gallery-card {
    box-shadow: 0 0 1em 0 var(--sides-accent2);
    border-radius: var(--border-radius-small) var(--border-radius-large) var(--border-radius-small) var(--border-radius-large);
}