@import "vars.less";

.gallery {
	margin-top: 50px;
	a {
		display: block;
		@media @mt {
			margin: 0 15px 15px 0;
		}
		@media @d {
			margin: 0 20px 20px 0;
		}
		float: left;
		background-color: #000;
		img {
			display: block;
			transition: opacity 0.3s @easing;
			opacity: 0.96;
			@media @mt {
				height: 60px;
			}
			@media @d {
				height: 80px;
			}
		}
		&:hover img {
			opacity: 0.8;
		}
		figure {
			display: none;
		}
	}
	&:after {
		.clear;
	}
}

#article {
	.content {
		margin-bottom: 40px;
		line-height: 1.4em;
		& > *:first-child {
			margin-top: 0 !important;
		}
		&:empty {
			display: none;
		}
		&:after {
			.clear;
		}
		a {
			color: @orange;
			&:hover {
				text-decoration: underline;
			}
		}
	}
	h1 + h2 {
		margin-top: 5px;
	}
	@media @m {
		.infoPanel {
			margin-bottom: 50px;
		}
	}
	@media @td {
		.descriptions {
			float: left;
			width: 70%;
			padding-right: 70px;
		}
		.infoPanel {
			float: right;
			width: 30%;
		}
	}
	.mainImage {
		margin-top: 15px;
		margin-bottom: 30px;
		img {
			transition: opacity 0.2s @easing;
			cursor: pointer;
			opacity: 0.96;
			border: 1px solid #eee;
			background-color: #eee;
		}
		p {
			margin-top: 10px;
			font-size: 12px;
			line-height: 1.2em;
			color: #888;
		}
	}
	@media @mt {
		.mainImage {
			margin-bottom: 30px;
			img {
				display: block;
				width: 100%;
			}
		}
	}
	@media @d {
		.mainImage {
			img {
				display: block;
				width: 100%;
			}
		}
		&:after {
			.clear;
		}
	}
	h2 {
		@media @m {
			font-size: 25px;
		}
		@media @d {
			font-size: 30px;
		}
		line-height: 1.1em;
		font-weight: 500;
		white-space: pre-line;
		max-width: 600px;
		letter-spacing: -0.5px;
	}
	h3 {
		font-size: 26px;
		font-weight: 600;
		margin-top: 80px;
	}
	h3, h5 {
		color: @orange;
		font-size: 20px;
		line-height: 1.2em;
		font-weight: 600;
		margin: 60px 0 20px;
	}
	h4 {
		font-weight: 600;
		font-size: 16px;
		text-transform: uppercase;
		letter-spacing: 1px;
		margin: 40px 0 20px;
		line-height: 1.5em;
	}
	strong {
		font-weight: 600;
	}
	hr {
		width: 100%;
		max-width: 200px;
	    display: block;
	    height: 1px;
	    border: 0;
	    border-top: 2px solid @orange;
	    padding: 0;
		margin: 50px 0;
	}
	iframe {
		display: block;
		border: 0;
		@media @mt {
			height: 200px;
		}
		@media @d {
			height: 500px;
			width: 100%;
		}
		@media @hd {
			height: 650px;
		}
		& + iframe {
			margin-top: 50px;
		}
	}
	ul {
		li {
			line-height: 1.7em;
			padding-left: 15px;
			&:before {
				float: left;
				margin-left: -15px;
				display: inline-block;
				content: '•';
				color: #444;
			}
		}
		li + li {
			margin-top: 10px;
		}
	}
	.shortDesc {
		font-weight: 500;
		white-space: pre-line;
	}
	.downloads {
		margin-top: 30px;
		a {
			display: inline-block;
			background: @orange url('/images/download.svg') no-repeat left center;
			padding: 0 20px 0 49px;
			height: 42px;
			line-height: 41px;
			font-size: 16px;
			font-weight: 600;
			text-transform: uppercase;
			letter-spacing: 1px;
			color: #fff;
			&:hover {
				background-color: #000;
				text-decoration: none;
			}
			& + a {
				margin-left: 20px;
			}
		}
	}
	.details {
		p {
			display: block;
			padding: 8px 0 9px;
			border-top: 1px solid #888;
			.ellipsis;
		}
	}
	.shortDesc + .longDesc {
		margin-top: 20px;
	}
	.longDesc {
		p + p,
		p + ul,
		ul + p {
			margin-top: 15px;
		}
	}
	.translations {
		opacity: 0.6;
		border-top: 1px solid #777;
		padding-top: 30px;
		margin-top: 30px;
	}
	.bookDatesList {
		display: table;
		border-collapse: collapse;
		width: 100%;
		@media @m {
			& > div {
				border-top: 1px solid #ccc;
				padding: 15px 0;
			}
			.book {
				margin-top: 5px;
			}
		}
		@media @td {
			& > div {
				display: table-row;
				& > div {
					display: table-cell;
					border-top: 1px solid #ccc;
					padding: 15px 0;
				}
			}
			.freePlaces, .date {
				width: 1px;
				white-space: nowrap;
			}
			.freePlaces {
				padding-left: 20px;
				padding-right: 20px;
			}
			.date {
				padding-right: 20px;
			}
			.book {
				width: 1px;
			}
		}
		.title {
			font-weight: 700;
		}
		.book {
			span, a {
				display: inline-block;
				background-color: @orange;
				padding: 3px 8px 4px;
				color: #fff;
				font-weight: 700;
				white-space: nowrap;
			}
			span.inactive {
				background-color: #ddd;
				color: #888;
				cursor: default;
			}
			a.bookDate {
				cursor: pointer;
				&:hover {
					text-decoration: underline;
				}
			}
		}
	}
}


#zapisy {
	display: none;
}
#zapisy:target {
	display: block;
}
.modal {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(250,250,250, 0.8);
	z-index: 999;
	h3 {
		margin-top: 0 !important;
	}
	a {
		color: inherit !important;
	}
	.content {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 500px;
		line-height: 1.2em !important;
		transform: translate(-50%, -50%);
		background-color: #000;
		color: #fff;
		padding: 45px 50px;
		.info {
			color: #888;
			margin-bottom: 25px;
		}
		.eventName {
			font-weight: 700;
			font-size: 24px;
			margin-bottom: 12px;
			line-height: 1.3em;
		}
		.date {
			margin-bottom: 25px;
			line-height: 1.3em;
		}
		.date span {
			white-space: nowrap;
		}
		.date span:not(:last-child):after {
			content: '; ';
		}
		label {
			display: block;
		}
		label.checkbox {
			padding: 17px 0 17px 32px;
			font-size: 14px;
			cursor: pointer;
			a {
				text-decoration: underline;
			}
			input {
				border-color: #fff;
				float: left;
				margin-left: -32px;
				&:hover {
					border-color: @orange;
				}
				&:checked {
					background: #fff;
					box-shadow: 0 0 0 3px #000 inset;
				}
			}
		}
		label .title {
			display: inline-block;
			width: 100px;
			font-weight: 700;
		}
		label input[type="text"],
		label input[type="email"] {
			border: 0;
			height: 50px;
			width: 300px;
			font-size: 16px;
			background-color: transparent;
			color: #fff;
		}
		label + label {
			border-top: 1px solid #666;
		}
		button {
			border: 0;
			border-radius: 0;
			font-size: 18px;
			display: inline-block;
			background: @orange;
			color: #fff;
			padding: 0 15px 2px;
			height: 42px;
			font-weight: 700;
			cursor: pointer;
			float: right;
			margin-top: 40px;
		}
		button:hover {
			text-decoration: underline;
		}
		.close {
			display: inline-block;
			color: #aaa;
			font-size: 14px;
			margin-top: 40px;
			cursor: pointer;
			line-height: 38px;
			text-decoration: underline;
		}
		.close:hover {
			color: #ddd;
		}
		.alert h3 {
			font-weight: 700;
			color: @orange;
			margin-bottom: 20px;
			font-size: 24px;
		}
		.alert p {
			line-height: 1.4em;
			font-size: 18px;
		}
	}
}

.showTooltip {
	display: inline-block;
	position: relative;
	text-decoration: underline;
	.tooltip {
		display: none;
		position: absolute;
		left: 50%;
		bottom: 120%;
		width: 300px;
		font-weight: 500;
		background-color: #fff;
		transform: translateX(-50%);
		padding: 10px 12px 11px;
		font-size: 12px;
		line-height: 14px;
		color: #000;
		&:after {
			display: block;
			content: '';
			position: absolute;
			left: 50%;
			top: 100%;
			border-width: 6px;
			border-color: #fff transparent transparent transparent;
			border-style: solid;
			transform: translateX(-50%);
		}
	}
	&:hover .tooltip {
		display: block;
	}
}

input[type="radio"],
input[type="checkbox"] {
	display: inline-block;
	vertical-align: middle;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background: transparent;
	border: 3px solid #000;
	margin-right: 9px;
	margin-top: -2px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}
input[type="radio"]:hover,
input[type="checkbox"]:hover {
	border-color: #fff;
}
input[type="checkbox"] {
	border-radius: 2px;
}
input[type="checkbox"]:checked {
	background: #000;
	box-shadow: 0 0 0 3px @orange inset;
}
input[type="radio"] {
	border-radius: 100%;
}
input[type="radio"]:checked {
	background: #fff;
	border-color: #fff;
}


.organization {
	background-color: #ffffa1;
	padding: 1em;
	h4 {
		margin-top: 0 !important;
	}
	.title {
		text-transform: uppercase;
		font-size: 13px;
		letter-spacing: 0.2px;
		margin: 1em 0 0.2em;
	}
	.value {
	}
	i {
		opacity: 0.5;
		font-style: normal;
	}
}