﻿.post-details-page {
    --post-green: #5B8C3B;
    --post-green-dark: #416d29;
    --post-green-soft: #edf5e9;
    --post-navy: #071a33;
    --post-text: #25342b;
    --post-muted: #768179;
    --post-border: #e1e8de;
    min-height: calc(100vh - 70px);
    padding: 18px 0 58px;
    background: linear-gradient(180deg, #f2f7ef 0, #f7f9f6 360px, #f7f9f6 100%);
    color: var(--post-text);
    font-family: "Tajawal", sans-serif;
}

    .post-details-page * {
        box-sizing: border-box;
    }

    .post-details-page a {
        text-decoration: none;
    }

.post-details-container {
    max-width: 1180px;
}

.post-details-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: #849087;
    font-size: .76rem;
}

    .post-details-breadcrumb a {
        color: var(--post-green-dark);
        font-weight: 850;
    }

    .post-details-breadcrumb strong {
        color: #526058;
    }

.post-details-error {
    margin-bottom: 12px;
    padding: 13px 15px;
    border: 1px solid #efd2ce;
    border-radius: 12px;
    background: #fff7f5;
    color: #99483d;
    font-size: .86rem;
    font-weight: 800;
}

.post-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 18px;
    align-items: start;
}

.post-details-main {
    min-width: 0;
}

.post-details-sidebar {
    display: grid;
    gap: 13px;
    min-width: 0;
}

.post-details-card {
    overflow: hidden;
    border: 1px solid var(--post-border);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(30, 52, 35, .055);
}

.post-details-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 16px 17px 12px;
}

.post-details-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    border: 2px solid #e0e8dc;
    border-radius: 50%;
    background: var(--post-green-soft);
    color: var(--post-green-dark);
    box-shadow: 0 3px 10px rgba(55, 87, 38, .07);
}

    .post-details-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-details-avatar span {
        place-items: center;
        width: 100%;
        height: 100%;
        font-size: .95rem;
        font-weight: 950;
    }

.post-details-author-copy {
    min-width: 0;
}

.post-details-author-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

    .post-details-author-name-line > a,
    .post-details-author-name-line > strong {
        overflow: hidden;
        color: #1e3124;
        font-size: .98rem;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

        .post-details-author-name-line > a:hover {
            color: var(--post-green-dark);
        }

.post-details-verified {
    display: inline-grid;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--post-green);
    color: #fff;
    font-size: .54rem;
    font-weight: 950;
}

.post-details-author-en {
    display: block;
    width: fit-content;
    margin-top: 1px;
    color: #9aa39d;
    font-size: .64rem;
}

.post-details-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    color: #849088;
    font-size: .63rem;
}

    .post-details-meta i {
        color: #c3cac0;
        font-style: normal;
    }

.post-details-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

    .post-details-badges > span {
        display: inline-flex;
        min-height: 24px;
        align-items: center;
        padding: 4px 8px;
        border-radius: 999px;
        font-size: .55rem;
        font-weight: 900;
        white-space: nowrap;
    }

    .post-details-badges .is-special {
        background: #fff4cf;
        color: #886817;
    }

    .post-details-badges .is-original {
        background: #edf5e9;
        color: #416d29;
    }

    .post-details-badges .is-repost {
        background: #edf4fb;
        color: #456f98;
    }

    .post-details-badges .is-external {
        background: #f3eef9;
        color: #6f558c;
    }

.post-details-text {
    padding: 8px 19px 20px;
    color: #26362b;
    font-size: .96rem;
    font-weight: 500;
    line-height: 2;
    white-space: pre-wrap;
    word-break: break-word;
}

.post-details-original {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) 110px;
    gap: 10px;
    align-items: center;
    margin: 0 17px 17px;
    padding: 11px;
    border: 1px solid #dce7f0;
    border-radius: 12px;
    background: linear-gradient(145deg, #f7fbff, #fff);
    color: inherit;
}

.post-original-symbol {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 11px;
    background: #e9f2fa;
    color: #476d94;
    font-size: 1.1rem;
}

.post-original-copy {
    min-width: 0;
}

    .post-original-copy > span,
    .post-original-copy > strong,
    .post-original-copy > small {
        display: block;
    }

    .post-original-copy > span {
        color: #68819a;
        font-size: .55rem;
        font-weight: 850;
    }

    .post-original-copy > strong {
        margin-top: 1px;
        color: #334f69;
        font-size: .73rem;
        font-weight: 950;
    }

    .post-original-copy > small {
        margin-top: 1px;
        color: #97a5b0;
        font-size: .52rem;
    }

    .post-original-copy p {
        margin: 5px 0 0;
        color: #687987;
        font-size: .65rem;
        line-height: 1.65;
    }

.post-details-original img {
    width: 110px;
    height: 78px;
    object-fit: cover;
    border-radius: 9px;
}

.post-details-original-unavailable {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 17px 17px;
    padding: 10px 11px;
    border: 1px dashed #dce3df;
    border-radius: 11px;
    background: #fafcf9;
    color: #7b877e;
    font-size: .68rem;
}

.post-details-external-source {
    display: grid;
    grid-template-columns: 39px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    margin: 0 17px 17px;
    padding: 11px;
    border: 1px solid #e6dff0;
    border-radius: 12px;
    background: #fbf9ff;
    color: #665080;
}

.post-external-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 10px;
    background: #f0ebf7;
    font-size: .95rem;
}

.post-details-external-source small,
.post-details-external-source strong {
    display: block;
}

.post-details-external-source small {
    color: #907ea5;
    font-size: .54rem;
}

.post-details-external-source strong {
    overflow: hidden;
    margin-top: 2px;
    font-size: .63rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-details-external-source > b {
    padding: 5px 8px;
    border-radius: 8px;
    background: #fff;
    font-size: .58rem;
}

.post-details-media-section,
.post-details-links-section,
.post-details-cta-section {
    border-top: 1px solid #edf1eb;
}

.post-details-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 17px 10px;
}

    .post-details-section-title span {
        display: block;
        color: var(--post-green);
        font-size: .54rem;
        font-weight: 900;
    }

    .post-details-section-title h2 {
        margin: 1px 0 0;
        color: #26372b;
        font-size: .9rem;
        font-weight: 950;
    }

    .post-details-section-title > b {
        display: grid;
        width: 28px;
        height: 28px;
        place-items: center;
        border-radius: 8px;
        background: var(--post-green-soft);
        color: var(--post-green-dark);
        font-size: .65rem;
    }

.post-details-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    padding: 0 3px 3px;
}

    .post-details-gallery.image-count-1 {
        grid-template-columns: 1fr;
    }

    .post-details-gallery.image-count-3 {
        grid-template-columns: 1.45fr 1fr;
    }

.post-details-gallery-item {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: #e8ede6;
    cursor: zoom-in;
}

.post-details-gallery.image-count-1 .post-details-gallery-item {
    min-height: 500px;
}

.post-details-gallery.image-count-3 .post-details-gallery-item:first-child {
    grid-row: span 2;
    min-height: 503px;
}

.post-details-gallery-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.post-details-gallery-item:hover img {
    transform: scale(1.015);
}

.post-details-gallery-item > span {
    position: absolute;
    right: 9px;
    bottom: 9px;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(7, 26, 51, .68);
    color: #fff;
    font-size: .52rem;
    font-weight: 900;
}

.post-details-videos {
    display: grid;
    gap: 9px;
    padding: 0 15px 15px;
}

    .post-details-videos video {
        display: block;
        width: 100%;
        max-height: 650px;
        border-radius: 13px;
        background: #06111c;
    }

.post-details-audio-list {
    display: grid;
    gap: 7px;
    padding: 0 15px 15px;
}

.post-details-audio {
    display: grid;
    grid-template-columns: 42px minmax(100px, 1fr) minmax(180px, 2fr);
    gap: 9px;
    align-items: center;
    padding: 10px;
    border: 1px solid #e0e7dd;
    border-radius: 12px;
    background: #f9fbf8;
}

    .post-details-audio > span {
        display: grid;
        width: 42px;
        height: 42px;
        place-items: center;
        border-radius: 11px;
        background: var(--post-green-soft);
    }

    .post-details-audio strong,
    .post-details-audio small {
        display: block;
    }

    .post-details-audio strong {
        color: #3b4b3d;
        font-size: .66rem;
    }

    .post-details-audio small {
        margin-top: 2px;
        color: #919a92;
        font-size: .53rem;
    }

    .post-details-audio audio {
        width: 100%;
        min-width: 0;
        height: 36px;
    }

.post-details-link-list {
    display: grid;
    gap: 6px;
    padding: 0 15px 15px;
}

    .post-details-link-list > a {
        display: grid;
        grid-template-columns: 34px minmax(90px, .45fr) minmax(0, 1fr) auto;
        gap: 8px;
        align-items: center;
        padding: 9px 10px;
        border: 1px solid #e2e8df;
        border-radius: 10px;
        background: #fbfcfa;
        color: #405043;
    }

        .post-details-link-list > a:hover {
            border-color: #c3d6b8;
            background: #f5f9f2;
        }

        .post-details-link-list > a > span {
            display: grid;
            width: 34px;
            height: 34px;
            place-items: center;
            border-radius: 9px;
            background: var(--post-green-soft);
        }

    .post-details-link-list strong {
        font-size: .65rem;
        font-weight: 900;
    }

    .post-details-link-list small {
        overflow: hidden;
        color: #8a948b;
        font-size: .54rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .post-details-link-list b {
        color: var(--post-green-dark);
    }

.post-details-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    padding: 0 15px 15px;
}

    .post-details-cta-grid a {
        display: flex;
        align-items: center;
        gap: 7px;
        min-height: 43px;
        padding: 8px 10px;
        border: 1px solid #e0e7dd;
        border-radius: 10px;
        background: #fbfcfa;
        color: #405043;
    }

        .post-details-cta-grid a:hover {
            background: var(--post-green-soft);
            border-color: #c5d7bb;
        }

    .post-details-cta-grid span {
        display: grid;
        width: 25px;
        height: 25px;
        place-items: center;
        border-radius: 7px;
        background: #fff;
        color: var(--post-green-dark);
        font-size: .72rem;
    }

    .post-details-cta-grid strong {
        font-size: .6rem;
        font-weight: 900;
    }

.post-details-poll-placeholder {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin: 14px 15px;
    padding: 11px;
    border: 1px dashed #d5decf;
    border-radius: 12px;
    background: #f8fbf6;
}

    .post-details-poll-placeholder > span {
        display: grid;
        width: 45px;
        height: 45px;
        place-items: center;
        border-radius: 11px;
        background: var(--post-green-soft);
        font-size: 1rem;
    }

    .post-details-poll-placeholder strong {
        color: #3c4c3c;
        font-size: .69rem;
    }

    .post-details-poll-placeholder p {
        margin: 3px 0 0;
        color: #7a857b;
        font-size: .58rem;
        line-height: 1.6;
    }

.post-details-engagement {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 1px solid #e8eee5;
    border-bottom: 1px solid #e8eee5;
    background: #fafcfa;
}

    .post-details-engagement > div {
        display: grid;
        justify-items: center;
        padding: 12px 6px;
    }

        .post-details-engagement > div:not(:last-child) {
            border-left: 1px solid #edf1eb;
        }

    .post-details-engagement span {
        color: #728072;
        font-size: .82rem;
    }

    .post-details-engagement strong {
        margin-top: 2px;
        color: #304233;
        font-size: .8rem;
        font-weight: 950;
    }

    .post-details-engagement small {
        margin-top: 1px;
        color: #909991;
        font-size: .5rem;
    }

.post-details-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
}

.post-details-permissions,
.post-details-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

    .post-details-permissions span {
        display: inline-flex;
        align-items: center;
        min-height: 27px;
        padding: 4px 7px;
        border-radius: 8px;
        font-size: .54rem;
        font-weight: 850;
    }

    .post-details-permissions .is-enabled {
        background: var(--post-green-soft);
        color: var(--post-green-dark);
    }

    .post-details-permissions .is-disabled {
        background: #f2f3f2;
        color: #969d97;
    }

    .post-details-share-actions button {
        appearance: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        min-height: 31px;
        padding: 5px 9px;
        border: 1px solid #dfe6dc;
        border-radius: 9px;
        background: #fff;
        color: #4a5c4a;
        font-family: inherit;
        font-size: .58rem;
        font-weight: 900;
        cursor: pointer;
    }

        .post-details-share-actions button:hover {
            border-color: #bfd2b3;
            background: var(--post-green-soft);
            color: var(--post-green-dark);
        }

.post-author-card,
.post-side-card {
    overflow: hidden;
    border: 1px solid var(--post-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 6px 19px rgba(31, 51, 35, .04);
}

.post-author-card-cover {
    position: relative;
    display: flex;
    height: 92px;
    align-items: flex-end;
    padding: 10px 12px;
    overflow: hidden;
    background: radial-gradient(circle at 17% 30%, rgba(255,255,255,.12), transparent 26%), linear-gradient(125deg, #071a33, #205036 62%, #5B8C3B);
    color: rgba(255,255,255,.72);
}

    .post-author-card-cover::after {
        position: absolute;
        width: 130px;
        height: 130px;
        left: -38px;
        top: -62px;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 50%;
        box-shadow: 0 0 0 23px rgba(255,255,255,.025), 0 0 0 46px rgba(255,255,255,.018);
        content: "";
    }

    .post-author-card-cover span {
        font-size: .54rem;
        font-weight: 900;
    }

.post-author-card-body {
    position: relative;
    padding: 40px 13px 13px;
}

.post-author-card-avatar {
    position: absolute;
    top: -37px;
    right: 13px;
    display: grid;
    width: 70px;
    height: 70px;
    overflow: hidden;
    place-items: center;
    border: 4px solid #fff;
    border-radius: 50%;
    background: var(--post-green-soft);
    box-shadow: 0 5px 14px rgba(31, 52, 34, .12);
    color: var(--post-green-dark);
}

    .post-author-card-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .post-author-card-avatar span {
        place-items: center;
        width: 100%;
        height: 100%;
        font-weight: 950;
    }

.post-author-card-name {
    min-width: 0;
}

    .post-author-card-name > div {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .post-author-card-name a,
    .post-author-card-name strong {
        overflow: hidden;
        color: #203326;
        font-size: .87rem;
        font-weight: 950;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .post-author-card-name > div > span {
        display: inline-grid;
        width: 16px;
        height: 16px;
        place-items: center;
        border-radius: 50%;
        background: var(--post-green);
        color: #fff;
        font-size: .48rem;
    }

    .post-author-card-name > small {
        display: block;
        margin-top: 2px;
        color: #879188;
        font-size: .57rem;
    }

.post-author-bio {
    margin: 9px 0 0;
    color: #687469;
    font-size: .63rem;
    line-height: 1.75;
}

.post-author-profile-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    margin-top: 10px;
    padding: 6px 9px;
    border-radius: 9px;
    background: var(--post-green-soft);
    color: var(--post-green-dark);
    font-size: .59rem;
    font-weight: 900;
}

.post-author-social {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
}

    .post-author-social a {
        display: grid;
        width: 30px;
        height: 30px;
        place-items: center;
        border: 1px solid #e1e7df;
        border-radius: 8px;
        background: #fbfcfa;
        color: #4d604e;
        font-size: .69rem;
        font-weight: 900;
    }

        .post-author-social a:hover {
            background: var(--post-green-soft);
            color: var(--post-green-dark);
        }

.post-side-card > header {
    padding: 11px 12px 9px;
    border-bottom: 1px solid #edf1eb;
}

    .post-side-card > header > span {
        display: block;
        color: var(--post-green);
        font-size: .52rem;
        font-weight: 900;
    }

    .post-side-card > header h2 {
        margin: 1px 0 0;
        color: #2d3d31;
        font-size: .76rem;
        font-weight: 950;
    }

.post-author-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

    .post-author-stats > div {
        display: grid;
        justify-items: center;
        padding: 12px 7px;
    }

        .post-author-stats > div:nth-child(odd) {
            border-left: 1px solid #edf1eb;
        }

        .post-author-stats > div:nth-child(-n+2) {
            border-bottom: 1px solid #edf1eb;
        }

    .post-author-stats strong {
        color: var(--post-green-dark);
        font-size: .85rem;
        font-weight: 950;
    }

    .post-author-stats span {
        margin-top: 2px;
        color: #8b958d;
        font-size: .53rem;
    }

.post-related-list {
    display: grid;
}

.post-related-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 75px;
    padding: 8px 10px;
    border-bottom: 1px solid #edf1eb;
    color: inherit;
}

    .post-related-item:last-child {
        border-bottom: 0;
    }

    .post-related-item:hover {
        background: #f8fbf6;
    }

.post-related-image {
    display: grid;
    width: 62px;
    height: 58px;
    overflow: hidden;
    place-items: center;
    border-radius: 9px;
    background: #eef3ec;
    color: var(--post-green-dark);
    font-size: .85rem;
}

    .post-related-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.post-related-copy {
    display: block;
    min-width: 0;
}

    .post-related-copy > small,
    .post-related-copy > strong,
    .post-related-copy > span {
        display: block;
    }

    .post-related-copy > small {
        color: #8d978f;
        font-size: .49rem;
    }

    .post-related-copy > strong {
        display: -webkit-box;
        overflow: hidden;
        margin-top: 2px;
        color: #354439;
        font-size: .61rem;
        font-weight: 900;
        line-height: 1.55;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .post-related-copy > span {
        margin-top: 3px;
        color: #9ba39c;
        font-size: .46rem;
    }

.post-related-empty {
    padding: 21px 12px;
    color: #8b958d;
    font-size: .61rem;
    text-align: center;
}

.post-information-list {
    margin: 0;
    padding: 4px 12px 10px;
}

    .post-information-list > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 9px;
        padding: 8px 0;
        border-bottom: 1px solid #eef2ec;
    }

        .post-information-list > div:last-child {
            border-bottom: 0;
        }

    .post-information-list dt {
        color: #8b958d;
        font-size: .54rem;
    }

    .post-information-list dd {
        margin: 0;
        color: #435146;
        font-size: .57rem;
        font-weight: 850;
        text-align: left;
    }

.post-image-lightbox[hidden] {
    display: none !important;
}

.post-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 22px;
}

.post-lightbox-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(3, 10, 17, .90);
    cursor: zoom-out;
}

.post-lightbox-dialog {
    position: relative;
    z-index: 2;
    display: grid;
    max-width: min(1100px, 94vw);
    max-height: 92vh;
    place-items: center;
}

    .post-lightbox-dialog img {
        display: block;
        max-width: 100%;
        max-height: 86vh;
        border-radius: 12px;
        object-fit: contain;
        box-shadow: 0 20px 60px rgba(0,0,0,.36);
    }

.post-lightbox-close {
    position: absolute;
    z-index: 3;
    top: -12px;
    left: -12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(8, 20, 31, .92);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.post-lightbox-counter {
    margin-top: 9px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.10);
    color: rgba(255,255,255,.82);
    font-size: .62rem;
}

html.post-lightbox-open {
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .post-details-layout {
        grid-template-columns: 1fr;
    }

    .post-details-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-author-card {
        grid-row: span 2;
    }
}

@media (max-width: 767.98px) {
    .post-details-page {
        padding-top: 9px;
    }

    .post-details-container {
        padding-right: 8px;
        padding-left: 8px;
    }

    .post-details-card {
        border-radius: 14px;
    }

    .post-details-head {
        grid-template-columns: 48px minmax(0, 1fr);
        padding: 12px;
    }

    .post-details-avatar {
        width: 48px;
        height: 48px;
    }

    .post-details-badges {
        grid-column: 1 / -1;
        flex-direction: row;
        padding-right: 59px;
    }

    .post-details-text {
        padding: 7px 14px 15px;
        font-size: .86rem;
    }

    .post-details-original {
        grid-template-columns: 39px minmax(0, 1fr);
        margin-right: 12px;
        margin-left: 12px;
    }

        .post-details-original img {
            display: none;
        }

    .post-details-gallery-item {
        min-height: 185px;
    }

    .post-details-gallery.image-count-1 .post-details-gallery-item {
        min-height: 360px;
    }

    .post-details-gallery.image-count-3 .post-details-gallery-item:first-child {
        min-height: 373px;
    }

    .post-details-audio {
        grid-template-columns: 38px minmax(0, 1fr);
    }

        .post-details-audio audio {
            grid-column: 1 / -1;
        }

    .post-details-cta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-details-engagement {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

        .post-details-engagement > div:nth-child(3) {
            border-left: 0;
        }

        .post-details-engagement > div:nth-child(-n+3) {
            border-bottom: 1px solid #edf1eb;
        }

    .post-details-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .post-details-sidebar {
        grid-template-columns: 1fr;
    }

    .post-author-card {
        grid-row: auto;
    }
}

@media (max-width: 479.98px) {
    .post-details-gallery {
        grid-template-columns: 1fr !important;
    }

        .post-details-gallery-item,
        .post-details-gallery.image-count-1 .post-details-gallery-item,
        .post-details-gallery.image-count-3 .post-details-gallery-item:first-child {
            grid-row: auto;
            min-height: 260px;
        }

    .post-details-link-list > a {
        grid-template-columns: 31px minmax(0, 1fr) auto;
    }

    .post-details-link-list small {
        display: none;
    }

    .post-details-cta-grid {
        grid-template-columns: 1fr;
    }
}
