.owl-ministeries {
  .owl-stage {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .owl-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    span {
      transition: 0.4s !important;
    }
    .active span {
      background: var(--color-primary) !important;
      width: 18px;
      height: 18px;
    }
  }
}
.content-gallery {
  img {
    width: 100%;
    aspect-ratio: 1.2;
    border-radius: 16px;
    object-fit: cover;
  }
}
.card-image-modal {
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  border-radius: 16px;
  .background-image {
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    transition: 0.4s;
    &::before {
      content: "";
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: #000;
      opacity: 0.1;
      transition: 0.4s;
    }
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .card-body {
    position: absolute;
    width: 100%;
    left: 0;
    height: 100%;
    background: #fff;
    transition: 0.4s;
    top: 75%;
    @media (width<520px) {
      top: 70% !important;
    }
    h3 {
      font-size: 22px;
      @media (width<768px) {
        font-size: 22px;
      }
    }
    .description p {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
      -webkit-line-clamp: 4;
    }
    .btn-impact {
      height: 40px;
      width: 40px;
      background: var(--color-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 100%;
      border: none;
      transition: transform 0.4s ease-in-out;
      padding: 0;

      &:hover {
        background: var(--color-secondary);
        svg {
          transform: rotate(0deg);
        }
        svg path {
          fill: var(--color-text);
        }
      }
      svg {
        transition: 0.4s;
        width: 70%;
        transform: rotate(-45deg);
        height: 70%;
      }
      svg path {
        fill: #fff;
        transition: 0.4s;
      }
    }
  }
  &:hover {
    .card-body {
      top: 40% !important;
    }
    .background-image::before {
      opacity: 0.5;
    }
  }
}
