/* -------------------------------------------
	Rollover 
------------------------------------------- */

.rollover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	overflow: hidden;
	opacity: 0;
	transition: opacity .3s;

	>.rollover-link-wrapper {
		background-color: rgba(0, 0, 0, .5);
	}
}

.rollover-content {
	position: absolute;
	left: 1rem;
	right: 1rem;
	text-align: center;
	top: 50%;
	transform: translateY(-50%);
	color: var(--alpha-white-color);

	>* {
		position: relative;
	}

	.post-cats {
		font-size: 1.4rem;
		text-transform: uppercase;

		@include mq(sm, max) {
			font-size: 1.3rem;
		}

		a {
			position: relative;
			z-index: 1;
		}
	}

	.rollover-container .rollover & .post-cats>a {
		color: inherit;

		&:hover,
		&:focus {
			color: inherit;
		}
	}

	.rollover & .rollover-title,
	.rollover & .post-cats {
		overflow: hidden;

		a {
			transform: translateY(25px);
			transition: transform .4s;
		}
	}
}

.rollover-button {
	display: inline-block;
	margin: 15px;
	text-align: center;
	vertical-align: middle;
	font-size: 3.7rem;
	line-height: 1;
	z-index: 1;
	border-radius: 50%;
	color: var(--alpha-white-color);

	&:hover,
	&:focus {
		color: var(--alpha-primary-color);
		text-decoration: none;
	}

	&:before {
		font-family: $theme-font;
		line-height: 34px;
	}

	@include mq(xxl, max) {
		font-size: 3rem;
	}

	@include mq(lg, max) {
		font-size: 2.6rem;
	}
}

.rollover-link-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.rollover-visit:before {
	content: "\ea16";
}

.rollover-gallery:before {
	content: "\ea17";
}

.rollover-visit {
	font-size: 3.5rem;

	@include mq(xxl, max) {
		font-size: 2.8rem;
	}

	@include mq(lg, max) {
		font-size: 2.4rem;
	}
}

.rollover-title {
	margin: 0 10% 0;
	font-size: 2.2rem;
	font-weight: 400;
	line-height: 1.2;
	z-index: 1;

	a {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}

	.post-cats+& {
		margin-top: 1.5rem;

		@include mq(xxl, max) {
			margin-top: 1rem;
		}
	}

	&,
	a {
		color: inherit;
	}

	@include mq(xxl, max) {
		font-size: 2rem;
	}

	@include mq(sm, max) {
		font-size: 1.8rem;
	}
}

.rollover-container:hover .rollover {
	opacity: 1;

	.rollover-title,
	.post-cats {
		a {
			transform: translateY(0);
			transition: transform .5s;
		}
	}
}