@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

body {
    margin: 0px;
    font-family: 'Roboto', sans-serif;
}

header {
    padding: 10px 10%;
    text-align: center;
    background-color: black;
    color: white;
}

table {
    border-collapse: collapse;
    margin: auto;
}

tr {
    border-bottom: 1px solid rgb(179, 179, 179);
}

th,
td {
    padding: 10px 20px;
    vertical-align: top;
}


header a {
    color: white;
    text-decoration: none;
    padding: 7px;
}

a {
    color: black;
}

img {
    width: 100%;
}

section {
    display: grid;
    padding: 50px 10%;


    gap: 10px;
    grid-auto-rows: 1fr;
}

.alternate article {
    grid-row: auto / span 2;

    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-rows: min-content max-content;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

article:nth-child(1),
article:nth-child(3) {

    grid-row: 2 / span 2;

}

article:nth-child(2) {

    grid-row: 1 / span 2;

}

.alternate article figure,
.alternate article img {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
}

.alternate article figure {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 18px 15px 5px 15px;
    margin: 0px;
    z-index: 2;
    transition: 1s;
    /*grid-row: 2;*/
    align-self: flex-end;
    transform: translateY(calc(100% - 55px));


}

img{
    align-self: end;
}

.alternate article figure h2 {
    font-size: 20px;
    margin: 0px 0px 15px 0px;
    color: #000000;
}

.alternate article:hover figure {
    transform: translateY(0);
    color: #000000;
}

@media (min-width:1000px) {
    
    section{
        grid-template-columns: repeat(5, 1fr);
    }

    article:nth-child(5) {

        grid-row: 2 / span 2;
    
    }

    article:nth-child(4) {

        grid-row: 1 / span 2;
    
    }
    
}

@media (min-width:1400px) {

    section{
        grid-template-columns: repeat(6, 1fr);
    }

}