.emwp-gallery-element {
	--emwp-main: #0e6365;
	--emwp-dark: #142333;
	--emwp-muted: #667085;
	--emwp-border: #e7ecef;
	--emwp-soft: #eef7f7;
	font-family: "BwGradual", Sans-serif;
	max-width: 1240px;
	margin: 0 auto;
	padding: 52px 20px;
	color: var(--emwp-dark);
}

.emwp-gallery-element * {
	box-sizing: border-box;
}

.emwp-gallery-element__shell {
	padding: 38px;
	border: 1px solid var(--emwp-border);
	border-radius: 20px;
	background: linear-gradient(135deg, #ffffff 0%, #fbfcfc 100%);
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.emwp-gallery-element__layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 320px;
	gap: 26px;
	align-items: center;
}

.emwp-gallery-element__layout--no-meta {
	grid-template-columns: minmax(0, 1fr) 320px;
}

.emwp-gallery-element__side {
	display: flex;
	flex-direction: column;
}

.emwp-gallery-element__side--left {
	gap: 18px;
}

.emwp-side-item {
	display: flex;
	flex-direction: column;
	padding: 16px;
	border: 1px solid var(--emwp-border);
	border-radius: 12px;
	background: var(--emwp-soft);
}

.emwp-side-label {
	display: flex;
	align-items: center;
	gap: 8px;
	text-transform: uppercase;
	color: var(--emwp-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	margin-bottom: 8px;
}

.emwp-side-item:first-child .emwp-side-label::before {
	content: "⌖";
	color: var(--emwp-main);
	line-height: 1;
}

.emwp-side-item:last-child .emwp-side-label::before {
	content: "▣";
	color: var(--emwp-main);
	line-height: 1;
}

.emwp-side-item strong {
	display: block;
}

.emwp-gallery-element__main-image {
	position: relative;
	height: 420px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--emwp-border);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);
}

.emwp-gallery-element__main-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s ease;
}

.emwp-image-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 50px;
	border: none;
	border-radius: 10px;
	background: rgba(14, 99, 101, 0.85);
	color: #fff;
	cursor: pointer;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.emwp-image-arrow:hover {
	background: rgba(14, 99, 101, 0.95);
	transform: translateY(-50%) scale(1.04);
}

.emwp-image-arrow--prev {
	left: 12px;
}

.emwp-image-arrow--next {
	right: 12px;
}

.emwp-icon-chevron {
	width: 22px;
	height: 22px;
	display: block;
	fill: currentColor;
}

.emwp-side-overline {
	text-transform: uppercase;
	color: var(--emwp-main);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 10px;
}

.emwp-side-overline::before {
	content: "✦";
	line-height: 1;
}

.emwp-gallery-element__side--right h3 {
	margin: 0 0 12px;
	line-height: 1.25;
}

.emwp-gallery-element__side--right p {
	margin: 0 0 18px;
	color: var(--emwp-muted);
	line-height: 1.6;
}

.emwp-gallery-element__side--right {
	padding: 18px;
	border: 1px solid var(--emwp-border);
	border-radius: 14px;
	background: #fff;
}

.emwp-gallery-element__title-link {
	color: var(--emwp-dark);
	font-size: clamp(20px, 2vw, 30px);
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: color 0.2s ease;
}

.emwp-gallery-element__title-link:hover,
.emwp-gallery-element__title-link:focus-visible {
	color: var(--emwp-main);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.emwp-gallery-element__thumbs-row {
	margin-top: 30px;
	padding-top: 18px;
	border-top: 1px solid var(--emwp-border);
	display: grid;
	grid-template-columns: 52px 1fr 52px;
	gap: 14px;
	align-items: center;
}

.emwp-thumbs-arrow {
	height: 52px;
	border: 0;
	border-radius: 12px;
	background: var(--emwp-main);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.emwp-thumbs-arrow:hover {
	background: #0b4f51;
}

.emwp-thumbs-track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding-bottom: 8px;
}

.emwp-thumb-card {
	min-width: 126px;
	height: 78px;
	border: 2px solid transparent;
	border-radius: 10px;
	overflow: hidden;
	padding: 0;
	background: transparent;
	cursor: pointer;
	opacity: 0.8;
	transition: 0.2s ease;
}

.emwp-thumb-card--has-title {
	height: auto;
	display: flex;
	flex-direction: column;
	overflow: visible;
	align-items: center;
}

.emwp-thumb-card--has-title img {
	flex: 0 0 78px;
	height: 78px;
	border-radius: 8px;
	overflow: hidden;
}

.emwp-thumb-card__title {
	display: block;
	margin-top: 6px;
	padding: 0 2px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--emwp-dark);
	text-align: center;
	word-break: break-word;
	white-space: normal;
	max-width: 126px;
}

.emwp-thumb-card.is-active .emwp-thumb-card__title,
.emwp-thumb-card:hover .emwp-thumb-card__title {
	color: var(--emwp-main);
}

.emwp-thumb-card:hover,
.emwp-thumb-card.is-active {
	opacity: 1;
	border-color: transparent;
	transform: translateY(-2px);
}

.emwp-thumb-card:not(.emwp-thumb-card--has-title):hover,
.emwp-thumb-card:not(.emwp-thumb-card--has-title).is-active {
	border-color: var(--emwp-main);
}

.emwp-thumb-card.is-active.emwp-thumb-card--has-title img,
.emwp-thumb-card--has-title.is-active img {
	outline: 2px solid var(--emwp-main);
	outline-offset: -2px;
}

.emwp-thumb-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border: 1px solid #ddd;
}

.emwp-gallery-element__dots {
	margin-top: 14px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.emwp-gallery-element__dots span {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: #d2d8dc;
}

.emwp-gallery-element__dots span.is-active {
	width: 34px;
	background: var(--emwp-main);
}

@media (max-width: 1100px) {
	.emwp-gallery-element__layout {
		grid-template-columns: 1fr;
	}

	.emwp-gallery-element__main-image {
		height: 360px;
	}

	.emwp-gallery-element__side {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.emwp-gallery-element__side--right {
		flex-direction: column;
	}
}

@media (max-width: 700px) {
	.emwp-gallery-element {
		padding: 34px 12px;
	}

	.emwp-gallery-element__shell {
		padding: 18px;
	}

	.emwp-gallery-element__main-image {
		height: 240px;
	}

	.emwp-gallery-element__thumbs-row {
		grid-template-columns: 42px 1fr 42px;
		gap: 8px;
	}

	.emwp-thumbs-arrow {
		height: 42px;
		border-radius: 10px;
	}

	.emwp-thumb-card {
		min-width: 98px;
		height: 64px;
	}
}
