.stories {
  margin-block-end: 3rem;
}

.stories__title {
  margin-block-end: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
}

.stories__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.stories__item {
  max-width: 18rem;
  width: 32%;  
  border: 1px solid transparent;
  border-radius: 5px;
  box-shadow: var(--box-shadow-passive);
  transition: all 240ms;
  overflow: hidden;
}

.stories__item:hover {
  border-color: var(--light-blue);
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-active);
}

.stories__item_img {
  height: 11.9rem;
}

.stories__item_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stories__info {
  display: flex;
  flex-direction: column;
  row-gap: .3rem;
  min-height: 7.7rem;
  padding: .6rem;
}

.stories__info h4 {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 600;
}

.stories__info h4:hover {
  text-decoration: underline;
}

.stories__info p {
  margin-block-start: auto;
  font-size: .7rem;
  color: var(--dark-gray);
}

@media screen and (max-width: 992px) {
  .stories__inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2rem;
  }

  .stories__item {
    max-width: 100%;
    width: calc(50% - 1rem); 
  }
}

@media screen and (max-width: 576px) {
  .stories__item {
    width: 100%;
  }
}
