.avatar {
	display: inline-block;
	text-align: center;
	font-size: 20px;
	font-weight: 600;
	line-height: 46px;
	width: 50px;
	height: 50px;
	background-color: #F2F1F1;
	border: 1px solid #ccc;
	border-radius: 50%;
}
.avatar.xs {
	font-size: 18px;
	line-height: 34px;
	height: 36px;
	width: 36px;
}
.avatar.xl {
	font-size: 36px;
	line-height: 78px;
	width: 80px;
	height: 80px;
}
.avatar.xxl {
	font-size: 72px;
	line-height: 112px;
	width: 120px;
	height: 120px;
}

.single-slide {
	position: relative;
	text-align: center;
	display: -webkit-box;
	display: -ms-flexbox;
	display: -webkit-flex;
	display: flex;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-justify-content: center;
	justify-content: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	-webkit-align-items: center;
	align-items: center;
	align-self: center;
}
.single-slide img {
	max-height: 100%;
}
.single-slide .embed-responsive {
	width: 100%;
	margin: 0 auto;
}
.swiper-pagination-bullet { 
	background-color: #33414E;
	border: 2px solid #33414E;
}
.swiper-button-prev {
	left: 0;
}
.swiper-button-next {
	right: 0;
}
.duration {
	display: inline-block;
	position: absolute;
	right: 5px;
	top: 5px;
	font-size: 12px;
	color: #fff;
	background-color: rgba(0, 0, 0, .8);
	padding: 0 5px 2px 5px;
	z-index: 2;
}
.ytb .duration {
	background-color: rgba(255, 0, 0, .8);
}
.vmo .duration {
	background-color: #0FAEF1;
}
.post .overlay {
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	color: #fff;
	background-color: rgba(0, 0, 0, .7);
	padding: .75rem 1rem;
}
.prevdoc {
	font-size: .875rem;
	line-height: 1.1;
	max-height: 1.93rem;
	overflow: hidden;
}

.play-video:before {
	position: absolute;
	top: 50%;
	left: 50%;
	font-family: Ionicons;
	content: "\f488";
	font-size: 32px;
	text-align: center;
	line-height: 48px;
	color: rgba(255, 255, 255, .7);
	border: 2px solid rgba(255, 255, 255, .7); /* #28A745 */
	width: 50px;
	height: 50px;
	border-radius: 50%;
	padding: 0 0 0 4px;
	transform: translate(-50%, -50%);
	transition: all 0.1s;
	z-index: 2;
}
.play-video.ytb:before {
	 /* background-color: ;#FF0000 */
}
.play-video.vmo:before {
	 /* background-color: ;#0FAEF1 */
}
.play-video:hover:before {
	line-height: 58px;
	color: rgba(255, 255, 255, 1);
	border: 2px solid rgba(255, 255, 255, 1);
	width: 60px;
	height: 60px;
}

.writebox {
	position: relative;
	padding: 0 0 0 50px;
}
.writebox .avatar {
	position: absolute;
	left: 0;
	top: 0;
}
.comment {
	position: relative;
	margin-bottom: 1rem;
}
.comment-in {
	padding: 0 0 0 50px;
}
.reply .comment-in {
	padding: 0 0 0 90px;
}
.comment .avatar {
	position: absolute;
	left: 0;
	top: 4px;
}
.comment.reply .comment-in .avatar {
	left: 40px;
}
.cm-content {
	position: relative;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px;
}
.cm-content:before {
	position: absolute;
	top: 10px;
	left: -11px;
	content: '';
	border-bottom: 10px solid transparent;
	border-right: 11px solid #ddd;
	border-top: 10px solid transparent;
}
.cm-content:after {
	border-bottom: 8px solid transparent;
    border-right: 9px solid #fff;
    border-top: 8px solid transparent;
    left: -9px;
    top: 12px;
    position: absolute;
    content: '';
}
.cm-content.pending {
	border-color: #dc3545;
}
.cm-content.pending:before {
	border-right-color: #dc3545;
}
.comment-wrap {
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

/* image viewer */
#imgviewer {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background-color: #000;
	padding: 0;
	z-index: 10100;
}
.closeviewer {
	position: absolute;
	top: 0;
	right: 0;
	line-height: 1;
	padding: 0 5px;
	z-index: 19900;
}

/* songplayer */
.songprogress {
	background-color: #ddd;
	border-radius: 2px;
	height: 3px;
	overflow: hidden;
}
.songprogress div {
	background-color: #007BFF;
	width: 0;
	height: 100%;
}
.songend {
	position: absolute;
	top: 0;
	right: 0;
}

#postcomments {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, .6);
	z-index: 1021;
}

/* chat */
.chat-win {
	position: fixed;
	top: 50px;
	left: 0;
	bottom: 0;
	right: 0;
	background-color: #fff;
}
.chat-top {
	line-height: 2rem;
	height: 2.5rem;
}
.chat-messages {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	padding: 15px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.chat-embed {
	border-left: 3px solid #007BFF;
	padding-bottom: .25rem;
	margin: .5rem 0;
	overflow: hidden;
}
.bg-success .chat-embed {
	border-color: #fff;
}
.chat-embed-desc {
	line-height: 1.25;
	max-height: 2.1875rem;
	overflow: hidden;
}
.chat-win .embed-responsive {
	min-width: 230px;
}

.chat-write {
	position: relative;
	padding: 8px 15px 10px 48px;
}
.chat-write textarea {
	padding-right: 2.1rem;
}
.chat-btn-send {
	display: none;
	position: absolute;
	bottom: 5px;
	right: 8px;
}
.chat-btn-add {
	position: absolute;
	bottom: 5px;
	left: 8px;
}
.chat-btn-emo {
	position: absolute;
	bottom: 5px;
	right: 15px;
	z-index: 1;
}
.non-emty .chat-write {
	padding-right: 48px;
}
.non-emty .chat-btn-send {
	display: block;
}
.non-emty .chat-btn-emo {
	right: 48px;
}
.chat-emo-list {
	height: 180px;
	padding: 0 15px;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.chat-emo-catwrap {
	position: relative;
	line-height: 36px;
	text-align: center;
	height: 38px;
	padding-left: 38px;
}
.chat-emo-catico {
	position: absolute;
	top: 0;
	left: 0;
	width: 38px;
	height: 38px;
}
#chat-emo-cats .swiper-slide {
	width: 38px;
	height: 100%;
}
#chat-emo-cats .swiper-slide-thumb-active {
	color: #000;
	background-color: #4b4d4c;
}
#chat-emo-cats img {
	width: 32px;
	height: 32px;
	opacity: .6;
}
#chat-emo-cats .swiper-slide-thumb-active img {
	opacity: 1;
}
#chat-emo-preview {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background-color: rgba(255, 255, 255, .8);
	z-index: 1;
}
#chat-emo-preview div {
	position: absolute;
	top: 0;
	left: 50%;
	background-color: #fff;
	border: 1px solid #ccc;
	padding: 10px;
	transform: translate(-50%, 0);
}
#chat-emo-preview button {
	position: absolute;
	top: 0;
	right: 0;
}

#grid {
	width: 100%;
	max-width: 100%;
}
.grid-sizer {
	width: 100%;
	max-width: 100%;
}
.grid-item {
	position: relative;
	width: 100%;
}
.grid-item .content {
	display: block;
	position: relative;
	border: 1px solid rgba(0, 0, 0, 0.22);
	z-index: 2;
}
.grid-item .title {
	display: block;
	position: absolute;
	left: 0;
	bottom: 0;
	right: 0;
	z-index: 2;
}
.grid-item .title .fs--2 {
	color: #e9e9e9;
}
.content.overlay:after{
	position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .1), rgba(0, 0, 0, .4));
    content: '';
    z-index: 1;
}
.tagdesc {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	color: #fff;
	background-color: rgba(0, 0, 0, .7);
	padding: 0 1rem;
	z-index: 2;
}


@media (min-width: 768px) {
	.grid-item, .grid-sizer {
		float: left;
		width: 50%;
	}
}
@media (min-width: 992px) {
	.grid-item, .grid-sizer {
		width: 33.33333%;
	}
	.single-slide .embed-responsive {
		max-width: 920px;
	}
}
@media (min-width: 1024px) {
	.chat-win {
		left: 200px;
	}
	.site-chat .chat-win {
		right: 200px;
	}
}
@media (min-width: 1200px) {
	.grid-item, .grid-sizer {
		width: 25%;
	}
}
@media (pointer:coarse) {
	.swiper-button-next, .swiper-button-prev {
/*		display: none;*/
	}
}
@media (max-width: 620px) {
	.swiper-button-next, .swiper-button-prev {
/*		display: none;*/
	}
}