/* Lieska Post Carousel*/

/* WRAPPER */
.lpc-wrapper {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

/* TRACK ja SLIDET: vain aktiivinen näkyy */
.lpc-track {
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.lpc-slide {
  display: none;                  /* piilossa oletuksena */
  position: relative;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
  gap: 0;
}

.lpc-slide.is-active {
  display: grid;                  /* näkyvä slide */
}

/* MEDIA + CONTENT RAKENNE */
.lpc-media {
  position: relative;
  display: grid;                  /* helppo keskitys */
  place-items: center;            /* keskelle vaaka + pysty */
  overflow: hidden;
  min-height: 160px;              /* pieni min-korkeus ettei badge leikkaudu */
}

.lpc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;              /* täyttö ja keskitys */
  object-position: center center; /* keskelle */
  display: block;
}

/* Sisältölaatikko: tausta/teksti tulevat INLINE-tyyleinä PHP:stä */
.lpc-content {
  padding: 1rem 4rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Otsikko perii tekstivärin */
.lpc-title {
  margin: 0!important;
  line-height: 1.25;
}
.lpc-title a {
  color: inherit;                 /* tärkeä: käytä sliden tekstiväriä */
  text-decoration: none;
}
.lpc-title a:hover {
  text-decoration: underline;
}

/* TERM BADGE OVERLAY */
.lpc-term.lpc-term--overlay {
  position: absolute;
  z-index: 2;
  /* sijainti (tl,tr,bl,br) annetaan INLINE-tyylinä PHP:stä: top:0;right:0; jne. */
}

.lpc-term__badge {
  display: inline-block;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  /* värit, padding ja radius tulevat INLINE-tyyleinä PHP:stä */
}

/* KONTROLLIT (nuolet) */
.lpc-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;           /* estä overlayn häiriö; napit sallitaan */
}
.lpc-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 9999px;
  background: rgba(0,0,0,.08);
  color: #111;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.lpc-btn:hover {
  background: rgba(0,0,0,.18);
  transform: translateY(-50%) scale(1.04);
}
.lpc-btn:focus-visible {
  outline: 3px solid #2684ff;
  outline-offset: 2px;
}
.lpc-btn--prev { left: 10px; }
.lpc-btn--next { right: 10px; }

/* DOTS – pallurat */
.lpc-dots {
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.lpc-dot {
  width: 15px;
  height: 15px;
  border-radius: 9999px;
  border: 2px solid rgba(0,0,0,.1);
  background: #fff!important;
  padding: 0px;margin-top:5px;
  cursor: pointer;
}
.lpc-dot.is-active {
  /* tausta + reunaväri asetetaan JS:ssä sliden data-dot-colorista */
	width:25px;height:25px;margin-top:0;
	border-width:2px!important;
}
.lpc-dot__visuallyhidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Varmistetaan, ettei ulkopuolinen teema tappele väreistä:
   - EI anneta mitään yleistä background-coloria tästä tiedostosta
   - Luotetaan PHP:n inline-tyyleihin .lpc-content & term-badge -elementeissä. */

/* Pienet ruudut */
@media (max-width: 768px) {
  .lpc-content { padding: 0.85rem 1rem; }
  .lpc-btn { width: 36px; height: 36px; }
}

/* Tekstit samaan pinoon (meta → otsikko → excerpt) */
.lpc-content {
  display: flex !important;
  flex-direction: column !important;  /* allekkain */
  justify-content: center !important; /* keskelle pystyyn */
  align-items: flex-start !important; /* vasen tasaus */
  gap: .6rem !important;
  height: 100% !important;
  column-count: 1 !important; /* poistaa palstajaon */
  text-align: left !important;
}

/* Pieni typografian siistintä */
.lpc-meta { margin: 0; line-height: 1.2; }
.lpc-title { margin: 0; line-height: 1.2; }
.lpc-excerpt { margin: 0; line-height: 1.5; }

