main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    height: 100vh;
}

main a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    height: 100%;
    width: 33.333333%;
    overflow: hidden;
}

main a img {
    display: block;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    filter: brightness(0.7);
    transition: 0.2s ease-in-out;
}

main img:hover {
    transform: scale(1.01);
    filter: brightness(0.85);
    transition: 0.1s ease-in-out;
}

main h1, main h2 {
    position: absolute;
    font-size: 2em;
    color: whitesmoke;
    text-shadow: 0px 0px 60px black;
    pointer-events: none;
}


@media screen and (max-width: 768px) {
    main {
        flex-direction: column;
        height: fit-content;
    }
    main a {
        width: 100%;
        height: 80vh;
    }
}