#articles {
	margin-top:20px;
	text-align: center;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	align-content: flex-start;
	> :first-child {
		width: 100%;
	}
}
#article-category-page {
	padding-left: 20px;
	padding-right: 20px;
}
#article-content img {
	margin-left: auto;
	margin-right: auto;
}

/* search */
#article-search-form {
	background-color: #ECEDE6;
	padding: 10px;
	table {
		width: 100%;
		td {
			padding: 10px;
			&:nth-child(2) {
				text-align: right;
			}
		}
	}
	#id_keywords {
		width: 100%;
	}
}
input[type="checkbox"] {
	display: initial;
}
/* end search */

/* categories */
.article-category-thumbnail {
	display: inline-block;
	vertical-align: top;
	max-width: 200px;
	width: 100%;
	height: 260px;
	text-align: center;
	margin: 0px;
	text-decoration: none;
	word-wrap: break-word;
	div {
		&:nth-of-type(1) {
			padding: 0px;
			height: 160px;
			> img {
				height: 100%;
				max-width: 100%;
				width: 100%;
			}
		}
		&:nth-of-type(2) {
			padding-top: 10px;
			> span {
				color: black;
				text-decoration: none;
				font-size: 20px;
				font-size: max(12px, min(40px, 1.176rem));
				line-height: 26px;
			}
		}
	}
}
/* end categories */

/* articles */
.article-description {
	padding-left: 20px;
	padding-right: 20px;
	> * {
		max-width: 600px;
		margin: 0 auto;
	}
	h2 {
		text-decoration: none;
		font-size: 24px;
		font-size: max(12px, min(44px, 1.412rem));
		font-weight: bold;
		border-bottom: none;
		color: #333;
		line-height: 36px;
		margin-bottom: initial;
	}
	p {
		line-height: 30px;
		font-weight: 500;
		color: #444;
	}
}
#featured-article-thumbnail {
	width: 100%;
	padding: 20px;
	text-decoration: none;
	color: black;
	border: 1px solid gray;
	display: block;
	margin-bottom: 10px;
	> a {
		display: block;
		width: 100%;
		height: 400px;
		text-align: center;
		> img {
			height: 100%;
			max-width: 100%;
			max-height: 100%;
			display: inline-block;
			object-fit: cover;
		}
	}
}
.article-thumbnail {
	padding: 20px;
	text-decoration: none;
	color: black;
	border: 1px solid gray;
	margin: 10px 5px;
	vertical-align: top;
	overflow: hidden;
	font-size: 16px;
	font-size: max(12px, min(36px, 0.941rem));
	line-height: 1.3em;
	font-weight: normal;
	width: 100%;
	height: 450px;
	max-width: 435px;
	display: inline-block;
	text-align: center;
	> div {
		width: 100%;
	}
	> a {
		display:block;
	}
	@media (max-width: 768px) {
		width: 100%;
		max-width: 100%;
	}
	@media (min-width: 768px) {
		width: 100%;
		max-width: 45%;
	}
	@media (min-width: 1200px) {
		max-width: 31%;
	}
}
.article-title {
	display: block;
	font-size: 20px;
	font-size: max(12px, min(40px, 1.176rem));
	padding: 5px 0px;
	line-height: 26px;
	line-height: max(12px, min(46px, 1.529rem));
}
/* end articles */
/* gallery */
#article-gallery {
	&.carousel.slide {
		display: inline-block;
		width:100%;
		height:440px;
		text-align:center;
	}
	.carousel-inner, .item, .item a, & {
		max-height: 100%;
		max-width: 100%;
		height: 100%;
		width: 100%;
	}
}
.item img {
	max-height: 100%;
	max-width: 100%;
	height: 100%;
	width: 100%;
	object-fit: contain;
}
.carousel-thumbnails > * {
	width: 100px;
	height: 100px;
	display: inline-block;
	margin: 10px 5px;
	cursor: pointer;
	background-size:cover;
	background-position:center;
	background-repeat:no-repeat;
}
/* end gallery */

a.category-featured-content-box {
	display:inline-block;
	text-align:center;
	vertical-align:top;
	color:#405965;
	text-decoration:none;
	width:100%;
	max-width:200px;
	padding:30px 20px;
	> div {
		width:100%;
		max-width:150px;
		height: 150px;
		margin: 0 auto;
		background-position: center;
		background-size: contain;
		background-repeat: no-repeat;
	}
	img {
		visibility: hidden;
	}
	@media (max-width:1461px) and (min-width:608px) {
		max-width:300px;
		> div {
			max-width:200px;
		}
	}
}