.sw-workshop-gallery,
.sw-workshop-gallery * {
	box-sizing: border-box;
}

.elementor-widget-seewell_workshop_gallery {
	margin-block-end: 0;
}

.e-con:has(> .elementor-widget-seewell_workshop_gallery) {
	padding: 0 !important;
}

.sw-workshop-gallery {
	--sw-workshop-gap: 16px;
	width: 100%;
	padding: 80px 24px;
	background: #f7f6f2;
	color: #333;
	font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sw-workshop-gallery__inner {
	width: 100%;
	max-width: 1024px;
	margin-inline: auto;
}

.sw-workshop-gallery__header {
	text-align: center;
}

.sw-workshop-gallery__heading {
	margin: 0;
	color: #387e80;
	font-size: clamp(30px, 2.5vw, 36px);
	font-weight: 700;
	line-height: 1.2;
}

.sw-workshop-gallery__label {
	margin: 26px 0 18px;
	color: #c39160;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.sw-workshop-gallery__team-grid,
.sw-workshop-gallery__workshop-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--sw-workshop-gap);
}

.sw-workshop-gallery__description {
	margin: 24px 0;
	color: #666;
	font-size: 14px;
	line-height: 1.6;
	text-align: center;
}

.sw-workshop-gallery__image-frame {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 14px;
	background: #e9e7e2;
	box-shadow: 0 5px 18px rgba(38, 61, 57, 0.06);
}

.sw-workshop-gallery__team-item {
	aspect-ratio: 16 / 9;
}

.sw-workshop-gallery--ratio-4-3 .sw-workshop-gallery__workshop-item {
	aspect-ratio: 4 / 3;
}

.sw-workshop-gallery--ratio-16-9 .sw-workshop-gallery__workshop-item {
	aspect-ratio: 16 / 9;
}

.sw-workshop-gallery--ratio-3-2 .sw-workshop-gallery__workshop-item {
	aspect-ratio: 3 / 2;
}

.sw-workshop-gallery--ratio-1-1 .sw-workshop-gallery__workshop-item {
	aspect-ratio: 1;
}

.sw-workshop-gallery__image-button {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

.sw-workshop-gallery__image-frame img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: var(--sw-workshop-focus, center center);
	transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.sw-workshop-gallery__image-frame:hover img,
.sw-workshop-gallery__image-button:focus-visible img {
	transform: scale(1.05);
}

.sw-workshop-gallery__image-button:focus-visible {
	outline: 3px solid #387e80;
	outline-offset: -4px;
}

.sw-workshop-gallery--motion .sw-workshop-reveal.sw-workshop-reveal-ready {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.65s ease, transform 0.65s ease;
}

.sw-workshop-gallery--motion .sw-workshop-reveal.sw-workshop-reveal-ready.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.sw-workshop-lightbox[hidden] {
	display: none;
}

.sw-workshop-lightbox {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	padding: 28px;
	opacity: 0;
	transition: opacity 0.2s ease;
	place-items: center;
}

.sw-workshop-lightbox.is-open {
	opacity: 1;
}

.sw-workshop-lightbox__backdrop {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(18, 20, 19, 0.88);
	cursor: zoom-out;
}

.sw-workshop-lightbox__content {
	position: relative;
	z-index: 1;
	display: grid;
	max-width: min(1200px, 92vw);
	max-height: 90vh;
	place-items: center;
}

.sw-workshop-lightbox__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 86vh;
	border-radius: 12px;
	box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.sw-workshop-lightbox__close {
	position: absolute;
	z-index: 2;
	top: -18px;
	right: -18px;
	display: grid;
	width: 42px;
	height: 42px;
	padding: 0 0 4px;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 999px;
	background: #fff;
	color: #292929;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	place-items: center;
}

.sw-workshop-lightbox__close:focus-visible {
	outline: 3px solid #c39160;
	outline-offset: 3px;
}

body.sw-workshop-lightbox-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.sw-workshop-gallery {
		padding: 64px 16px;
	}

	.sw-workshop-gallery__heading {
		font-size: 30px;
	}

	.sw-workshop-gallery__label {
		margin-top: 22px;
	}

	.sw-workshop-gallery__team-grid,
	.sw-workshop-gallery__workshop-grid {
		grid-template-columns: 1fr;
	}

	.sw-workshop-gallery__description {
		margin-block: 20px;
		font-size: 13px;
	}

	.sw-workshop-lightbox {
		padding: 16px;
	}

	.sw-workshop-lightbox__close {
		top: -14px;
		right: -8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sw-workshop-gallery__image-frame img,
	.sw-workshop-gallery--motion .sw-workshop-reveal.sw-workshop-reveal-ready,
	.sw-workshop-lightbox {
		transition: none;
	}

	.sw-workshop-gallery__image-frame:hover img,
	.sw-workshop-gallery__image-button:focus-visible img,
	.sw-workshop-gallery--motion .sw-workshop-reveal.sw-workshop-reveal-ready {
		opacity: 1;
		transform: none;
	}
}
