50 lines
1004 B
SCSS
50 lines
1004 B
SCSS
.imageSliderBlock {
|
|
position: relative;
|
|
padding-top: 56%;
|
|
background: var(--color-black);
|
|
color: var(--color-goldenBeige);
|
|
margin: calc(var(--spacing-sitepadding-block)*2) calc(var(--spacing-sitepadding-inline)*-1);
|
|
|
|
figure {
|
|
width: 100%;
|
|
height: 100%;
|
|
max-width: 1920px;
|
|
margin: 0 auto;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: relative;
|
|
|
|
>div {
|
|
height: 100%;
|
|
width: 100%;
|
|
}
|
|
|
|
img {
|
|
height: 100%;
|
|
width: 100%;
|
|
object-fit: contain;
|
|
min-height: 0;
|
|
}
|
|
|
|
figcaption {
|
|
position: absolute;
|
|
bottom: 0;
|
|
max-width: var(--size-width-p);
|
|
margin: 0 auto;
|
|
padding: .75rem var(--spacing-s);
|
|
font-size: var(--font-size-caption);
|
|
line-height: 1.4;
|
|
background: rgba(0, 0, 0, .6);
|
|
}
|
|
}
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
&[data-hero] {
|
|
margin-top: calc(var(--spacing-sitepadding-block)* -2);
|
|
}
|
|
} |