﻿.slideshow-wrapper {
	position: relative;
	overflow: hidden;
	max-width: 100%;
	margin: 10px auto;
}

.slideshow {
	display: flex;
	overflow-x: auto;
	scroll-behavior: smooth;
	gap: 5px;
	padding: 5px;
}

	.slideshow::-webkit-scrollbar {
		display: none;
	}

.slideshow-item {
	flex: 0 0 auto;
	width: 300px;
	height: 200px;
	background-size: cover;
	background-position: center;
	border-radius: 10px;
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
	position: relative;
}

	.slideshow-item::after {
		content: "";
		position: absolute;
		inset: 0;
		background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
		/*border-radius: 10px;*/
	}

.slideshow-content {
	position: relative;
	z-index: 2;
}

.slideshow-title {
	font-size: 1.1em;
	font-weight: bold;
}

.slideshow-subtitle {
	font-size: 0.9em;
	margin-top: 5px;
}

.slideshow-btn {
	margin-top: 10px;
	background: #f7c948;
	border: none;
	color: black;
	padding: 6px 12px;
	border-radius: 5px;
	cursor: pointer;
}

.slideshow-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0, 0, 0, 0.5);
	border: none;
	color: white;
	font-size: 24px;
	padding: 10px;
	cursor: pointer;
	z-index: 10;
}

.left-arrow {
	left: 10px;
	width: 30px;
	height: 50px;
	cursor: pointer;
	background-color: rgba(0,0,0,.7);
	position: absolute;
	z-index: 10;
	
	transition: all .2s ease;
	top: 50%;
	transform: translateY(-50%);
}

.right-arrow {
	right: 0;
	width: 30px;
	height: 50px;
	cursor: pointer;
	background-color: rgba(0,0,0,.7);
	position: absolute;
	z-index: 10;

	transition: all .2s ease;
	top: 50%;
	transform: translateY(-50%);
}

.slideshow-wrapper .slideshow-arrow {
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.slideshow-wrapper:hover .slideshow-arrow {
	opacity: 1;
	pointer-events: auto;
}

.slideshow {
	scroll-snap-type: x mandatory;
}

.slideshow-item {
	scroll-snap-align: start;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
	.slideshow-arrow {
		display: none;
	}
}


.slideshow-item::before {
	position: absolute;
	content: "";
	top: 0;
	left: 0;
	height: 100%;
	width: 100%;
	border: 1px solid hsla(0,0%,100%,.1);
	border-radius: 4px;
}

*, :after, :before {
	box-sizing: border-box;
}

.slideshow-item {
	position: relative;
	height: 200px;
	width: 340px;
	border-radius: 4px;
	box-shadow: 0 3px 10px 0 rgba(0,0,0,.4);
	overflow: hidden;
	cursor: pointer;
	background-color: #233430;
	background-position: 45% 0;
	background-repeat: no-repeat;
	background-size: auto 200px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 10px 0 0 10px;
}

	.slideshow-item:hover {
		-webkit-filter: brightness(1.2);
		filter: brightness(1.2);
	}

.slideshow {
	scroll-padding-inline: 10px;
	padding-left: 10px;
	/*height: 220px !important;*/
	scrollbar-width: none;
}

.slideshow-content {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
}

.slideshow-title {
	font-weight: 700;
	text-shadow: 0 0 5px rgba(21,60,52,.7);
	color: #00ffb6;
	font-size: 14px;
	line-height: 16px;
	margin: 0 10px 7px 0;
}

.slideshow-subtitle {
	-webkit-box-orient: vertical;
	line-clamp: 3;
	-webkit-line-clamp: 3;
	word-wrap: break-word;
	color: #fff;
	display: -webkit-box;
	font-family: "FuturaPTCond-BoldObl", "FuturaPTCond-Bold", "-apple-system", "sans-serif-condensed", "BlinkMacSystemFont", "Segoe UI", "Roboto", "Open Sans Condensed", sans-serif;
	font-size: 26px;
	font-style: oblique;
	line-height: 26px;
	margin-right: 5px;
	max-height: 78px;
	max-height: none;
	max-width: 202px;
	overflow: hidden;
	text-transform: uppercase;
	word-break: break-word;
}

.slideshow-btn {
	align-items: center;
	background: linear-gradient(to right, #fff, #fff, color(display-p3 1 .875 .106), color(display-p3 1 .875 .106));
	background-position: 100%, 50%;
	background-size: 300%, 100%;
	border-radius: 2px;
	color: #000;
	display: flex;
	font-size: 12px;
	font-weight: 700;
	height: 25px;
	justify-content: center;
	line-height: 15px;
	margin-top: 10px;
	min-width: 85px;
	padding: 0 10px;
	text-align: center;
}

.slideshow-undertitle {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	line-clamp: 3;
	-webkit-line-clamp: 3;
	overflow: hidden;
	word-break: break-word;
	word-wrap: break-word;
	line-height: 13px;
	max-height: calc(13px * 3);
	font-size: 10px;
	color: #fff;
	opacity: .6;
	vertical-align: bottom;
	text-shadow: 1px 1px rgba(39, 52, 49, .6);
	margin: 0 10px 7px 0;
	padding-top: 25px;
}