/* ————————————————————————————————————————————
   Interactive Banner: responsive square + 20px side inset on mobile
   ———————————————————————————————————————————— */

/* 1) Main container: fluid width, square aspect ratio */
.ar-interactive-banner {
  position: relative;
  display: block;
  width: 100% !important;              /* override inline width */
  aspect-ratio: 1 / 1 !important;      /* force perfect square */
  height: auto !important;             /* override inline height */
  background-size: cover;
  background-position: center;
  text-decoration: none;
  overflow: hidden;
}

/* 2) Fallback for browsers without aspect-ratio support */
@supports not (aspect-ratio: 1/1) {
  .ar-interactive-banner {
    height: 0 !important;
    padding-top: 100% !important;       /* 1:1 aspect via padding */
  }
  .ar-interactive-banner > * {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
  }
}

/* 3) Overlay covers entire area but starts hidden above */
.ar-interactive-banner .banner-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  transform: translateY(-100%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  z-index: 1;
  bottom: 4.5rem;
}

/* Slide it down on hover */
.ar-interactive-banner:hover .banner-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Title wrapper pinned at bottom */
.ar-interactive-banner .banner-title-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0.5rem;
  text-align: center;
  box-sizing: border-box;
  z-index: 2;
}

/* Title text */
.ar-interactive-banner .banner-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

/* Description text */
.ar-interactive-banner .banner-description {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  text-align: center;
}

/* 4) On mobile (≤600px), inset the banner 20px from each side */
@media only screen and (max-width: 900px) {
  .ar-interactive-banner {
    width: calc(100% - 40px) !important;  /* full width minus 20px padding each side */
    margin: 0 auto !important;            /* center it */
  }
}
