68 lines
957 B
CSS
68 lines
957 B
CSS
.gallery {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.main {
|
|
position: relative;
|
|
width: 100%;
|
|
aspect-ratio: 1;
|
|
border: 1px solid #e4e4e4;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
background: #fff;
|
|
padding: 4.2%;
|
|
}
|
|
|
|
.mainInner {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.mainImg {
|
|
object-fit: cover;
|
|
}
|
|
|
|
.thumbs {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, minmax(0, 144px));
|
|
gap: 12px;
|
|
}
|
|
|
|
.thumb,
|
|
.thumbActive {
|
|
position: relative;
|
|
aspect-ratio: 1;
|
|
border: 1px solid #e4e4e4;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
background: #fff;
|
|
padding: 10px;
|
|
}
|
|
|
|
.thumbActive {
|
|
border-color: #111;
|
|
}
|
|
|
|
.thumbInner {
|
|
position: relative;
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 5px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.thumbImg {
|
|
object-fit: cover;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.thumb:hover .thumbImg {
|
|
transform: scale(1.04);
|
|
}
|