/*
 * Fullscreen image viewer, shown when clicked on a thumbnail.
 * This component requires JavaScript and JQuery to work properly.
 */
.big-wrapper {
	display: none;
	position: fixed;
	top: 0; left: 0;
	background: #0008;
	width: 200vw;
	height: 200vh;
}

.big-wrapper .big-container {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: black;
	border: 1px solid white;

	width: 70vw;
	height: 80vh;
}

.big-wrapper .big-container .big-image {
	display: block;
	margin: auto;
	max-width: 100%;
	max-height: 100%;
}

.big-wrapper .big-container .big-caption {
	display: block;
	color: #CCC;
	text-align: center;
	font-size: 1.3rem;
	margin: 1rem calc(32px + 1rem);
}

/* Buttons. */
.big-button {
	position: absolute;
	padding: 0;

	text-align: center;

	background: #FFF3;
	color: white;
	font-weight: bold;
	border-radius: 0;

	/* <button> tag defaults need to be replaced */
	border: none;
	font-family: inherit;
	font-size: inherit;
}

.big-wrapper .big-container .big-button:enabled:hover {
	background: #FFF5;
	box-shadow: #FFF8 0 0 10px;
}

/* Close button. */
.big-wrapper .big-container .big-button.close {
	width: 32px;
	height: 32px;
	line-height: 26px;
	right: 0;
	top: 0;
}

/* Previous and Next buttons. */
.big-wrapper .big-container .big-button.prev,
.big-wrapper .big-container .big-button.next {
	top: 50%;
	width: 32px;
	height: 36%;
	line-height: 0px;
	transform: translateY(-50%);
	font-size: 22px;
}
.big-button.prev {
	left: 0;
}
.big-button.next {
	right: 0;
}
.big-button:disabled {
	background: #FFF1;
	color: #FFF8;
}

@media only screen and (max-width: 768px) {
	.big-wrapper .big-container {
		width: 100%;
	}

	.big-wrapper .big-container .big-image {
		border-left: 0;
		border-right: 0;
	}

	.big-wrapper .big-container .big-button.prev,
	.big-wrapper .big-container .big-button.next {
		width: 96px;
		height: 64px;
		line-height: 64px;
		top: unset;
		bottom: -72px;
		margin-top: 0;
	}
}
