.blog-home {
    background: #f7f9f9;
}

.blog-home__title-link,
.blog-home__all,
.blog-card__title a {
    color: inherit;
    text-decoration: none;
}

.blog-home__title-link:hover,
.blog-home__all:hover,
.blog-card__title a:hover {
    color: var(--bs-primary);
}

.blog-home__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.blog-home__featured {
    grid-column: 1 / -1;
}

.blog-list {
    display: grid;
    gap: 2rem;
}

.blog-card {
    display: grid;
    grid-template-columns: minmax(190px, 340px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
}

.blog-card__image-wrap {
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 18px;
    background: #eef1f1;
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.025);
}

.blog-card__date {
    display: block;
    margin-bottom: .6rem;
    color: #6c757d;
    font-size: .875rem;
}

.blog-card__title {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.16;
}

.blog-card__excerpt {
    margin: 1rem 0 0;
    color: #343a40;
    line-height: 1.55;
}

.blog-card--compact {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1rem;
}

.blog-card--compact .blog-card__image-wrap {
    border-radius: 12px;
}

.blog-card--compact .blog-card__title {
    font-size: 1rem;
}

.blog-post__lead {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.55;
}

.blog-post__hero {
    display: block;
    width: auto;
    max-width: min(100%, 860px);
    max-height: 560px;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
    background: #f7f9f9;
}

.blog-content {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.blog-content video,
.blog-content iframe {
    max-width: 100%;
    height: auto;
}

.blog-content img {
    display: block;
    width: auto;
    max-width: min(100%, 760px);
    max-height: 560px;
    height: auto;
    object-fit: contain;
    border-radius: 14px;
}

.blog-content table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.blog-content th,
.blog-content td {
    padding: .75rem;
    border: 1px solid #d9dede;
    vertical-align: top;
}

.blog-content a {
    text-decoration: underline;
    text-underline-offset: .15em;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.blog-tags a {
    padding: .45rem .8rem;
    border: 1px solid #d9dede;
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
}

.content-two-columns__column > img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.content-gallery {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-gallery--carousel {
    width: 100%;
    overflow: hidden;
    padding-bottom: 2.25rem;
}

.content-gallery--carousel .swiper-wrapper {
    align-items: stretch;
}

.content-gallery__slide {
    height: auto;
}

.content-gallery__media {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef1f1;
}

.content-gallery__image {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
}

.content-gallery--carousel .swiper-pagination {
    bottom: .25rem;
}

@media (max-width: 767.98px) {
    .blog-home__grid,
    .blog-card {
        grid-template-columns: 1fr;
    }

    .blog-card--compact {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .blog-card__image-wrap {
        width: 100%;
        max-width: 320px;
    }

    .blog-content table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .content-two-columns__column > img {
        aspect-ratio: 16 / 10;
    }
}
