﻿.adjustable-parallax {
	position: relative;
	height: 25vh;
}

.adjustable-parallax figure.parallax-clip {
	height: 100%;
	position: absolute;
	width: 100%;
	left: 0px;
	top: 0px;
	overflow: hidden;
	margin: 0;
	background: rgba(28, 35, 71, .8) !important;
}
.adjustable-parallax picture {
	position:absolute;
	left: -999em;
	top:-999em;
}
.adjustable-parallax-bg {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	background-size: cover;
	background-position: center top;
	background-attachment: fixed;
	filter: blur(10px); 
}
.adjustable-parallax-bg:after {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(28,35,71,.7);
}

.adjustable-parallax figcaption {
	text-align: center;
	justify-content: center;
	align-items: center;
	color: #fff;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 2rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.adjustable-parallax figcaption *{
	position:relative;
}
.adjustable-parallax figcaption h1{
	font-size: 1.5rem;
	text-transform: uppercase;
	line-height: 1.3;
	margin-bottom: 0;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 95%;
	color:#fff;
}
@media (min-width: 768px) {
  .adjustable-parallax figcaption h1 {
    font-size:1.8rem
  }
}

/* CSS specific to iOS devices */ 
@supports (-webkit-overflow-scrolling: touch) {
	.parallax-clip {
		clip: rect(auto, auto, auto, auto);
	}
	.fixed-parallax {
		position: fixed;
		background-attachment: unset;
		-webkit-transform: translateZ(0); /* necessary for iOS! */
	}
}