/* ----------------------------------------------------------
   ADM NEWS — DESKTOP POST (FINAL COMPLETE SHEET)
   16:9 grey frame + 90% image + spot‑zoom + cursors
   ---------------------------------------------------------- */

@media (min-width: 992px) {

  /* 1. 16:9 GREY FRAME (MASTER CONTAINER) */
  .single .entry-thumbnail-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;        /* FIXED GEOMETRY */
    background-color: #e5e5e5;   /* GREY FRAME */
    overflow: hidden;            /* IMAGE STAYS INSIDE */
    border-radius: 2px;
    margin: 30px auto;
    cursor: url(https://abudhabimagazine.ae/wp-content/uploads/2026/01/icons8-zoom-in-24.png) 16 16, zoom-in;
  }

  /* 2. IMAGE INSIDE FRAME (90% × 90%) */
  .single .entry-thumbnail-area img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 90% !important;
    height: 90% !important;
    object-fit: contain !important;
		/* DESKTOP = COVER */
    object-position: center !important;
    transform-origin: center center;
    transition: transform 0.35s ease-out;
    z-index: 2;

    cursor: url(https://abudhabimagazine.ae/wp-content/uploads/2026/01/icons8-zoom-in-24.png) 16 16, zoom-in;
  }
}



/* ----------------------------------------------------------
   POINTER‑EVENTS SAFETY (DESKTOP + MOBILE)
   ---------------------------------------------------------- */

.single .entry-thumbnail-area * {
  pointer-events: none;
}

.single .entry-thumbnail-area img {
  pointer-events: auto;
}


/* CLICK FIX — Ensure zoom triggers on the image (desktop) */
@media (min-width: 992px) {

  .single .entry-thumbnail-area * {
    pointer-events: none;
  }

  .single .entry-thumbnail-area img {
    pointer-events: auto;
  }
}

/* ----------------------------------------------------------
   ADM ZOOM + HI‑RES + STATIC GLARE (INTEGRATED)
   ---------------------------------------------------------- */

/* Zoom state (spot‑zoom, no panning) */
.single .entry-thumbnail-area.adm-zoom-active img {
  cursor: zoom-out;
}

/* Hi‑res overlay */
.adm-zoom-hires {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transform: translate(-50%, -50%);
  max-width: none;
  max-height: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  z-index: 4;
}

.adm-zoom-hires.adm-zoom-hires-visible {
  opacity: 1;
}

/* --------------------------------------------- */
/* UNIVERSAL 16:9 FRAME (ADM THUMB BOX)         */
/* --------------------------------------------- */

.adm-thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e5e5e5; /* Neutral grey frame */
}


/* =========================================
   ARCHIVE TITLES — RESPONSIVE WORD/LINES LIMIT
========================================= */

/* Common styles for all archive titles */
.archive .entry-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word; /* ensures long words don't overflow */
}

/* ------------------------------------------------------ */
/* MOBILE ARCHIVE — LIMIT TITLES TO ~10 WORDS (2 lines) */
/* ------------------------------------------------------ */
@media (max-width: 767px) {
  .archive .entry-title a {
    -webkit-line-clamp: 2; /* ~10 words depending on font size */
  }
}

/* ------------------------------------------------------ */
/* DESKTOP ARCHIVE — LIMIT TITLES TO ~15 WORDS (3 lines) */
/* ------------------------------------------------------ */
@media (min-width: 768px) {
  .archive .entry-title a {
    -webkit-line-clamp: 3; /* ~15 words depending on font size */
  }
}

/* =========================================
   FADE OVERLAY (DESKTOP ONLY)
========================================= */

/* Default (desktop) */
.archive .entry-text {
    position: relative;
}

.archive .entry-text::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
    pointer-events: none;
}

/* Disable overlay on tablets & mobile */
@media (max-width: 1024px) {
    .archive .entry-text::after {
        display: none !important;
    }
}

/* =========================================
/* Hide category description block 
 * ========================================= */

.rt-cat-description {
    display: none !important;
}

/* =========================================
   REMOVE Read More + COLLAPSE SPACE (ARCHIVE ONLY)
========================================= */

/* Hide it */
.archive .post-read-more {
    display: none !important;
}

/* =========================================
   FIX ENTRY CONTENT HEIGHT (ARCHIVE ONLY)
========================================= */

.archive .blog-box {
    align-items: flex-start; /* stop stretching */
}

.archive .blog-box .entry-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;

    height: auto !important;
    min-height: unset !important;
    padding-bottom: 0 !important;
}

/* Remove read more completely (no space left) */
.archive .blog-box .post-read-more {
    display: none !important;
}

/* Tighten spacing */
.archive .blog-box .entry-text {
    margin-bottom: 0px !important;
}

.archive .blog-box .entry-meta {
    margin-top: 0px !important;
}

/* Reduce overall card spacing */
.archive .blog-box {
    margin-bottom: 0px !important;
}

/* Hide category description block */
.rt-cat-description {
    display: none !important;
}

/* Add Share button to meta */

.entry-meta {
    display: flex !important;
    align-items: center;
}

.meta-share-item {
    margin-left: auto !important;
}

.share-wrap {
    position: relative;
}

/* BUTTON */
.single-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 0px;

    height: 26px;
    padding: 0 8px;

    width: 85px; /* ✅ added width */
    min-width: unset;

    background: #fff;
    color: #e64946;

    border: 1px solid #e64946;
    border-radius: 5px;

    font: 600 12px 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
text-transform: uppercase;
letter-spacing: 0.5px;

    cursor: pointer;

    transition: none !important;
}
/* ICON */
.share-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
}

/* Default: show RED icon */
.single-share-btn .icon-red {
    display: inline-block;
}
.single-share-btn .icon-white {
    display: none;
}

/* Hover: invert button + icon */
.single-share-btn:hover {
    background: #e64946;
    color: #fff;
}

.single-share-btn:hover .icon-red {
    display: none;
}
.single-share-btn:hover .icon-white {
    display: inline-block;
}

/* PANEL */
.share-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;

    margin-top: 8px;
    padding: 12px;

    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.1);

    list-style: none;
    min-width: 180px;
}

.share-panel.active {
    display: block;
}

/* =========================================
   RELATED POSTS - FINAL LAYOUT SYSTEM
========================================= */

/* --- IMAGE --- */
.rt-related-post .blog-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}


/* --- EXCERPT (FLEXIBLE, NO HEIGHT LOCK) --- */
.rt-related-post .entry-excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 6px;

    /* Optional: limit lines cleanly */
    display: -webkit-box;
    -webkit-line-clamp: 10;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* --- CARD STRUCTURE --- */
.rt-related-post .blog-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rt-related-post .entry-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}


/* --- SLIDER BEHAVIOR --- */
.rt-related-post .swiper-wrapper {
    align-items: stretch;
}

.rt-related-post .swiper-slide {
    height: auto;
    display: flex;
}


/* --- FILL REMAINING PAGE HEIGHT --- */
.rt-related-post {
    display: flex;
    flex-direction: column;
}

.rt-related-post {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.rt-related-post .rt-swiper-slider {
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* --- OPTIONAL: BETTER CONTENT DISTRIBUTION --- */
.rt-related-post .blog-box {
    justify-content: space-between;
}

/* =========================================
   RELATED POSTS - FADE OVERLAY (DESKTOP)
========================================= */

/* Container must be relative */
.rt-related-post .entry-excerpt {
    position: relative;
}

/* Fade effect */
.rt-related-post .entry-excerpt::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
    pointer-events: none;
}

/* Disable on tablets & mobile */
@media (max-width: 1024px) {
    .rt-related-post .entry-excerpt::after {
        display: none !important;
    }
}

/* =========================
   SHARE WRAP
========================= */
.share-wrap {
    position: relative;
    display: inline-flex;
}


/* icon */
.share-icon {
    width: 14px;
    height: 14px;
    display: block;
}

/* =========================
   PANEL BOX
========================= */
.share-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;

    padding: 8px 10px; /* tighter */
    background: #fff;

    border: 1px solid #e64946;
    border-radius: 8px;

    box-shadow: 0 8px 18px rgba(0,0,0,0.08);

    list-style: none;
    z-index: 9999;
    min-width: 160px;
}

/* show */
.share-panel.active {
    display: block;
}

/* =========================
   TRIANGLE POINTER
========================= */
.share-panel::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 14px; /* aligns with button */

    width: 10px;
    height: 10px;

    background: #fff;
    border-left: 1px solid #e64946;
    border-top: 1px solid #e64946;

    transform: rotate(45deg);
}

/* =========================
   CONTENT
========================= */
.share-panel .share-title {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #666;
    text-transform: uppercase;
}

/* tighter spacing */
.share-panel li {
    margin: 3px 0;
}

.share-panel a,
.share-panel button {
    background: none;
    border: none;
    cursor: pointer;

    font-size: 13px;
    color: #000;

    display: block;
    width: 100%;
    text-align: left;

    padding: 2px 0;
}

/* hover */
.share-panel a:hover,
.share-panel button:hover {
    color: #e64946;
}