/* =============================================================
   BPM Hero Banner Widget — plain CSS (edit this file directly, no build needed)
   Loaded by: app/modules/elementor/widgets/bpm-hero-banner/bpm-hero-banner.php
   ============================================================= */

/* ── Banner grid ─────────────────────────────────────────────── */
.elem-bpm-hero-banner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  height: max(520px, calc(100vh - 230px));
}

/* Big image (left) */
.elem-bpm-hero-banner .hb-main {
  position: relative;
  min-width: 0;
  min-height: 0;
}

/* Two stacked photos (right) */
.elem-bpm-hero-banner .hb-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 0;
}

.elem-bpm-hero-banner .hb-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
}

/* ── Image ───────────────────────────────────────────────────── */
.elem-bpm-hero-banner .hb-open {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 24px;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}

.elem-bpm-hero-banner .hb-open:focus-visible {
  outline: 3px solid #efd96a;
  outline-offset: -3px;
}

.elem-bpm-hero-banner .hb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  background-color: #e5e7eb;
}

/* ── "+N" badge ──────────────────────────────────────────────── */
.elem-bpm-hero-banner .hb-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background-color: rgba(40, 44, 52, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.elem-bpm-hero-banner .hb-badge:focus-visible {
  outline: 3px solid #efd96a;
  outline-offset: -3px;
}

.elem-bpm-hero-banner span.hb-badge {
  cursor: default;
}

/* ── Lightbox (added to <body> by the widget script) ─────────── */
.hb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 14, 22, 0.94);
}

.hb-lightbox[hidden] {
  display: none;
}

.hb-lightbox img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 10px;
}

.hb-lightbox .hb-lb-cap {
  margin-top: 12px;
  color: #e5e7eb;
  font-size: 13px;
}

.hb-lightbox .hb-lb-nav {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.hb-lightbox button {
  min-width: 56px;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.hb-lightbox button:hover {
  background: rgba(255, 255, 255, 0.26);
}

.hb-lightbox button:focus-visible {
  outline: 3px solid #efd96a;
}

.hb-lightbox .hb-lb-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 48px;
  height: 48px;
  min-width: 0;
  border-radius: 999px;
  font-size: 28px;
}

/* ── Mobile ──────────────────────────────────────────────────── */
/* Big image on top, the two small photos side by side. */
@media (max-width: 767px) {
  .elem-bpm-hero-banner {
    grid-template-columns: 1fr;
    height: auto !important; /* beats the Elementor "Banner Height" control */
  }

  .elem-bpm-hero-banner .hb-main .hb-open,
  .elem-bpm-hero-banner .hb-main .hb-img {
    height: 300px;
  }

  .elem-bpm-hero-banner .hb-side {
    grid-template-rows: none;
    grid-template-columns: 1fr 1fr;
  }

  .elem-bpm-hero-banner .hb-cell .hb-open,
  .elem-bpm-hero-banner .hb-cell .hb-img {
    height: 170px;
  }

  .elem-bpm-hero-banner .hb-badge {
    top: 8px;
    right: 8px;
    min-height: 44px;
    font-size: 18px;
  }
}
