.cgs-gallery--normal {
display: grid;
grid-template-columns: repeat(var(--columns, 3), 1fr);
gap: var(--gap, 10px);
}
.cgs-gallery--masonry .cgs-gallery__item {
margin: 0;
}
.cgs-gallery--slider, .cgs-gallery--slider-thumbs {
max-width: 800px;
margin: 0 auto;
}
.cgs-gallery--slider .cgs-gallery__item, .cgs-gallery--slider-thumbs .cgs-gallery__item {
padding: 0;
}
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs-wrapper {
display: flex;
flex-direction: column;
gap: 15px;
}
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs-wrapper--top {
flex-direction: column-reverse;
}
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs-wrapper--left {
flex-direction: row;
}
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs-wrapper--left .cgs-gallery__thumbs {
flex: 0 0 120px;
margin-right: 15px;
}
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs-wrapper--right {
flex-direction: row-reverse;
}
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs-wrapper--right .cgs-gallery__thumbs {
flex: 0 0 120px;
margin-left: 15px;
}
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs {
display: flex;
gap: 10px;
width: 100%;
}
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs .cgs-gallery__item {
padding: 0;
cursor: pointer;
flex: 1 1 0;
max-width: none;
display: flex;
align-items: center;
justify-content: center;
}
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs .cgs-gallery__item img {
width: 100%;
height: auto;
max-width: 100px;
-o-object-fit: cover;
object-fit: cover;
opacity: 0.7;
transition: opacity 0.3s ease;
}
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs .cgs-gallery__item--current img,
.cgs-gallery--slider-thumbs .cgs-gallery__thumbs .slick-current img {
opacity: 1;
}
.cgs-gallery__item {
position: relative;
margin: 0;
}
.cgs-gallery__img {
width: 100%;
height: auto;
-o-object-fit: cover;
object-fit: cover;
display: block;
}
.cgs-gallery__link {
display: block;
text-decoration: none;
}
.cgs-gallery__link[data-fancybox] img {
cursor: zoom-in;
}
.cgs-gallery__caption {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 0.5em 1em;
margin-top: -4px;
font-size: 14px;
line-height: 1.4;
}
.slick-track {
gap: 10px !important;
display: flex !important;
}
.fancybox-error {
color: red;
text-align: center;
margin: 10px 0;
}