@import "../../resources/scss/util/variables";
@import "../../resources/scss/util/mixins";
.block-video {
padding: 3em 0;
@include bp($lg){
padding: 6em 0;
}
text-align: center;
.overline {
color: var(--color);
}
.video-inner {
width: 100%;
max-width: 53.75rem;
margin: 0 auto;
}
.video-item {
position: relative;
overflow: hidden;
display: block;
border-radius: 32px;
img {
display: block;
aspect-ratio: 16 / 9;
object-fit: cover;
transition: transform 0.3s ease-in-out;
width: 100%;
}
.play-icon {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 5;
width: rem-calc(42);
height: rem-calc(42);
border-radius: 100%;
background-color: $white;
display: flex;
justify-content: center;
align-items: center;
transition: background-color 0.3s ease-in-out;
svg {
position: absolute;
top: 50%;
left: 55%;
transform: translate(-55%, -50%);
color: $primary;
transition: color 0.3s ease-in-out;
width: 17px;
}
@include bp($lg){
width: rem-calc(92);
height: rem-calc(92);
svg {
width: 34px;
}
}
}
&:hover {
.play-icon {
background-color: $white;
svg {
color: $secondary;
}
}
img {
transform: scale(1.02);
}
}
}
}