/* ----------------------------------------------------------
   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: 55px;
    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;
}
