/** Widget Common **/
:root {
	--widget-padding-top: 16px;
	--widget-padding-bottom: 16px;
	--widget-padding-left: 16px;
	--widget-padding-right: 16px;
	--widget-border-top: 1px solid #ddd;
	--widget-border-bottom: 1px solid #ddd;
	--widget-border-left: 1px solid #ddd;
	--widget-border-right: 1px solid #ddd;
}

widget-button {
	display: inline-block;
	padding: 5px 18px;
	background: #60A316;
	color: #fff;
}

widget-button:hover {
	background: #000
}

widget-button:active {
	background: #f00
}

/** ContentTitleWidget */
content-title {
	display: block;
	margin-bottom: 20px;
}

content-title h2 {
	font-size: 26px;
	margin: 0px;
}

content-title button {
	float: right
}

/** PostDetailsWidget */
content-information {
	display:grid;
	grid-template-columns:1fr auto;
	margin-bottom: 10px;
}

content-information main-block,
content-information general-block {
	display:table-row;
}
content-information general-block {
	text-align:right;
}

content-information block {
	display:table-cell;
	white-space: nowrap;
	text-align:right;
	color: #888;
	font: inherit;
	font-size: 13px;
	line-height: 32px;
	vertical-align:top;
	padding-right: 30px;
}

content-information general-block block {
	padding-right: 0;
	padding-left: 30px;
}

content-information general-block block:first-child {
	padding-left:0;
}

content-information block.icon {
	padding-left: 25px;
	width:16px;
	height: 32px;	
	background-size: 16px;
	background-repeat:no-repeat;
	background-position:left center;
}

content-information block.icon.author {
	background-image: url(../img/widget/author.png);
}

content-information block.icon.date {
	background-image: url(../img/widget/date.png);

}

content-information block.icon.views {
	background-image: url(../img/widget/views.png);
}

content-information block.social_share {
	padding-right:20px;
}
content-information block.social_share ul {
	display:table-row;
}
content-information block.social_share li {
	display:table-cell;
	padding-right:10px;
	vertical-align:top;
}

content-information block.content_likes ul {
	display:table-row
}
content-information block.content_likes li {
	display:table-cell;
	padding-right:20px;
	color: #666;
	font-size: 13px;
}

content-information block.content_likes likes-btn {
	display:inline-block;
	width: 32px;
	height: 32px;
	margin-right:8px;
	background-color: #ccc;
	background-repeat: no-repeat;
	background-position:center;
	background-size: 55%;
	border-radius: 50%;
	vertical-align:top;
	cursor:pointer;
}

content-information block.content_likes likes-btn.like {
	background-image: url(../img/widget/like.png)
}
content-information block.content_likes likes-btn.dislike {
	background-image: url(../img/widget/dislike.png)
}
content-information block.content_likes likes-btn:hover {
	background-color: #666;
}
content-information block.content_likes likes-btn.disabled {
	background-color: #000;
}

/** PostBasicCommentWidget */
post-comment-widget {
	display: block;
}

post-comment-widget input.text {
	width: 50%
}

post-comment-widget comment-list {
	margin-top: 10px;
}

post-comment-widget comment-item {
	display:grid;
	margin-top: 25px;
	grid-template-columns:50px auto;
	grid-gap:15px;
}

post-comment-widget loader-list {
	margin-bottom:25px;
}
post-comment-widget user-avatar {
	width:40px;
	height:40px;
	line-height:40px;
}


@-webkit-keyframes spin {
	0% {
		-webkit-transform: rotate(0deg);
	}
	100% {
		-webkit-transform: rotate(360deg);
	}
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}
itemlist.categories-list {
	border: 1px solid #ddd;
	padding: 5px;
	overflow-y: scroll;
	height: 250px;
}

.check-all {
	padding: 5px;
	width: 100%;
	background-color: #f8f8f8;
	border-radius: 4px;
}

/** FeaturePostWidget */
feature-post {
	display: block;
	position: relative;
	font-size: 0px;
}

feature-post image-block {
	display: block;
}

feature-post image-block img {
	width: 100%;
}

feature-post text-block {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 20px;
	background-image: linear-gradient(to right bottom, rgba(0, 0, 0, 0.8),
		rgba(0, 0, 0, 0));
}

feature-post text-block title-block {
	display: block;
	font-size: 26px;
	color: #fff;
	font-weight: normal;
	margin-bottom: 20px;
}

feature-post text-block category-block {
	display: block;
	font-size: 14px;
	color: #fff;
	margin-bottom: 10px;
}

feature-post text-block description-block {
	display: block;
	font-size: 16px;
	color: #fff;
	font-weight: normal;
	margin-bottom: 15px;
}

/** BasicImageWidget **/
basic-image-widget {
	display: block;
}

basic-image-widget img {
	width: 100%;
}

/** BasicGalleryWidget */

/** ContentListWidget */
content-list {
	display: grid;
	font-size: 0;
	position: relative;
	grid-column-gap: 32px;
}

content-list post-block {
	clear: both;
	display: block;
	position: relative;
	margin-bottom: 32px;
}

content-list post-block:last-of-type {
	margin-bottom: 0px;
}

content-list post-block h4 {
	font-weight: bold;
}

content-list post-block h4 a {
	display: block;
	font: inherit;
	color: var(--primary-color);
}

content-list post-block image-block {
	float: left;
	display: block;
	margin-right: 20px;
	/*margin-bottom: 15px;*/
	width: 50%;
	position: relative;
	aspect-ratio: 16/9;
}

content-list post-block image-block img {
	width: 100%;
	height: 100%;
	user-select: none;
	object-fit: cover;
}

content-list post-block text-block {
	display: block;
	font-size: 16px;
	line-height: 1.6;
}

content-list post-block text-block::after {
	content: " ";
	clear: both;
	display: block;
}

content-list post-block title-block {
	display: block;
	line-height: 1.6;
	font-size: 18px;
	color: var(--primary-color);
}

content-list post-block text-block.small title-block {
	font-size: 15px;
}

content-list post-block text-block.large title-block {
	font-size: 24px;
}

content-list post-block h4 a:hover title-block {
	color: var(--primary-color-hover);
}

content-list post-block desc-block {
	margin-top: 15px;
	display: block;
	font-weight: normal;
	line-height: 1.6;
	font-size: 16px;
	color: var(--secondary-color);
}

content-list post-block date-block {
	margin-top: 15px;
	margin-bottom: 5px;
	display: block;
	font-weight: normal;
	font-size: 14px;
	color: var(--secondary-color);
}

/** style-1 = Top */
content-list.style-1 post-block image-block {
	display: block;
	float: none;
	width: 100% !important;
	margin-right: 0px;
}

content-list.style-1 post-block text-block {
	padding-top: 10px;
}

/** style-2 = Right */
content-list.style-2 post-block image-block {
	float: right;
	margin-right: 0px;
	margin-left: 20px;
}

/** style-3 = Inline */
content-list.style-3 post-block image-block {
	display: block;
	float: none;
	width: 100% !important;
	margin: 0px;
}

content-list.style-3 post-block text-block {
	position: absolute;
	background-color: rgba(0, 0, 0, 0.7);
	bottom: 0;
	left: 0;
	right: 0;
	padding: 10px;
}

content-list.style-3 post-block title-block {
	color: #fff;
}

content-list.style-3 post-block desc-block {
	color: #ddd;
}

content-list.style-3 post-block {
	overflow: hidden;
}

content-list.columns-2 {
	grid-template-columns: 1fr 1fr;
}

content-list.columns-3 {
	grid-template-columns: 1fr 1fr 1fr;
}

content-list.columns-4 {
	grid-template-columns: 1fr 1fr 1fr 1fr;
}

content-list.border-column post-block::before {
	position: absolute;
	bottom: 0;
	left: -16px;
	top: 0;
	width: 1px;
	background: #ddd;
	content: "";
}

content-list.columns-2 post-block:nth-of-type(2n+1)::before {
	display: none;
}

content-list.columns-3 post-block:nth-of-type(3n+1)::before {
	display: none;
}

content-list.columns-4 post-block:nth-of-type(4n+1)::before {
	display: none;
}

content-list.border-row post-block::after {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -16px;
	height: 1px;
	background: #ddd;
	content: "";
}

content-list.columns-1 post-block:last-of-type::after {
	display: none;
}

content-list.columns-2 post-block:nth-last-of-type(-n+2)::after {
	display: none;
}

content-list.columns-2 post-block:nth-of-type(2n+1)::after {
	right: -32px;
}

content-list.columns-3 post-block:nth-last-of-type(-n+3)::after {
	display: none;
}

content-list.columns-3 post-block:nth-of-type(3n+2)::after {
	left: -32px;
	right: -32px;
}

content-list.columns-4 post-block:nth-last-of-type(-n+4)::after {
	display: none;
}

content-list.columns-4 post-block:nth-of-type(4n+2)::after, content-list.columns-4 post-block:nth-of-type(4n+3)::after
	{
	left: -32px;
	right: -32px;
}

content-list-button {
	margin-top: 20px;
	display: block;
	text-align: center;
}

more-content {
	display: none;
	padding: 5px 50px;
	border: 1px solid #ddd;
	border-radius: 5px;
	user-select: none;
	cursor: pointer;
	background-color: #fff;
}
more-content.show {
    display: inline-block;
}

more-content:hover {
	background-color: #ddd;
}

more-content:active {
	color: #fff;
	border: 1px solid #000;
	background-color: #000;
}

/** Media Queries */
@media only screen and (max-width: 600px) {
	
	/** ContentListWidget */
	content-list {
		display: block !important;
	}
	content-list.columns-2 post-block, content-list.columns-3 post-block,
		content-list.columns-4 post-block {
		display: block;
		width: auto;
	}
	content-list.border-column post-block::before {
		display: none !important;
	}
	content-list.border-row post-block::after {
		display: none !important;
	}
	content-list.border-row post-block::after {
		left: 0 !important;
		right: 0 !important;
		display: block !important;
	}
	content-list.border-row post-block:last-of-type::after {
		display: none !important;
	}
	content-list.border-row post-block:only-of-type::after {
		display: block !important;
	}
	content-list post-block title-block {
		font-size: 16px;
	}
	content-list post-block image-block {
	    height: auto !important;
	}

	content-information {
		grid-template-columns:auto;
		margin-bottom:0px;
	}
	
	content-information main-block {
		display:block;
	}
	content-information main-block block:first-child {
		display:block;
	}
	
	content-information general-block {
		margin-top:15px;
		padding-top:10px;
		border-top:1px solid #e8e8e8;
	}
	content-information general-block block.social_share {
		width:100%;
	}
	
	itemlist.categories-list {
		width: 100%;
	}
	itemlist.gallery-list {
		width: 100%;
	}
}