@import url("https://fonts.googleapis.com/css?family=Open+Sans");


:root {
  --buttonRadius: 24px;
  --labelPaddingX: calc(var(--buttonRadius) * 1);
  --labelBorderRadius: 2px;
  --labelFade: 0.1s;


  --colorButton: #bf161e;
  --colorButtonHover: #d21821;
  --colorText: #333;
  --colorHeadingBackground: #bf161e;
}


body {
  margin: 0;
}


* {
  box-sizing: border-box;
}


.notes {
  margin: auto;
  padding: 2rem 1.2rem 0;
  max-width: 35rem;
  font-family: "Open Sans", sans-serif;
  text-align: center;
}


.container {
  width: 100%;
  padding: 0em;
  display: flex;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: center;
}


.lg-container {
  max-width: none;
  position: relative;
  margin: 0rem;
  padding: 0;
}


.lg-image {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: scale-down;
}


/* ====== Hotspot (expanded nesting) ====== */
.lg-hotspot {
  position: absolute;
  margin: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  z-index: 0;
}


/* &:hover, &:active { .lg-hotspot__button { ... } } */
.lg-hotspot:hover .lg-hotspot__button,
.lg-hotspot:active .lg-hotspot__button {
  border-color: var(--colorButtonHover);
}


/* &:hover { .lg-hotspot__button { &:after { ... } } } */
.lg-hotspot:hover .lg-hotspot__button::after,
.lg-hotspot:active .lg-hotspot__button::after {
  background-color: var(--colorButtonHover);
}


/* &--selected { ... } */
.lg-hotspot--selected {
  z-index: 999;
}


.lg-hotspot--selected .lg-hotspot__label {
  opacity: 1;
}


/* &__button { ... } */
.lg-hotspot__button {
  position: relative; /* needed because ::after is absolutely positioned */
  height: calc(var(--buttonRadius) * 1);
  width: calc(var(--buttonRadius) * 1);
  padding: 0px;
  border-radius: 100%;
  border: 1px solid var(--colorButton);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  z-index: 999;
  animation: button-pulse 7s ease-in-out infinite;
  cursor: pointer;
  background: transparent;
}


/* &:after { ... } */
.lg-hotspot__button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  content: "";
  display: block;
  height: calc(var(--buttonRadius) * 0.7);
  width: calc(var(--buttonRadius) * 0.7);
  border-radius: 100%;
  border: 3px solid white;
  background-color: var(--colorButton);
  transition: border-color 1s linear;
}


/* &__label { ... } */
.lg-hotspot__label {
  position: absolute;
  padding: 0 0 1.1em 0;
  width: 16em;
  max-width: 50vw;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: "Open Sans", sans-serif;
  font-size: 14.5px;
  line-height: 1.45em;
  border-radius: var(--labelBorderRadius);
  user-select: none;
  opacity: 0;
  transition: all var(--labelFade) linear;
}


/* label nesting: h4 { ... } */
.lg-hotspot__label h4 {
  margin: 0;
  padding: 0.65em var(--labelPaddingX);
  background-color: var(--colorHeadingBackground);
  font-size: 1.1em;
  font-weight: normal;
  letter-spacing: 0.02em;
  color: white;
  border-radius: var(--labelBorderRadius) var(--labelBorderRadius) 0 0;
}


/* label nesting: p { ... } */
.lg-hotspot__label p {
  margin: 0;
  padding: 1.1em var(--labelPaddingX) 0 var(--labelPaddingX);
  color: var(--colorText);
}


/* ====== Position helper classes (converted vars) ====== */
.lg-hotspot--top-left .lg-hotspot__label {
  top: var(--buttonRadius);
  left: var(--buttonRadius);
}


.lg-hotspot--top-right .lg-hotspot__label {
  top: var(--buttonRadius);
  right: var(--buttonRadius);
}


.lg-hotspot--bottom-right .lg-hotspot__label {
  right: var(--buttonRadius);
  bottom: var(--buttonRadius);
}


.lg-hotspot--bottom-left .lg-hotspot__label {
  bottom: var(--buttonRadius);
  left: var(--buttonRadius);
}


@keyframes button-pulse {
  0% {
    transform: scale(.85, .85);
    opacity: 1;
  }
  40% {
    transform: scale(1.1, 1.1);
    opacity: 1;
  }
  100% {
    transform: scale(.85, .85);
    opacity: 1;
  }
}
.lg-hotspot__button {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--colorButton) !important;
  background: transparent !important;
}
.lg-hotspot__label {
  z-index: 10;
  opacity: 0;
}

.lg-hotspot--selected .lg-hotspot__label {
  opacity: 1;
}

/* ==========================
   RESPONSIVE MODE SWITCH
   Desktop: hotspots (>=1150)
   Mobile/tablet: slider (<=1149)
   ========================== */

:root {
  --activeDot: #ffcc00;         /* highlight color for active dot */
  --dimDotOpacity: 0.35;        /* dim level for inactive dots */
  --sliderCardRadius: 14px;
  --sliderCardShadow: 0 10px 25px rgba(0,0,0,.12);
}

/* Active dot highlight class (used by slider mode) */
.lg-hotspot--active .lg-hotspot__button {
  border-color: var(--activeDot) !important;
  box-shadow: 0 0 0 3px rgba(255,204,0,.35), 0 2px 4px rgba(0,0,0,.2);
  opacity: 1;
}

.lg-hotspot--active .lg-hotspot__button::after {
  background-color: var(--activeDot) !important;
}

/* Slider container (hidden by default; shown <=1149px) */
.lg-slider {
  display: none;
  width: 100%;
  padding: 14px 14px 18px;
}

/* scroll area */
.lg-slider__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 86%;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 14px;
  padding: 2px 2px 10px;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 700px) and (max-width: 1149px) {
  .lg-slider__track { grid-auto-columns: 60%; }
}

.lg-slider__track::-webkit-scrollbar {
  height: 8px;
}

.lg-slider__slide {
  scroll-snap-align: start;
  background: #fff;
  border-radius: var(--sliderCardRadius);
  box-shadow: var(--sliderCardShadow);
  border: 1px solid rgba(0,0,0,.10);
  overflow: hidden;
}

.lg-slider__slideHeader {
  background: var(--colorHeadingBackground);
  color: #fff;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

.lg-slider__slideBody {
  padding: 12px 14px 14px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--colorText);
}

/* Optional: pagination dots under slider */
.lg-slider__dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.lg-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.25);
}

.lg-slider__dot.is-active {
  background: rgba(0,0,0,.65);
}

/* ======= <=1149px: slider mode ======= */
@media (max-width: 1149px) {
  .lg-slider { display: block; }

  /* Hide the hover labels; slider provides the content */
  .lg-hotspot__label { display: none !important; }

  /* Dots are visual anchors only in slider mode */
  .lg-hotspot__button { pointer-events: none; }

  /* Dim all dots; active dot pops */
  .lg-hotspot .lg-hotspot__button {
    opacity: var(--dimDotOpacity);
    animation: none; /* optional: reduce motion */
  }
  .lg-hotspot.lg-hotspot--active .lg-hotspot__button {
    opacity: 1;
  }
  .lg-hotspot__button {
    transform: scale(50%);
}

/* ======= >=1150px: hotspot mode ======= */
@media (min-width: 1150px) {
  .lg-slider { display: none !important; }

  /* Restore labels and clickability for desktop */
  .lg-hotspot__label { display: block; }
  .lg-hotspot__button { pointer-events: auto; }

  /* No dimming on desktop */
  .lg-hotspot .lg-hotspot__button { opacity: 1; }
  .lg-hotspot--active .lg-hotspot__button { opacity: 1; }
}
.lg-container{
  position: static; /* or leave it alone; stage is the key */
}

.lg-stage{
  position: relative; /* NEW: hotspots are now relative to this */
  width: 100%;
}

/* keep image predictable */
.lg-image{
  width: 100%;
  height: auto;
  display: block;
}
/* default for <=1149 */
.lg-slider__track{
  grid-auto-columns: 72%; /* skinnier than 86% */
}

/* medium screens */
@media (min-width: 700px) and (max-width: 1149px){
  .lg-slider__track{
    grid-auto-columns: 42%;
  }
}

/* optional: on very small phones, a touch wider */
@media (max-width: 420px){
  .lg-slider__track{
    grid-auto-columns: 82%;
  }
}

:root {
  --sliderActiveBg: #ffcc00; /* yellow */
  --sliderActiveText: #000;  /* black */
}

.lg-slider__slideHeader {
  transition: background-color 0.25s ease, color 0.25s ease;
}

.lg-slider__slide.is-active .lg-slider__slideHeader {
  background-color: var(--sliderActiveBg);
  color: var(--sliderActiveText);
}
/* Zoom container clips overflow so pan doesn't spill */
.lg-stage {
  position: relative;
  overflow: hidden;
}

/* The element we transform */
.lg-zoom {
  transform: translate3d(0,0,0) scale(1);
  transform-origin: center center;
  transition: transform 280ms ease;
  will-change: transform;
}

/* Only enable zoom/pan in slider mode */
@media (max-width: 1149px) {
  .lg-zoom.is-zooming {
    /* JS will set a full transform inline */
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .lg-zoom { transition: none; }
}
