HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/carrotps/carrotps.com/resources/sass/site/5-Components/_components.projector.scss
.c-projector {
	position: relative;
	height: 100%;
}

.c-projector__figure {
	@include mq($max: m) {
		//min-height: 66.67vw; // default photo aspect ratio (3/2)
	}

	display: grid;
	grid-template-rows: 1fr;
	grid-template-columns: 1fr;
	height: 100%;
}


.c-projector__caption {
	@include font-size(s);
	grid-column: 1;
	grid-row: 2;
	user-select: text;
	margin-top: space(1);
	color: palette(text, 3);
}

.c-projector__picture {
	grid-column: 1;
	grid-row: 1;
	align-self: end;
	height: 100%;
	display: block; // Needed for IE
	background-color: palette(neutral);
	opacity: 0;
	transition: opacity 0.5s;

	&.is-active {
		opacity: 1;
	}
}


.c-projector__control {
	grid-column: 1;
	grid-row: 1;
	align-self: end;
	margin-bottom: space(1);
	margin-right: space(1);
}

.c-projector__img {
	// make sure it stretches the container
	width: 100%;
	height: 100%;
	object-fit: cover; // Fallback for IE via JS polyfill

	@include mq($max: m) {
		max-height: 78vh; // Make sure images are visible entirely on small devices in landscape)
	}
}