/*
 * ==========================================================================
 * Alternative Article Layout: floatimage
 * JA Purity III - Δήμος Ξάνθης
 * ==========================================================================
 */


/*
 * Desktop / large screens
 * --------------------------------------------------------------------------
 */

.article-floatimage {
	float: right;

	width: 43%;
	max-width: 520px;

	margin: 0 0 18px 28px;
	padding: 0;
}

.article-floatimage__link {
	display: block;
	position: relative;

	overflow: hidden;

	width: 100%;

	margin: 0;
	padding: 0;

	background: #f3f3f3;

	border: 0;
	border-radius: 4px;

	-webkit-appearance: none;
	appearance: none;

	cursor: zoom-in;
	text-align: inherit;
}

.article-floatimage__image {
	display: block;

	width: 100%;
	height: auto;

	margin: 0;

	transition:
		transform 0.18s ease,
		opacity 0.18s ease;
}

.article-floatimage__link:hover .article-floatimage__image,
.article-floatimage__link:focus .article-floatimage__image {
	transform: scale(1.015);
	opacity: 0.96;
}

.article-floatimage__link:focus {
	outline: 2px solid #17628a;
	outline-offset: 3px;
}

.article-floatimage__caption {
	margin-top: 6px;

	font-size: 13px;
	line-height: 1.4;

	color: #666;
	text-align: right;
}


/*
 * Modal / enlarged image
 * --------------------------------------------------------------------------
 */

.article-floatimage-modal {
	z-index: 20000;
}

.article-floatimage-modal .modal-dialog {
	width: auto;
	max-width: 1200px;

	margin: 30px auto;
	padding: 0 24px;
}

.article-floatimage-modal .modal-content {
	position: relative;

	background: transparent;

	border: 0;
	border-radius: 0;

	box-shadow: none;
}

.article-floatimage-modal .modal-body {
	padding: 0;

	text-align: center;

	background: rgba(0, 0, 0, 0.92);
}

.article-floatimage-modal__image {
	display: block;

	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 85vh;

	margin: 0 auto;
}

.article-floatimage-modal__close {
	position: absolute;
	top: -18px;
	right: 8px;
	z-index: 2;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 38px;
	height: 38px;

	margin: 0;
	padding: 0;

	font-size: 30px;
	font-weight: 300;
	line-height: 1;

	color: #fff;
	background: #1f1f1f;

	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;

	cursor: pointer;
}

.article-floatimage-modal__close:hover,
.article-floatimage-modal__close:focus {
	color: #fff;
	background: #000;
}

.article-floatimage-modal__caption {
	padding: 8px 12px;

	font-size: 13px;
	line-height: 1.4;

	color: #eee;
	background: rgba(0, 0, 0, 0.92);
	text-align: center;
}


/*
 * Tablet / mobile
 * --------------------------------------------------------------------------
 */

@media (max-width: 991px) {

	.article-floatimage {
		float: none;

		width: 100%;
		max-width: none;

		margin: 0 0 18px 0;
	}

	.article-floatimage__caption {
		text-align: left;
	}

	.article-floatimage-modal .modal-dialog {
		margin: 20px auto;
		padding: 0 12px;
	}

}


/*
 * Small mobile
 * --------------------------------------------------------------------------
 */

@media (max-width: 480px) {

	.article-floatimage-modal .modal-dialog {
		margin: 12px auto;
		padding: 0 8px;
	}

	.article-floatimage-modal__close {
		top: -10px;
		right: 2px;

		width: 34px;
		height: 34px;

		font-size: 26px;
	}

}
