/* Blog page styles (Blog.aspx) */

/* Masonry grid layout */
.grid {
    width: 100%;
    position: relative;
}

.grid-sizer,
.grid-item {
    width: 100%;
}

.gutter-sizer {
    width: 0;
}

@media (min-width: 768px) {
    .grid-sizer,
    .grid-item {
        width: 50%;
    }

    .gutter-sizer {
        width: 30px;
    }
}

@media (min-width: 1200px) {
    .grid-sizer,
    .grid-item {
        width: 31%;
    }

    .gutter-sizer {
        width: 30px;
    }
}

.grid-item {
    margin: 0 0 30px 0;
    float: none !important;
    opacity: 0;
    transition: opacity .3s ease;
}

.grid-item.is-visible {
    opacity: 1;
}

/* Variable image heights using background images */
.post-img {
    display: block;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
}

.post-img.img-short {
    height: 160px;
}

.post-img.img-medium {
    height: 240px;
}

.post-img.img-tall {
    height: 340px;
}

@media (min-width: 940px) {
    .post-img.img-short {
        height: 200px;
    }

    .post-img.img-medium {
        height: 280px;
    }

    .post-img.img-tall {
        height: 380px;
    }
}

/* Ensure variable height cards */
.grid-item .blog-post,
.grid-item .bp-content {
    height: auto !important;
    text-align: center;
}

.blog-columns .blog-post .bp-content .post-meta .post-date span,
.blog-classic .blog-post .bp-content .post-meta .post-date span,
.blog-columns .blog-post .bp-content .post-meta .post-comments span,
.blog-classic .blog-post .bp-content .post-meta .post-comments span {
    border-left: none;
}

.blog-classic .blog-post .bp-content .post-title {
    padding: 10px 0 10px 0;
}

.blog-classic .blog-post .bp-content .post-title h3 {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    text-transform: none;
}

.post-img-wrap {
    position: relative;
}

.post-pinned {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.post-pinned i {
    font-size: 16px;
}