File: D:/HostingSpaces/SBogers10/otium.komma.nl/resources/sass/5-Components/_components.projector.scss
.c-projector {
display: grid;
grid-template-rows: 1fr;
grid-template-columns: 1fr;
height: 100%;
max-height: 90vh;
background-color: palette(primary, 500);
}
.c-projector__caption {
@include font-size(s);
grid-column: 1;
grid-row: 2;
user-select: text;
margin-top: space(1);
color: palette(neutral, 400);
}
.c-projector__picture {
grid-column: 1;
grid-row: 1;
align-self: end;
height: 100%;
display: block; // Needed for IE
background-color: palette(neutral, 100);
opacity: 0;
transition: opacity 500ms;
&.is-active {
opacity: 1;
}
}
.c-projector__img {
// make sure it stretches the container
width: 100%;
height: 100%;
max-height: 80vh;
object-fit: cover; // Fallback for IE via JS polyfill
background-color: palette(neutral, 200);
@include mq($max: m) {
max-height: 78vh; // Make sure images are visible entirely on small devices in landscape)
}
}
.c-projector__control {
grid-column: 1;
grid-row: 1;
align-self: center;
}