:root{
    --gap: 60px;
}

.work-wrap{
    /* max-width:1100px; */
    margin:60px;
    padding:0 0px;
}

.work-projects-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:var(--gap);
}

/* Tile */
.work-project-tile{
    background:var(--background);
    height:fit-content;
    border-radius:12px;
    overflow: hidden;
    display:flex;
    flex-direction:column;
    box-shadow: 0 8px 20px var(--shadow);
    transition:transform .18s ease, box-shadow .18s ease;
    cursor:default;
}

.work-project-tile:hover{
    transform:translateY(-6px);
    box-shadow: 0 8px 20px var(--shadow);
}

/* top half image area */
.work-tile-image{
    height:50%; /* top half */
    /* min-height:120px; */
    position:relative;
    flex:0 0 50%;
}

.work-tile-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

/* bottom half content */
.work-tile-content{
    /* padding:16px 16px 18px; */
    padding: 20px 20px;
    height:50%;
    box-sizing:border-box;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.work-tile-title{
    font-size:16px;
    margin:0 0 8px;
    font-weight:600;
}

.work-tile-desc{
    margin:0;
    font-size:13px;
    color:var(--text);
    line-height:1.35;
    flex:1 1 auto;
}

.work-tile-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-top:12px;
}

.work-btn{
    font-size:13px;
    padding:8px 12px;
    border-radius:8px;
    border:1px solid var(--primary);
    background:transparent;
    color:var(--primary);
    cursor:pointer;
}

  /* Responsive */
@media (max-width:1000px){
    .work-projects-grid{grid-template-columns:repeat(2,1fr)}
}

@media (max-width:620px){
    .work-projects-grid{grid-template-columns:1fr}
}
