.weblogPost {
    display: flex;
    flex-direction: column;
    gap: var(--gridGutter);
}

.weblogPost .weblogPost__section.--contentSection .weblogPost__text,
.weblogPost .weblogPost__section.--contentSection .weblogPost__sidebar {
    max-width: none;
    height: fit-content;
    margin-inline: 0;
    margin-block: 0 var(--marginMedium);
}

.weblogPost__sidebar {
    container-name: weblogPostSidebar;
    container-type: inline-size;
}

.weblogPost .--titleSection:has(.--imageSection) {
    position: relative;
    margin-block-end: var(--marginSmall);
}

.weblogPost:has(.--imageSection) .weblogPostTitleSection__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-end;
    position: absolute;
    top: 0;
    bottom: 1rem;
    padding-inline: 1rem;
    z-index: 1;
}

.weblogPost__title,
.weblogPost__subtitle {
    margin: 0;
}

.weblogPost__section.--titleSection:has(.--imageSection) {
    color: var(--baseLight100);
}

.weblogPost__title {
    margin-block-end: var(--marginExtraSmall);
    font-size: var(--h2Size);
}

.weblogPost__subtitle,
.weblogPost .postListPost__intro {
    font-size: var(--introSize);
}

.weblogPost .postListPost__intro {
    margin-block-end: var(--marginMedium);
    font-weight: 600;
}

.weblogPost__image,
.--imageSection::after {
    border-radius: var(--borderRadiusSmall);
}

.weblogPost__image {
    min-height: 200px;
    object-fit: cover;
}

.--imageSection::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #000000;
    background: linear-gradient(0deg,rgba(0, 0, 0, .6) 0%, rgba(255, 255, 255, 0) 100%);
}

.weblogPost__section.--attachmentSection {
    width: 100%;
}

.weblogPost__sidebarInner {
    padding: var(--marginMedium);
    background-color: var(--primaryColor100);
    border-radius: var(--borderRadiusSmall);
}

.weblogPost__authors {
    display: flex;
    flex-direction: column;
    gap: var(--marginSmallMedium);
    margin-block-end: var(--marginMedium);
}

.weblogPost__authorName {
    font-weight: var(--headingsWeight);
}

.weblogPost__authorProfile {
    display: flex;
    align-items: center;
    margin-bottom: var(--marginExtraSmall);
}

.weblogPost__authorImage {
    margin-right: var(--marginSmall);
}

/**
 * weblog post meta data
 */

.weblogPost__postMetaData {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: var(--marginSmall);
}

.weblogPost__postMetaData .tagsList__tag {
    font-size: var(--rootSize);
    border-color: var(--baseLight100);
}

@container weblogPostSidebar (min-width: 240px) {
    .weblogPost__postMetaData {
        flex-direction: row;
    }
}

.weblogPost__share {
    margin-top: var(--marginMedium);
}

.weblogPost__backLink {
    margin-block-start: var(--marginMedium);
}

@media (min-width: 600px) {
    .weblogPost:has(.--imageSection) .weblogPostTitleSection__inner {
        bottom: 2rem;
        padding-inline: 2rem;
    }

    .weblogPost .--titleSection:has(.--imageSection) {
        margin-block-end: var(--marginMedium);
    }
}

@media (min-width: 912px) {
    .weblogPost .--contentSection {
        display: grid;
        grid-template-columns: 2fr minmax(260px, 1fr);
        gap: var(--marginMedium);
    }

    .weblogPost__sidebar {
        position: sticky;
        top: 2rem;
    }

    .weblogPost .weblogPost__text {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--marginMedium);
    }

    .weblogPost .weblogPost__textInner {
        min-width: 100%;
    }

    .weblogPost:has(.--imageSection) .weblogPostTitleSection__inner {
        bottom: 4rem;
        padding-inline: 4rem;
    }
}
