/* ----------------------------------------------------------
   ADM NEWS — DESKTOP POST IMAGE FRAME
---------------------------------------------------------- */

@media (min-width: 992px) {

  .single .entry-thumbnail-area {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e5e5e5;
    overflow: hidden;
    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;
  }

  .single .entry-thumbnail-area img {
    position: absolute;
    inset: 0;
    margin: auto;

    width: 90% !important;
    height: 90% !important;

    object-fit: contain !important;
    object-position: center !important;

    transform-origin: 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 (SAFE)
---------------------------------------------------------- */

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

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


/* ----------------------------------------------------------
   ZOOM STATE
---------------------------------------------------------- */

.single .entry-thumbnail-area.zoom-active img {
  cursor: zoom-out;
}


/* ----------------------------------------------------------
   UNIVERSAL THUMB BOX
---------------------------------------------------------- */

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


/* ----------------------------------------------------------
   ARCHIVE TITLES
---------------------------------------------------------- */

.archive .entry-title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

@media (max-width: 767px) {
  .archive .entry-title a {
    -webkit-line-clamp: 2;
  }
}

@media (min-width: 768px) {
  .archive .entry-title a {
    -webkit-line-clamp: 3;
  }
}


/* ----------------------------------------------------------
   ARCHIVE FADE OVERLAY (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), #fff);
  pointer-events: none;
}

@media (max-width: 1024px) {
  .archive .entry-text::after {
    display: none !important;
  }
}


/* ----------------------------------------------------------
   ARCHIVE CLEANUP
---------------------------------------------------------- */

.rt-cat-description,
.archive .post-read-more {
  display: none !important;
}

.archive .blog-box {
  align-items: flex-start;
  margin-bottom: 0 !important;
}

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

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

.archive .blog-box .entry-text,
.archive .blog-box .entry-meta {
  margin: 0 !important;
}


/* ----------------------------------------------------------
   RELATED POSTS
---------------------------------------------------------- */

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

.rt-related-post .blog-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

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

.rt-related-post .entry-excerpt {
  position: relative;
  font-size: 14px;
  line-height: 1.5;
  margin-top: 6px;

  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Fade */
.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), #fff);
}

@media (max-width: 1024px) {
  .rt-related-post .entry-excerpt::after {
    display: none !important;
  }
}


/* ----------------------------------------------------------
   META ALIGN
---------------------------------------------------------- */

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

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

/* ----------------------------------------------------------
   DESKTOP SHARE BUTTON (FIXED WIDTH — PREMIUM LOOK)
---------------------------------------------------------- */

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

  width: 85px;            /* 👈 fixed width */
  height: 26px;

  gap: 6px;

  background: #e64946;
  color: #fff;

  border: 0;
  border-radius: 3px;

  font: 600 12px 'Roboto Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.6px;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}

/* Icon */
.single-share-btn img {
  width: 20px;
  height: 20px;
  display: block;
}

/* States */
.single-share-btn:hover,
.single-share-btn:focus,
.single-share-btn:active {
  background: #d73d3a;
  color: #fff;
  outline: none;
}

/* ----------------------------------------------------------
   FLOATING SHARE (CLEAN — NO PANEL)
---------------------------------------------------------- */

.adm-floating-share {
  position: fixed;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);

  background: none;
  border: none;
  padding: 0;

  display: none;
  z-index: 9999;
  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}

.adm-floating-share img {
  display: block;
  width: auto;
  height: auto;
  max-width: none;

  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Mobile only */
@media (max-width: 768px) {
  body.single .adm-floating-share {
    display: block;
  }

  .single .meta-share-item {
    display: none !important;
  }
}


/* ----------------------------------------------------------
   IMPORTANT: DO NOT TOUCH BACK-TO-TOP
---------------------------------------------------------- */

/* Ensure it's visible above floating button */
.scroll-wrap {
  z-index: 10000;
}