136 lines
No EOL
3.5 KiB
SCSS
136 lines
No EOL
3.5 KiB
SCSS
#hero{
|
|
width: 100vw;
|
|
position: relative;
|
|
left: calc(var(--padding-body)*-1);
|
|
|
|
figcaption{
|
|
color: var(--color-txt-light);
|
|
font-size: var(--fs-small);
|
|
@media #{$x-small}{ font-size: var(--fs-xsmall); }
|
|
padding: calc(var(--spacing)*0.5) var(--padding-body);
|
|
padding-bottom: 0;
|
|
|
|
|
|
}
|
|
|
|
figure{
|
|
width: 100%;
|
|
position: relative;
|
|
img{
|
|
width: 100%;
|
|
aspect-ratio: 2/1;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
.swiper-slide{
|
|
position: relative;
|
|
}
|
|
|
|
.swiper-button-prev, .swiper-button-next{
|
|
--swiper-navigation-sides-offset: 32px;
|
|
--swiper-navigation-size: 32px;
|
|
|
|
@media #{$x-small}{
|
|
--swiper-navigation-sides-offset: 15px;
|
|
--swiper-navigation-size: 15px;
|
|
}
|
|
opacity: 0.8;
|
|
|
|
// Position buttons relative to the image (16/9 aspect ratio)
|
|
// Calculate: 50% of image height = 50% * (9/16) of width
|
|
// Image is 100vw wide, so center at: (100vw * 9/16) / 2
|
|
top: calc(100vw * 9 / 2 - var(--swiper-navigation-size)*0.5);
|
|
margin-top: 0;
|
|
|
|
svg{ color: white; }
|
|
}
|
|
|
|
.swiper-pagination{
|
|
position: static;
|
|
margin-top: calc(var(--spacing)*0.5);
|
|
padding: 0 var(--padding-body);
|
|
text-align: center;
|
|
|
|
.swiper-pagination-bullet{
|
|
width: 15px;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
background: var(--color-txt-light);
|
|
// opacity: 0.4;
|
|
}
|
|
|
|
.swiper-pagination-bullet-active{
|
|
background: var(--color-txt);
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
|
|
|
|
.player-container{
|
|
width: 100%;
|
|
position: relative;
|
|
aspect-ratio: 2/1;
|
|
|
|
.extract, video{
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
position: relative;
|
|
}
|
|
|
|
|
|
|
|
.video-full{
|
|
width: 100%;
|
|
height: 100%;
|
|
iframe{
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
display: none;
|
|
}
|
|
|
|
#hero-play-video{
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
text-transform: uppercase;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
|
|
.btn--bold{
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1ch;
|
|
padding: 0 1ch;
|
|
opacity: 0.8;
|
|
&:hover{
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.text{
|
|
color: black;
|
|
line-height: 1;
|
|
padding-top: 4px;
|
|
}
|
|
|
|
svg{
|
|
width: 18px;
|
|
height: 18px;
|
|
fill: black;
|
|
opacity: 0.8;
|
|
// opacity: 0.7;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
|
|
} |