summaryrefslogtreecommitdiff
path: root/client/src/components/Carousel.css
blob: 43f0bcf556bbcd6398484a35aac547ea9ac2d059 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.carousel-container {
  height: 100%;
  width: 100%;
  @media(max-width: 768px) {
    display: flex;
    justify-content: center;
  }
}

.carousel {
  overflow: hidden;
  height: 100%;
  width: 100%;
  @media(max-width: 768px) {
    width: 90%;
    display: flex;
    align-items: center;
  }
}

.carousel-slide {
  display: none;
}

.carousel-slide.active-slide {
  display: flex;
}

.carousel img {
  width: 100%;
  max-height: 100vh;
  object-fit: cover;
  @media(max-width: 768px) {
    object-fit: contain;
    border-radius: 16px;
  }
}