* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    padding: 20px;
}

h1 {
    position: relative;
    padding: 22px 0;
}

main {
    position: relative;
    width: 100%;
    min-width: 300px;
    max-width: 100%;
    height: 500px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: #252527;
    border-radius: 15px;
    gap: 20px;
    padding: 20px;
    overflow: hidden;
}

main section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 220px;
    background-color: grey;
    border-radius: 15px;
}

main section a {
    position: relative;
    width: inherit;
    height: inherit;
    border-radius: inherit;
}

main section a img {
    position: relative;
    width: 415px;
    height: inherit;
    border-radius: inherit;
}

main section:hover {
    opacity: 0.4;
    transition: 0.3s;
}

main section h4 {
    position: absolute;
    color: white;
    font-size: 24px;
}

/* @media (max-width: 1200px) {
    main {
        position: relative;
        width: 100%;
        min-width: 300px;
        max-width: 100%;
        height: 500px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        background-color: #252527;
        border-radius: 15px;
        gap: 20px;
        padding: 20px;
        overflow: hidden;
    }

    main section {
        
    }
} */