
.tmg-gallery {
	position: relative;
}

.tmg-gallery-title {
	font-size: 26px;
	line-height: 1.3;
	font-weight: 800;
	margin: 45px 0 25px 0;
}



.tmg-slider {
	display: flex;
	border-radius: 20px;
	overflow: hidden;
}

.tmg-slider-item {
	width: 100%; 
	display: none; 
	flex-wrap: wrap;
	border-radius: 20px;
	overflow: hidden;
}

.tmg-slider-item:first-child {
	display: flex;
}

.tmg-gallery-one .tmg-slider-item .tmg-slider-item-image, 
.tmg-gallery-one .tmg-slider-item .tmg-slider-item-content {
	width: 50%; 
}

.tmg-gallery-two .tmg-slider-item .tmg-slider-item-image {
	margin: 0 auto;
}

.tmg-gallery-two .tmg-slider-item .tmg-slider-item-image img {
	width: auto;
	object-fit: contain;
	border-radius: 20px;
	display: inline-block;
}

.tmg-slider-item-caption {
	font-size: 14px;
	line-height: 16px;
	letter-spacing: 1px;
	color: #333333;
	opacity: 0.5;
	padding: 6px 0;
	width: 100%; 
	min-height: 25px;
	position: absolute;
	padding: 10px;
	color: #fff;
	bottom: 10px;
}

.tmg-gallery-two .tmg-slider-item-caption {
	text-align: center;
	padding: 0;
}

.tmg-gallery-two .tmg-slider-item-caption br {
	display: none;
}

.tmg-slider-item-caption p {
	margin: 10px 0;
}

.tmg-slider-item-title {
	display: block;
	font-size: 17px;
	line-height: 22px;
	margin-bottom: 10px;
	font-weight: 700;
}

.tmg-slider-item-content {
	padding: 30px 20px; 
	background: #FEF5ED !important; 
}

.tmg-slider-item .tmg-slider-item-image figure {
	display: block;
	margin: 0;
}

.tmg-slider-item .tmg-slider-item-image img {
	height: 415px;
	object-fit: contain; 
	display: block;
}

.tmg-slider-item .tmg-slider-item-image[data-cover="cover"] img {
    object-fit: cover;
    width: 100%;
    height: 415px;
}

.tmg-slider-item-text p {
	margin: 15px 0;
	font-size: 14px;
	line-height: 22px;
	color: var(--bw-30);
}

.tmg-slider-item-text p:first-child {
	margin-top: 0;
}

.tmg-slider button.owl-next, 
.tmg-slider button.owl-prev {
	margin-top: -65px;
}

.tmg-slider button.owl-next {
	right: 25px;
}

.tmg-slider button.owl-prev {
	left: 25px;
}

.tmg-slider button.owl-next span, 
.tmg-slider button.owl-prev span {
	background-color: #adadad;
  border-radius: 50%;
}



/* .tmg-slider button.owl-next, 
.tmg-slider button.owl-prev {
	position: absolute;
	top: calc((415px / 2) - 16px);
	display: inline-block;
	border: 1px solid #000 !important;
	height: 32px;
	width: 32px;
	margin-top: -16px;
} */

/* .tmg-slider button.owl-next.disabled, 
.tmg-slider button.owl-prev.disabled {
	opacity: .3;
}

.tmg-slider button.owl-prev,
.tmg-slider button.owl-prev {
	left: -52px;
}
.tmg-slider button.owl-next,
.tmg-slider button.owl-next {
	right: -52px;
} */

/* .tmg-slider button.owl-next span, 
.tmg-slider button.owl-prev span {
	display: block;
	height: 100%; 
	width: 100%; 
	background-image: url(../img/arr-left.png); 
	background-repeat: no-repeat;
	background-position: center;
}

.tmg-slider button.owl-next span {
	background-image: url(../img/arr-right.png); 
} */

.tmg-gallery-one .tmg-page-count {
	display: flex;
	border-top: 2px solid #ebeaea; 
}
.tmg-page-count.owl-carousel {
	border: 0;
}

.owl-carousel .owl-stage:after {
	content: "";
	display: none;
}

.tmg-page-count .owl-stage-outer::after {
    height: 1px;
    content: "";
    display: block;
    width: 100%;
    background-color: #A81715;
    transform: translateY(-28px);
		position: relative;
		z-index: -1;
}

/* .tmg-page-count .owl-stage-outer::after {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-left: 5px solid #ebeaea;
    border-bottom: 5px solid transparent;
    content: "";
    display: block;
    position: absolute;
    top: 4px;
    right: 0px;
} */

.tmg-wrap-count .owl-carousel .owl-stage-outer {
	width: 100%;
	margin-top: 15px;
}

.tmg-dots-title {
	position: relative;
	text-align: center;
	cursor: pointer;
	font-size: 15px;
	color: #F0D3D3;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.tmg-dots-title::after {
    display: inline-block;
    content: "";
    height: 9px;
    width: 9px;
    border-radius: 50%;
    background: #fff;
		border: solid 1px #A81715;
    left: calc(50% - 5px);
		opacity: 1;
}

.tmg-dots-title.active {
	color: #A81715;
}

.tmg-dots-title.active::after {
  background: #A81715; 
}

.tmg-wrap-count {
	width: 100%; 
	overflow: hidden;
}

.tmg-gallery-two .tmg-page-count-wrap {
	display: inline-flex;
    width: 110px;
    position: relative;
    padding-bottom: 10px;    
    padding-top: 10px;
    max-height: 70px;
}

.tmg-gallery-two .tmg-last-count-wrap {
	display: flex;
	justify-content: flex-end;
}


.tmg-gallery-two .tmg-page-count-wrap::before {
	height: 10px;
	display: inline-block;
	position: absolute;
	top: -6px;
	content: "";
	background-color: var(--main-normal);
	width: 10px;
	border-radius: 50%;
}

.tmg-gallery-two .tmg-page-count {
	position: relative;
	border-top: 2px solid var(--bw-20);
	margin-top: 7px;
}

.tmg-page-count-first {
	font-size: 30px;
	line-height: 30px;
	letter-spacing: 1px;   
	font-weight: bold;
	color: var(--main-normal);
}
.tmg-page-count-last {
	font-size: 20px;
	line-height: 40px;
	color: var(--bw-40);
}


.tmg-slider-content {
	overflow: hidden;
}

.tmg-slider-content p {
	margin: 0;
	padding: 5px 0;
}

.tmg-slider-text {
	opacity: 0; 
}

.tmg-text-load .tmg-slider-text {
	opacity: 1;
	display: none; 
}

.tmg-text-load .tmg-slider-text.active {
	display: block;
}

.tmg-page-count.owl-carousel .owl-stage {
	width: 100% !important;
	display: flex;
	justify-content: space-around;
}


@media screen and (max-width: 767px) {
	.tmg-gallery-one .tmg-slider-item {
		display: block;
	}

	.tmg-gallery-one .tmg-slider-item .tmg-slider-item-image, 
	.tmg-gallery-one .tmg-slider-item .tmg-slider-item-content {
		width: 100%; 
	}

	.tmg-gallery-one .tmg-slider-item .tmg-slider-item-image {
		display: none;
	}

	.tmg-slider-item .tmg-slider-item-image img {
		max-height: calc(100vw / 4 * 3);
		width: 100%;
	}

	.tmg-slider-item .tmg-slider-item-image img.tmg-horisontal {
	    object-fit: cover;
	    object-position: bottom left;
	}

	.tmg-slider-item .tmg-slider-item-image img.tmg-vertical {

	}

	.tmg-slider-item-caption {
	    /* height: 40px; */
	    line-height: 1.4;
	    padding: 6px 20px;
	}

	.tmg-gallery-one .tmg-slider-item .tmg-slider-item-content {
		top: 0px;
		display: flex;
		flex-direction: column;
		align-items: center;
		height: calc(100% - 40px);
		min-height: 415px;
		overflow: hidden;
		background: rgba(255, 248, 238, .8);
	}
	
	.tmg-slider-item-text {
		max-height: 100%;
		display: block;
		overflow: hidden;
		padding: 0 20px;
		color: var(--bw-30);
	}

	.tmg-gallery-title {
		font-size: 25px;
		line-height: 28px;
		font-weight: bold;
	}

	.tmg-gallery-two .tmg-slider-item-text {
		padding: 0; 
	}

	.tmg-gallery-two { 
		/* background-color: #FFF8EE;  */
		padding-top: 20px; 
		padding-bottom: 20px; 
	}

	.tmg-gallery-two::after, 
	.tmg-gallery-two::before {
	    top: 0px;
	    position: absolute;
	    display: block;
	    height: 100%;
	    width: 20px;
	    content: "";
	    /* background-color: #FFF8EE; */
	    margin-left: -20px;
	}
	.tmg-gallery-two::after { 
	    position: absolute; 
	    right: 0px; 
	    left: auto; 
	    margin-right: -20px; 
	}


	.tmg-gallery-one .tmg-slider {
		width: 100vw; 
		margin-left: -20px;
	} 

	.tmg-gallery-two .tmg-slider .owl-nav {
		display: none;
	}

	.tmg-slider button.owl-next, 
	.tmg-slider button.owl-prev {
		margin: 0 3px;
	}

	.tmg-slider button.owl-next {
		right: 0px; 
	}
	.tmg-slider button.owl-prev {
		left: 0px; 
	}

	.tmg-gallery-two .tmg-page-count-wrap {
	    display: flex;
	    border-top: 0px;
	    width: 86px;
	    margin-top: 0;
	    padding-top: 7px;
	}

	.tmg-gallery-two .tmg-page-count-wrap::before {
		height: 10px;
		display: inline-block;
		position: absolute;
		top: -6px;
		content: "";
		background-color: var(--main-normal);
		width: 100%;
	}

	.tmg-page-count-first {
	    font-size: 32px;
	    line-height: 36px;
	    font-weight: bold; 
	}

	.tmg-page-count-last {
	    font-size: 24px;
	    line-height: 50px;
	    color: #666666;
	    white-space: nowrap;
	}

}

@media screen and (min-width: 768px) {
	.tmg-gallery-one .tmg-slider-item .tmg-slider-item-content {
		background-image: none !important;
	}

	.tmg-gallery-one .tmg-slider-item-caption {
		width: 50%;
	}
}


@media screen and (min-width: 768px) and (max-width: 1169px) {
	.tmg-gallery-two { 
		margin: 20px 0;
	}

	.tmg-gallery-one .tmg-slider button.owl-next {
		right: 0px; 
	}
	.tmg-gallery-one .tmg-slider button.owl-prev {
		left: 0px; 
	}

	.tmg-wrap-count {
	    width: calc(100% - 100px);
	    margin: 0 auto;
	    margin-top: 12px;
	}
}


@media screen and (min-width: 1440px) {
	/* .tmg-gallery-two { 
		background-color: #FFF8EE; 
		padding-top: 20px; 
		padding-bottom: 20px; 
	} */

	/* .tmg-gallery-two::after, 
	.tmg-gallery-two::before {
	    top: 0px;
	    position: absolute;
	    display: block;
	    height: 100%;
	    width: 335px;
	    content: "";
	    background-color: #FFF8EE;
	    margin-left: -335px;
	}

	.tmg-gallery-two::after { 
	    position: absolute; 
	    right: 0px; 
	    left: auto; 
	    margin-right: -335px; 
	} */

	.tmg-slider button.owl-next, 
	.tmg-slider button.owl-prev {
		top: 207px;
	}


	.tmg-gallery-title {
	    margin-bottom: 30px;
	    margin-top: 15px;
	}
}