main {
    margin-top: 6em;
}

.row_container {
    display: flex;
    
    margin-inline: 1.5rem;
    margin-bottom: 3rem;
}

.gallery_cover_container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    place-content: center;
    
    height: auto;
    width: 100%;
    box-sizing: border-box;
    
    gap: 1em;
}

.vertical_label {
    --primary_text_color: #ddd;
    --shadow_direction: left;

    display: block;

    writing-mode: vertical-rl;
    transform: rotate(180deg);
    
    h3 {
        margin: 0;
        text-align: right;

        font-family: Lexend, sans-serif;
        font-size: 3rem;

        line-height: 3rem;
        
        /* mask: linear-gradient(to left, black, black 50%, transparent); */
    }
}

.gallery_cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    container-type: size;
    
    position: relative;
    
    aspect-ratio: 1/1;
    overflow: hidden;
    
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    transition: transform 0.1s ease-in-out;
    
    img {
        height: 100%;
        width: 100%;
        
        object-fit: cover;
    }
    
    a {
        position: absolute;
        inset: 0;
    }
    
    h1, h3 {
        margin: 0;
        color: white;
        font-family: Lexend, sans-serif;
    }
}

.gallery_cover:hover {
    transform: translate(-0.25em, -0.25em);
}

.gallery_cover.missing_gallery {
    border: 3px dashed rgba(0,0,0,0.5);
    background-color: rgba(0,0,0,0.3);
}

.recent_gallery_cover_date_label {
    position: absolute;
    top: 0;
    right: 0;
    
    padding: 2cqh;
    
    pointer-events: none;
    
    background-color: rgba(0,0,0,0.5);
    
    font-size: 5cqh;
    font-weight: 200;
}

.recent_gallery_cover_text_container {
    position: absolute;
    bottom: 0;
    padding: 1em;
    
    width: 100%;
    box-sizing: border-box;
    
    pointer-events: none;
    
    background-image: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    
    h1, h3 {
        text-shadow: 0.1em 0.1em 12px rgba(0,0,0,0.5);
    }
    
    h1 {
        font-size: 12cqh;
        font-weight: 500;
        line-height: 13cqh;
    }
    
    h3 {
        font-size: 6cqh;
        font-weight: 300;
    }
}

.center_text_container {
    position: absolute;
    inset: 0;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    pointer-events: none;
    
    background-color: rgba(0,0,0,0.5);
    
    h1 {
        text-align: center;
        
        font-size: 16cqh;
        font-weight: 800;
    }
}

@media (max-width: 600px) {
    #header {
        display: none;
    }

    .row_container {
        margin-top: 2rem;
    }

    .row_container.titled {
        padding-left: 0.5rem;
    }

    .vertical_label h3 {
        font-size: 4rem;
    }

    .gallery_cover_container {
        grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    }
}