/* =========================================================
   MAS Sync / Native News Cards
   v2.1.4
========================================================= */

.tas-fb-feed,
.tas-news-feed {
    width: 100%;
    column-count: var(--tas-cols, 3);
    column-gap: var(--tas-gap, 18px);
}

.tas-fb-card,
.tas-news-card {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    margin: 0 0 var(--tas-gap, 18px);
    padding: 0;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    overflow: hidden;
    background: var(--tas-card-bg, #fff);
    border-radius: var(--tas-radius, 8px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .07);
}

.tas-fb-media,
.tas-news-media {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: #f2f4f7;
    text-decoration: none !important;
}

.tas-fb-media img,
.tas-news-media img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    transition: transform .25s ease;
}

.tas-fb-card:hover .tas-fb-media img,
.tas-news-card:hover .tas-news-media img {
    transform: scale(1.015);
}

.tas-fb-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    margin: -27px 0 0 -27px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    box-sizing: border-box;
    pointer-events: none;
}

.tas-fb-content,
.tas-news-content {
    padding: 18px 20px 20px;
    color: var(--tas-text, #2a2d32);
}

.tas-fb-date,
.tas-news-date {
    margin: 0 0 8px;
    color: var(--tas-muted, #7a7a7a);
    font-size: 12px;
    line-height: 1.45;
}

.tas-news-title {
    margin: 0 0 10px !important;
    padding: 0 !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 600 !important;
}

.tas-news-title a,
.tas-news-title a:hover {
    color: var(--tas-text, #2a2d32);
    text-decoration: none;
}

.tas-fb-message,
.tas-news-excerpt {
    margin: 0;
    color: var(--tas-text, #2a2d32);
    font-size: 14px;
    line-height: 1.7;
}

.tas-fb-link,
.tas-news-readmore {
    display: inline-block;
    margin-top: 14px;
    color: var(--tas-accent, #1877f2) !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
}

.tas-fb-link:hover,
.tas-news-readmore:hover {
    text-decoration: underline !important;
}

.tas-news-archive-wrap {
    width: 100%;
}

.tas-news-pagination {
    clear: both;
    width: 100%;
    margin-top: 20px;
}

.tas-news-empty,
.tas-fb-error {
    padding: 15px 18px;
    background: #fff;
    border: 1px solid #e8e8e8;
}

@media only screen and (max-width: 1024px) {
    .tas-fb-feed,
    .tas-news-feed {
        column-count: var(--tas-tablet, 2);
    }
}

@media only screen and (max-width: 767px) {
    .tas-fb-feed,
    .tas-news-feed {
        column-count: var(--tas-mobile, 1);
    }

    .tas-fb-content,
    .tas-news-content {
        padding: 16px 17px 18px;
    }

    .tas-news-title {
        font-size: 18px !important;
    }

    .tas-fb-play {
        width: 48px;
        height: 48px;
        margin: -24px 0 0 -24px;
        font-size: 19px;
    }
}

/* =========================================================
   Single imported Facebook video
========================================================= */

.tas-fb-native-video {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #000;
}

.tas-fb-native-video.tas-fb-ratio-landscape {
    aspect-ratio: 16 / 9;
}

.tas-fb-native-video.tas-fb-ratio-portrait {
    width: min(100%, 520px);
    aspect-ratio: 9 / 16;
    margin-left: auto;
    margin-right: auto;
}

.tas-fb-native-video iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    border: 0 !important;
}

.tas-fb-featured-video {
    margin-top: 0;
    margin-bottom: 28px;
}

body.tas-fb-imported-video .cmsmasters_open_post > .tas-fb-featured-video:first-child {
    clear: both;
}

@media only screen and (max-width: 767px) {
    .tas-fb-native-video.tas-fb-ratio-portrait {
        width: min(100%, 430px);
    }

    .tas-fb-featured-video {
        margin-bottom: 20px;
    }
}
