/* Style
---------*/
body {
	background: #fff;
	color: #444;
	font-size: 1.125em;
	line-height: 1;
}

.wrap {
	box-sizing: border-box;
	max-width: 768px;
	padding: 0 1em;
}

h1,
h2 {
	font-family: 'myriad-pro', sans-serif;
	font-size: 1.5em;
	font-weight: 100;
	margin: 0 0 0.5em;
}

h1 {
	font-size: 2em;
}

h3 {
	font-family: 'myriad-pro', sans-serif;
	font-weight: 100;
	margin: 0 0 0.5em;
}

a {
	color: #3997d1;
}

video {

	/*	min-height: 100%;
		min-width: 100%; */
	height: 100%;
	object-fit: cover;
	width: 100%;
}

#pagecopy {
	max-width: none;
	padding: 0;
}

#pagecopy li {
	margin: 0 0 1em 0.5em;
}

#locModalContent {
	display: none;
}

.closeBtn {
}

@media (max-width: 560px) {
	#section {
		margin-top: -40px;
	}
}

#locModal {
	background-color: #333;
	height: 350px;
	color: #fff;
	background-image: url("default/world_map_bg.jpg");
	background-repeat: no-repeat;
	margin: 0 auto;
	padding-top: 60px;
	border: 0;
	text-align: center;
	max-width: 600px;
	-webkit-animation: .6s .6s fade backwards ease-out;
	animation: .6s .6s fade backwards ease-out;
}

@-webkit-keyframes fade {
	from {
		transform: translateY(1em);
		opacity: 0;
	}

}

@keyframes fade {
	from {
		transform: translateY(1em);
		opacity: 0;
	}

}

#locModal .head {
	min-height: 60px;
	background: #000;
	position: absolute;
	width: 100%;
	top: 0;
	left: 0;
}

#locModal .head:before {
	content: "";
	background: url('https://www.seatosummit.co.uk/images/srv/library/Branding/sea-to-summit-logo-2017-large.png') no-repeat 0px -14px #000;
	background-size: 230px 100px;
	float: left;
	width: 230px;
	height: 60px;
	margin: 0 0 0 16px;
}

#locModal h2 {
	font-size: 36px;
	text-transform: uppercase;
	margin: 54px 0 16px;
	font-weight: 600;
	line-height: 54px;
}

#locModal ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

#locModal li {
	margin-bottom: 10px;
	line-height: 24px;
}

#locModal li a {
	color: #ea9629;
	text-transform: uppercase;
	display: inline-block;
	font-size: 16px;
	text-decoration: none;
}

#locModal li a:hover {
	text-decoration: underline;
}

#locModal .closeBtn {
	font-size: 12px;
	padding: 0 0 0 10px;
	width: 90px;
	height: 60px;
	line-height: 60px;
	text-align: left;
	background: #000;
	position: static;
	float: right;
}

#locModal .closeBtn:before {
	content: "CLOSE";
	color: #67686b;
}

#locModal .closeBtn:after {
	content: "";
	background: url("default/close.jpg") no-repeat 0 0 #000;
	width: 28px;
	height: 28px;
	display: inline-block;
	vertical-align: middle;
	margin-left: 10px;
	cursor: pointer;
}

/* Sections
------------*/
section {
	overflow: hidden;
	position: relative;
}

section[data-maxsplit='1'] {
	color: #eee;
	min-height: 480px;
}

#parallax3 {
	min-height: 0;
}

section[data-maxsplit='1'] .block {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
	position: absolute;
}

#parallax3 .block {
	position: relative;
}

section[data-maxsplit='2'],
section[data-maxsplit='3'] {
	background: #111;
}

section[data-maxsplit='1'] h3,
section[data-maxsplit='2'] h3,
section[data-maxsplit='3'] h3 {
	color: #eee;
}

section ul {
	margin: 0;
	padding: 0;
}

/* Blocks
----------*/
.block {
	box-sizing: border-box;
	float: left;
	min-height: 320px;
	overflow: hidden;
	padding: 1em;
	position: relative;
	width: 100%;
	z-index: 2;
}

.block > a {
	box-sizing: border-box;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 2;
}

.block > a div {
	background-position: center;
	background-size: cover;
	height: 101%; /* 1% to avoid seams */
	left: 0;
	position: absolute;
	top: 0;
	width: 101%;
	transform: scale(1);
	transition-property: transform;
	transition-duration: 0.3s;
	transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.block > a:hover div {
	transform: scale(1.25);
	transition-duration: 16s;
}

.block > a h3 {
	color: #eee;
	display: inline-block;
	font-size: 2em;
	left: 0;
	position: absolute;
	text-align: center;
	top: 48px;
	width: 100%;
	z-index: 3;
	transform: translateY(16px);
	transition: transform 0.4s;
}

.block > a p {
	color: #eee;
	left: 0;
	opacity: 0 !important;
	position: absolute;
	text-align: center;
	top: 96px;
	width: 100%;
	z-index: 1;
	transition-delay: 0s;
	transition-duration: 0.5s;
}

.block > a:hover p {
	opacity: 1 !important;
}

#mattresses .block > a h3 {
	bottom: 48px;
	box-sizing: border-box;
	padding-right: 1em;
	text-align: right;
	top: auto;
}

#mattresses .block > a h3:before {
	content: '\2192';
	font-size: 1em;
	margin-right: 8px;
	position: relative;
	top: 2px;
}

@media (min-width:1282px) {

	/* Extra 2 pixels to exclude XPeria tablet landscape */
	#mattresses .block > a h3 {
		transform: translate3d(100%, 0, 0);
	}

}

.block > a:hover h3 {
	transform: translate3d(0, 0, 0) !important;
}

/* .block > ul {
	bottom: 16px;
	display: none;
	left: 0;
	position: absolute;
	text-align: center;
	width: 100%;
}
.block > ul li { display: inline-block; } */
#parallax3 .block > ul {
	position: static;
	text-align: left;
}

section[data-maxsplit='1'] .block {
	bottom: 0;
	min-height: 0;
}

section[data-maxsplit='2'] .block > a:before,
section[data-maxsplit='3'] .block > a:before {
	background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0));
	content: '';
	height: 50%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;
}

#mattresses .block > a:before {
	background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.4));
	bottom: 0;
	top: auto;
}

/* Parallax scenes
-------------------*/
.scene {
	height: 100%;
	left: 0;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	top: 0;
	width: 100%;
}

.scene .layer {
	height: 140%;
	left: 0;
	position: absolute;
	top: -20%;
	width: 100%;
	backface-visibility: hidden;
	transform: translate3d(0, 0, 0);
}

.scene .layer div {
	background-position: center;
	background-size: cover;
	height: 100%;
	width: 100%;
}

#parallax1 .layer > div {
	background-position: 72% 12%;
	background-repeat: no-repeat;
	background-size: 350%;
}

#parallax2 .layer div {
	background-position: right center;
}

/* Show rhs girl in mobile */

/* Section activation animation
--------------------------------*/
section h2,
section p,
section ul {
	opacity: 0;
	transform: translate3d(0, 24px, 0);
	transition: opacity 2s, transform 2s;
	transition-delay: 0.75s;
}

section.activated h2,
section.activated p,
section.activated ul {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

section .wrap {
	margin: 0 auto;
	max-width: 800px;
	padding: 2em 1em;
	text-align: center;
}

section h2 a {
	color: #fff;
	text-decoration: none;
}

/* Section specific styling
----------------------------*/
#parallax0 {
	background: #111;
	overflow: visible;
}

#parallax0:after {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

#parallax0 .block {
	bottom: 50%;
    left: 0;
    margin: 0;
    max-width: 480px;
    padding: 1em;
	position: absolute;
	background: none;
	-webkit-transform: translateY(50%);
	        transform: translateY(50%);
}

#parallax0 .layer {
	background: url('/images/src/parallax/home.jpg') no-repeat center transparent;
}

#steamVideo {
	display: none !important;
}

#parallax3 {
	background: #d7d7d7;
	color: #444;
}

#parallax3 .layer img {
	display: none;
	height: 100%;
}

/**
* Search
*/
#searchbox {
	background-color: rgba(0, 0, 0, 0.5);
}

/* Breakpoints
---------------*/
@media (min-width:360px) {
	#parallax1 .layer > div {
		background-position: 70% -70px;
	}

}

@media (min-width:400px) {
	#parallax1 .layer > div {
		background-position: center;
		background-size: cover;
	}

}

@media (min-width:560px) {
	.block > h3 {
		bottom: 48px;
	}

	#searchbox {
		top: 72px;
	}

}

@media (min-width:632px) {
	#locModal {
		top: 40%;
		left: 50%;
		width: 600px;
		margin: -119px 0 0 -300px;
	}

}

@media (min-width:768px) {
	#steamVideo {
		display: block !important;
	}

	#parallax0 .block {
		display: none;
	}

	/* Section specific positioning */
	#parallax0:after {
		display: none;
	}
}

@media (min-width:800px) {
	section[data-maxsplit='1'] {
		min-height: 640px;
	}

	section[data-maxsplit='1'] h1,
	section[data-maxsplit='1'] h2,
	section[data-maxsplit='1'] h3 {
		font-size: 3em;
	}

	section[data-maxsplit='1'] .block {
		background: none;
		margin: 1em;
		padding: 1em;
		width: 50%;
	}

	section[data-maxsplit='2'] .block {
		width: 50%;
	}

	section[data-maxsplit='3'] .block {
		width: calc(100% / 3 - 0.1px);
	}

	/* Activation effects */
	section[data-maxsplit='2'] .block,
	section[data-maxsplit='3'] .block {
		opacity: 0;
		transform: translate3d(0, 48px, 0);
		transition: opacity 1.2s, transform 1.2s;
		transition-delay: 0.5s;
	}

	section[data-maxsplit='2'].activated .block,
	section[data-maxsplit='3'].activated .block {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}

	section[data-maxsplit='2'] .block:nth-child(2),
	section[data-maxsplit='3'] .block:nth-child(2) {
		transition-delay: 0.75s;
	}

	section[data-maxsplit='3'] .block:nth-child(3) {
		transition-delay: 1s;
	}

	section .wrap {
		padding: 6em 1em;
	}

	#parallax1 .block {
		max-width: 480px;
		position: absolute;
		right: 10%;
		top: 40%;
	}

	#parallax2 .block {
		left: 20%;
		max-width: 560px;
		position: absolute;
		top: 40%;
	}

	#parallax3 {
		min-height: 400px;
	}

	#parallax3 .block {
		bottom: 50%;
		left: 25%;
		max-width: 600px;
		position: absolute;
		transform: translate3d(-50%, 50%, 0);
	}

	#parallax3 .layer img {
		left: 0;
		position: absolute;
	}

	#parallax3 .layer:last-child img {
		display: block;
	}

	#parallax3 .layer:nth-child(2) img {
		left: auto;
		right: 0;
	}

	#parallax3 .layer:first-child img {
		opacity: 0;
	}

	#parallax3.activated .layer:first-child img {

		/*	left: -20%; */
		opacity: 1;
	}

	#parallax3 .layer:last-child img {
		opacity: 0;
		right: -8%;
	}

	#parallax3.activated .layer:last-child img {
		opacity: 1;
	}

}

@media (min-width:1024px) {
	#searchbox {
		/* top: 75px; */
		top: 105px;
	}

}

@media (min-width:1200px) {
	h2 {
		font-size: 2.5em;
	}

	p {
		font-size: 1.125em;
	}

	#parallax0 h2,
	#parallax1 h2,
	#parallax2 h2,
	#parallax3 h2 {
		font-size: 3.5em;
	}

	.block {
		min-height: 400px;
	}

	#parallax0 .block {
		left: 50%;
		transform: translateX(-512px);
	}

	/*	#parallax3.activated .layer:first-child img { left: -12.5%; } */
	#parallax3.activated .layer:last-child img {
		right: -6%;
	}

}

@media (min-width:1400px) {
	section[data-maxsplit='1'] {
		min-height: 840px;
	}

	#parallax3 {
		height: 640px;
	}

	#parallax3 .block {
		left: 50%;
	}

	#parallax3 .layer {
		height: 150%;
	}

	#parallax3 .layer img {
		display: block;
	}

	#parallax3.activated .layer:first-child img {
		left: -25%;
	}

	#parallax3.activated .layer:last-child img {
		right: -20%;
	}

	.block {
		min-height: 560px;
	}

}

@media (min-width:1680px) {
	#parallax3.activated .layer:first-child img {
		left: -15%;
	}

	#parallax3.activated .layer:last-child img {
		right: -10%;
	}

}

@media (min-width:2000px) {
	section[data-maxsplit='1'] {
		min-height: 1100px;
	}

	#parallax3.activated .layer:first-child img {
		left: -10%;
	}

	#parallax3.activated .layer:last-child img {
		right: -5%;
	}

}
