/* LovelyWood – interaktivní homepage banner v9
   v9: zmenšena mezera mezi benefity a sekcí "KDYŽ..." i na desktopu
*/

#lw-home-category-banner {
  display: flex;
  width: 100%;
  height: 400px;
  overflow: hidden;
  gap: 3px;
  margin: -16px 0 0 0;
  padding: 0;
}

#lw-home-category-banner .lw-home-card {
  position: relative;
  display: block;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  color: #fff !important;
  text-decoration: none !important;
  transition: flex-grow .48s cubic-bezier(.22,.61,.36,1);
}

#lw-home-category-banner .lw-home-card:hover {
  flex-grow: 1.85;
}

#lw-home-category-banner .lw-home-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

#lw-home-category-banner .lw-home-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.72));
  pointer-events: none;
}

#lw-home-category-banner .lw-home-title {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 18px;
  bottom: 22px;
  color: #fff;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(0,0,0,.35);
}

/* Desktop – stáhneme mezeru pod benefity */
@media (min-width: 768px) {
  .in-index .benefitBanner {
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
  }

  .in-index .benefitBanner + * {
    margin-top: 12px !important;
    padding-top: 12px !important;
  }
}

@media (max-width: 991px) {
  #lw-home-category-banner {
    height: 340px;
    margin-top: -10px;
  }

  #lw-home-category-banner .lw-home-card:hover {
    flex-grow: 1.55;
  }

  #lw-home-category-banner .lw-home-title {
    left: 18px;
    bottom: 18px;
    font-size: 24px;
  }
}

@media (max-width: 767px) {

  #lw-home-category-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: auto;
    overflow: visible;
    gap: 4px;
    margin-top: 0;
  }

  #lw-home-category-banner .lw-home-card {
    position: relative;
    height: auto;
    aspect-ratio: 4 / 3;
    flex: none;
    background: transparent;
  }

  #lw-home-category-banner .lw-home-card:hover {
    flex-grow: 1;
  }

  #lw-home-category-banner .lw-home-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  #lw-home-category-banner .lw-home-card::after {
    height: 40%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.70));
  }

  #lw-home-category-banner .lw-home-title {
    left: 12px;
    right: 8px;
    bottom: 10px;
    font-size: 19px;
    line-height: 1.06;
  }

  #lw-home-category-banner .lw-home-card:nth-child(1) img { object-position: center 58%; }
  #lw-home-category-banner .lw-home-card:nth-child(2) img { object-position: center 52%; }
  #lw-home-category-banner .lw-home-card:nth-child(3) img { object-position: center 50%; }
  #lw-home-category-banner .lw-home-card:nth-child(4) img { object-position: center 50%; }

  .in-index .benefitBanner {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: auto !important;
    align-content: start !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 14px 10px !important;
    margin-top: 16px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
  }

  .in-index .benefitBanner .benefitBanner__item {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .in-index .benefitBanner .benefitBanner__picture {
    flex: 0 0 46px !important;
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
  }

  .in-index .benefitBanner .benefitBanner__img {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    object-fit: contain !important;
  }

  .in-index .benefitBanner .benefitBanner__content {
    min-width: 0 !important;
    padding: 0 !important;
  }

  .in-index .benefitBanner .benefitBanner__title {
    display: block !important;
    margin: 0 0 3px 0 !important;
    font-size: 15px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
  }

  .in-index .benefitBanner .benefitBanner__data {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .in-index .benefitBanner + * {
    margin-top: 16px !important;
    padding-top: 16px !important;
  }
}
