// out: ../styles.css

@import "_variables";
@import "_mixins";
@import "_header";
@import "_footer";
@import "_genealogy";

/* general styles */ 
* {
	box-sizing: border-box;
}

html {
	background-color: @color-background;
}

html,
body {
	.light(14);
	line-height: 22px;
	color: @color-text;
	padding: 0;
	margin: 0;
}

p {
	display: block;
	margin-top: 0;
	margin-bottom: 32px;
}

li {
	list-style: none;
}

.no-scroll {
	height: 100%;
   overflow-y: hidden;
}

/* global elements */
.title-block {
	margin: 64px 0;
	text-align: center;
	&--level-2 {
		margin-top: 36px;
		margin-bottom: 36px;	
	}
}
	
.title-text {
	.title(60, 300);
	line-height: 80%;
	&--secondary {
		.title(36, 300);
	}
	&--tertiary { 
		.title(24, 300);
	}
}

.button {
	display: inline-block;
	margin: auto;
	width: auto;
	height: 42px;
	padding: 8px 24px;
	background: @color-text;
	color: @color-background;
	.bold(16);
	line-height: 22px;
	text-align: center;
	text-decoration: none;
	border-radius: 50px;
	opacity: 1;
	transition: opacity 350ms ease;
	&:hover {
		cursor: pointer;
		opacity: .7;
	}
	&--small {
		height: 32px;
		.regular(14);
		padding: 4px 16px;
	}
}

.container {
	display: block;
	width: 100%;
	min-height: calc(~"100vh - 84px");
	max-width: @container-width;
	margin: auto;
	&__content {
		min-height: calc(~"100vh - 84px");
		padding: 106px 48px 24px 48px;
	}
}

.scroll-to-top {
	display: none;
	position: fixed;
	bottom: 50px;
	right: 150px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: @color-text;
	opacity: .8;
	transition: opacity 150ms ease;
	z-index: 100;
	&:hover {
		cursor: pointer;
		opacity: 1;
	}
	&:before {
		content: '';
		display: block;
		position: absolute;
		width: 1px;
		height: 1px;
		border: transparent 12px solid;
		border-bottom: @color-black 12px solid;
  	left: 12px;
    top: -2px;
	}
	&:after {
		content: '';
		display: block;
		position: absolute;
		width: 12px;
		height: 12px;
		background: @color-black;
		left: 18px;
    top: 23px;
	}
	@media all and (max-width: @container-width) {
		right: 20px;	
	}

}

/* Home elements */
.home-news {
	line-height: normal;
	min-height: 42vh;
	margin-left: calc(~"(100vw - (@{container-width} - 84px)) / -2");
	margin-right: calc(~"(100vw - (@{container-width} - 84px)) / -2");
  background-position: right;
  background-repeat: no-repeat;
  background-size: auto 100%;
	&__content { 
		padding: 7% 0;
		text-align: center;
	}
	&__text {
		.light(16);
	}
}
.home-presentation {
	padding-top: 40px;
	&__content {
		text-align: center;
	}
	&__thumbs {
		white-space: nowrap;
	}
	&__thumb {
		display: inline-block;
		margin: 30px;
	}
}

.presentation {
	display: flex;
  max-width: 768px;
  margin: auto;
  margin-bottom: 16px;
  align-items: center;
	&__thumb {
    flex-basis: 100px;
		width: 100px;
		height: 100px;
		border-radius: 50%;
		overflow: hidden;
		img {
			width: 100%;
			height: auto;
			transition: all 350ms ease;
			&:hover {
				transform: scale(1.2);
			}
		}
	}
	&__text {
		.light(18);
		flex-basis: calc(100% - 100px);
		padding-left: 24px;
	}
}

/* Album page elements */
.background {
	position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    background-color: @color-black;
    &__image {
    	position: fixed;
	    top: 0;
	    left: 0;
	    right: 0;
	    bottom: 0;
	    z-index: -1;
	    opacity: .4;
	    background-position: center center;
	    background-repeat: no-repeat;
	    background-size: cover;
    }
}

.album {
	&__row {
		display: flex;
		justify-content: space-between;
		margin-bottom: 47px;
		> * {
			flex-basis: 47%;
		}
	}
	&__cover {
		width: 100%;
		height: auto;
	}
	&__words {
		font-style: italic;
	}
	&__tracks {	
		padding-left: 0;
		margin-bottom: 32px;
		.number {
			.light(11);
		}
		.duration {
			.light(11);
		}
	}
	&__credits {
		padding-left: 0;
	}
	&__credit {
		display: flex;
		margin-bottom: 10px;
		.text {
			&:first-child {
				white-space: nowrap;
				padding-right: 4px;
			}
		}
	}
	&__videos {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		margin-bottom: 47px;
	}
	&__video {
		flex-basis: 32%;
		flex-grow: 1;
		> iframe {
			max-width: 100%;
		}
	}
}

/* Recordings page styles */
.recordings {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin-top: 60px;
	&__item {
		flex-basis: 25%;
		margin-bottom: 36px;
		padding-left: 16px;
		text-align: center;
	}
	&__cover {
		display: block;
		width: 100%;
		height: auto;
		margin-bottom: 16px;
		overflow: hidden;
	    box-shadow: 0 5px 15px 0 rgba(0,0,0,.7);
		img {
			display: block;
			width: 100%;
			height: auto;
			transition: all 350ms ease;
			transform: scale(1.0);
		}
		&:hover {
			img {
				transform: scale(1.05);
			}
		}
	}
	&__name {
		.regular(20);
		color: @color-text;
		text-decoration: none;
		margin-bottom: 4px;
	}
	&__release {
		.light(14);
		color: @color-white;
		margin-bottom: 16px;
	}
	&__action {

	}
}

.tags {
	margin-bottom: 24px;
	&__tag {
		display: inline-block;
		color: @color-black;
		background: @color-text;
		border-radius: 16px;
		padding: 4px 12px;
		margin: 8px;
		text-decoration: none;
		&:hover {
			cursor: pointer;
		} 
	}
}
	

@keyframes rotateVinyl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(359deg);
  }
}

/* Vinyls */
.vinyls,
.instruments {
	&__section {
		padding: 12px 0; 
	}
	&__title {
		border-bottom: @color-text 1px solid;
		color: @color-text;
		display: block;
		margin-bottom: 12px;
		padding-bottom: 12px;
		position: relative;
    padding-left: 50px;
    text-decoration: none;
    width: 100%;
    > img {
    	position: absolute;
    	left: -10px;
    	border: #dac5a8 1px solid;
    	border-radius: 50%;
    	top: -7px;
    }
    small {
    	font-family: @sans-serif-light;
    	font-size: 16px;
    }
	}
	&__items {
		display: flex;
		flex-wrap: wrap;
		box-sizing: border-box;
	}
	&__item {
		flex-basis: 25%;
		margin: 0;
		padding: 20px;
		width: 25%;
		text-align: center;
		position: relative;
	}
	&__format {
		font-size: 12px;
		font-style: italic;
		line-height: 15px;
	}
	&__picture {
		display: block;
		margin: auto;
		max-width: 85%;
		position: relative;
		img {
			width: 100%;
			height: auto;
		}
		&--lp {
			position: absolute;
			top: 0;
			left: 0;
			&:nth-child(3) {
				transition: left .5s ease;
			}
			&:nth-child(4) {
				transition: left .5s ease;
				transition-delay: .25s;
			}
			&:nth-child(5) {
				transition: left .5s ease;
				transition-delay: .5s;
			}
			&:nth-child(6) {
				transition: left .5s ease;
				transition-delay: .75s;
			}
		}
		&:hover {
			cursor: pointer;
			.vinyls__picture--lp {
				animation: rotateVinyl 2s linear infinite;
				animation-delay: 350ms;
				&:nth-child(3) {
					left: 65%;
				}
				&:nth-child(4) {
					left: 85%;
				}
				&:nth-child(5) {
					left: 105%;
				}
				&:nth-child(6) {
					left: 125%;
				}
			}
		}
		.sold {
			text-transform: uppercase;
			position: absolute;
	    top: 33%;
	    left: 0;
	    width: 100%;
	    text-align: center;
	    font-weight: 700;
	    color: #C40;
	    font-size: 16px;
	    text-shadow: 0 0 3px #FFF0, 0 0 5px #000;
	    transform: rotateZ(-6deg);
		}
	}
}
.instruments {
	&__item {
		flex-basis: 20%;
		padding: 20px;
		width: 20%;
		text-align: center;
		position: relative;
	}
	&__picture {
		position: relative;
		> img {
			transition: all 1s ease;
		}
		.img_front {
			opacity: 1;
		}
		.img_back {
			opacity: 0;
			position: absolute;
			top: 0;
			left: 0;
		}
		&:hover {
			.img_front {
				opacity: 0;
			}
			.img_back {
				opacity: 1;
			}
		}
	}
}
.overlay {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: @color-black;
	opacity: .5;
	z-index: 100;
}
.vinyl-popin {
	display: none;
	background: lighten(@color-text, 5%);
	border-radius: 5px;
	color: @color-black;
	padding: 50px 40px 40px 40px;
	position: fixed;
	min-width: 500px;
	max-width: 800px;
	max-height: 90%;
	overflow-y: auto;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 101;
	&__cover {
		float: left;
		margin-right: 8px;
		img {
			height: 90px;
			width: auto;
		}		.number {
			font-size: 9px;
		}
		.title {
			font-size: 11px;
		}
	}
	&__title {
		font-size: 24px;
		margin-bottom: 4px;
		white-space: nowrap;
	}
	.duration {
		margin-left: 5px;
	}
	&__artist {
		font-size: 16px;
		font-weight: 400;
	}
	&__format {
		font-size: 12px;
		font-style: italic;
		line-height: 15px;
	}
	&__track {
		> * {
			display: inline-block;
			vertical-align: top;
		}
		&.new-side {
			margin-top: 12px;
		}
		.number {
			padding-top: 1.5px;
		}
		.subtracks {
			.number {
				font-size: 10px;
			}
			.title {
				font-size: 12px;
			}
			.duration {
				font-size: 10px;
			}
		}
	}
	&__credits {
		font-size: 12px;
		line-height: 18px;
		margin-top: 20px;
		p {
			margin-bottom: 10px;
		}
		strong {
			font-weight: 400;
		}
	}
	.album__tracks {
		margin-bottom: 0;
		margin-left: 26px;
		> li:first-child {
			font-weight: 400;
			margin-bottom: 8px;
			margin-left: -24px;
		}
	}
	.album__lp {
		width: 20px;
		position: relative;
		vertical-align: middle;
		margin-left: -27px;
		margin-right: 4px;
	}
	.close {
		position: absolute;
		top: 10px;
		right: 10px;
		display: block;
    width: 24px;
    height: 24px;
    border: @color-black 1px solid;
    border-radius: 50%;
		&:before,
		&:after {
			content: '';
			display: block;
			width: 16px;
			height: 1px;
			background: @color-black;
			position: absolute;
	    top: 10px;
    	left: 3px;
		}
		&:before {
			transform: rotateZ(45deg);
		}
		&:after {
			transform: rotateZ(-45deg);
		}
		&:hover {
			cursor: pointer;
		}
	}
}


/* Photos / drawings page styles */
.fancybox {
	&__content {
		img {
			pointer-events: none;
		}
	}
	&__caption {
		text-align: center;
		color: @color-text !important;
		.light(18);
		> i {
			.light(14);
		}
	}
}
.galleries {
	&__header {
		display: flex;
		position: relative;
	}
	&__mark {
		position: absolute;
		bottom: 1px;
		display: block;
		height: 3px;
		background: @color-text;
		left: 0;
		width: 0;
		transition: all 350ms ease;
	}
	&__sections {
		display: flex;
		position: relative;	
	}
	&__section {
		border-bottom: @color-text 1px solid;
		padding: 0 24px;
		.title-text--secondary {
			transition: opacity 150ms ease;
			opacity: .5;
		}
		&--active {
			.title-text--secondary {
				opacity: 1;
			}
		}
		&:hover {
			cursor: pointer;
			.title-text--secondary {
				opacity: 1;
			}
		}
	}
	&__content {
		white-space: nowrap;
		overflow: hidden;
	}
	&__slider {
		position: relative;
		left: 0;
		font-size: 0;
		transition: left 350ms ease;
	}
}
.photos,
.drawings {
	display: inline-block;
	position: relative;
	&__content {
		display: flex;
		flex-wrap: wrap;
		justify-content: flex-start;
		margin-top: 60px;
	}
	&__item {
		flex-basis: 25%;
		margin: 0 0 36px 0;
		padding-left: 8px;
		padding-right: 8px;
		text-align: center;
	}
	&__picture {
		display: block;
		width: 100%;
		height: auto;
		margin-bottom: 16px;
		overflow: hidden;
		figure {
			margin: 0;
		}
    img {
			display: block;
			width: 100%;
			height: auto;
			transition: all 350ms ease;
			transform: scale(1.0);
			box-shadow: 0 5px 15px 0 rgba(0,0,0,.7);
		}
		figcaption {
			margin-top: 8px;
		}
		&:hover {
			img {
				transform: scale(1.05);
			}
		}
	}
	&__name {
		.light(18);
		color: @color-text;
		text-decoration: none;
		margin-bottom: 4px;
		white-space: normal;
		> i {
			.light(14);
		}
	}
}
.drawings {
	&__item {
		flex-basis: 20%;
	}
}

/* overlay at start */
.mfp-fade.mfp-bg {
  opacity: 0;

  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}
/* overlay animate in */
.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.8;
}
/* overlay animate out */
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

/* content at start */
.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;

  -webkit-transition: all 0.15s ease-out;
  -moz-transition: all 0.15s ease-out;
  transition: all 0.15s ease-out;
}
/* content animate it */
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}
/* content animate out */
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
}

.form {
	width: 100%;
	max-width: 500px;
	margin: auto;
	&__content {
		text-align: center;
	}
	&__field {
		width: 100%;
		display: flex;
		padding: 8px 0;
		&--hidden {
			display: none;
		}
	}
	&__label {
		.regular(15);
		padding: 16px 0;
		flex-basis: 30%;
		&--required {
			&:after {
				content: ' *';
			}
		}
	}
	&__input {
		padding: 16px;
		flex-basis: 70%;
		&--text {
			min-height: 200px;
		}
	}
	&__actions {
		padding-top:	16px;
		text-align: center;
	}
}


@media all and (max-width: @container-width) {
	.home-news {
		margin-left: -48px;
		margin-right: -48px;
	}
}

/* Tablet breakpoint */
@media all and (max-width: @screen-l) {

	.button {
		&--buy {
			float: none; 
			margin-top: 0; 
		}
	}

	.recordings {
		&__item {
			flex-basis: 33%;
		}
	}

	.galleries {
		&__header {
			overflow-y: hidden;
			height: 75px;
		}
		&__sections {
			overflow-x: scroll;
			height: 90px;
			padding-bottom: 15px;
		}
	}

	.photos {
		&__item {
			flex-basis: 33%;
		}
	}
	.drawings {
		&__item {
			flex-basis: 25%;
		}	
	}

}

@media all and (max-width: @screen-m) {
	
	.container {
		min-height: calc(~"100vh - 112px");
		&__content {
			min-height: calc(~"100vh - 112px");
			padding: 96px 16px 24px 16px;
		}
	}

	.home-news {
		margin-left: -16px;
		margin-right: -16px;
	}

	.vinyls,
	.instruments {
		&__tags {
			display: flex;
    	flex-wrap: wrap;
    	justify-content: center;
		}
		&__tag {
			padding: 4px 8px;
			margin: 6px;
		}
		&__item {
			flex-basis: 50%;
			width: 50%;
		}
		&__picture {
			&--lp {
				display: none;
			}
		}
	}

	.vinyl-popin {
		max-width: 90%;
		min-width: 90%;
		padding: 24px;
		&__title {
			white-space: normal;
		}
	}
	
}

/* Mobile breakpoint */
@media all and (max-width: @screen-s) {

	.title-text {
		.title(48, 300);
		&--secondary {
			.title(30, 300);
		}
		&--tertiary {
			.title(20, 300);	
		}
	}

	.home-presentation {
		&__thumb {
			width: 80px;
			height: 80px;
			margin: 20px 12px;
			&:last-child {
				margin-top: -24px;
			}
		}
	}

	.album {
		&__videos {
			flex-direction: column;
			flex-wrap: wrap;
		}
		&__video {
			flex-basis: 100%;
			margin-bottom: 24px;
			> iframe {
				display: block;
				margin: auto;
			}
		}
	}

	.recordings {
		&__item {
			flex-basis: 50%;
		}
	}
	
	.photos {
		&__item {
			flex-basis: 50%;
		}
	}

	.drawings {
		&__item {
			flex-basis: 33%;
		}
	}
	.form {
		&__field {
			flex-direction: column;
		}
		&__label {
			padding: 8px 0 4px 0;
		}
	}
}

/* Very small screens breakpoint */
@media all and (max-width: @screen-xs) {

	.button {
		.bold(14);
	}

	.title-block {
		margin: 32px 0 48px 0;
		&--level-2 {
			margin-top: 28px;
			margin-bottom: 28px;	
		}
	}

	.title-text {
		.title(30, 300);
		&--secondary {
			.title(18, 300);
		}
		&--tertiary {
			.title(20, 300);	
		}
	}
	
	.home-presentation {
		&__thumb {
			width: 60px;
			height: 60px;
			margin: 20px 12px;
		}
	}

	.album {
		&__row {
			flex-direction: column;
			margin-bottom: 0;
			> * {
				flex-basis: 100%;
			}
		}
		&__description {
			margin-top: 24px;
		}
		&__tracks {
			padding-left: 16px;
		}
		&__credit {
			display: block;
			margin-bottom: 18px;
		}
		&__video {
			> iframe {
				max-height: 200px;
			}
		}
	}

	.vinyls {
		&__item {
			flex-basis: 100%;
			width: 100%;
		}
		&__picture {
			&--lp {
				display: none;
			}
		}
	}

	.vinyl-popin {
		max-width: 90%;
	}

	.recordings {
		&__item {
			flex-basis: 100%;
		}
	}

	.photos {
		&__item {
			flex-basis: 100%;
		}
	}

	.drawings {
		&__item {
			flex-basis: 50%;
		}
	}

}
