@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;
	}
}

#page {
	width: 100%;
	height: 100%;
	color: #fff;
	.newsList {

		position: absolute;
		z-index: 5;
		left: 40px;
		right: 40px;
		// top: 220px;
		// bottom: 260px;
		line-height: 1.2em;
		text-align: center;
		transform: translateY(-50%);
		top: 43%;

		@media @m1 {
			// top: 30%;
			font-size: 180%;
		}
		@media @m234 {
			// top: 34%;
		}
		@media @m2 {
			font-size: 250%;
		}
		@media @m34 {
			font-size: 280%;
		}
		@media @m56 {
			// top: 38%;
			font-size: 400%;
		}

		a {
			transition: color 0.15s ease;
		}
		a:hover {
			color: @red;
		}

		.slick-dots {
			margin-top: 0.3em;
			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 {
					background: #888;
				}
				&:hover button {
					background: @red;
				}
			}
		}
	}
}

#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;
				}
			}
			&:last-child {
				// background-color: rgba(100,100,100,.8);
				.title {
					opacity: 0.5;
				}
			}
		}
	}
}

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;
// 		}
// 	}
// }