.post-featured-image {
    margin: 0 0 20px;
}

.post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.single-content .ck-content {
    margin-bottom: 8px;
}

.single-content .ck-content img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 16px 0;
    border-radius: 4px;
}

.post-media-tabs {
    clear: both;
    margin: 28px 0 12px;
}

.post-media-tab-list {
    display: flex;
    gap: 0;
    margin: 0 0 16px;
    border-bottom: 2px solid #eee;
}

.post-media-tab {
    appearance: none;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    margin: 0 0 -2px;
    padding: 10px 18px;
    color: #555;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.post-media-tab i {
    margin-right: 8px;
}

.post-media-tab.is-active {
    color: var(--color-1st);
    border-bottom-color: var(--color-1st);
}

.post-media-panel[hidden] {
    display: none !important;
}

.post-video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.post-video-grid.is-multiple {
    grid-template-columns: 1fr 1fr;
}

.post-video-card {
    margin: 0;
    min-width: 0;
}

.post-video-frame {
    position: relative;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #111;
    border-radius: 6px;
}

.post-video-frame video,
.post-video-frame iframe,
.single-content .post-video-frame video,
.single-content .post-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    background: #000;
    display: block;
}

.post-video-card figcaption {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: #666;
    font-weight: 600;
}

.post-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.post-image-card {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #eee;
}

.post-image-card img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.single-content .ck-content video,
.sidebar-video-item-popup video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px auto;
    background: #000;
}

.post-featured-image video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: #000;
}

.post-thumb-media {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.post-thumb-media video.post-thumb-video {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-height: 100%;
    object-fit: cover;
    background: #111;
    pointer-events: none;
}

.thumb-full > .post-thumb-media,
.item-thumbnail > .post-thumb-media {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.sidebar-new-item-thumb,
.new-item-thumb,
.post1-item-thumb,
.slider-item-overlay {
    position: relative;
}

.featured-home-post-item > .post-thumb-media,
.featured-new-item > .post-thumb-media,
.slider-item-overlay > .post-thumb-media,
.new-item-thumb > .post-thumb-media,
.post1-item-thumb > .post-thumb-media,
.sidebar-new-item-thumb > .post-thumb-media,
.sidebar-video-item > .post-thumb-media {
    position: absolute;
    inset: 0;
}

.post-thumb-play {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    pointer-events: none;
}

.sidebar-new-item-thumb .post-thumb-play {
    width: 18px;
    height: 18px;
    top: 4px;
    left: 4px;
    font-size: 8px;
}

.sidebar-video-item .post-thumb-play {
    display: none;
}

.featured-home-post-item,
.featured-new-item,
.post1-item-thumb,
.new-item-thumb,
.sidebar-new-item-thumb,
.slider-item > .slider-item-overlay {
    display: block;
    overflow: hidden;
}

.featured-home-post-item > img,
.featured-new-item > img,
.post1-item-thumb > img,
.new-item-thumb > img,
.sidebar-new-item-thumb > img,
.slider-item > .slider-item-overlay > img,
.thumb-full > img,
.item-thumbnail > img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.slider-item > .slider-item-overlay {
    display: block;
    width: 100%;
    overflow: hidden;
    z-index: 10;
}

.featured-posts-slider .slider-item > .slider-item-overlay > img {
    width: 100%;
    height: 420px;
    max-height: 420px;
    object-fit: cover;
}
