.rtl .news-detail-h4 {
    font-family: 'TheSans', serif !important;
    direction: rtl;
    unicode-bidi: isolate;
}
.news-cart > a:first-child > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.news-cart > a:first-child > img.awp-news-logo-fallback,
.news-detail-text > img.awp-news-logo-fallback {
    object-fit: contain;
    padding: clamp(24px, 5vw, 48px);
    background: #fff5ec;
    box-sizing: border-box;
}
.news-detail-text > img.awp-news-logo-fallback {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 560px;
}
.single-post .news-detail-text .gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 28px 0;
    padding: 0;
}
.single-post .news-detail-text .gallery::before,
.single-post .news-detail-text .gallery::after,
.single-post .news-detail-text .gallery > br { display: none; }
.single-post .news-detail-text .gallery .gallery-item {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0;
    float: none;
}
.single-post .news-detail-text .gallery .gallery-icon,
.single-post .news-detail-text .gallery .gallery-icon > a { display: block; margin: 0; }
.single-post .news-detail-text .gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin: 0 !important;
    padding: 0;
    border: 0 !important;
    border-radius: 4px;
}
.single-post .news-detail-text .gallery a { cursor: zoom-in; }
.single-post .news-detail-text .gallery figcaption { margin: 8px 0 0; font-size: 14px; }
html.awp-news-viewer-open { overflow: hidden; }
.awp-news-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border: 0;
    padding: 64px 70px;
    background: rgba(0, 0, 0, .94);
    color: white;
    font-family: 'TheSans', sans-serif;
}
.awp-news-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.awp-news-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.awp-news-lightbox figure { margin: 0; max-width: 100%; text-align: center; }
.awp-news-lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; margin: 0 auto; }
.awp-news-lightbox figcaption { margin: 12px 0 0; color: #fff; direction: ltr; }
.awp-news-lightbox button {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    padding: 0;
    border: 1px solid #888;
    border-radius: 50%;
    color: #fff;
    background: #262626;
    font: 30px/1 sans-serif !important;
    cursor: pointer;
}
.awp-news-lightbox button:focus-visible { outline: 3px solid #ff8a4b !important; outline-offset: 3px; }
.awp-news-lightbox .awp-viewer-close { top: 16px; right: 20px; }
.awp-news-lightbox .awp-viewer-prev { left: 14px; top: calc(50% - 22px); }
.awp-news-lightbox .awp-viewer-next { right: 14px; top: calc(50% - 22px); }
.awp-news-lightbox button[hidden] { display: none; }
@media (max-width: 600px) {
    .single-post .news-detail-text .gallery { gap: 12px; }
    .awp-news-lightbox { padding: 64px 12px 88px; }
    .awp-news-lightbox .awp-viewer-prev { top: auto; bottom: 20px; left: calc(50% - 58px); }
    .awp-news-lightbox .awp-viewer-next { top: auto; bottom: 20px; right: calc(50% - 58px); }
}
