/* --- Scyllias Events (no Tailwind) --- */
.scy-events {
  background: var(--color-950);
  color: #fff;
  padding: 64px 0;
}
.scy-events__inner {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}
.scy-events__header {
  text-align: center;
  margin-bottom: 32px;
}
.scy-events__title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
}
.scy-events__subtitle {
  margin-top: 10px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.5;
}

.scy-events__empty {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
}
.scy-events__emptyhint {
  margin-top: 10px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
}
.scy-events__empty code {
  background: rgba(0,0,0,.25);
  padding: 2px 8px;
  border-radius: 10px;
}

/* Grid */
.scy-events__grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 768px) {
  .scy-events__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .scy-events__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Card */
.scy-card {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.scy-card__media {
  position: relative;
  aspect-ratio: 16/10;
  background: rgba(0,0,0,.2);
}
.scy-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scy-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.7);
  font-size: 14px;
}
.scy-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.60), rgba(0,0,0,.12), transparent);
}
.scy-card__badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(255,255,255,.92);
  color: #111;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}
.scy-card__body {
  padding: 18px 18px 20px;
}
.scy-card__title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.scy-card__text {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.82);
  min-height: 3.2em;
}
.scy-card__btn {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--color-400);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  transition: opacity .15s ease, transform .15s ease;
}
.scy-card__btn:hover { opacity: .92; transform: translateY(-1px); }

/* Modal */
.scy-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}
.scy-modal.is-open { display: block; }
.scy-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
}
.scy-modal__panel {
  width: 100%;
  max-width: 720px;        /* 👈 kleiner dan nu */
  max-height: 80vh;        /* 👈 nooit hoger dan scherm */
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
}
.scy-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,.92);
  cursor: pointer;
  font-size: 18px;
}
.scy-modal__media {
  max-height: 240px;   /* 👈 dit is DE sleutel */
  overflow: hidden;
  background: #f3f4f6;
}
.scy-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* geen uitrekken */
}
.scy-modal__placeholder {
  color: #6b7280;
  font-size: 14px;
}
/* === MODAL CONTENT SCROLL === */
.scy-modal__content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.scy-modal__meta {
  font-size: 12px;
  font-weight: 800;
  color: #6b7280;
}
.scy-modal__title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.scy-modal__text {
  max-height: none;             /* we scrollen de hele content */
  overflow: visible;
}
.scy-modal__footer {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.scy-modal__updated {
  font-size: 12px;
  color: #6b7280;
}
.scy-modal__cta {
  border: 0;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-400);
  color: #fff;
  font-weight: 900;
}

/* Lock scroll when modal open */
.scy-noscroll { overflow: hidden; }
