/*
    Simple left-shift
    Because we have a sidebar, centered items in page look slightly off
*/
@media (min-width: 768px) { 
    .left-shift {
        margin-left: -3rem;
    }
}

@media (max-width: 767px) {
    .home-spacer {
        margin-bottom: 0.5rem;
    }
}


/*
    For blog posts on mobile, image should be above and small instead of left
*/
@media (max-width: 768px) {
    .blog-post-image {
        max-height: 150px;
        border-top-right-radius: calc(1rem - 1px);
        border-bottom-left-radius: 0px !important;
        margin-bottom: 15px;
    }

    #blogPosts > .row {
        margin-left: 0;
        margin-right: 0;
    }
}

/*
    Blog posts styling
*/
/* #blogPosts .card-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 100%);
} */

#blogPosts .card-title {
    flex-grow: 1;
    position: relative;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow-y: hidden;
    text-overflow: clip;
    max-height: 4rem;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
}

.blog-post-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: calc(1rem - 1px);
    border-bottom-left-radius: calc(1rem - 1px);
}

#blogPosts .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#blogPosts .card:hover {
    transition: 0.5s;
    background-color: rgba(218, 220, 248, 0.1);
}