/*
 * Popis:    styly karet referencí pro shortcode {xreference}
 *           (plugin content/xreference)
 */

.xref-cards {
	display: -webkit-flex;
	display: flex;
	-webkit-flex-wrap: wrap;
	flex-wrap: wrap;
	margin: 30px -15px;
}

.xref-card {
	position: relative;
	-webkit-flex: 0 1 calc(33.333% - 30px);
	flex: 0 1 calc(33.333% - 30px);
	margin: 0 15px 30px;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 3px 16px rgba(0, 0, 0, 0.1);
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
}

.xref-card-img {
	position: relative;
	display: block;
}

.xref-card-img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px 6px 0 0;
}

.xref-card-circle {
	position: absolute;
	right: 18px;
	bottom: -9px;
	width: 44px;
	height: 44px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
	color: #006633;
	font-size: 16px;
	line-height: 44px;
	text-align: center;
	z-index: 1;
	transition: color 0.2s, box-shadow 0.2s;
}

.xref-card:hover .xref-card-circle {
	color: #004d26;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.xref-card-body {
	padding: 20px 22px 25px;
	display: -webkit-flex;
	display: flex;
	-webkit-flex-direction: column;
	flex-direction: column;
	-webkit-flex-grow: 1;
	flex-grow: 1;
}

.xref-card-title {
	font-family: 'Play', sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 12px;
	padding: 0;
}

.xref-card-title a {
	color: #006633;
	text-decoration: none;
}

.xref-card-title a:hover {
	text-decoration: underline;
}

.xref-card-desc {
	color: #6b6b6b;
	font-size: 15px;
	line-height: 1.5;
	margin: 0 0 18px;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.xref-card-more {
	font-family: 'Play', sans-serif;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #006633;
	text-decoration: none;
	margin-top: auto;
}

.xref-card-more .icon-arrow-right {
	font-size: 11px;
	margin-left: 8px;
	vertical-align: middle;
}

.xref-card-more:hover {
	color: #004d26;
	text-decoration: underline;
}

@media (max-width: 991px) {
	.xref-card {
		-webkit-flex: 0 1 calc(50% - 30px);
		flex: 0 1 calc(50% - 30px);
	}
}

@media (max-width: 599px) {
	.xref-card {
		-webkit-flex: 0 1 100%;
		flex: 0 1 100%;
	}
}
