/* Compact horizontal previews shared by the home video, photo and news sections. */
.home-media-section {
  padding-block: 22px !important;
}

.initiatives-section {
  padding-block: 22px !important;
}

.initiatives-section .section-header {
  margin-bottom: 0;
}

.campaign-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  background: linear-gradient(115deg, #fff 0%, #fff 48%, #fdf7f0 100%);
  box-shadow: 0 14px 38px rgba(69, 10, 10, .07);
}

.campaign-detail-intro { max-width: 490px; }
.campaign-detail-intro,
.campaign-focus-panel { font-family: 'Noto Sans Devanagari', var(--font-main), sans-serif; }
.campaign-detail-intro .section-tag { margin-bottom: 16px; }
.campaign-detail-title {
  max-width: 440px;
  margin: 0;
  color: var(--text-dark);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.campaign-detail-title span { display: block; color: var(--primary-red); }
.campaign-detail-description {
  margin: 16px 0 0;
  color: var(--text-brown);
  font-size: 15px;
  line-height: 1.8;
}
.campaign-detail-intro .campaign-read-more { margin-top: 20px; text-decoration: none; }
.campaign-focus-panel {
  padding: clamp(17px, 2.5vw, 26px);
  border: 1px solid rgba(234, 216, 197, .9);
  border-radius: 17px;
  background: rgba(255, 255, 255, .86);
}
.campaign-focus-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border-subtle);
}
.campaign-focus-kicker { color: var(--text-dark); font-size: 16px; font-weight: 850; }
.campaign-focus-count {
  padding: 5px 10px;
  border-radius: 999px;
  background: #fbf0e6;
  color: var(--dark-red);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.campaign-issues {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.campaign-issues li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 0;
  border-bottom: 1px solid #f1e7de;
  color: var(--text-brown);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.campaign-issues li:last-child { border-bottom: 0; }
.campaign-issue-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #f0ddd0;
  border-radius: 10px;
  background: #fffaf5;
  color: var(--primary-red);
  font-size: 11px;
  font-weight: 900;
}

.campaign-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 800;
}

.campaign-read-more:hover span {
  transform: translateX(3px);
}

.campaign-read-more span {
  transition: transform .2s ease;
}

.home-media-container,
.home-news-container {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.home-media-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.home-media-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #876f62;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-media-header .section-title {
  margin: 0;
  font-size: clamp(25px, 3vw, 34px);
  color: #2a1b1b;
}

.home-media-rail {
  display: grid;
  grid-auto-columns: minmax(300px, 340px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 16px;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox: hide scrolling line */
  -ms-overflow-style: none; /* IE/Edge: hide scrolling line */
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar line in Chrome, Safari, Opera, iOS, Android */
.home-media-rail::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.home-media-rail > * {
  min-width: 0;
  scroll-snap-align: start;
}

.home-video-card,
.home-photo-card,
.home-news-card {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #ead8c5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(69, 10, 10, .06);
  color: inherit;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-video-card {
  cursor: pointer;
}

.home-media-rail .latest-thumb-wrap {
  width: 100%;
  height: 235px;
}

.home-video-card:hover,
.home-photo-card:hover,
.home-news-card:hover {
  transform: translateY(-3px);
  border-color: #d9a99b;
  box-shadow: 0 10px 24px rgba(69, 10, 10, .11);
}

.home-media-thumb,
.home-photo-thumb,
.home-news-thumb {
  position: relative;
  width: 100%;
  height: 235px;
  overflow: hidden;
  background: #281b1b;
  flex-shrink: 0;
}

.home-media-thumb img,
.home-photo-thumb img,
.home-news-thumb img,
.latest-thumb-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center !important;
  transition: transform .35s ease;
}

.home-video-thumbnail-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #17120f;
}

.home-video-thumbnail-preview iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

.home-video-card:hover .home-media-thumb img,
.home-photo-card:hover .home-photo-thumb img,
.home-news-card:hover .home-news-thumb img {
  transform: scale(1.045);
}

.home-photo-card {
  display: block;
  cursor: zoom-in;
}

.home-photo-lightbox {
  position: fixed;
  width: min(94vw, 1100px);
  max-width: none;
  max-height: 92vh;
  padding: 48px 16px 16px;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  background: #171313;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.home-photo-lightbox::backdrop {
  background: rgba(15, 10, 10, 0.82);
  backdrop-filter: blur(3px);
}

.home-photo-lightbox img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 100px);
  object-fit: contain;
  border-radius: 8px;
}

.home-photo-lightbox p {
  margin: 12px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}

.home-photo-lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 600px) {
  .home-photo-lightbox {
    width: calc(100vw - 24px);
    padding: 44px 10px 12px;
    border-radius: 12px;
  }

  .home-photo-lightbox img {
    max-height: calc(92vh - 85px);
  }
}

.home-media-card-copy {
  padding: 15px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.home-media-card-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #2a1b1b;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: 4.35em;
  word-break: break-word;
}

.home-media-card-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 6px 0 0;
  color: #78665f;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-media-card-meta {
  display: block;
  overflow: hidden;
  margin-bottom: 5px;
  color: #a91c1c;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-photo-location,
.home-news-thumb > span {
  position: absolute;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  overflow: hidden;
  padding: 4px 9px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  color: #8c1a1a;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-news-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.home-news-read-more {
  display: inline-block;
  margin-top: 9px;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 800;
}

.home-media-cta {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.home-media-cta .ny-btn {
  min-height: 36px;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  line-height: 1.2;
}

.home-media-cta .ny-btn span {
  font-size: 13px;
}

.home-media-empty {
  padding: 28px 16px;
  border: 1px dashed #ead8c5;
  border-radius: 14px;
  color: #78665f;
  text-align: center;
}

.home-video-modal-backdrop {
  z-index: 9999;
}

@media (max-width: 680px) {
  .home-media-section {
    padding-block: 18px !important;
  }

  /* Keep the news rail's first card aligned with the homepage image rail. */
  .home-news-section {
    padding-inline: 0;
  }

  .initiatives-section {
    padding-block: 18px !important;
  }

  .campaign-detail-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 18px;
    border-radius: 17px;
  }

  .campaign-detail-title { font-size: clamp(30px, 9vw, 40px); }
  .campaign-detail-description { font-size: 14px; line-height: 1.7; }
  .campaign-desktop-break { display: none; }
  .campaign-focus-panel { padding: 16px 14px; }

  .campaign-issues {
    margin-top: 4px;
  }

  .campaign-issues li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    min-height: 50px;
    font-size: 12px;
  }

  .campaign-issue-number { width: 28px; height: 28px; }

  .home-media-container,
  .home-news-container {
    width: calc(100% - 28px);
  }

  .home-media-header {
    margin-bottom: 14px;
  }

  .home-media-rail {
    grid-auto-columns: minmax(82vw, 340px);
    gap: 12px;
    margin-right: -14px;
    padding-right: 14px;
  }

  .home-media-thumb,
  .home-photo-thumb,
  .home-news-thumb,
  .home-media-rail .latest-thumb-wrap {
    height: 215px !important;
  }

  .home-video-card,
  .home-photo-card,
  .home-news-card {
    min-height: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-media-rail { scroll-behavior: auto; }
  .home-video-card,
  .home-photo-card,
  .home-news-card,
  .home-media-thumb img,
  .home-photo-thumb img,
  .home-news-thumb img { transition: none; }
}
