@import "vars.less";

body {
	width: 100vw;
	overflow-x: hidden;
}

header {
	@media @mt {
		.sets {
			padding-top: 20px;
			margin-bottom: 35px;
		}
	}
	@media @d {
		h1 {
			float: left;
		}
		.sets {
			float: right;
			padding-top: 8px;
		}
	}
}

.sets {
	margin-bottom: -2px;
	input[type="text"], select {
		color: #000;
		padding: 0 10px;
	}
	input[type="text"], input[type="submit"], select {
		-webkit-appearance: none;
		appearance: none;
		height: 30px;
		border-radius: 0;
		font-size: 13px;
		background-color: #fff;
		font-weight: 500;
	}
	select {
		border: 0;
		background: url('/images/select-bg.svg') no-repeat;
		background-color: #f2f2f2;
		background-position: right 10px center;
		padding-right: 25px;
		-moz-appearance: none;
		text-indent: 0.01px;
		text-overflow: '';
		cursor: pointer;
		&:hover {
			background-color: #000;
			color: #fff;
			background-image: url('/images/select-bg-active.svg');
		}
		&.active {
			background-color: @orange;
			background-image: url('/images/select-bg-active.svg');
			color: #fff;
		}
	}
	.viewMode {
		margin-right: -5px;
		@media @mt {
			position: absolute;
			top: 19px;
			right: 20px;
		}
		@media @d {
			float: right;
			margin-left: 30px;
		}
		input {
			appearance: none;
			-webkit-appearance: none;
			-moz-appearance: none;
			border: 0;
			border-radius: 0;
			display: block;
			float: left;
			width: 30px;
			height: 30px;
			background: url('/images/viewmodes.svg') no-repeat left;
			opacity: 0.4;
			cursor: pointer;
			&:hover, &:checked {
				opacity: 1;
			}
			& + input {
				margin-left: 5px;
			}
			&.tilesView { background-position: top; }
			&.listView { background-position: bottom; }
		}
	}
	.filters {
		@media @td {
			select {
				margin-left: 20px;
			}
		}
		@media @d {
			float: left;
		}
	}
	.search {
		@media @d {
			float: left;
		}
		input {
			border: 1px solid #aaa;
			float: left;
		}
		input[type="text"] {
			color: #000;
			padding-bottom: 1px;
			@media @d { width: 140px; }
			border-right: 0;
			&::-webkit-input-placeholder {
				color: #aaa;
			}
			&::-moz-placeholder {
				color: #aaa;
			}
			&:-ms-input-placeholder {
				color: #aaa;
			}
			&:-moz-placeholder {
				color: #aaa;
			}
			&:hover,
			&:hover + input,
			&:focus,
			&:focus + input {
				border-color: #000;
			}
		}
		input[type="submit"] {
			color: #fff;
			border-left: 0;
			width: 30px;
			background: url('/images/search.svg') no-repeat center;
			cursor: pointer;
		}
	}
	@media @m {
		input[type="text"], select {
			width: 100%;
		}
		input[type="text"], input[type="submit"], select {
			margin-top: 5px;
		}
		.search input[type="text"] {
			width: ~"calc( 100% - 30px )";
		}
	}
	&:after {
		.clear;
	}
}




.subpages {
	.image {
		img {
			object-fit: cover;
			display: block;
			height: 100%;
			width: 100%;
		}
	}
	h2 {
		font-weight: 700;
		margin: 80px 20px 50px 0;
		font-size: 200%;
		padding-bottom: 13px;
		border-bottom: 5px solid #000;
		@media screen and (min-width: 1200px) {
			margin-right: 40px;
		}
	}
	&.categories {
		a {
			position: relative;
			background-color: @orange;
			&:hover {
				background-color: #000;
			}
			.info {
				position: absolute;
				left: 0;
				top: 50%;
				width: 100%;
				padding: 10px;
				transform: translateY(-50%);
				text-align: center;
				color: #fff;
				p {
					font-size: 26px;
					font-weight: 700;
					line-height: 1.2em;
					padding-bottom: 8px;
				}
			}
		}
	}
	&.tiles {
		a {
			vertical-align: top;
			.image {
				margin-bottom: 15px;
			}
			@media @m {
				margin-bottom: 30px;
				&:last-child {
					margin-bottom: 0;
				}
			}
			@media @td {
				margin-bottom: 30px;
				display: inline-block;
				vertical-align: top;
			}
		}
	}
	&.list {
		@media @mt {
			padding-left: 80px;
		}
		a {
			font-size: 0;
			@media @mt { margin-bottom: 25px; }
			@media @d {	float: left; margin-bottom: 35px; }
			.image {
				@media @mt { float:left; width: 60px; height: 60px; margin-left: -80px; }
				@media @d { width: 90px; height: 90px; margin-right: 25px; }
			}
			.info {
				padding-right: 30px;
				max-width: 290px;
			}
			.image, .info {
				display: inline-block;
				vertical-align: middle;
			}
			&:after {
				.clear;
			}
		}
	}
	a {
		display: inline-block;
		transition: all 0.3s @easing;
		transition-property: opacity, transform;
		.image {
			display: block;
			overflow: hidden;
			background-color: #000;
			img {
				transition: all 1s @easing;
				opacity: 0.96;
			}
		}
		&.image-loading {
			opacity: 0;
			transform: translateY(10px);
		}
		&:hover .image img {
			transform: scale(1.1);
			opacity: 0.9;
		}
		.title {
			p {
				display: inline;
				// border-bottom: 2px solid rgba(254,77,0,0);
				color: #000;
				white-space: pre-line;
				font-weight: 600;
				line-height: 1.2em;
				font-size: 16px;
				transition: color 0.2s @easing;
			}
		}
		.details {
			// color: #888;
			font-size: 12px;
			line-height: 1.4em;
			margin-top: 4px;
			p {
				display: inline;
				font-weight: 500;
				padding-right: 2px;
				& + p {
					&:before {
						display: inline;
						content: '|';
						margin-right: 6px;
					}
				}
			}
			.date {
				letter-spacing: 1px;
				white-space: nowrap !important;
			}
		}
		&:hover {
			.title p {
				color: @orange;
				// border-color: @orange;
			}
		}
	}
	&:after {
		.clear;
	}
}
