/* Public-gallery unit overrides. Original7/Jarazzi gallery geometry remains unchanged. */

body.live.editorial-public .edition-footer {
  background: #fff !important;
  color: #111417 !important;
  border-top: 1px solid #e2e8f0;
}
body.live.editorial-public .edition-footer::before { display: none !important; }
body.live.editorial-public .edition-footer-wordmark,
body.live.editorial-public .edition-footer-wordmark .edition-footer-razzi,
body.live.editorial-public[data-public-theme="light"] footer.edition-footer .edition-footer-wordmark .edition-footer-razzi {
  color: #111417 !important;
}
body.live.editorial-public .edition-footer-wordmark .edition-footer-ja {
  color: #c91f2d !important;
}
body.live.editorial-public .edition-footer-description,
body.live.editorial-public .edition-footer-bottom,
body.live.editorial-public .edition-footer-bottom a,
body.live.editorial-public .edition-footer-navigation a {
  color: #111417 !important;
}
body.live.editorial-public .edition-footer-bottom {
  border-top-color: #e2e8f0 !important;
}

/* Navigation weight is explicit so theme and hover rules cannot shift it. */
body.live.editorial-public .top .site-main-nav.wrap.cats > a {
  font-weight: 400 !important;
}
body.live.editorial-public[data-public-theme="light"] .top .site-main-nav.wrap.cats > a[data-nav-label]:hover,
body.live.editorial-public[data-public-theme="light"] .top .site-main-nav.wrap.cats > a[data-nav-label]:focus-visible,
body.live.editorial-public[data-public-theme="light"] .top .site-main-nav.wrap.cats > a[data-nav-label][aria-current="page"] {
  font-weight: 700 !important;
}
body.live.editorial-public .edition-footer-navigation > a {
  font-weight: 400 !important;
}
body.live.editorial-public[data-public-theme="light"] .edition-footer-navigation > a[data-nav-label]:hover,
body.live.editorial-public[data-public-theme="light"] .edition-footer-navigation > a[data-nav-label]:focus-visible {
  font-weight: 700 !important;
}

/* Public page-view labels remain absent while server-side tracking stays active. */
body.live.editorial-public .article-pageviews,
body.live.editorial-public [data-pageview-label] {
  display: none !important;
  visibility: hidden !important;
}
body.live.editorial-public .article-editor > span small { display: none !important; }

/* Mobile menu link inset requested by the public navigation parity. */
@media (max-width: 700px) {
  body.live.editorial-public.mobile-nav-ready .top .site-main-nav.wrap.cats > a {
    padding: 11px 16px !important;
    text-align: left !important;
  }
}

/* Requested thumbnail frame override only; stage/control/lightbox geometry stays in Original7 CSS. */
body.live.editorial-public.editorial-page .photo-carousel .gallery-thumb {
  flex: 0 0 108px !important;
  width: 108px !important;
  height: 74px !important;
  min-width: 108px !important;
  min-height: 74px !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
body.live.editorial-public.editorial-page .photo-carousel .gallery-thumb img,
body.live.editorial-public.editorial-page .photo-carousel .gallery-thumb-placeholder {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: cover !important;
}
body.live.editorial-public.editorial-page .photo-carousel .gallery-thumb-placeholder {
  background: linear-gradient(135deg, #e2e8f0, #f8fafc) !important;
}

@media (max-width: 520px) {
  body.live.editorial-public.editorial-page .photo-carousel .gallery-thumb {
    flex-basis: 86px !important;
    width: 86px !important;
    height: 58px !important;
    min-width: 86px !important;
    min-height: 58px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.live.editorial-public.editorial-page .photo-carousel-thumbs { scroll-behavior: auto !important; }
}

/* Reserve bold label width to prevent neighboring links moving on hover. */
body.live.editorial-public[data-public-theme="light"] .top .site-main-nav.wrap.cats > a[data-nav-label],
body.live.editorial-public[data-public-theme="light"] .edition-footer-navigation > a[data-nav-label] {
  display: inline-grid !important;
  grid-template-columns: max-content;
  grid-template-rows: auto;
  align-items: center;
}
body.live.editorial-public[data-public-theme="light"] .top .site-main-nav.wrap.cats > a[data-nav-label] > span,
body.live.editorial-public[data-public-theme="light"] .edition-footer-navigation > a[data-nav-label] > span {
  grid-area: 1 / 1;
  font-weight: inherit !important;
}
body.live.editorial-public[data-public-theme="light"] .top .site-main-nav.wrap.cats > a[data-nav-label]::after,
body.live.editorial-public[data-public-theme="light"] .edition-footer-navigation > a[data-nav-label]::after {
  content: attr(data-nav-label);
  grid-area: 1 / 1;
  visibility: hidden;
  font-weight: 700;
  pointer-events: none;
  height: auto;
  width: auto;
  position: static;
  border: 0;
  background: none;
}
