/* BLOCK: Post Sidebar */

.block-post-sidebar .section:not(:first-child) {
    margin-top: 3.125rem;
}

.block-post-sidebar .section.section--related {
    margin-top: 8.125rem;
}

.block-post-sidebar .section__title {
    margin-bottom: 1.5625rem;
}

.block-post-sidebar h6.section__title {
    display: block;
}

.block-post-sidebar h6.section__title::after {
    display: none;
}

.block-post-sidebar .addtoany_list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.125rem 0.9375rem;
    max-width: 10rem;
}

.block-post-sidebar .addtoany_list a {
    color: currentColor;
    text-decoration: none;
    font-size: var(--font-16-14);
}

.block-post-sidebar .addtoany_list > .a2a_button_copy_link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.block-post-sidebar .addtoany_list > ::after {
    content: attr(title);
}

.block-post-sidebar .addtoany_list > :not(.a2a_button_copy_link) img {
    display: none;
}

.block-post-sidebar .addtoany_list span {
    display: inline-block;
}

.block-post-sidebar .section--related .section__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.block-post-sidebar .related-post {
    display: flex;
    flex-direction: column;
}

.block-post-sidebar .related-post .image {
    width: 100%;
    height: auto;
    aspect-ratio: 180 / 190;
    object-fit: cover;
    margin-bottom: 1.875rem;
}

.block-post-sidebar .related-post .tag {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    border: 1px solid currentColor;
    font-size: var(--font-9);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.375rem;
    align-self: flex-start;
}

.block-post-sidebar .related-post .title {
    color: currentColor;
    font-family: var(--ff-borna);
    font-size: var(--font-22-15);
    text-decoration: none;
}

@media screen and (width < 782px) {
    .block-post-sidebar .addtoany_list {
        max-width: 12rem;
        gap: 1.125rem 0.9375rem;
    }

    .block-post-sidebar .addtoany_list > .a2a_button_copy_link {
        flex-basis: 100%;
    }

    .block-post-sidebar .section.section--related {
        margin-top: 3.125rem;
    }

    .block-post-sidebar .section--related .section__content {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .block-post-sidebar .related-post {
        max-width: 15rem;
    }
}