
:root {
    --carousel-height: 350px;
    --slide-width: calc(100% / 3);
    --image-showing: 3;
    --size-news-box: 31rem;
}
/* @media (min-width: 0px){
    :root {
      --image-showing: 1;
      --size-news-box: 18rem;
    }
    .carousel{
      max-width: 310px;
    }
}
@media (min-width: 412px){
    :root {
      --image-showing: 2;
      --size-news-box: 18rem;
    }
}
@media (min-width: 768px){
    :root {
      --image-showing: 4;
      --size-news-box: 31rem;
    }
}
@media (min-width: 1768px){
    :root {
      --image-showing: 6;
      --size-news-box: 31rem;
    }
} */

/** Wrapper **********************/
.carousel {
  position: relative;
  width: calc(100% - 10px);
  max-width: 80%;
  height: var(--carousel-height);
  margin: 0 auto;
  padding: 0 20px;
  overflow: hidden;
}

/** Previous/next buttons ********/
.previous,
.next {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px 10px;
  position: absolute;
  top: calc(50% - 16px);
  cursor: pointer;
  font-size: 32px;
  border: 0;
  background: none;
}

.previous { left: -30px; }
.next { right: -30px; }

/** Slides track ***************/
.slides {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  width: 100%;
  overflow: hidden;
}

/** Individual slides ***********/
.slide {
  flex: 0 0 calc(100% / var(--image-showing) - 10px);
  margin: 0 5px;
  padding: 20px;
  height: var(--carousel-height);
  display: flex;
  align-items: center;
  justify-content: center; 
  font-size: 18px;
  line-height: 26px;
}

/** Slide dots ******************/
.carousel .navigation {
  position: absolute;
  left: 0;
  bottom: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.carousel .navigation li {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 100px;
  background-color: var(--text-color);
  opacity: .2;
  cursor: pointer;
}

/** Active slide dot */
.carousel .navigation li.active {
  opacity: 1;
  width: 15px;
  height: 15px;
}

.carousel .card-img-top{
  object-fit: cover;
  width: 100%;
  height: 100%;
  margin: auto;
  max-width: 200px;
  max-height: 200px;
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

.carousel .grayRing {
    z-index: -1;
    background-color: gray;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    position: absolute;
    border-radius: 50%;
    top: 0;
    left: 0;
}