.postbox2 {
    width: 100%;
    background: #fff;
    border-radius: 10px;
}

.postbox2 article img {
    width: 100%;
    border-radius: 10px;
    height: auto;
    object-fit: cover;
}

.postbox2 .cat-more-link {
    padding: 5px 10px;
    border-radius: 3px;
    color: #fff;
    text-align: center;
    float: left;
}

.postbox2post1 a.fimage {
    float: right;
    width: 42%;
    margin-left: 3%;
}

.postbox2post1 .fimage:hover {
    opacity: 0.9;
}

.postbox2post1 h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #444;
}

.postbox2post1 p {
    font-size: 13px;
    font-weight: 200;
}

.postbox2post2 h4 {
    color: #555;
    font-size: 14px;
    text-align: center;
    padding: 10px 5% 0;
}

.postbox2-2 .postbox2post2 h4 {
    padding: 20px 0 0 0;
    font-size: 16px;
}

.postbox2-2 .postbox2post2 article {
    margin: 10px 0;
}

.postbox2 .cat-name {
    line-height: 40px;
    display: inline-block;
    border-right: 4px solid;
    padding-right: 1em;
}

@media only screen and (max-width: 1001px) {
    .postbox2 {
        margin-right: auto;
        margin-left: auto;
        float: none;
        padding: 0 20px 20px;
    }
}

@media only screen and (max-width: 600px) {
    .postbox2post1 a.fimage {
        width: 100%;
    }

    .postbox2post2 article {
        width: 98%;
        float: none;
        margin-top: 15px;
    }

    .postbox2 .cat-more-link {
        margin: 20px 0 0 0;
    }
}
/* Optional post categories (Blog Box content settings). */
.postbox2 .postbox2-cats {
    display: block;
    font-size: 12px;
    color: #888;
    text-align: start;
    margin-bottom: 5px;
}

.postbox2post2 .postbox2-cats {
    padding: 10px 5% 0;
}

.postbox2post2.ah-thumb-right .postbox2-cats,
.postbox2post2.ah-thumb-left .postbox2-cats,
.postbox2post2.ah-other-list .postbox2-cats {
    padding: 0;
}

/* Optional thumbnail positions (Blog Box content settings). */
.postbox2post1.ah-thumb-top a.fimage {
    float: none;
    display: block;
    width: 100%;
    margin: 0 0 15px 0;
}

.postbox2post1.ah-thumb-right a.fimage {
    float: right;
    margin-left: 3%;
    margin-right: 0;
}

.postbox2post1.ah-thumb-left a.fimage {
    float: left;
    margin-right: 3%;
    margin-left: 0;
}

.postbox2post2.ah-thumb-bottom article {
    display: flex;
    flex-direction: column-reverse;
}

.postbox2post2.ah-thumb-right article,
.postbox2post2.ah-thumb-left article {
    display: flex;
    align-items: center;
    gap: 10px;
}

.postbox2post2.ah-thumb-right article {
    flex-direction: row;
}

.postbox2post2.ah-thumb-left article {
    flex-direction: row-reverse;
}

.postbox2post2.ah-thumb-right article a.fimage,
.postbox2post2.ah-thumb-left article a.fimage {
    flex: 0 0 40%;
}

.postbox2post2.ah-thumb-right article > a:not(.fimage),
.postbox2post2.ah-thumb-left article > a:not(.fimage) {
    flex: 1 1 auto;
    min-width: 0;
}

.postbox2post2.ah-thumb-right h4,
.postbox2post2.ah-thumb-left h4 {
    padding: 0;
    text-align: start;
}

/* Optional list layout for the other posts. */
.postbox2post2.ah-other-list article {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.postbox2post2.ah-other-list > div:last-child article {
    border-bottom: 0;
}

.postbox2post2.ah-other-list h4 {
    padding: 0;
    text-align: start;
}

/* Optional separator between posts (Blog Box content settings). */
.postbox2.ah-has-separator {
    --postbox2-sep: var(--postbox2-sep-width, 1px) var(--postbox2-sep-style, solid) var(--postbox2-sep-color, rgba(0, 0, 0, 0.08));
}

.postbox2.ah-has-separator .postbox2post1 article {
    display: flow-root;
    padding-bottom: var(--postbox2-sep-gap, 15px);
    border-bottom: var(--postbox2-sep);
}

.postbox2.ah-has-separator .postbox2post2.ah-other-list article {
    padding: var(--postbox2-sep-gap, 12px) 0;
    border-bottom: var(--postbox2-sep);
}

.postbox2.ah-has-separator .postbox2post2.ah-other-list > div:last-child article {
    border-bottom: 0;
}

.postbox2.ah-has-separator .postbox2post2:not(.ah-other-list) > div + div {
    border-inline-start: var(--postbox2-sep);
}

@media only screen and (max-width: 767px) {
    .postbox2.ah-has-separator .postbox2post2:not(.ah-other-list) > div + div {
        border-inline-start: 0;
        border-top: var(--postbox2-sep);
        margin-top: var(--postbox2-sep-gap, 12px);
        padding-top: var(--postbox2-sep-gap, 12px);
    }
}
