/* ==========================================================================
   Le Boréal — hero carousel + Instagram grid
   Rewritten from scratch (no Squarespace dependency).
   ========================================================================== */

.vp-carousel {
  position: relative;
  width: 100%;
  height: 72vh;
  min-height: 480px;
  max-height: 780px;
  overflow: hidden;
  background: #0b0c0a;
}

.vp-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
  pointer-events: none;
}

.vp-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.vp-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.vp-carousel__controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  pointer-events: none;
  z-index: 3;
}

.vp-carousel__btn {
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms, transform 200ms;
}

.vp-carousel__btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.06);
}

.vp-carousel__btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.vp-carousel__dots {
  position: absolute;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 3;
}

.vp-carousel__dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 200ms, transform 200ms;
}

.vp-carousel__dot.is-active {
  background: rgba(255, 255, 255, 0.95);
  transform: scale(1.3);
}

@media (max-width: 640px) {
  .vp-carousel {
    height: 60vh;
    min-height: 360px;
  }
  .vp-carousel__btn {
    width: 38px;
    height: 38px;
  }
}

/* ----------- Instagram grid ----------- */
.vp-insta {
  padding: 4rem 1.5rem;
  background: #f4f0e8;
  color: #2a261e;
}

.vp-insta__header {
  text-align: center;
  margin-bottom: 2rem;
}

.vp-insta__header a {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  transition: opacity 200ms;
}

.vp-insta__header a:hover {
  opacity: 0.65;
}

.vp-insta__header svg {
  width: 1.1em;
  height: 1.1em;
}

.vp-insta__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.vp-insta__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: #ddd5c5;
  display: block;
}

.vp-insta__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 450ms ease;
}

.vp-insta__item:hover img {
  transform: scale(1.06);
}

.vp-insta__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 250ms;
}

.vp-insta__item:hover::after {
  background: rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
  .vp-insta {
    padding: 3rem 1rem;
  }
  .vp-insta__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}
