aboutsummaryrefslogtreecommitdiff
path: root/static/css/carousel.css
blob: d1505e137fadda261515b497f91d6ba8b00741d9 (plain) (blame)
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
38
39
40
41
42
43
44
45
46
47
48
/* File: carousel.css */

.carousel {
    width: 100%;
    max-width: 46rem; /* As per your specification */
    margin: 0 auto;
}

.carousel-main-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.carousel-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-vignettes {
    display: flex;
    justify-content: center;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.vignette {
    cursor: pointer;
    transition: opacity 0.3s ease;
    flex: 0 0 auto;
}

.vignette:hover {
    opacity: 0.8;
}

.vignette.active {
    border: 2px solid #007bff;
}

.vignette img {
    display: block;
    width: 120px;
    height: 80px;
    object-fit: cover;
}