/* ==========================================================================
   GF Blogs widget
   ========================================================================== */

/* Header */
.gf-blogs__head {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    gap: 30px;
    justify-content: space-between;
}

.gf-blogs-head__left {
    max-width: 70%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

gf-blogs-head__right {

}

.gf-blogs__title {
    margin: 0;
    font-family: var(--gf-font-alt);
    font-size: var(--gf-h2);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.02em;
    color: var(--gf-navy);
}

.gf-blogs__subtitle {
    max-width: 1472px;
    margin: 0;
    font-family: var(--gf-font-body);
    font-size: var(--gf-body);
    line-height: var(--gf-body-lh);
    letter-spacing: -.02em;
    color: var(--gf-black);
}

.gf-blogs__empty {
    padding: 40px;
    border: 1px dashed #ccc;
    text-align: center;
}

/* Grid */
.gf-blogs__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.gf-blog-card {
    box-shadow: 0 4px 26.6px rgba(0, 0, 0, .13);
    overflow: hidden;
    border-radius: 8px;
}

.gf-blog-card__media {
    position: relative;
    display: block;
    overflow: hidden;

    /*position: relative;*/
    /*display: inline-block;*/
}

.gf-blog-card__img.gf-blog-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.gf-blog-card:hover .gf-blog-card__img.gf-blog-card__img {
    transform: scale(1.05);
}

.gf-blog-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding: 16px 14px;
}

.gf-blog-card__title {
    font-size: 18px;
    line-height: 24px;
    font-weight: 500;
    color: var(--gf-black);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.gf-blog-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.gf-blog-card__title a:hover,
.gf-blog-card__title a:focus {
    color: var(--gf-navy);
}

.gf-blog-card__more {
    margin-top: auto;
    font-family: var(--gf-font-body);
    font-size: var(--gf-body);
    line-height: 1.43;
    letter-spacing: -.02em;
    color: #000;
    text-decoration: underline;
    text-underline-position: from-font;
    transition: color .2s ease;
}

.gf-blog-card__more:hover,
.gf-blog-card__more:focus {
    color: var(--gf-red);
}

/* Button */
.gf-blogs__footer {
    display: flex;
    justify-content: center;
}

/* Responsive */

@media (max-width: 767px) {
    .gf-blogs__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 36px;
    }

    .gf-blog-card__title {
        font-size: 16px;
        line-height: 20px;
        font-weight: 500;
    }

    .gf-blogs-head__left {
        max-width: 100%;
    }

    .gf-blog-card {
        gap: 20px;
    }
}
