/* La Juncal — Popup */

.lj-popup-overlay {
  position:         fixed;
  inset:            0;
  background:       rgba(0, 0, 0, 0.65);
  z-index:          9999999;
  display:          flex;
  align-items:      center;
  justify-content:  center;
  padding:          16px;
  box-sizing:       border-box;
  animation:        lj-fade-in 260ms ease;
}

.lj-popup-overlay[hidden] {
  display: none;
}

@keyframes lj-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lj-popup {
  position:         relative;
  background:       #E8D9C5;
  color:            #121212;
  border-radius:    8px;
  padding:          36px 32px 28px;
  width:            100%;
  max-width:        480px;
  max-height:       90vh;
  overflow-y:       auto;
  display:          flex;
  flex-direction:   column;
  gap:              18px;
  box-shadow:       0 24px 80px rgba(0, 0, 0, 0.45);
  animation:        lj-popup-in 300ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes lj-popup-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.lj-popup__close {
  position:         absolute;
  top:              12px;
  right:            14px;
  background:       transparent;
  border:           none;
  cursor:           pointer;
  font-size:        18px;
  color:            #8B8B8B;
  line-height:      1;
  padding:          4px 6px;
  border-radius:    4px;
  transition:       color 200ms, background 200ms;
}

.lj-popup__close:hover {
  color:      #121212;
  background: rgba(18, 18, 18, 0.07);
}

.lj-popup__title {
  font-family:    'Cinzel', Georgia, serif;
  font-size:      clamp(1.25rem, 4vw, 1.75rem);
  font-weight:    700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color:          #4A1517;
  line-height:    1.15;
  margin:         0;
}

.lj-popup__image {
  width:         100%;
  height:        auto;
  border-radius: 6px;
  display:       block;
}

.lj-popup__body {
  font-family: 'Inter', sans-serif;
  font-size:   15px;
  font-weight: 400;
  line-height: 1.65;
  color:       #121212;
  margin:      0;
}

.lj-popup__cta {
  display:         block;
  width:           100%;
  padding:         14px 20px;
  background:      #4A1517;
  color:           #E8D9C5;
  text-align:      center;
  text-decoration: none;
  font-family:     'Inter', sans-serif;
  font-size:       13px;
  font-weight:     600;
  letter-spacing:  0.12em;
  text-transform:  uppercase;
  border-radius:   5px;
  transition:      background 240ms, transform 180ms;
}

.lj-popup__cta:hover {
  background: #5E1D20;
  transform:  translateY(-1px);
}

@media (max-width: 500px) {
  .lj-popup {
    padding: 28px 20px 22px;
    gap:     14px;
  }

  .lj-popup__title {
    font-size: 1.25rem;
  }
}
