/* ============================= */
/* ELENBY IMMERSIVE HERO — FULL  */
/* ============================= */

/* Base layout */
.eb-hero {
  position: relative;
  width: 100%;
  height: 72vh;
  color: #111;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

.eb-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.eb-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Foreground text positioning */
.eb-hero-inner {
  position: absolute;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.eb-hero-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.eb-hero-col {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.3;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 0;
}

/* Rotating buttons */
.eb-hero-toggle {
  width: fit-content;
  border: none;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  padding: 0.4em 0.9em;
  margin: 0 0.2em;
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  cursor: pointer;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.04), 0 20px 40px rgba(0, 0, 0, 0.10);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.eb-hero-toggle:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

.eb-hero-toggle:focus-visible {
  outline: 2px solid rgba(0,0,0,0.6);
  outline-offset: 2px;
}

.eb-hero-toggle[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

.eb-hero-rotating {
  display: inline-block;
  min-width: 6ch;
}

.eb-hero-rotating-out {
  opacity: 0;
  transform: translateY(0.35em);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.eb-hero-rotating-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Body scroll lock when panel open */
body.eb-hero-menu-active {
  overflow: visible;
}

/* ============================= */
/* HERO PANEL                    */
/* ============================= */

.eb-hero-panel {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.eb-hero-panel.is-open {
  pointer-events: auto;
  opacity: 1;
}

/* Desktop: panel inside hero */
.eb-hero-panel-inner {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 24px 24px 0 0;
  padding: 1.5rem 2rem;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.22,.8,.32,1);
  box-shadow: 0 -30px 80px rgba(0,0,0,0.18);
	max-width: 1200px;
margin: 0 auto;

}

.eb-hero-panel.is-open .eb-hero-panel-inner {
  transform: translateY(0);
}

.eb-hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.eb-hero-panel-title {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 0;
}

.eb-hero-panel-close {
  background: rgba(0,0,0,0.06);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.eb-hero-panel-close:hover {
  background: rgba(0,0,0,0.12);
}

/* Pills */
.eb-hero-panel-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.eb-panel-pill {
  display:flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: #fff;
  color: #000;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 20px 40px rgba(0, 0, 0, 0.15);
}

.eb-panel-pill:hover {
    background: rgba(255,255,255,1);
  transform: translateY(-1px);
}

.eb-panel-pill.is-active {
  background: rgba(17,17,17,1);
	color: #fff;
}

/* Showcase wrapper */
.eb-hero-panel-showcase {
  position: relative;
  height: calc(100% - 86px);
}

/* Status text */
.eb-hero-panel-status {
  margin-top: .65rem;
  opacity: .65;
  font-weight: 600;
  font-size: .95rem;
}

/* ============================= */
/* FADER (COZY CONTAIN)          */
/* ============================= */

.eb-hero-fader {
  position: relative;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #f7f7f7;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

/* Slides */
.eb-hero-fade-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
  display: flex;
  flex-direction: column;
}

.eb-hero-fade-slide.is-active {
  opacity: 1;
}

/* Cozy frame: center media, never crop */
.eb-hero-media-wrap {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: start;
  justify-content: center;
  padding: 1rem;
}

.eb-hero-media {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #f1f1f1;
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

/* Caption: subtle “gallery label” */
.eb-hero-fade-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .6rem 1rem;
  text-align: center;
  font-size: .9rem;
  font-weight: 550;
  opacity: .75;
  color: #111;
  background: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0));
}

/* ============================= */
/* MOBILE — FULL SCREEN PANEL    */
/* ============================= */

@media (max-width: 768px) {

  .eb-hero-inner {
    max-width: 360px;
    padding-top: 5rem;
  }

  .eb-hero-row {
    flex-direction: column;
    padding-bottom: .5rem;
gap: 0;
  }

  .eb-hero-col {
    font-size: 1.3rem;
    margin: .4rem 0;
	  gap: .4rem;
  }

  /* Overlay panel */
  .eb-hero-panel {
    position: fixed;
    background: rgba(0,0,0,.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .eb-hero-panel-inner {
    height: 90vh;
    border-radius: 0;
    padding: 1.2rem;
  }

  .eb-hero-panel-showcase {
    height: calc(100% - 120px);
  }

  .eb-hero-media-wrap {
    padding: 14px;
	  margin: 0 !important;
	  width: fit-content;
  }

  .eb-hero-media {
    border-radius: 14px;
  }
	
	body.eb-hero-menu-active {
  overflow: hidden;
}
}
