/**
 * @file
 * WMD Solutions Base Theme - Node Banner styles.
 *
 * Full-width image banner with title and breadcrumb overlay.
 * Used on interior pages when a node has field_mt_banner_image populated.
 * Rendered via page.html.twig when banner_images variable is set.
 */

/* ======================================================
   BANNER WRAPPER
   ====================================================== */

.wmd-node-banner-wrapper {
  position: relative;
  width: 100%;
  margin-top: 0;
}

/* ======================================================
   SWIPER BANNER
   ====================================================== */

.wmd-node-banner {
  width: 100%;
  height: var(--node-banner-height, 40vh);
  min-height: 220px;
  max-height: 480px;
  overflow: hidden;
}

.wmd-node-banner .swiper-slide {
  overflow: hidden;
}

.wmd-node-banner .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* ======================================================
   OVERLAY
   ====================================================== */

.wmd-node-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ======================================================
   TITLE + BREADCRUMB
   ====================================================== */

.wmd-node-banner__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.5rem 2rem;
}

.wmd-node-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #ffffff;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  line-height: 1.1;
}

.wmd-node-banner__breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.wmd-node-banner__breadcrumb a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
}

.wmd-node-banner__breadcrumb a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.wmd-node-banner__breadcrumb .breadcrumb-separator {
  margin: 0 0.4rem;
  opacity: 0.6;
}
