/* ============================================================
   Journal Slider — journal-slider.css
   Independent slider-style presentation of a trip's Journal posts.
   Does not reuse or override journal-feed.css.
   ============================================================ */

.h2c-jsl-wrap {
  width: 100%;
}

/* ── Grid layout (/journals/ archive) — same cards, no swiper ── */
.h2c-jsl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 991px) {
  .h2c-jsl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .h2c-jsl-grid {
    grid-template-columns: 1fr;
  }
}

.h2c-jsl-swiper {
  width: 100%;
  position: relative;
}

/* Nav arrows — only visible when hovering the slider */
.h2c-jsl-swiper .swiper-nav-button.swiper-button-next,
.h2c-jsl-swiper .swiper-nav-button.swiper-button-prev {
  opacity: 0;
  right: 12px;
  background-color: transparent;
  border: none;
  color: #fff;
  transition: opacity 0.2s;
  box-shadow: none !important;
}
.h2c-jsl-swiper .swiper-nav-button.swiper-button-prev {
  left: 12px;
  right: auto;
}
.h2c-jsl-swiper .swiper-nav-button.swiper-button-next:hover,
.h2c-jsl-swiper .swiper-nav-button.swiper-button-prev:hover {
  background-color: transparent;
  border-color: transparent;
  color: #fff;
}
.h2c-jsl-swiper:hover .swiper-nav-button.swiper-button-next,
.h2c-jsl-swiper:hover .swiper-nav-button.swiper-button-prev {
  opacity: 1;
}

.h2c-jsl-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── Cover ── */
.h2c-jsl-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f5f5;
}

.h2c-jsl-cover-link {
  display: block;
  position: absolute;
  inset: 0;
}

.h2c-jsl-cover-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.h2c-jsl-media-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.h2c-jsl-media-badge svg {
  width: 16px;
  height: 16px;
}

.h2c-jsl-love-btn {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.h2c-jsl-love-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.h2c-jsl-love-btn.loved {
  color: #f60c09;
}
.h2c-jsl-love-btn.loved svg {
  fill: currentColor;
}

/* ── Title ── */
.h2c-jsl-title {
  display: block;
  padding: 14px 16px 8px;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: #213246;
  text-decoration: none;
  text-align: center;
}
.h2c-jsl-title:hover {
  text-decoration: underline;
}

/* ── Author ── */
.h2c-jsl-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px 16px;
  margin-top: auto;
}
.h2c-jsl-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #e0e0e0;
}
.h2c-jsl-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}
.h2c-jsl-author-name {
  font-size: 13px;
  font-weight: 600;
  color: #555;
}
