.smort-hero-grid {
  position: relative;
  background: #313131;
  background: linear-gradient(
    0deg,
    rgba(49, 49, 49, 1) 20%,
    rgba(255, 255, 255, 0) 20%
  );
}

.smort-hero-grid-hero {
  min-height: 300px;
  isolation: isolate;
}

.smort-hero-grid-swiper,
.smort-hero-grid-swiper .swiper-wrapper,
.smort-hero-grid-slide {
  height: 100%;
}

.smort-hero-grid-slide {
  position: relative;
  overflow: hidden;
  min-height: 300px;
}

.smort-hero-grid-slide
  > div:not(.smort-hero-grid-image):not(.smort-hero-grid-overlay) {
  min-height: 300px;
}

.smort-hero-grid-nav {
  position: absolute;
  top: 50%;
  z-index: 30;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.smort-hero-grid-nav-prev {
  left: 16px;
}

.smort-hero-grid-nav-next {
  right: 16px;
}

.smort-hero-grid-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.smort-hero-grid-pagination {
  position: absolute;
  bottom: 18px !important;
  z-index: 30;
}

.smort-hero-grid-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #fff;
  opacity: 0.65;
}

.smort-hero-grid-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

.smort-hero-grid-nav:focus-visible,
.smort-hero-grid-pagination .swiper-pagination-bullet:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.smort-hero-grid-card {
  min-height: 170px;
}

.smort-hero-grid-kicker {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* Slide-innehåll: luft på sidorna så att texten aldrig hamnar under pilarna. */
.smort-hero-grid-slide .smort-hero-grid-content {
  padding: 2rem 3.5rem;
}

.smort-hero-grid-content-inner {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
}

.smort-hero-grid-title {
  margin: 0 auto 0.75rem;
  font-size: clamp(1.375rem, 0.9rem + 2.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: manual;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.smort-hero-grid-description {
  max-width: 34rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.125rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.smort-hero-grid-card-title {
  line-height: 1.04;
  font-size: clamp(1.15rem, 4.9vw, 1.75rem);
}

.smort-hero-grid-image,
.smort-hero-grid-card-image {
  transition: transform 0.6s ease;
}

.smort-hero-grid-hero .smort-hero-grid-image {
  z-index: 0;
}

.smort-hero-grid-hero .smort-hero-grid-overlay {
  z-index: 10;
}

/* Bilden som <img> (prestanda) – samma utseende som bg-cover bg-center. */
.smort-hero-grid-image > img.smort-hero-grid-img,
.smort-hero-grid-card-image > img.smort-hero-grid-img,
.smort-hero-grid-image > video.smort-hero-grid-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

.smort-hero-grid-image > video.smort-hero-grid-video {
  z-index: 1;
}

.smort-hero-grid-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.9) 100%
  );
  transition: background 0.4s ease;
}

.smort-hero-grid-card .smort-hero-grid-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.78) 100%
  );
  transition: background 0.4s ease;
}

@media (min-width: 768px) {
  .smort-hero-grid-hero {
    min-height: 520px;
  }

  .smort-hero-grid-slide
    > div:not(.smort-hero-grid-image):not(.smort-hero-grid-overlay) {
    min-height: 520px;
  }

  .smort-hero-grid-slide {
    min-height: 520px;
  }

  .smort-hero-grid-slide .smort-hero-grid-content {
    padding: 3rem 5.5rem;
  }

  .smort-hero-grid-title {
    margin-bottom: 1rem;
  }

  .smort-hero-grid-description {
    margin-bottom: 1.75rem;
  }

  .smort-hero-grid-card-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  }

  .smort-hero-grid-card {
    min-height: 210px;
  }
}

@media (max-width: 479px) {
  .smort-hero-grid-nav {
    width: 36px;
    height: 36px;
  }

  .smort-hero-grid-nav-prev {
    left: 8px;
  }

  .smort-hero-grid-nav-next {
    right: 8px;
  }
}

@media (min-width: 1024px) {
  .smort-hero-grid-card {
    min-height: 240px;
  }
}
