
.gallery {
	width: 100%;
}

.gallery-container {
	align-items: center;
	display: flex;
	height: 407px;
	margin: 0 auto;
}

.gallery-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
	height: 356px;
	opacity: .4;
	position: absolute;
	border-radius: 10px;
	transition: all .3s ease-in-out;
	width: 280px;
	z-index: 0;
	overflow: hidden;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .05), 0 1px 3px 0 rgba(0, 0, 0, .08);
}

.gallery-item .card-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
	height: 100%;
}

.gallery-item .vey-button {
	width: 100%;
	transition: all .3s ease-in-out;
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
	/* Safari only override */
	::i-block-chrome, .gallery-item .vey-button {
		flex: auto !important;
	}
}

.gallery-item .heading-image, .gallery-item img, .gallery-item .main-img, .gallery-item h3 {
	transition: all .3s ease-in-out;
}

.gallery-item .heading-image {
	display: flex;
	align-items: center;
}

.gallery-item .main-img img {
	margin: auto;
}

.gallery-item .main-img {
	display: flex;
	flex-grow: 3;
}

.gallery-item h3 {
	font-family: graphie, sans-serif;
	color: #fff;
	font-weight: 800;
	line-height: 45px;
	margin: 0;
}

.card-background-overlay {
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: .11;
	mix-blend-mode: overlay;
	position: absolute;
	top: 0;
	left: 0;
	width: 210%;
	height: 260%;
	z-index: -1;
}

.gallery-item.gallery-item-selected {
	height: 407px;
	opacity: 1;
	left: 50%;
	transform: translateX(-50%);
	width: 320px;
	z-index: 2;
	padding: 32px 22px;
}

.gallery-item.gallery-item-selected .heading-image {
	width: 277px;
	height: auto;
}

.gallery-item.gallery-item-selected .vey-button {
	height: 64px;
}

.gallery-item.gallery-item-selected .main-img {
	width: auto;
	height: 187px;
}

.gallery-item.gallery-item-selected h3 {
	font-size: 38px;
}

.gallery-item.gallery-item-previous, .gallery-item.gallery-item-next {
	height: 356px;
	opacity: 1;
	width: 280px;
	z-index: 1;
	padding: 28px 16px;
}

.gallery-item.gallery-item-previous .heading-image, .gallery-item.gallery-item-next .heading-image {
	width: 193px;
	height: auto;
}

.gallery-item.gallery-item-previous .vey-button, .gallery-item.gallery-item-next .vey-button {
	height: 56px;
}

.gallery-item.gallery-item-previous .main-img, .gallery-item.gallery-item-next .main-img {
	height: 158px;
	width: auto;
}

.gallery-item.gallery-item-previous h3, .gallery-item.gallery-item-next h3 {
	font-size: 36px;
}

.gallery-item.gallery-item-previous {
	left: 30%;
	transform: translateX(-81%);
}

.gallery-item.gallery-item-next {
	left: 70%;
	transform: translateX(-19%);
}

.gallery-item.gallery-item-first {
	left: 15%;
	transform: translateX(-50%);
}

.gallery-item.gallery-item-last {
	left: 85%;
	transform: translateX(-50%);
}

.gallery-controls {
	display: flex;
	justify-content: center;
	margin: 30px 0;
}

.gallery-controls button {
	border: 0;
	cursor: pointer;
	font-size: 16px;
	margin: 0 20px;
	padding: 0 12px;
	text-transform: capitalize;
}

.gallery-controls button:focus {
	outline: none;
}

.gallery-controls-previous {
	position: relative;
}

.gallery-controls-previous::before {
	border: solid #000;
	border-width: 0 2px 2px 0;
	content: "";
	display: inline-block;
	height: 4px;
	left: -10px;
	padding: 2px;
	position: absolute;
	top: 0;
	transform: rotate(135deg) translateY(-50%);
	transition: left .15s ease-in-out;
	width: 4px;
}

.gallery-controls-previous:hover::before {
	left: -18px;
}

.gallery-controls-next {
	position: relative;
}

.gallery-controls-next::before {
	border: solid #000;
	border-width: 0 2px 2px 0;
	content: "";
	display: inline-block;
	height: 4px;
	padding: 2px;
	position: absolute;
	right: -10px;
	top: 50%;
	transform: rotate(-45deg) translateY(-50%);
	transition: right .15s ease-in-out;
	width: 4px;
}

.gallery-controls-next:hover::before {
	right: -18px;
}

.gallery-nav {
	display: flex;
	justify-content: center;
	list-style: none;
	padding: 0;
	position: absolute;
	width: 100%;
	margin-top: 16px;
}

.gallery-nav .gallery-nav-item {
	background: #fff;
	opacity: .6;
	border-radius: 7.5px;
	height: 8px;
	margin: 0 8px;
	width: 8px;
	cursor: pointer;
}

.gallery-nav .gallery-item-selected {
	background: #044656;
	opacity: 1;
}

@media only screen and (max-width: 767px) {
	.gallery-container {
		height: 305px;
	}
	
	.gallery-item .main-img img {
		margin-bottom: auto;
	}
	
	.gallery-item.gallery-item-previous, .gallery-item.gallery-item-next, .gallery-item.gallery-item-selected {
		height: 305px;
		width: 240px;
	}
	
	.gallery-item.gallery-item-previous .vey-button, .gallery-item.gallery-item-next .vey-button, .gallery-item.gallery-item-selected .vey-button {
		position: absolute;
		bottom: 0;
		margin-bottom: 16px;
		width: 208px;
	}
	
	.gallery-item.gallery-item-previous .vey-button, .gallery-item.gallery-item-next .vey-button, .gallery-item.gallery-item-selected .vey-button, .gallery-item.gallery-item-previous .vey-button .large, .gallery-item.gallery-item-next .vey-button .large, .gallery-item.gallery-item-selected .vey-button .large {
		height: 48px;
		margin-top: auto;
	}
	
	.gallery-item.gallery-item-previous {
		transform: translateX(-125%);
	}
	
	.gallery-item.gallery-item-next {
		transform: translateX(25%);
	}
	
	.gallery-item.gallery-item-selected, .gallery-item.gallery-item.gallery-item-previous, .gallery-item.gallery-item-next {
		padding: 28px 16px;
	}
	
	.gallery-item.gallery-item-previous .heading-image, .gallery-item.gallery-item-selected .heading-image, .gallery-item.gallery-item-next .heading-image {
		width: auto;
		height: 37px;
	}
	
	.gallery-item.gallery-item-selected .main-img {
		width: auto;
		height: 140px;
	}
	
	.gallery-item.gallery-item-previous .main-img, .gallery-item.gallery-item-next .main-img {
		width: auto;
		height: 140px;
	}
	
	.gallery-item h3 {
		line-height: 32px;
	}
	
	.gallery-item.gallery-item-selected h3 {
		font-size: 28px;
	}
	
	.gallery-item.gallery-item-previous h3, .gallery-item.gallery-item-next h3 {
		font-size: 28px;
	}
	
	.gallery-item .spacer-mobile {
		margin-bottom: 28px;
	}
}

@media all and (-ms-high-contrast: none) {
	/* IE11 */
	*::-ms-backdrop, .gallery-container {
		align-items: flex-start;
	}
	
	*::-ms-backdrop, .gallery-item .heading-image {
		display: block;
		height: 37px !important;
	}
	
	*::-ms-backdrop, .gallery-item.gallery-item-previous .main-img, .gallery-item.gallery-item-next .main-img {
		display: block;
		height: 0px !important;
		width: 243px !important;
	}
	
	*::-ms-backdrop, .gallery-item.gallery-item-selected .main-img {
		display: block;
		width: 277px !important;
		height: 0px !important;
		padding-top: 16px;
		z-index: -1;
	}
	
	*::-ms-backdrop, .gallery-item.gallery-item-selected h3 {
		margin-top: 16px;
	}
}
