/********** section id="gallery__page" *************/
#gallery__page {
	padding: 60px 0 80px 0;
}

#page:has(#gallery__page) {
	height: auto;
	min-height: 0;
}

#gallery__page a.button-border {
	width: 100%;
	max-width: 248px;
}

#gallery__page .gallery-swiper {
	overflow: hidden;
	width: min(80%, 960px);
	margin: 0 auto;
	padding: 0 0 2.5rem !important;
	border-radius: 6px;
	box-shadow: 0 12px 40px rgba(32, 32, 32, 0.12);
	background: #f7f8f9;
}

#gallery__page .gallery-swiper:not(.swiper-initialized) .swiper-slide:not(:first-child) {
	display: none;
}

#gallery__page .swiper-wrapper {
	height: auto !important;
	align-items: center;
}

#gallery__page .swiper-slide {
	display: flex;
	justify-content: center;
	align-items: center;
}

#gallery__page .swiper-slide img {
	width: 100%;
	height: auto;
	max-height: min(70vh, 640px);
	object-fit: cover;
	display: block;
}

#gallery__page .gallery-img {
	display: block;
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 6px;
}

#gallery__page .gallery-img img {
	transition: transform 0.35s ease;
}

#gallery__page .gallery-img:hover img {
	transform: scale(1.03);
}

#gallery__page .gallery-img .ico {
	position: absolute;
	top: 16px;
	left: 16px;
	z-index: 10;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	transition: opacity 0.25s ease;
}

#gallery__page .gallery-img:hover .ico {
	opacity: 1;
}

#gallery__page .gallery-pagination {
	position: absolute;
	bottom: 0.75rem;
	left: 0;
	right: 0;
}

#gallery__page .gallery-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	background: #c7ced2;
	opacity: 1;
	transition: transform 0.2s ease, background 0.2s ease;
}

#gallery__page .gallery-pagination .swiper-pagination-bullet-active {
	background: var(--accent, #d3945a);
	transform: scale(1.25);
}

.switches-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(80%, 960px);
	margin: 0 auto;
}

.switches-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
}

.prewbutton,
.nextbutton {
	width: 48px;
	height: 48px;
	padding: 0;
	border: 2px solid #202020;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.prewbutton:hover,
.nextbutton:hover {
	border-color: var(--accent, #d3945a);
	background: #fffaf5;
}

.prewbutton:hover path,
.nextbutton:hover path {
	fill: var(--accent, #d3945a);
}

@media (max-width: 700px) {
	#gallery__page {
		padding: 44px 0 50px 0;
	}

	#gallery__page .gallery-swiper,
	.switches-wrapper {
		width: 100%;
	}

	#gallery__page .gallery-img .ico {
		opacity: 1;
	}
}

.fancybox-button--thumbs {
	display: none !important;
}
