main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 30px;
}
main h2 {
    color: var(--light-color);
    font-size: 2em;
    margin: 20px;
}

.bottom_text {
    text-align: center;
    color: var(--light-color);
    font-size: 1.6em;
    margin: 20px;
}

.grid-wrapper {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(2, max-content);
}
.grid-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    border-radius: 20px;
    
    width: min(40vw, 400px);
    height: 200px;
    overflow: hidden;
    transition: height 0.5s ease;
    background-color: var(--secondary-color);
}
.grid-box:hover {
    cursor: pointer;
}
.grid-box-content {
    height: 0px;
    transition: height 0.5s ease;
}

.grid-box img{
    object-fit: cover;
    width: 100%;
    height: 200px;
}
.grid-box h3 {
    font-size: 1.8em;
    color: var(--light-color);
    z-index: 3;
    top: 30px;
    position: absolute;
}
.grid-box h3::after {
    content: "";
    background-color: var(--dark-color);
    opacity: 0.8;
    position: absolute;
    bottom: -10%;
    left: -10%;
    height: 120%;
    width: 120%;
    z-index: -2;
    border-radius: 10px;
}
.grid-box p {
    margin: 10px;
    height: 180px;
    color: var(--dark-color);
}

.item-open {
    min-height: 200px;
    height: 400px;
    transition: height 0.3s ease;
}

.content-open {
    height: 200px;
    transition: height 0.3s ease;
}

@media (max-width: 600px){
    .grid-wrapper {
        grid-template-columns: repeat(1, max-content);
    }
    .grid-box {
        width: min(90vw, 400px);
    }
}