/* Responsive layer for the original desktop layout. */
img {
	max-width: 100%;
	height: auto;
}

.menu-toggle {
	display: none;
}

.home-slider--mobile {
	display: none;
}

.home-slider {
	margin: 18px 0 36px;
}

.home-slider__track {
	display: grid;
	grid-template-columns: 2fr repeat(3, 1fr);
	gap: 12px;
	overflow: hidden;
	padding: 2px;
}

.home-slider__slide {
	position: relative;
	display: block;
	height: 300px;
	overflow: hidden;
	background: #e7dcbc;
	scroll-snap-align: start;
	text-decoration: none;
}

.home-slider__slide:nth-child(n+5) {
	display: none;
}

.home-slider__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .25s ease;
}

.home-slider__slide:hover img {
	transform: scale(1.035);
}

.home-slider__slide span {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	box-sizing: border-box;
	padding: 28px 14px 12px;
	color: #fff;
	font-size: 18px;
	background: linear-gradient(transparent, rgba(42, 29, 20, .9));
}

.home-slider__hint {
	display: none;
}

@media (max-width: 900px) {
	.legacy-home-slider {
		display: none!important;
	}

	.home-slider--mobile {
		display: block;
	}
	html, body {
		width: 100%;
		min-width: 0;
		overflow-x: hidden;
	}

	body {
		font-size: 16px;
		padding-bottom: 12px;
	}

	#_container,
	#_content,
	#mainBody,
	#top,
	#path,
	#footer,
	#subFooter,
	#cent {
		box-sizing: border-box;
		width: 100%;
		min-width: 0!important;
		max-width: none;
	}

	#_container {
		margin-top: 0;
	}

	#_content {
		position: relative;
	}

	#top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 12px 20px;
		height: auto;
		padding: 14px 18px 8px;
	}

	#logo,
	.logo {
		float: none;
		display: block;
		width: 157px;
		height: 34px;
	}

	#top #contacts {
		float: none;
		width: auto;
		height: auto;
		margin-left: auto;
		font-size: clamp(18px, 4vw, 24px);
		line-height: 1.25;
		text-align: right!important;
	}

	#lang {
		box-sizing: border-box;
		width: 100%;
		margin: 10px 0 0;
		padding: 0 18px;
		text-align: right;
	}

	#menu {
		box-sizing: border-box;
		width: 100%;
		padding: 4px 12px 12px;
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		box-sizing: border-box;
		width: 100%;
		padding: 11px 14px;
		border: 1px solid #d7c3a2;
		border-radius: 3px;
		color: #513a29;
		background: #f4ead8;
		font: 17px Georgia, serif;
		cursor: pointer;
	}

	.menu-toggle__icon {
		display: grid;
		gap: 4px;
		width: 20px;
	}

	.menu-toggle__icon i {
		display: block;
		height: 2px;
		background: currentColor;
		transition: transform .2s ease, opacity .2s ease;
	}

	.menu-toggle[aria-expanded='true'] .menu-toggle__icon i:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}

	.menu-toggle[aria-expanded='true'] .menu-toggle__icon i:nth-child(2) {
		opacity: 0;
	}

	.menu-toggle[aria-expanded='true'] .menu-toggle__icon i:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.rowMenu {
		display: none;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2px 8px;
		padding: 8px 0 0;
		margin: 0!important;
	}

	.rowMenu.is-open {
		display: grid;
	}

	.rowMenu li {
		float: none!important;
		min-width: 0;
		margin: 0!important;
		padding: 8px 6px!important;
		border-top: 1px solid #e7dcbc!important;
	}

	.rowMenu a {
		display: block;
		line-height: 1.25;
	}

	#mainBody {
		padding: 8px 18px 22px;
	}

	h1, H1 {
		font-size: clamp(34px, 9vw, 52px);
		line-height: 1.08;
		margin: 22px 0;
		padding-top: 0;
	}

	h2, H2 { font-size: 26px; }
	h3, H3 { font-size: 21px; }

	#main_col,
	#rcol,
	#lcol,
	#info,
	#add_info,
	.b_row,
	#MainSearch,
	.resRow,
	.resTtl,
	.resSrc,
	#land_map {
		box-sizing: border-box;
		float: none;
		width: 100%;
		min-width: 0;
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}

	#rcol {
		clear: both;
		padding-top: 12px;
	}

	#r_banner {
		display: none;
	}

	#r_info {
		width: 100%;
		font-size: 92%;
	}

	.col1,
	.col2 {
		float: none;
		width: 100%;
		margin: 18px 0;
	}

	.d0 {
		float: none;
		width: 100%;
		min-width: 0;
	}

	#d1,
	#d2 {
		box-sizing: border-box;
		float: none;
		width: 100%;
		min-height: 0;
		margin: 0 0 12px;
	}

	.collection-banner {
		height: 150px;
		margin: 12px 0 22px;
	}

	.collection-banner__title {
		left: 10px;
		bottom: 10px;
		max-width: calc(100% - 40px);
		font-size: 15px;
	}

	#prevGallery {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	#prevGallery a,
	#prevGallery img {
		box-sizing: border-box;
		width: 100%;
		height: auto;
		margin: 0;
	}

	#size_info {
		float: none;
		max-width: 100%;
		margin: 18px auto;
	}

	#ex_img,
	#ex_txt {
		box-sizing: border-box;
		float: none;
		width: 100%;
		height: auto;
		padding-right: 0;
		text-align: left;
	}

	table {
		max-width: 100%;
	}

	#footer {
		min-height: 0;
		margin-top: 18px;
		padding: 12px 18px 20px;
	}

	#copyright,
	#bottom_add {
		float: none;
		display: block;
		width: 100%;
		margin-top: 10px;
		text-align: left;
		line-height: 1.7;
	}

	#copyright nobr {
		white-space: normal;
	}

	#bottom_add .b_item {
		display: inline-block;
		padding: 4px 8px 4px 0;
	}

	#slider {
		display: none;
	}

	.home-slider {
		margin: 10px 0 28px;
	}

	.home-slider__track {
		display: grid;
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(250px, 78vw);
		gap: 10px;
		overflow-x: auto;
		overflow-y: hidden;
		margin-left: -18px;
		margin-right: -18px;
		padding-left: 18px;
		padding-right: 18px;
		scroll-padding-left: 18px;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.home-slider__track::-webkit-scrollbar {
		display: none;
	}

	.home-slider__slide:nth-child(n+5) {
		display: block;
	}

	.home-slider__slide {
		height: 220px;
		border-radius: 3px;
	}

	.home-slider__hint {
		display: block;
		margin: 2px 0 0;
		color: #8c7b6c;
		font-size: 13px;
		text-align: right;
	}

	#mastercontainer,
	div.main,
	.stripViewer,
	.stripViewer .panelContainer .panel {
		box-sizing: border-box;
		width: 100%!important;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

@media (max-width: 520px) {
	#lang {
		position: absolute;
		top: 15px;
		right: 14px;
		z-index: 2;
		width: auto;
		margin: 0;
		padding: 0;
	}

	#top {
		align-items: flex-start;
		padding-top: 22px;
	}

	#top #contacts {
		flex: 0 0 100%;
		margin-left: 0;
		text-align: left!important;
	}

	.rowMenu {
		grid-template-columns: 1fr;
	}

	#mainBody {
		padding-left: 14px;
		padding-right: 14px;
	}

	.home-slider__track {
		grid-auto-columns: 84vw;
		margin-left: -14px;
		margin-right: -14px;
		padding-left: 14px;
		padding-right: 14px;
		scroll-padding-left: 14px;
	}

	.collection-banner__item:nth-child(3) {
		display: none;
	}

	#prevGallery {
		grid-template-columns: 1fr 1fr;
	}
}
