/*====================================
Info Link
=====================================*/

.info-link {
	transition: background .3s;
	cursor: pointer;
	position: relative;

	h3 {
		transition: color .3s;
	}

	.no-touch &:hover {
		background-color: $red;
		h3 {
			color: white;
		}
	}
}
.js-active-info-card.info-link {
	cursor: default;
}

/*====================================
Info Card
=====================================*/

.info-card {
	width: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 500;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0s .4s, opacity .2s 0s;
	overflow: hidden;
}
.info-card-back {
	position: absolute;
	display: block;
	background-color: $color-accent;
	transition: transform .2s .4s ease-out;
	transform-origin: top;
	transform: scaleY(0);
	z-index: 1;
	width: 100%;
	height: 100%;
}
.js-active-info-card .info-card {
	visibility: visible;
	transition: visibility 0s 0s, opacity 0s 0s;
	opacity: 1;
}
.js-active-info-card .info-card-back {
	transform: scaleY(1);
	transition: transform .2s 0s ease-out;
}
.hidden-info-container {
	position: relative;
	z-index: 2;
}
.hidden-info {
	opacity: 0;
	transition: opacity .2s .4s ease-out, transform .2s .4s ease-out;
	transform: translateY(15px);
}
.hidden-info-top {
	opacity: 0;
	transition: opacity .2s .4s ease-out, transform .2s .4s ease-out;
	transform: translateY(-15px);
}
.js-active-info-card .hidden-info,
.js-active-info-card .hidden-info-top {
	opacity: 1;
	transition: opacity .3s .2s ease-in, transform .3s .2s ease-in;
	transform: translateY(0);
}
.js-reveal-up .info-card {
	top: auto;
	bottom: 0;
}
.js-reveal-up .info-card-back {
	transform-origin: bottom;
}
.js-active-info-card .artist_note {
	position: absolute;
	bottom: 0px;
	left: 0px;
	width: 100%;
	background-color: $color-accent;
	padding-right: 45px;
}


/*====================================
Social Media
=====================================*/

.info-card__social {
	@extend %clearfix;
	width: 100%;
	margin-top: 8px;
	margin-bottom: -8px;
}
.info-card-social__link {
	position: relative;
	float: left;
	height: 35px;
	width: 35px;

	svg {
		position: absolute;
		max-height: 18px;
		max-width: 50%;
		display: block;
		top: 0;
		left: 0;
		bottom: 0;
		margin: auto;

		path {
			transition: fill .3s;
			fill: white;
		}
	}

	&--tall {
		svg {
			max-height: 18px;
			max-width: 65%;
		}
	}

	.no-touch &:hover {
		svg path {
			fill: darken($color-accent, 25%);
		}
	}
}

/*====================================
Email Button
=====================================*/

.info-card__contact {
	position: absolute;
	bottom: 2px;
	right: 5px;
	width: 40px;
	height: 40px;
	display: block;
	background-color: rgba(0,0,0,0.5);
	transition: background .3s;
	z-index: 3;

	svg {
		position: absolute;
		max-height: 50%;
		max-width: 50%;
		display: block;
		top: 0;
		left: 0;
		bottom: 0;
		right: 0;
		margin: auto;
	}

	.no-touch &:hover {
		background-color: $color-accent;
	}
}

/*====================================
Close Button
=====================================*/

.info-card--close {
	position: absolute;
	top: 0;
	right: 0;
	width: 30px;
	height: 30px;
	display: block;
	transition: background .3s;
	z-index: 3;

	&:after {
		@extend %pseudos;
		content: '\00d7';
		font-size: $font-large;
		color: white;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		margin: auto;
		text-align: center;
		line-height: 1.3;
		transition: color .3s;
	}

	.no-touch &:hover {
		&:after {
			color: darken($color-accent, 25%);
		}
	}
}