.sw-photo-carousel,
.sw-photo-carousel * { box-sizing: border-box; }

.elementor-widget-seewell_photo_carousel { margin-block-end: 0; }
.elementor-widget-seewell_photo_carousel > .elementor-widget-container { margin: 0; padding: 0; }
.e-con:has(> .elementor-widget-seewell_photo_carousel) { padding: 0 !important; }
.sw-photo-carousel { width: 100%; padding: 56px 24px; background: #f7f5f0; color: #34363d; font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
.sw-photo-carousel__inner { width: 100%; max-width: 1280px; margin-inline: auto; }
.sw-photo-carousel__header { margin-bottom: 32px; text-align: center; }
.sw-photo-carousel__eyebrow { margin: 14px 0 0; color: #C39160; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; }
.sw-photo-carousel__heading { margin: 0; color: #387e80; font-size: clamp(30px, 2.5vw, 36px); font-weight: 700; line-height: 1.2; }

/* Card framing and numbered footer borrow the filmstrip's editorial treatment. */
.sw-photo-carousel__stage { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; isolation: isolate; }
.sw-photo-carousel__slide { position: relative; display: flex; flex-direction: column; width: 100%; min-width: 0; aspect-ratio: 1.48; margin: 0; padding: 7px; overflow: hidden; border: 1px solid #d8d5ca; border-radius: 7px; background: #f9f8f4; color: #34363d; font-family: inherit; text-align: left; box-shadow: 0 8px 22px rgba(23, 29, 27, .12); cursor: pointer; }
.sw-photo-carousel__slide::before { position: absolute; z-index: 2; inset: 3px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 4px; content: ""; pointer-events: none; }
.sw-photo-carousel__portrait { position: relative; display: block; flex: 1 1 auto; min-height: 0; overflow: hidden; background: #d4c7aa; }
.sw-photo-carousel__portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sw-photo-carousel__identity { position: relative; z-index: 1; display: flex; flex: 0 0 70px; align-items: center; justify-content: center; min-width: 0; padding: 10px 12px; border-top: 1px solid #e6e3da; background: #f5f4ef; text-align: center; }
.sw-photo-carousel__index { position: absolute; top: 50%; left: 12px; display: grid; width: 38px; height: 38px; border: 1px solid #387e80; border-radius: 50%; color: #387e80; font-size: 13px; font-weight: 700; transform: translateY(-50%); place-items: center; font-variant-numeric: tabular-nums; }
.sw-photo-carousel__meta { display: flex; width: 100%; min-width: 0; flex-direction: column; align-items: center; gap: 5px; padding-inline: 48px; text-align: center; }
.sw-photo-carousel__name { max-width: 100%; overflow: hidden; color: #34363d; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.sw-photo-carousel__role { color: #387e80; font-family: inherit; font-size: 8px; font-weight: 700; line-height: 1.2; letter-spacing: .14em; }
.sw-photo-carousel__slide:focus-visible { outline: 3px solid #387e80; outline-offset: 4px; }

.sw-photo-carousel.is-ready .sw-photo-carousel__stage { display: block; position: relative; left: 50%; width: min(calc(100vw - 48px), 1920px); height: clamp(370px, 30vw, 500px); margin-inline: 0; overflow: visible; perspective: 1450px; transform: translateX(-50%); }
.sw-photo-carousel.is-ready .sw-photo-carousel__slide { position: absolute; top: 50%; left: 50%; width: clamp(340px, 31vw, 560px); height: auto; aspect-ratio: 1.48; transform: translate(-50%, -50%); transform-style: preserve-3d; opacity: 0; filter: brightness(.76); pointer-events: none; transition: opacity .32s ease, filter .32s ease, box-shadow .32s ease; will-change: transform, opacity; }
.sw-photo-carousel.is-ready .sw-photo-carousel__slide.is-visible { pointer-events: auto; }
.sw-photo-carousel.is-ready .sw-photo-carousel__slide.is-active { filter: brightness(1); box-shadow: 0 22px 48px rgba(35, 31, 22, .2); }
.sw-photo-carousel.is-ready .sw-photo-carousel__slide.is-near { filter: brightness(.84); }
.sw-photo-carousel.is-ready .sw-photo-carousel__slide.is-far { filter: brightness(.68); }
.sw-photo-carousel.is-ready .sw-photo-carousel__slide.is-hidden { pointer-events: none; }

.sw-photo-carousel__controls { display: flex; align-items: center; justify-content: center; gap: 26px; margin-top: 28px; }
.sw-photo-carousel__arrow { display: grid; flex: 0 0 auto; width: 48px; height: 48px; padding: 0 0 3px; border: 0; border-radius: 50%; background: #387e80; color: #fff; font-size: 27px; line-height: 1; box-shadow: 0 5px 14px rgba(56, 126, 128, .22); cursor: pointer; transition: background .2s ease, transform .2s ease; place-items: center; }
.sw-photo-carousel__arrow:hover { filter: brightness(.94); transform: translateY(-1px); }
.sw-photo-carousel__arrow:focus-visible { outline: 3px solid #387e80; outline-offset: 3px; }
.sw-photo-carousel__counter { min-width: 82px; color: #387e80; font-size: 19px; font-weight: 700; letter-spacing: .08em; text-align: center; font-variant-numeric: tabular-nums; }
.sw-photo-carousel__counter-divider { padding-inline: 3px; color: #91b8b8; }

@media (min-width: 1181px) {
	.sw-photo-carousel__heading { font-size: 38px; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.sw-photo-carousel__heading { font-size: clamp(32px, 3.8vw, 36px); }
	.sw-photo-carousel.is-ready .sw-photo-carousel__stage { height: clamp(360px, 42vw, 430px); }
	.sw-photo-carousel.is-ready .sw-photo-carousel__slide { width: clamp(320px, 45vw, 500px); }
}
@media (min-width: 768px) and (max-height: 850px) {
	.sw-photo-carousel.is-ready .sw-photo-carousel__stage { height: clamp(270px, 43vh, 360px); }
	.sw-photo-carousel.is-ready .sw-photo-carousel__slide { width: clamp(280px, min(29vw, 42vh), 400px); }
}
@media (min-width: 768px) and (max-height: 700px) {
	.elementor-widget-seewell_photo_carousel .sw-photo-carousel.is-ready { padding-top: 32px; padding-bottom: 32px; }
	.sw-photo-carousel.is-ready .sw-photo-carousel__header { margin-bottom: 20px; }
	.sw-photo-carousel.is-ready .sw-photo-carousel__stage { height: clamp(240px, 42vh, 300px); }
	.sw-photo-carousel.is-ready .sw-photo-carousel__slide { width: clamp(260px, min(27vw, 38vh), 360px); }
	.sw-photo-carousel.is-ready .sw-photo-carousel__controls { margin-top: 16px; }
}
@media (max-width: 767px) {
	.sw-photo-carousel { padding: 44px 14px; }
	.sw-photo-carousel__header { margin-bottom: 24px; }
	.sw-photo-carousel__eyebrow { margin-top: 14px; }
	.sw-photo-carousel__heading { font-size: clamp(28px, 8vw, 30px); line-height: 1.18; }
	.sw-photo-carousel__stage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sw-photo-carousel.is-ready .sw-photo-carousel__stage { left: auto; width: 100%; height: clamp(280px, 78vw, 360px); margin: 0; overflow: hidden; perspective: none; touch-action: pan-y; transform: none; }
	.sw-photo-carousel.is-ready .sw-photo-carousel__slide { width: min(calc(100% - 12px), 420px); aspect-ratio: 1.22; border-radius: 10px; }
	.sw-photo-carousel__identity { flex-basis: 60px; padding: 8px 9px; }
	.sw-photo-carousel__index { left: 9px; width: 32px; height: 32px; font-size: 11px; }
	.sw-photo-carousel__meta { padding-inline: 40px; }
	.sw-photo-carousel__name { font-size: 12px; }
	.sw-photo-carousel__role { font-size: 8px; }
	.sw-photo-carousel__controls { position: relative; z-index: 2; gap: 12px; margin-top: 14px; }
	.sw-photo-carousel__arrow { width: 40px; height: 40px; font-size: 23px; }
	.sw-photo-carousel__counter { min-width: 66px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.sw-photo-carousel.is-ready .sw-photo-carousel__slide { transition: none; }
}
