.rental-group-hero {
  aspect-ratio: 120/67;
  max-height: 66.67vh;
  margin: 0 auto;
}

.rental-equipment-groups-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

.rental-equipment-group {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: end;
  position: relative;
  overflow: hidden;
}

.rental-equipment-group-image {
  opacity: 1;
  transition: all 1s ease-in-out;
  scale: 1;
}

.rental-equipment-group:hover img {
  opacity: 0.5;
  scale: 1.1;
}

.rental-equipment-group h4 {
  position: absolute;
  inset: 0;
  padding: 1rem;
  display: flex;
  align-items: end;
  justify-content: end;
}

.rental-equipments {
  --sub-heading-color: #2daece;
  background: var(--theme-color);
  padding-bottom: 5rem;
  position: relative;
  z-index: 0;
  
  &:before {
    content: '';
    display: block;
    inset: 0;
    background-image: url("../img/rental-equipments/background_line.png");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    z-index: 1;
    opacity: 0.5;
  }
}

.rental-equipment {
  aspect-ratio: 195/109;
}

.rental-equipment__description__title {
  font-size: 1.5rem;
}

.product-grid {
  display: grid;
  gap: 0;
  z-index: 2;
  position: relative;
}

.product-intro__content {
  background: var(--sub-heading-color);
  color: white;
  padding: 1rem;
  width: 100%;
}

.product-intro__title {
  font-size: 1.3rem;
}

.product {
  display: flex;
  flex-direction: column;
}

.product-content {
  display: flex;
  flex-flow: column;
  justify-content: end;
  padding: 0.5rem 0;
  color: black;
}

.product-content__name {
  font-size: 1.3rem;
  color: black;
}

.product-content {
  margin-top: 4rem;
}

.product-image {
  aspect-ratio: 195/109;
}

@media only screen and (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row dense;
  }

  .product-intro {
    grid-column: 1 / span 2;
  }

  .product-content {
    margin-top: 0;
    aspect-ratio: 195/109;
    padding: 0.5rem;
  }

  .product {
    grid-column: var(--col);
    grid-row: calc(var(--row) + 1) / span 2;
  }
}

@media only screen and (min-width: 980px) {
  .product-intro {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 195/109;
  }

  .product {
    grid-column: var(--col);
    grid-row: var(--row) / span 2;
  }
}

.rental-group-hero .dsn-container {
  height: 100%;
}

.rental-group-hero .border-left .has-border:before {
  height: 100%;
  left: -50px;
}

@media only screen and (max-width: 991px) {
  .rental-group-hero .border-left .has-border:before {
    left: -40px;
  }
}
@media only screen and (max-width: 767px) {
  .rental-group-hero .border-left .has-border:before {
    left: -25px;
  }
}
@media only screen and (max-width: 575px) {
  .rental-group-hero .border-left .has-border:before {
    left: -15px;
  }
}

.rental-group-hero .has-border {
  position: relative;
}

/*.rental-group-hero .border-left .has-border:before {
  height: 100%;
}*/

.rental-group-hero .background-main {
  background: rgba(0,0,0,0.3);
}
