/* index.html + gallery.html hero — fixed glass card overlay (images fade independently in swiper) */

html[data-index-page] .banner__section,
html[data-page="gallery"] .banner__section {
  position: relative !important;
}

html[data-index-page] .banner__section .banner__slider,
html[data-page="gallery"] .banner__section .banner__slider {
  position: relative;
  z-index: 1;
}

html[data-index-page] .banner__section .banner__content-shell--fixed,
html[data-page="gallery"] .banner__section .banner__content-shell--fixed {
  position: absolute !important;
  top: 62% !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  margin: 0 auto !important;
  pointer-events: none !important;
}

html[data-index-page] .banner__section .banner__content,
html[data-page="gallery"] .banner__section .banner__content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  pointer-events: auto !important;
}

html[data-index-page] .banner__section .banner-glass-card,
html[data-page="gallery"] .banner__section .banner-glass-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 720px;
  min-height: 400px;
  padding: 0;
  border-radius: 18px;
  background:
    linear-gradient(215deg, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0) 48%),
    linear-gradient(145deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.3) 55%, rgba(0, 0, 0, 0.24) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

html[data-index-page] .banner__section .banner-glass-card__panel,
html[data-page="gallery"] .banner__section .banner-glass-card__panel {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 32px 26px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

html[data-index-page] .banner__section .banner-glass-card__panel.is-active,
html[data-page="gallery"] .banner__section .banner-glass-card__panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

html[data-index-page] .banner__section .banner-glass-card {
  height: 400px;
}

html[data-index-page] .banner__section .banner-glass-card__title,
html[data-page="gallery"] .banner__section .banner-glass-card__title {
  flex-shrink: 0;
  min-height: 2.5em;
  margin: 0 0 16px !important;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem) !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

html[data-index-page] .banner__section .banner-glass-card__title {
  color: #facc15 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

html[data-page="gallery"] .banner__section .banner-glass-card__title {
  color: #ffffff !important;
}

html[data-index-page] .banner__section .banner-glass-card__panel.is-active .banner-glass-card__text,
html[data-index-page] .banner__section .banner-glass-card__panel.is-active .banner-glass-card__actions,
html[data-page="gallery"] .banner__section .banner-glass-card__panel.is-active .banner-glass-card__text,
html[data-page="gallery"] .banner__section .banner-glass-card__panel.is-active .banner-glass-card__actions {
  opacity: 1 !important;
  visibility: visible !important;
}

html[data-index-page] .banner__section .banner-glass-card__text,
html[data-page="gallery"] .banner__section .banner-glass-card__text {
  flex: 1 0 auto;
  min-height: auto;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: clamp(1rem, 1.35vw, 1.125rem) !important;
  line-height: 1.55 !important;
}

html[data-index-page] .banner__section .banner-glass-card__actions,
html[data-index-page] .banner__section .banner-glass-card__actions.banner__button,
html[data-page="gallery"] .banner__section .banner-glass-card__actions,
html[data-page="gallery"] .banner__section .banner-glass-card__actions.banner__button {
  flex-shrink: 0;
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 16px !important;
  gap: 16px !important;
}

html[data-index-page] .banner__section .banner-glass-card__actions .cmn--btn,
html[data-index-page] .banner__section .banner-glass-card__actions .cmn--btn2,
html[data-page="gallery"] .banner__section .banner-glass-card__actions .cmn--btn,
html[data-page="gallery"] .banner__section .banner-glass-card__actions .cmn--btn2 {
  min-height: 48px;
}

html[data-index-page] .banner__section .banner-glass-card__actions .cmn--btn,
html[data-index-page] .banner__section .banner-glass-card__actions .cmn--btn2,
html[data-page="gallery"] .banner__section .banner-glass-card__actions .cmn--btn,
html[data-page="gallery"] .banner__section .banner-glass-card__actions .cmn--btn2 {
  flex: 0 0 auto;
}

/* Reference breakpoint: 980px (Discount_Court_Documents_Rebrand) */
@media (max-width: 980px) {
  html[data-index-page] .banner__section,
  html[data-index-page] .banner__section .banner__slider,
  html[data-index-page] .banner__section .swiper-wrapper,
  html[data-index-page] .banner__section .swiper-slide,
  html[data-page="gallery"] .banner__section,
  html[data-page="gallery"] .banner__section .banner__slider,
  html[data-page="gallery"] .banner__section .swiper-wrapper,
  html[data-page="gallery"] .banner__section .swiper-slide {
    min-height: clamp(320px, 56vh, 520px) !important;
  }

  html[data-index-page] .banner__section .banner__content-shell--fixed,
  html[data-page="gallery"] .banner__section .banner__content-shell--fixed {
    top: auto !important;
    bottom: 6% !important;
    transform: none !important;
    padding-top: 0 !important;
  }

  html[data-index-page] .banner__section .banner-glass-card,
  html[data-page="gallery"] .banner__section .banner-glass-card {
    height: auto;
    min-height: 360px;
  }

  html[data-index-page] .banner__section .banner-glass-card__panel,
  html[data-page="gallery"] .banner__section .banner-glass-card__panel {
    padding: 22px 20px 20px;
  }

  html[data-index-page] .banner__section .banner-glass-card__title,
  html[data-page="gallery"] .banner__section .banner-glass-card__title {
    min-height: 2.35em;
    font-size: clamp(1.45rem, 5vw, 2rem) !important;
  }
}

@media (max-width: 640px) {
  html[data-index-page] .banner__section,
  html[data-index-page] .banner__section .banner__slider,
  html[data-index-page] .banner__section .swiper-wrapper,
  html[data-index-page] .banner__section .swiper-slide,
  html[data-page="gallery"] .banner__section,
  html[data-page="gallery"] .banner__section .banner__slider,
  html[data-page="gallery"] .banner__section .swiper-wrapper,
  html[data-page="gallery"] .banner__section .swiper-slide {
    min-height: clamp(320px, 56vh, 520px) !important;
  }

  html[data-index-page] .banner__section .banner-glass-card,
  html[data-page="gallery"] .banner__section .banner-glass-card {
    min-height: 300px;
  }
}

@media (max-width: 400px) {
  html[data-index-page] .banner__section,
  html[data-index-page] .banner__section .banner__slider,
  html[data-index-page] .banner__section .swiper-wrapper,
  html[data-index-page] .banner__section .swiper-slide,
  html[data-page="gallery"] .banner__section,
  html[data-page="gallery"] .banner__section .banner__slider,
  html[data-page="gallery"] .banner__section .swiper-wrapper,
  html[data-page="gallery"] .banner__section .swiper-slide {
    min-height: clamp(280px, 50vh, 420px) !important;
  }

  html[data-index-page] .banner__section .banner-glass-card__panel,
  html[data-page="gallery"] .banner__section .banner-glass-card__panel {
    padding: 18px 16px 16px;
  }
}

@media (max-width: 575px) {
  html[data-index-page] .banner__section .banner-glass-card__actions,
  html[data-page="gallery"] .banner__section .banner-glass-card__actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  html[data-index-page] .banner__section .banner-glass-card__actions .cmn--btn,
  html[data-index-page] .banner__section .banner-glass-card__actions .cmn--btn2,
  html[data-page="gallery"] .banner__section .banner-glass-card__actions .cmn--btn,
  html[data-page="gallery"] .banner__section .banner-glass-card__actions .cmn--btn2 {
    width: 100%;
    justify-content: center !important;
  }
}