/* BERTA Journal — full-width editorial carousel fed by the latest WordPress posts. */
.journal-showcase {
  position: relative;
  height: 78svh;
  min-height: 560px;
  max-height: 860px;
  overflow: hidden;
  background: var(--berta-ink-soft);
  border-block: 1px solid rgba(239, 227, 202, .08);
  isolation: isolate;
}

.journal-showcase__track,
.journal-showcase__slide {
  position: absolute;
  inset: 0;
}

.journal-showcase__slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 900ms var(--ease), visibility 900ms var(--ease);
}

.journal-showcase__slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.journal-showcase__image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transform: scale(1.025);
  filter: saturate(.88) contrast(1.02);
  transition: transform 6.5s cubic-bezier(.22, .61, .36, 1);
}

.journal-showcase__slide.is-active .journal-showcase__image {
  transform: scale(1);
}

.journal-showcase__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .10) 0%, rgba(0, 0, 0, .08) 38%, rgba(0, 0, 0, .72) 100%),
    linear-gradient(to right, rgba(0, 0, 0, .08), transparent 35%, rgba(0, 0, 0, .08));
}

.journal-showcase__content {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(92px, 12vh, 132px);
  width: min(calc(100% - 44px), 920px);
  transform: translateX(-50%);
  color: var(--berta-cream);
  text-align: center;
}

.journal-showcase__eyebrow {
  margin: 0 0 20px;
  color: var(--berta-cream-soft);
  font-family: var(--berta-font-body);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.journal-showcase__title {
  margin: 0 auto 20px;
  max-width: 880px;
  color: var(--berta-cream);
  font-family: var(--berta-font-display);
  font-size: clamp(2rem, 3.8vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: .005em;
  text-wrap: balance;
}

.journal-showcase__title a,
.journal-showcase__cta {
  color: inherit;
}

.journal-showcase__title a:hover,
.journal-showcase__cta:hover {
  opacity: .82;
}

.journal-showcase__cta {
  display: inline-block;
  padding: 0 0 4px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.journal-showcase__controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 13px;
  transform: translateX(-50%);
  color: var(--berta-cream);
  direction: ltr;
}

.journal-showcase__arrow {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 17px;
  font-weight: 300;
  cursor: pointer;
  opacity: .88;
}

.journal-showcase__dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.journal-showcase__dot {
  width: 42px;
  height: 1px;
  padding: 0;
  border: 0;
  background: rgba(239, 227, 202, .34);
  cursor: pointer;
  transition: width .35s var(--ease), background-color .35s ease;
}

.journal-showcase__dot.is-active {
  width: 58px;
  background: var(--berta-cream);
}

html[lang^="fa"] .journal-showcase__content {
  direction: rtl;
}

html[lang^="fa"] .journal-showcase__eyebrow,
html[lang^="fa"] .journal-showcase__title,
html[lang^="fa"] .journal-showcase__cta {
  font-family: var(--berta-font-body);
  letter-spacing: 0;
  text-transform: none;
}

html[lang^="fa"] .journal-showcase__eyebrow {
  line-height: 1.8;
}

html[lang^="fa"] .journal-showcase__title {
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 768px) {
  .journal-showcase {
    height: 70svh;
    min-height: 520px;
    max-height: 760px;
  }

  .journal-showcase__content {
    bottom: 84px;
    width: min(calc(100% - 32px), 640px);
  }

  .journal-showcase__title {
    margin-bottom: 17px;
    font-size: clamp(1.75rem, 8vw, 2.8rem);
  }

  .journal-showcase__controls {
    bottom: 22px;
    gap: 8px;
  }

  .journal-showcase__dot {
    width: 27px;
  }

  .journal-showcase__dot.is-active {
    width: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .journal-showcase__slide,
  .journal-showcase__image,
  .journal-showcase__dot {
    transition: none;
  }
}


/* v1.5.1 — journal stays language-consistent: no post title is overlaid. */
.journal-showcase__content {
  width: min(calc(100% - 44px), 720px);
}

.journal-showcase__eyebrow {
  margin-bottom: 20px;
}
