/* Step140 — requested desktop gallery, Dating navigation and article hierarchy fixes. */

/* A predictable desktop gallery. Older showcase files intentionally used
   nth-child ratios; neutralise them here without removing legacy assets. */
@media (min-width: 761px) {
  .mediahub-editor-page,
  .mediahub-detail {
    width: min(100%, 1240px) !important;
    margin-inline: auto !important;
  }
  .mediahub-photo-masonry {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
  .mediahub-photo-masonry .mediahub-photo-wrap,
  .mediahub-photo-masonry:not(.mediahub-gallery-view--compact):not(.mediahub-gallery-view--cinema) .mediahub-photo-card:nth-child(n) .mediahub-photo-wrap {
    aspect-ratio: 4 / 3 !important;
    min-height: 0 !important;
    border-radius: 14px !important;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .10) !important;
  }
  .mediahub-photo-card figcaption {
    padding: 9px 3px 0 !important;
    color: #3f4650 !important;
    font-size: .92rem !important;
  }
}
@media (min-width: 761px) and (max-width: 1050px) {
  .mediahub-photo-masonry { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

/* Desktop Dating arrows must stay above the zoomable figure and accept clicks. */
@media (min-width: 761px) {
  .dating-photo-lightbox--pro .dating-photo-lightbox__nav {
    display: grid !important;
    place-items: center !important;
    z-index: 20 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }
  .dating-photo-lightbox--pro .dating-photo-lightbox__figure {
    z-index: 1 !important;
  }
}

/* Slightly stronger subheadings while body copy stays calm and readable. */
.clean-article-content h2,
.article-content.clean-article-content h2 {
  color: #171a1f !important;
  font-weight: 600 !important;
}
.clean-article-content h3,
.article-content.clean-article-content h3 {
  color: #20242a !important;
  font-weight: 560 !important;
}
.clean-article-content > p,
.article-content.clean-article-content > p {
  color: #343a42 !important;
}
