@import '_vars.less';

body {
	background-color: #000;
	position: relative;
	min-height: 600px;
	@media @m3 {
		min-height: 500px;
	}
	@media @m4 {
		min-height: 640px;
	}
	@media @m56 {
		min-height: 640px;
	}
}

body:before {
	display: none;
}

#page {
	width: 100%;
	height: 100%;
	color: #fff;
	position: absolute;
    left: 0;
    top: 0;
	overflow: hidden;
	#newsCarousel {

		position: absolute;
		line-height: 1.2em;
		text-align: center;
		z-index: 5;
		top: 43%;

		@media @m1 {
			left: 40px;
			right: 40px;
			transform: translateY(-50%);
			font-size: 150%;
			top: 38%;
		}
		@media @m23456 {
		    left: 50%;
		    width: 40%;
		    transform: translate(-50%, -50%);
		}
		@media @m2 {
			font-size: 200%;
		}
		@media @m34 {
			font-size: 225%;
		}
		@media @m56 {
			font-size: 250%;
		}

		a {
			transition: color 0.15s ease;
			text-decoration: none;
		}
		#newsList .item:not(:first-child) {
			display: none;
		}
		a:hover {
			color: @redongrey;
		}

		.custom-dots-container {
			display: flex;
			gap: 2px;
			width: fit-content;
			margin: 0.5em auto 0;
			align-items: center;
		}
		#toggleCarousel {
			all: unset;
			font-size: 0;
			line-height: 0;
			cursor: pointer;
			padding: 4px;
			&:before, &:after {
				display: inline-block;
				content: '';
				height: 12px;
				width: 4px;
				margin: 0 2px;
				background: #fff;
				border-radius: 2px;
			}
			&:not(.active) {
				opacity: 0.5;
			}
			&.active {
				&:before, &:after {
					background-color: @redongrey;
				}
			}
			&:hover {
				opacity: 0.75;
			}
		}
		.slick-dots {
			font-size: 0;
			line-height: 0em;
			li {
				font-size: 0;
				line-height: 1em;
				cursor: pointer;
				padding: 8px;
				display: inline-block;
				button {
					all: unset;
					display: inline-block;
					font-size: 0;
					width: 9px;
					height: 9px;
					border-radius: 50%;
					background: #fff;
					transition: background 0.1s ease;
				}
				&:not(.slick-active) button {
					opacity: 0.5;
				}
				&:hover button {
					opacity: 0.75;
				}
				&.slick-active button {
					background-color: @redongrey;
				}
			}
		}
	}
}

#sidebar {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	color: #fff;
	z-index: 5;
	opacity: 0;
	transition: opacity 0.9s ease 0.3s;
	.nav {
		@media @m1 {
			padding: 20px 20px;
		}
		@media @m23456 {
			padding: 20px 40px;
		}
		.categories {
			font-size: 125%;
			@media @m1 {
				text-align: center;
			}
			@media @m23456 {
				float: left;
			}
			button {
				all: unset;
				color: #aaa;
				cursor: pointer;
				@media @m1 {
					padding: 0 7px;
				}
				@media @m23456 {
					display: block;
					float: left;
					margin-right: 25px;
				}
				&:hover {
					text-decoration: underline;
				}
				&.active {
					color: #fff;
				}
			}
		}
		.seeAll {
			@media @m1 {
				display: none;
			}
			@media @m23456 {
				float: right;
			}
			a {
				&:not(:first-child) {
					display: none;
				}
				&:hover {
					text-decoration: underline;
				}
			}		
		}
		&:after {
			.clear;
		}
	}
	.list {
		overflow-x: hidden;
		width: 100%;
		font-size: 0;
		padding-left: 50px;
		transition: padding 0.9s ease 0.3s;
		.list-content {
			width: fit-content;
			white-space: nowrap;
			transition: all 0.5s @easing;
			transition-property: transform, top, opacity;
			height: 100%;
			position: relative;
			top: 0px;
			&.hidden {
				top: 30px;
				opacity: 0;
			}
			&:not(:first-child) {
				display: none;
			}
		}
		.item {
			white-space: normal;
			vertical-align: top;
			font-size: 14px;
			display: inline-block;
			@media screen and (max-width: 374px) {
				height: 200px;
				width: 200px;
			}
			@media screen and (min-width: 375px) and (max-width: 600px) {
				height: 50vw;
				width: 50vw;
			}
			@media screen and (min-width: 601px) and (max-width: 700px) {
				height: 33.3vw;
				width: 33.3vw;
			}
			@media screen and (min-width: 701px) and (max-width: 1000px) {
				height: 25vw;
				width: 25vw;
			}
			@media screen and (min-width: 1001px) and (max-width: 1200px) {
				height: 20vw;
				width: 20vw;
			}
			@media screen and (min-width: 1201px) and (max-width: 1400px) {
				height: 16.6vw;
				width: 16.6vw;
			}
			@media screen and (min-width: 1401px) {
				height: 14.28vw;
				width: 14.28vw;
			}
			border-width: 1px 1px 0 0;
			border-color: #fff;
			border-style: solid;
			position: relative;
			transition: background-color 0.1s @easing;
			cursor: pointer;
			&:first-child {
				border-left-width: 1px;
			}
			&:hover {
				background-color: @red;
			}
			.title {
				font-size: 125%;
				max-width: 230px;
				padding: 12px 10px 12px 15px;
			}
			.date {
				padding: 12px 30px 12px 15px;
				line-height: 1.3em;
				opacity: 0.5;
				position: absolute;
				bottom: 0;
			}
			&.bookings {
				&:after {
					display: block;
					content: 'R';
					color: @red;
					padding: 13px 15px;
					position: absolute;
					right: 0;
					bottom: 0;
					pointer-events: none;
				}
				&:hover:after {
					color: #fff;
				}
			}
		}
	}
}

body.touch-device {
	#sidebar .list {
		overflow-x: scroll;
		-webkit-overflow-scrolling: touch;
	}
}

body.loaded {
	#sidebar {
		opacity: 1;
		.list {
			padding-left: 0;
		}
	}
}

.background {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.5s ease;
	background: #161616;
	& > div {
		height: 100%;
		position: relative;
		.image {
			height: 100%;
			background-size: cover;
			background-position: center;
			opacity: 0.5;
		}
		video {
			min-width: 100%;
			min-height: 100%;
		}
		.author {
			@media @m12 {
				display: none;
			}
			@media @m3456 {
				position: absolute;
				right: 0;
				bottom: 0;
				z-index: 1;
				color: #fff;
				opacity: 0;
				font-size: 10px;
				font-weight: 500;
				padding: 15px 40px;
				transition: opacity 2s @easing 1s;
				a {
					text-decoration: underline;
					&:hover {
						opacity: 0.6;
					}
				}
			}
		}
	}
}
body.loaded {
	.background {
		opacity: 1;
	}
}
// body.loaded {
// 	.background {
// 		.image {
// 			opacity: 0.5;
// 		}
// 	}
// }


@media screen and (max-width: 1000px) {
	#eu-mobile {
		display: block !important;
		position: absolute;
		right: 44px;
		top: 60px;
		height: 32px;
		z-index: 8;
	}
}
@media screen and (max-width: 700px) {
	#eu-mobile {
		right: 16px;
		top: 55px;
	}
}