/**
 * Theme Name: Triply Child
 * Description: This is a child theme of Triply, generated by Merlin WP.
 * Author: <a href="https://pavothemes.com/">Pavothemes</a>
 * Template: triply
 * Version: 2.4.0
 */

/* =====================
   ERVARING CINEMATIC CAROUSEL — stacked layout with responsive navigation
   ===================== */

.erv-section {
  position: relative;
  width: 100%;
  background: #ffffff;
  color: #0a0a0a;
  font-family: 'DM Sans', sans-serif;
  padding: 60px 0;
  overflow: hidden;
}

.erv-container {
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* TOP BAR */
.erv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 20px;
}
.erv-topbar__left { display: flex; align-items: center; gap: 12px; }
.erv-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #B6612F; box-shadow: 0 0 12px rgba(182,97,47,0.5);
}
.erv-topbar__label,
.erv-topbar__count {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #0a0a0a;
}
.erv-current { color: #B6612F; }
.erv-sep { margin: 0 8px; color: #0a0a0a; opacity: 0.55; }

/* SWIPER */
.erv-swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.erv-swiper .swiper-slide {
  width: 100%;
}

/* CARD — stacked: image on top, text card below */
.erv-card {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: visible;
  color: #0a0a0a;
}

/* IMAGE CARD (top) */
.erv-card__media {
  position: relative;
  width: 100%;
  height: clamp(380px, 52vw, 560px);
  overflow: hidden;
  background-color: #202F59;
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.3);
}
.erv-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top right;
  display: block;
}

/* SIDE BUTTONS (visible on desktop) */
.erv-nav-prev,
.erv-nav-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 15;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  border-radius: 40px;
  text-decoration: none;
}
.erv-nav-prev { left: 20px; right: auto; }
.erv-nav-next { right: 20px; left: auto; }
.erv-nav-prev:hover,
.erv-nav-next:hover {
  background: #B6612F;
  color: #ffffff;
}

/* Prevent clipping of side buttons */
.erv-swiper,
.erv-swiper .swiper-slide,
.erv-card__media {
  overflow: visible;
}

/* TEXT CARD (bottom) */
.erv-card__panel {
  width: 100%;
  background: #ffffff;
  padding: 48px 40px 44px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  text-align: center;
  justify-items: center;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,0.18);
}

.erv-card__post-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: #0a0a0a;
  word-wrap: break-word;
  max-width: 900px;
}
.erv-word--accent {
  color: #B6612F;
  font-style: italic;
  font-weight: 500;
  margin-left: 0.35em;
}

.erv-card__tekst {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(10,10,10,0.78);
  max-width: 720px;
}
.erv-card__tekst p { margin: 0; }
.erv-card__tekst-clip {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.erv-card__tekst-full {
  display: block;
}

/* READ MORE / LESS link */
.erv-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #B6612F;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: opacity 0.3s ease;
}
.erv-readmore:hover {
  opacity: 0.7;
  background: none;
  text-decoration: underline;
}

/* META (author) */
.erv-card__meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
}
.erv-card__avatar {
  width: 46px; height: 46px; min-width: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(182,97,47,0.5);
  box-shadow: 0 0 0 1px rgba(182,97,47,0.15);
}
.erv-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.erv-card__titel {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
}

/* CTA button */
.erv-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 26px;
  border: 1px solid #B6612F;
  background: transparent;
  color: #0a0a0a;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s ease;
}
.erv-card__cta:hover {
  background: #B6612F;
  border-color: #B6612F;
  color: #ffffff;
}
.erv-card__cta svg { transition: transform 0.4s ease; }
.erv-card__cta:hover svg { transform: translate(2px, -2px); }

/* BOTTOM BAR (hidden on desktop, visible on mobile/tablet) */
.erv-bottombar {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding: 0 0 20px;
}

/* Desktop: hide bottom bar, keep side buttons */
@media (min-width: 901px) {
  .erv-bottombar {
    display: none;
  }
}

/* Mobile & tablet: hide side buttons, show bottom bar */
@media (max-width: 900px) {
  .erv-card__media .erv-nav-prev,
  .erv-card__media .erv-nav-next {
    display: none;
  }
  
  .erv-bottombar {
    display: flex;
  }
  
  .erv-nav-prev-bottom,
  .erv-nav-next-bottom {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border-radius: 40px;
  }
  
  .erv-nav-prev-bottom:hover,
  .erv-nav-next-bottom:hover {
    background: #B6612F;
  }
}

/* Small mobile adjustments */
@media (max-width: 640px) {
  .erv-section { padding: 40px 0; }
  .erv-container { padding: 0 16px; }
  .erv-card__media { height: clamp(280px, 70vw, 420px); }
  .erv-card__panel { padding: 32px 22px 30px; gap: 18px; }
  .erv-card__post-title { font-size: 1.55rem; }
  .erv-card__tekst { font-size: 14px; }
  .erv-nav-prev-bottom,
  .erv-nav-next-bottom {
    padding: 8px 16px;
    font-size: 12px;
  }
  .erv-bottombar { gap: 12px; }
}



