.portfolio .work-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.portfolio .work-list .work {
    height: 20rem;
    width: 26rem;
    border-radius: 1rem;
    margin: 2rem;
    overflow: hidden;
    cursor: pointer;
}

.portfolio .work-list .work img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.portfolio .work-list .work:hover img {
    transform: scale(1.2);
}

.containerpro .work-list .work {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    display: none;
}

.containerpro .work-list .work:nth-child(1),
.containerpro .work-list .work:nth-child(2),
.containerpro .work-list .work:nth-child(3) {
    display: inline-block;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: -1rem;
    margin-bottom: -1rem;
}

.work {
    
    display: flex;
    margin-left: 1rem;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
    margin-bottom: 20px;
    overflow: hidden;
    height: 250px;
    border-radius: 5px;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #2484f9);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
    color: white;
}

.layer p {
    color: white;
}

.layer a {
    margin: 20px;
    color: #2484f9;
    text-decoration: none;
    font-size: 19px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #2484f9;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
    margin-top: -1rem;
}

.btn:hover {
    background: #2484f9;
}

.bo {
    width: 12%;
    margin-left: 40vw;
    padding-left: 3.1rem;
}



@media screen and (max-width: 768px) {

    .portfolio .work-list {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        padding: 1rem 0;
    }
    
    .portfolio .work-list .work {
        height: 20rem;
        width: 26rem;
        border-radius: 1rem;
        margin: 2rem;
        overflow: hidden;
        cursor: pointer;
    }
    
    .portfolio .work-list .work img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    
    .portfolio .work-list .work:hover img {
        transform: scale(1.2);
    }
    
    .containerpro .work-list .work {
        background-color: #fff;
        padding: 20px;
        border-radius: 5px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
        display: none;
    }
    
    .containerpro .work-list .work:nth-child(1),
    .containerpro .work-list .work:nth-child(2),
    .containerpro .work-list .work:nth-child(3) {
        display: inline-block;
    }
    
    .work-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-gap: -1rem;
        margin-bottom: -1rem;
    }
    
    .work {
        
        display: flex;
        margin-left: 1rem;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
    }
    
    .work img {
        width: 100%;
        border-radius: 10px;
        display: block;
        transition: transform 0.5s;
        margin-bottom: 20px;
        overflow: hidden;
        height: 250px;
        border-radius: 5px;
    }
    
    .layer {
        width: 100%;
        height: 0;
        background: linear-gradient(rgba(0, 0, 0, 0.6), #2484f9);
        border-radius: 10px;
        position: absolute;
        left: 0;
        bottom: 0;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 0 40px;
        text-align: center;
        font-size: 14px;
        transition: height 0.5s;
    }
    
    .layer h3 {
        font-weight: 500;
        margin-bottom: 20px;
        color: white;
    }
    
    .layer p {
        color: white;
    }
    
    .layer a {
        margin: 20px;
        color: #2484f9;
        text-decoration: none;
        font-size: 19px;
        line-height: 60px;
        background: #fff;
        width: 60px;
        height: 60px;
        border-radius: 50%;
        text-align: center;
    }
    
    .work:hover img {
        transform: scale(1.1);
    }
    
    .work:hover .layer {
        height: 100%;
    }
    
    .btn {
        display: block;
        margin: 50px auto;
        width: fit-content;
        border: 1px solid #2484f9;
        padding: 14px 50px;
        border-radius: 6px;
        text-decoration: none;
        color: #fff;
        transition: background 0.5s;
        margin-top: -1rem;
    }
    
    .btn:hover {
        background: #2484f9;
    }
    
    .bo {
        width: 50%;
        margin-left: 30vw;
        padding-left: 2.8rem;
    }
    
}