Files
frontend/packages/lightbox-gallery/styles.css
T

92 lines
1.9 KiB
CSS

.advdominion-lg {
background-color: white;
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 999;
}
.advdominion-lg__close {
position: absolute;
right: 0;
top: 0;
z-index: 2;
}
.advdominion-lg__close-icon {
fill: currentcolor;
height: 25px;
width: 25px;
}
.advdominion-lg__container.swiper {
height: 100%;
}
.advdominion-lg__wrapper.swiper-wrapper {
}
.advdominion-lg__item.swiper-slide {
align-items: center;
display: flex;
flex-direction: column;
gap: 25px;
justify-content: center;
}
.advdominion-lg__item_video.swiper-slide {
}
/*
Обёртка вокруг видео внутри слайда. Слайд — это колонка из видео и подписи, поэтому обёртка
забирает всю высоту, оставшуюся после подписи и отступа, и центрирует в себе видео.
container-type: size нужен, чтобы cqw/cqh в .advdominion-lg__video-wrapper считались от этой
области, а не от всего слайда: иначе 16:9-блок вырастет на высоту подписи и наедет на неё.
*/
.advdominion-lg__video-area {
align-items: center;
container-type: size;
display: flex;
flex-grow: 1;
justify-content: center;
min-height: 0;
width: 100%;
}
.advdominion-lg__image {
max-height: 100%;
max-width: 100%;
}
.advdominion-lg__video-wrapper {
aspect-ratio: 16 / 9;
position: relative;
width: min(100cqw, calc(100cqh * 16 / 9));
}
.advdominion-lg__video {
border: none;
height: 100%;
left: 0;
position: absolute;
top: 0;
width: 100%;
}
div.advdominion-lg__video {
align-items: center;
display: flex;
justify-content: center;
}
.advdominion-lg__video_youtube {
}
.advdominion-lg__video_vk {
}
.advdominion-lg__caption {
}