/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.buttons {
	margin-block: 35px;
}

@media only screen and (max-width: 767.99px) {
	h3{
		font-weight: 600 !important;
		font-size: 24px !important;
	}
}
@media only screen and (max-width: 420.99px) {
  h3{
		font-weight: 600 !important;
		font-size: 20px !important;
	}
}
.buttons__title {
	margin-top: 40px;
	margin-bottom: 40px;
}
.buttons__list {
    display: flex;
    flex-wrap: wrap;
    background: #35B9A8;
    border-radius: 50px;
    padding: 10px !important;
    gap: 10px;
	width: max-content;
}

.buttons__item {
    display: block;
    border: 2px solid #fff;
    border-radius: 50px;
}

.buttons__item-link {
    padding: 10px 20px;
    box-sizing: border-box;
    display: block;
    width: fit-content;
    color: #ACACAC;
    text-align: center;
    font-weight: 700;
    color: #fff;
}
.buttons__item-link {
  transition: color 0.3s, border-color 0.3s;
}
.buttons__item {
  border-radius: 50px;
  color: #000;
}
.buttons__item:hover{
	background: #fff;
}
.buttons__item{
	transition: background 0.3s;
}
.buttons__item-link:hover {
	color: #35B9A8;
	border-color: #161616;
}
@media only screen and (max-width: 540.99px) {

	.buttons__title {
		margin-bottom: 0;
	}

	.buttons__title {
		margin-top: 30px;
	}
}

@media only screen and (max-width: 420.99px) {
	.buttons__title {
		margin-top: 20px;
	}
}

/*--------------------------------------------------------------
# Gallery
--------------------------------------------------------------*/

.gallery {
	margin-block: 80px;
}
.gallery__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-gap: 20px;
}

.gallery__item {
	display: block;
	overflow: hidden;
	border-radius: 30px;
}

.gallery__item-img {
	display: block;
	border-radius: 30px;
	background-color: #F8F8F8;
	width: 100%;
	height: 480px;
	object-fit: cover;
	object-position: center;
	transform: scale(1);
	transition: all .4s;
	cursor: pointer;
}

.gallery__item:hover .item-img {
	transform: scale(1.1);
	transition: all .4s;
}

.gallery__view-more-btn {
	display: block;
	width: fit-content;
	margin-top: 10px;
	color: #ACACAC;
	font-size: 18px;
	color: #ACACAC;
	padding-bottom: 3px;
	border-bottom: 1px solid #ACACAC;
}

.gallery__view-more-btn:hover {
	color: #35B9A8;
	border-color: #35B9A8;
}

@media only screen and (max-width: 1540.99px) {
	.gallery__item-img {
		height: 360px;
	}
}

@media only screen and (max-width: 1200.99px) {
	.gallery__list {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media only screen and (max-width: 1080.99px) {
	.gallery__list {
		grid-template-columns: repeat(2, 1fr);
	}

	.gallery__item-img {
		height: 480px;
	}
}

@media only screen and (max-width: 767.99px) {
	.buttons_wrap{
		display: none;
	}
	.gallery__item-img {
		height: 320px;
		width: 100%;
	}

	.gallery__item {
		min-width: calc(35vw - 20px);
		margin-right: 20px;
	}

	.gallery__list {
		display: flex;
		grid-gap: 0;
		overflow-x: auto;
	}

	.gallery__list::-webkit-scrollbar {
    	width: 0;
    	height: 0;
	}

	.gallery__list::-moz-scrollbar {
	    width: 0;
	    height: 0;
	}
}

@media only screen and (max-width: 540.99px) {
	.gallery {
		margin-block-start: 40px;
	}
	.gallery__item {
		min-width: calc(70vw - 20px);
		height: 300px;
	}

	.gallery__item-img {
		border-radius: 20px;
	}
}

/*--------------------------------------------------------------
# Desktop Gallery Slider (PC only)
--------------------------------------------------------------*/
@media only screen and (min-width: 1081px) {
	.gallery__slider-wrapper {
		position: relative;
		box-sizing: border-box;
	}

	.gallery__list.owl-carousel .owl-nav {
		margin-top: 20px;
	}

	/* убираем лишний padding внутри owl-stage, который создаёт зазор под заголовком */
	.gallery__list.owl-carousel .owl-stage {
		padding: 0;
	}

	/* уменьшаем отступ заголовка галереи до слайдера */
	.gallery__title {
		margin-bottom: 20px;
	}

	.gallery__loadmore-mobile-block {
		display: none;
	}

	.gallery__item-img {
		height: 320px;
	}
}

/*--------------------------------------------------------------
# Gallery wrapper
--------------------------------------------------------------*/
.gallery-content-wrapper {
	position: fixed;
	z-index: 11111;
	width: 100%;
	height: 100vh;
	left: 0;
	top: 0;
	background-color: rgba(248, 248, 248, 0.5);
	backdrop-filter: blur(20px);
	overflow-y: auto;
}


.gallery-content-wrapper__main-block {
	box-sizing: border-box;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	max-width: calc(100% - 120px);
	width: 100%;
}
.gallery-content-wrapper__item.active img {
  border-color: #35B9A8;
}

.gallery-content-wrapper__close-btn {
	position: absolute;
	right: 0;
	top: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 100;
}

.gallery-content-wrapper__close-btn:before,
.gallery-content-wrapper__close-btn:after {
	content: '';
	width: 100%;
	height: 1.5px;
	position: absolute;
	background-color: #161616;
}

.gallery-content-wrapper__close-btn:before {
	transform: rotate(45deg);
}

.gallery-content-wrapper__close-btn:after {
	transform: rotate(-45deg);
}

.gallery-content-wrapper__big-thumb {
	display: block;
	width: 100%;
/* 	margin: 50px 0; */
	position: relative;
/* 	padding: 0 140px; */
	box-sizing: border-box;
}

.gallery-content-wrapper__big-img {
    width: auto;
    max-width: calc(80vw - 120px);
	max-height: calc(90vh);
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 30px;
    margin: 0 auto;
}
.owl-carousel .owl-stage {
  padding: 40px 0;
}
.gallery-content-wrapper__big-thumb .owl-nav {
	position: absolute;
	width: 100%;
	display: flex;
	justify-content: space-between;
	top: 50%;
	transform: translateY(-50%);
	left: 0;
}

.gallery-content-wrapper__big-thumb .owl-nav button {
	display: block;
	width: 60px;
	height: 60px;
	display: flex;	
	align-items: center;
	justify-content: center;
	border: 1px solid #35B9A8;
	background-color: #F8F8F8;
	border-radius: 5px;
}

.gallery-content-wrapper__big-thumb .owl-nav button:hover {
	background-color: #35B9A8;
}

.gallery-content-wrapper__big-thumb .owl-nav button svg {
	width: 36px;
	height: auto;
}

.gallery-content-wrapper__big-thumb .owl-nav button path {
	fill: #35B9A8;
}

.gallery-content-wrapper__big-thumb .owl-nav button:hover path {
	fill: #F8F8F8;
} 

.gallery-content-wrapper__item {
	display: block;
	overflow: hidden;
	cursor: pointer;
}


.gallery-content-wrapper__item img {
	border-radius: 10px;
	height: 120px;
	display: block;
	width: 100%;
	border: 4px solid transparent;
	object-fit: cover;
}
.buttons_wrap{
	overflow: auto;
	border-radius: 50px;
}
.buttons_wrap::-webkit-scrollbar{
	display: none;
}
/*.gallery-content-wrapper__big-thumb {*/
/*  	padding: 40px 0 0 0;*/
/*}*/
@media only screen and (max-width: 1540.99px) {

/* 	.gallery-content-wrapper__big-thumb {margin-bottom: 30px;} */

}
/*--------------------------------------------------------------
# Captions
--------------------------------------------------------------*/

/* Fancybox caption */
.fancybox__caption {
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
	padding: 20px 40px;
	text-align: center;
	font-size: 16px;
	line-height: 1.4;
}

/* AJAX modal caption */
.gallery-content-wrapper__caption {
	text-align: center;
	color: #161616;
	font-size: 15px;
	margin-top: 10px;
	padding: 8px 16px;
	min-height: 1.5em;
}

@media only screen and (max-width: 800.99px) {
	.owl-carousel .owl-item img {
	  display: block;
	}
	.gallery-content-wrapper__big-thumb { padding: 0; }
	.gallery-content-wrapper__item.active img {
		border-color: transparent;
	  }
	.gallery-content-wrapper__big-thumb{ display: none !important; }

	.gallery-content-wrapper__item img {
		max-height: 80vh;
		border-radius: 20px;
		max-width: 85vw;
		width: 100% !important;
		height: auto !important;
		margin: auto;
	  }
	
	 .gallery-content-wrapper__list.owl-carousel .owl-item {
		min-width: 100px;
		align-content: center;
	  }

	.gallery-content-wrapper__list {
		padding-left: 5px!important;
		box-sizing: border-box;
	}

	.gallery-content-wrapper .container {
		padding: 0!important;
	}

	.gallery-content-wrapper__big-thumb {
		padding-left: 20px;
		padding-right: 20px;
		box-sizing: border-box;
	}

	.gallery-content-wrapper__main-block {
		padding-bottom: 0;
		max-width: calc(100% - 40px);
	}
}