/* =========================================
   LUCA & RUTH — VANILLA CAROUSEL (lr-carousel)
   - Thin glossy rose frame
   - Foreground photo ALWAYS visible
   - Desktop baseline sizing (responsive.css overrides later)
========================================= */

/* =========================================
   TWEAKS (DESKTOP BASELINE)
========================================= */
:root{
  --lr-carousel-maxw: 775px;        /* overall max width */
  --lr-carousel-side-gap: 140px;    /* total side breathing room */
  --lr-carousel-h: 520px;           /* overall height */
  --lr-frame-pad: 6px;              /* frame thickness */
}

/* =========================================
   CAROUSEL WRAPPER
========================================= */
.lr-carousel{
  max-width: var(--lr-carousel-maxw);

  /* zero-risk: avoids negative/awkward widths on extreme viewports */
  width: min(100%, calc(100% - var(--lr-carousel-side-gap)));

  margin: 24px auto 28px;
  box-sizing: border-box;
}

/* =========================================
   FRAME
========================================= */
.lr-carousel-frame{
  position: relative;
  height: var(--lr-carousel-h);
  border-radius: 22px;
  padding: var(--lr-frame-pad);

  background: rgba(230, 198, 189, 0.88);

  box-shadow:
    0 14px 34px rgba(0,0,0,0.18),
    inset 0 0 0 1px rgba(255,255,255,0.65),
    inset 0 0 0 2px rgba(214, 176, 168, 1);

  /* zero-risk: prevents blur layer “bleeding” outside on some browsers */
  overflow: hidden;
}

/* glossy highlight */
.lr-carousel-frame::before{
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 8px;
  height: 34%;
  border-radius: 18px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.55),
    rgba(255,255,255,0.10),
    rgba(255,255,255,0)
  );

  pointer-events: none;
}

/* =========================================
   SLIDES (stacked)
========================================= */
.lr-carousel-slide{
  position: absolute;
  inset: var(--lr-frame-pad);
  border-radius: 16px;
  overflow: hidden;

  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;

  /* fallback so load never looks “empty” */
  background: rgba(250, 247, 242, 0.70);
}

.lr-carousel-slide.is-active{
  opacity: 1;
  pointer-events: auto;
}

/* blurred background layer */
.lr-carousel-bg{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;

  filter: blur(22px) brightness(0.78);
  transform: scale(1.12);
  opacity: 0.92;
}

/* foreground photo */
.lr-carousel-photo{
  position: absolute;
  inset: 0;
  margin: auto;

  width: 100%;
  height: 100%;
  object-fit: contain;

  opacity: 1;
  transition: opacity 220ms ease;
}

/* optional class from JS (safe) */
.lr-carousel-slide.is-loaded .lr-carousel-photo{
  opacity: 1;
}

/* =========================================
   ARROWS (NO CIRCLE BACKGROUND)
========================================= */
.lr-carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  border: none;
  border-radius: 0;
  background: transparent;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transition: opacity 200ms ease, transform 200ms ease;
}

.lr-carousel-frame:hover .lr-carousel-btn{
  opacity: 1;
}

.lr-carousel-btn.prev{ left: 14px; }
.lr-carousel-btn.next{ right: 14px; }

.lr-carousel-btn svg{
  width: 26px;
  height: 26px;

  fill: none;
  stroke: rgba(255,255,255,0.88);
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;

  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.50));
}

.lr-carousel-btn:hover{
  transform: translateY(-50%) scale(1.06);
}

.lr-carousel-btn:active{
  transform: translateY(-50%) scale(0.98);
}

/* keyboard accessibility (no visual change unless keyboard user) */
.lr-carousel-btn:focus-visible{
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 2px;
}

/* =========================================
   DOTS
========================================= */
.lr-carousel-dots{
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.lr-carousel-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  cursor: pointer;

  background: rgba(255,255,255,0.45);
  transition: transform 180ms ease, background 180ms ease;
}

.lr-carousel-dot.is-active{
  background: rgba(255,255,255,0.88);
  transform: scale(1.15);
}

.lr-carousel-dot:focus-visible{
  outline: 2px solid rgba(255,255,255,0.85);
  outline-offset: 2px;
}

/* =========================================
   BASE SHRINK BEHAVIOR
   (responsive.css will handle real layout changes later)
========================================= */
@media (max-width: 900px){
  .lr-carousel{
    width: 100%;
    padding: 0 12px;
  }
  .lr-carousel-frame{
    height: 420px;
  }
}

@media (max-width: 700px){
  .lr-carousel-frame{
    height: 360px;
  }
}