@media (min-width: 661px) {
	.mkl-pc-advanced-description {
		height: auto;
        max-width: 600px;
        max-height: 85vh;
        min-height: 300px;
		transform: translate(-50%, -50%) scale(0.96);
		transition:
			transform 0.45s ease,
			opacity 0.45s ease;
	}

	.mkl-pc-showing-advanced-description .mkl-pc-advanced-description {
		transform: translate(-50%, -50%) scale(1);
	}
}

@media (max-width: 660px) {
	.mkl-pc-advanced-description {
		height: auto;
		min-height: 320px;
		max-height: 90vh;
		width: 100vw;
		left: 0;
		top: auto;
		bottom: 0;
		transform: translate3d(0, 100%, 0);
		transition:
			transform 0.75s ease,
			opacity 0.75s ease;
	}

	.mkl-pc-showing-advanced-description .mkl-pc-advanced-description {
		transform: translate3d(0, 0, 0);
	}
}

.mkl-pc-advanced-description .gn-advanced-description-gallery {
	width: 100%;
	margin: 0 0 16px 0;
}

.mkl-pc-advanced-description .mkl-advanced-description--header button.close-description {
	position: relative !important;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin: 0 0 0 auto;
	padding: 12px;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-size: 0;
	line-height: 1;
	overflow: visible !important;
	cursor: pointer;
	appearance: none;
}

.mkl-pc-advanced-description .mkl-advanced-description--header button.close-description::before,
.mkl-pc-advanced-description .mkl-advanced-description--header button.close-description::after {
	content: "";
	position: absolute;
	top: 28px;
	left: 18px;
	display: block !important;
	width: 20px;
	height: 2px;
	background: #000;
	opacity: 1;
	transform-origin: center;
	pointer-events: none;
}

.mkl-pc-advanced-description .mkl-advanced-description--header button.close-description::before {
	transform: rotate(45deg);
}

.mkl-pc-advanced-description .mkl-advanced-description--header button.close-description::after {
	transform: rotate(-45deg);
}

.mkl-pc-advanced-description .mkl-advanced-description--header button.close-description .gn-modal-close {
	position: static;
	top: auto;
	right: auto;
	float: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: #000;
	line-height: 1;
	z-index: auto;
	opacity: 0;
	pointer-events: none;
}

.mkl-pc-advanced-description .mkl-advanced-description--header button.close-description .gn-modal-close svg {
	display: block;
	width: 20px;
	height: 20px;
}

.mkl-pc-advanced-description .mkl-advanced-description--header button.close-description .gn-modal-close svg line {
	stroke: #000;
	stroke-width: 2;
	stroke-linecap: square;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__main {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 0;
	background: #f5f5f5;
	aspect-ratio: 4 / 3;
	touch-action: pan-y;
	cursor: grab;
	user-select: none;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__main:active {
	cursor: grabbing;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__main-media {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__main-image {
	cursor: zoom-in;
}

.gn-advanced-description-gallery-lightbox-open {
	overflow: hidden;
}

.gn-advanced-description-gallery-lightbox[hidden] {
	display: none;
}

.gn-advanced-description-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100004;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
	opacity: 0;
	visibility: hidden;
	transition:
		opacity 0.18s ease,
		visibility 0.18s ease;
	touch-action: none;
	user-select: none;
	cursor: zoom-out;
}

.gn-advanced-description-gallery-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.gn-advanced-description-gallery-lightbox__viewport {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 24px;
	touch-action: none;
	cursor: zoom-out;
}

.gn-advanced-description-gallery-lightbox__image {
	cursor: zoom-in;
}

.gn-advanced-description-gallery-lightbox.is-max-zoom .gn-advanced-description-gallery-lightbox__image {
	cursor: grab;
}

.gn-advanced-description-gallery-lightbox.is-max-zoom .gn-advanced-description-gallery-lightbox__image:active {
	cursor: grabbing;
}

.gn-advanced-description-gallery-lightbox__image {
	display: block;
	max-width: min(100%, 1400px);
	max-height: 100%;
	object-fit: contain;
	transform: translate3d(0, 0, 0) scale(1);
	transform-origin: center center;
	will-change: transform;
	touch-action: none;
	user-select: none;
	-webkit-user-drag: none;
}

.gn-advanced-description-gallery-lightbox__close {
	position: absolute;
	right: 16px;
	top: 16px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.24);
	cursor: pointer;
	appearance: none;
}

.gn-advanced-description-gallery-lightbox__close span,
.gn-advanced-description-gallery-lightbox__close span::before {
	content: "";
	position: absolute;
	width: 20px;
	height: 2px;
	background: #000;
	transform-origin: center;
}

.gn-advanced-description-gallery-lightbox__close span {
	transform: rotate(45deg);
}

.gn-advanced-description-gallery-lightbox__close span::before {
	left: 0;
	top: 0;
	transform: rotate(90deg);
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__main-vimeo {
	border: 0;
	pointer-events: none;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__sound-toggle {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px;
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0 !important;
	border: 0;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
	box-sizing: border-box;
	color: #000;
	line-height: 1;
	cursor: pointer;
	appearance: none;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__sound-icon {
	position: relative;
	display: block;
	width: 19px;
	height: 19px;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__sound-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
	fill: currentColor;
	stroke: currentColor;
	stroke-width: 2.25;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__sound-icon svg path:first-child {
	stroke: none;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__sound-icon svg path:not(:first-child) {
	fill: none;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__sound-toggle.is-muted::after {
	content: "";
	position: absolute;
	left: 9px;
	top: 17px;
	width: 20px;
	height: 2px;
	background: currentColor;
	transform: rotate(-45deg);
	transform-origin: center;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__controls {
	margin-top: 12px;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__thumbs {
	display: flex;
	gap: 10px;
	min-width: 0;
	overflow-x: auto;
	padding: 2px 2px 6px;
	scrollbar-width: thin;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__thumb {
	position: relative;
	flex: 0 0 76px;
	width: 76px;
	height: auto;
	aspect-ratio: 4 / 3;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 0;
	background: #f5f5f5;
	cursor: pointer;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__thumb.is-video::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	width: 34px;
	height: 34px;
	background: rgba(255, 255, 255, 0.84);
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__thumb.is-video::after {
	content: "";
	position: absolute;
	left: calc(50% + 2px);
	top: 50%;
	z-index: 2;
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 12px solid #000;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__thumb.is-active {
	border-color: #000;
	box-shadow: 0 0 0 2px #fff inset;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__video-thumb {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #000;
	background: #e8e8e8;
}

.mkl-pc-advanced-description .gn-advanced-description-gallery__video-thumb::before {
	content: "";
	display: none;
}

.mkl-pc-advanced-description .gn-advanced-description-text .gn-advanced-description-empty-text {
	display: none;
}

@media (max-width: 720px) {
	.mkl-pc-advanced-description .gn-advanced-description-gallery {
		margin-bottom: 16px;
	}

	.mkl-pc-advanced-description .gn-advanced-description-gallery__thumb {
		flex-basis: 68px;
		width: 68px;
	}

	.gn-advanced-description-gallery-lightbox__viewport {
		padding: 16px;
	}

	.gn-advanced-description-gallery-lightbox__close {
		right: 12px;
		top: 12px;
		width: 42px;
		height: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gn-advanced-description-gallery-lightbox {
		transition: none;
	}
}
