/* ------------------------------------------------------ */
/* DESKTOP ONLY — Magnify inside frame                    */
/* ------------------------------------------------------ */
@media (min-width: 992px) {
    .single .entry-thumbnail-area {
        position: relative;
        overflow: hidden;
        cursor: url(https://abudhabimagazine.ae/wp-content/uploads/2026/01/icons8-zoom-in-24.png) 16 16, zoom-in;
    }

    .single .entry-thumbnail-area.zoom-active {
        cursor: url(https://abudhabimagazine.ae/wp-content/uploads/2026/01/icons8-zoom-out-24.png) 16 16, zoom-out;
    }

    .single .entry-thumbnail-area img {
        transition: transform 0.35s ease-out;
        transform-origin: center center;
    }
}

/* ------------------------------------------------------ */
/* SINGLE POST — DESKTOP 16:9 FRAME                       */
/* ------------------------------------------------------ */
.single .entry-thumbnail-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e5e5e5;
    overflow: hidden;
}

/* ------------------------------------------------------ */
/* SINGLE POST — TABLET 16:9 FRAME                        */
/* ------------------------------------------------------ */
@media (min-width: 768px) and (max-width: 991px) {
    .single .entry-thumbnail-area {
        aspect-ratio: 16 / 9 !important;
        background-color: #e5e5e5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .single .entry-thumbnail-area img {
        width: 90% !important;
        height: 90% !important;
        object-fit: contain !important;
        object-position: center !important;
    }
}

/* ------------------------------------------------------ */
/* SINGLE POST — Contained Image                          */
/* ------------------------------------------------------ */
.single .entry-thumbnail-area img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
}

/* ------------------------------------------------------ */
/* SINGLE POST — GLARE EFFECT                             */
/* ------------------------------------------------------ */
@keyframes adm-sweep-glare-once {
    0%   { transform: translateX(-180%); opacity: 0; }
    10%  { opacity: 0.7; }
    18%  { transform: translateX(160%); opacity: 1; }
    100% { transform: translateX(160%); opacity: 0; }
}

.single .entry-thumbnail-area::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        72deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.22) 40%,
        rgba(255, 255, 255, 0) 85%
    );
    transform: translateX(-180%);
    animation: adm-sweep-glare-once 3.8s cubic-bezier(0.4, 0, 0.2, 1) 1;
    animation-delay: 3s;
    z-index: 2;
    pointer-events: none;
}

/* ------------------------------------------------------ */
/* SINGLE POST — MOBILE 4:3 FRAME                         */
/* ------------------------------------------------------ */
@media (max-width: 767px) {
    .single .entry-thumbnail-area {
        aspect-ratio: 4 / 3 !important;
        background-color: #e5e5e5;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .single .entry-thumbnail-area img {
        width: 100% !important;
        height: auto !important;
        max-height: 100% !important;
        object-fit: contain !important;
        object-position: center !important;
    }

    .single .entry-thumbnail-area::after {
        animation-delay: 3s;
    }
}

/* ------------------------------------------------------ */
/* ARCHIVE THUMBNAILS — FULL COVER + DARKENING            */
/* ------------------------------------------------------ */
.archive .adm-thumb-img,
.blog .adm-thumb-img,
.category .adm-thumb-img,
.rt-post-grid .adm-thumb-img,
.rt-post-list .adm-thumb-img,
.rt-related-post .adm-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.archive .adm-thumb-box::after,
.blog .adm-thumb-box::after,
.category .adm-thumb-box::after,
.rt-post-grid .adm-thumb-box::after,
.rt-post-list .adm-thumb-box::after,
.rt-related-post .adm-thumb-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.55)
    );
    z-index: 2;
}

/* ------------------------------------------------------ */
/* ARCHIVE THUMBNAIL FIX — Set Height                     */
/* ------------------------------------------------------ */
.archive .adm-thumb-box,
.blog .adm-thumb-box,
.category .adm-thumb-box,
.rt-post-grid .adm-thumb-box,
.rt-post-list .adm-thumb-box,
.rt-related-post .adm-thumb-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

/* ------------------------------------------------------ */
/* FALLBACK IMAGE                                         */
/* ------------------------------------------------------ */
.archive .adm-thumb-box:not(:has(img)),
.blog .adm-thumb-box:not(:has(img)),
.category .adm-thumb-box:not(:has(img)),
.rt-post-grid .adm-thumb-box:not(:has(img)),
.rt-post-list .adm-thumb-box:not(:has(img)),
.rt-related-post .adm-thumb-box:not(:has(img)) {
    background-image: url('https://abudhabimagazine.ae/wp-content/uploads/2026/01/fallback-abu-dhabi.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ------------------------------------------------------ */
/* REMOVE COMMENTS                                        */
/* ------------------------------------------------------ */
#comments,
.comments-area,
.comment-respond,
#reply-title {
    display: none !important;
}

/* ------------------------------------------------------ */
/* ADM Mobile Breaking News Ticker                        */
/* ------------------------------------------------------ */
@media (max-width: 767px) {

    .adm-mobile-ticker {
        background: #e64946;
        color: #fff;
        height: 30px;                 /* lock height */
        padding: 0 10px;              /* no vertical padding */
        display: flex;
        align-items: center;          /* centers icons */
        gap: 10px;
        font-size: 13px;
        font-weight: 500;
        overflow: hidden;
        border-bottom: 1px solid rgba(255,255,255,0.2);
        line-height: 30px;            /* centers text */
    }

    .ticker-wrap {
        overflow: hidden;
        position: relative;
        flex: 1;
        height: 100%;                 /* match container */
    }

    .ticker-move {
        display: inline-block;
        white-space: nowrap;
        animation: ticker-scroll 60s linear infinite;
        line-height: 30px;            /* match container height */
    }

    .ticker-item {
        margin-right: 40px;
        display: inline-block;
    }

    @keyframes ticker-scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
}

/* ------------------------------------------------------ */
/* MOBILE HEADER + LOGO EXPANSION                        */
/* ------------------------------------------------------ */
@media (max-width: 767px) {

    .mean-bar .mobile-logo {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Remove description text */
    #main .rt-cat-description p {
        display: none !important;
    }

    /* Grey box (title container) styling */
    #main .rt-cat-description {
        background-color: #e4e4e4 !important;
        border-radius: 1px !important;
        margin-top: 0 !important;
        margin-bottom: 20px !important;
        padding: 10px 14px !important;
        text-align: left !important;
    }

    #main .rt-cat-description .cat-title {
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
    }

	
    /* Remove top gap above hero slider */
    .rt-swiper-slider,
    .rt-swiper-slider .section-title,
    .rt-swiper-slider .swiper-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Remove Elementor section padding above hero */
    .elementor-section:first-of-type,
    .elementor-section.elementor-top-section:first-of-type {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Remove theme header spacer */
    .site-header + .site-content,
    .site-header + #content {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    /* Controlled hero slider gap */
    .rt-swiper-slider {
        margin-top: 6px !important;
        padding-top: 6px !important;
    }
}

/* ------------------------------------------------------ */
/* TABLET + MOBILE ARCHIVE FIXES                         */
/* ------------------------------------------------------ */
@media (max-width: 1024px) {

    .archive .entry-meta {
        display: none !important;
    }

    .archive .entry-title a {
        display: -webkit-box !important;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        max-height: 4em;
        line-height: 1.3em;
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {

    /* Reduce the space between the sticky header and post title */
    .single-post .entry-header,
    .single-post .post-header,
    .single-post .post-title {
        margin-top: 6px !important;
        padding-top: 0 !important;
    }

    /* Some Neeon layouts add padding on the content wrapper */
    .single-post .site-content,
    .single-post .content-area {
        padding-top: 5px !important;
        margin-top: 0 !important;
    }
}

@font-face {
  font-family: 'fa-brands-400';
  src: url('/wp-content/themes/neeon/assets/webfonts/fa-brands-400.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'fa-solid-900';
  src: url('/wp-content/themes/neeon/assets/webfonts/fa-solid-900.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'fa-regular-400';
  src: url('/wp-content/themes/neeon/assets/webfonts/fa-regular-400.woff2') format('woff2');
  font-display: swap;
}