/*MAIN SECTION*/
.display-crafts{
    margin-top: -15rem;
}
.design-content{
    margin-top: 0;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;  /* centers content *inside* each grid cell */
    justify-content: center; /* centers the whole grid itself */
}
.design-item{
    cursor: pointer;
    margin: 1.5rem 0;
    width: 300px;
    height: 450px;
}

.design-item a{
    text-decoration: none;
    color: var(--text-color);
}

.design-img{
    position: relative;
    overflow: hidden;
    width: 300px;
    height: 300px;
}
.design-img::after{
    position: absolute;
    content: "";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}
.design-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /*takes up full container instead of acting like block with text*/
    transition: all 0.5s ease;
}
.design-item:hover img{
    transform: scale(1.2);
}
.design-img span{
    position: absolute;
    z-index: 1;
    bottom: 10px;
    right: 10px;
    color: var(--bg-color);
    font-weight: 700;
    font-size: 1.4rem;
}

.design-title{
    padding: 1rem;
    font-size: 1.4rem;
    text-align: center;
    width: 70%;
    margin: 0 auto;
}

.design-title a{
    color: var(--text-color);
    text-decoration: none;
    text-transform: capitalize;
}

@media (max-width: 976px) {
    .design-content{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 654px) {
    .design-content{
        grid-template-columns: repeat(1, 1fr);
    }
}
