.am-catalog-detail {
	display: grid;
	grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
	gap: 34px;
	align-items: start;
	margin: 0 0 32px;
}

.am-catalog-detail__media {
	min-width: 0;
}

.am-catalog-detail__image-frame {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	width: 100%;
	padding: 0;
	overflow: hidden;
	background: #f3efe8;
	border: 1px solid #eee5dc;
	cursor: zoom-in;
}

.am-catalog-detail__image-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.am-catalog-detail__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 14px 0 0;
}

.am-catalog-detail__thumb,
.am-catalog-detail__popup-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	padding: 0;
	background: #f7f2ea;
	border: 1px solid #eee5dc;
	cursor: pointer;
}

.am-catalog-detail__thumb.is-active,
.am-catalog-detail__popup-thumb.is-active {
	border-color: #e1ad00;
}

.am-catalog-detail__thumb img,
.am-catalog-detail__popup-thumb img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.am-catalog-detail__eyebrow {
	margin: 0 0 14px;
	color: #c8530f;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.am-catalog-detail__text {
	color: #333;
	font-size: 16px;
	line-height: 1.58;
}

.am-catalog-detail__text p {
	margin: 0 0 14px;
}

.am-catalog-gallery-open {
	overflow: hidden;
}

.am-catalog-detail__popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: none;
	align-items: center;
	justify-content: center;
	background: #fff;
}

.am-catalog-detail__popup.is-open {
	display: flex;
}

.am-catalog-detail__popup-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(84vw, 1280px);
	height: 86vh;
}

.am-catalog-detail__popup-stage img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	filter: drop-shadow(16px 24px 20px rgba(0, 0, 0, .18));
}

.am-catalog-detail__popup-close {
	position: fixed;
	top: 24px;
	right: 40px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.am-catalog-detail__popup-close::before,
.am-catalog-detail__popup-close::after {
	content: "";
	position: absolute;
	top: 18px;
	left: 7px;
	width: 25px;
	height: 1px;
	background: #b8b8b8;
}

.am-catalog-detail__popup-close::before {
	transform: rotate(45deg);
}

.am-catalog-detail__popup-close::after {
	transform: rotate(-45deg);
}

.am-catalog-detail__popup-arrow {
	position: fixed;
	top: 50%;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transform: translateY(-50%);
}

.am-catalog-detail__popup-arrow::before {
	content: "";
	position: absolute;
	top: 16px;
	width: 24px;
	height: 24px;
	border-top: 2px solid #7d7d7d;
	border-left: 2px solid #7d7d7d;
}

.am-catalog-detail__popup-arrow--prev {
	left: 18%;
}

.am-catalog-detail__popup-arrow--prev::before {
	left: 20px;
	transform: rotate(-45deg);
}

.am-catalog-detail__popup-arrow--next {
	right: 10%;
}

.am-catalog-detail__popup-arrow--next::before {
	right: 20px;
	transform: rotate(135deg);
}

.am-catalog-detail__popup-thumbs {
	position: fixed;
	top: 50%;
	left: 20px;
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-height: 80vh;
	overflow: auto;
	padding: 2px;
	transform: translateY(-50%);
}

.am-catalog-detail__popup-thumb {
	width: 66px;
	height: 66px;
	background: #fff;
	flex: 0 0 66px;
}

@media (max-width: 767px) {
	.am-catalog-detail {
		display: block;
	}

	.am-catalog-detail__media {
		margin: 0 0 24px;
	}

	.am-catalog-detail__popup-stage {
		width: 86vw;
		height: 70vh;
	}

	.am-catalog-detail__popup-thumbs {
		top: auto;
		left: 16px;
		right: 16px;
		bottom: 18px;
		flex-direction: row;
		max-height: none;
		transform: none;
	}

	.am-catalog-detail__popup-arrow--prev {
		left: 12px;
	}

	.am-catalog-detail__popup-arrow--next {
		right: 12px;
	}

	.am-catalog-detail__popup-close {
		top: 14px;
		right: 18px;
	}
}

@media (min-width: 1600px) {
	.am-catalog-detail__popup-stage {
		width: min(88vw, 1500px);
		height: 90vh;
	}
}
