.ttc-carousel {
	margin: 0 0 1rem;
}

.ttc-carousel__frame,
.ttc-lightbox__frame {
	position: relative;
}

.ttc-carousel__track,
.ttc-lightbox__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.ttc-carousel__track::-webkit-scrollbar,
.ttc-lightbox__track::-webkit-scrollbar {
	display: none;
}

.ttc-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	min-width: 0;
}

.ttc-slide__open {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: #f4f4f4;
	cursor: zoom-in;
	position: relative;
}

.ttc-slide img,
.ttc-slide video {
	display: block;
	width: 100%;
	height: auto;
	max-height: 72vh;
	object-fit: contain;
	background: #f4f4f4;
}

.ttc-slide__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
}

.ttc-slide__play::before {
	content: "";
	position: absolute;
	left: 22px;
	top: 16px;
	border-style: solid;
	border-width: 12px 0 12px 18px;
	border-color: transparent transparent transparent #fff;
}

.ttc-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #1d2327;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
}

.ttc-carousel__nav::before {
	content: "";
	display: block;
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
}

.ttc-carousel__nav--prev { left: 8px; }
.ttc-carousel__nav--prev::before {
	transform: rotate(135deg);
	margin-left: 3px;
}
.ttc-carousel__nav--next { right: 8px; }
.ttc-carousel__nav--next::before {
	margin-right: 3px;
}

.ttc-carousel__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin-top: 8px;
	padding-bottom: 2px;
}

.ttc-inline-video {
	position: relative;
}

.ttc-slide__play-btn {
	position: absolute;
	inset: 0;
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
}

.ttc-slide__play-btn[hidden] {
	display: none;
}

.ttc-carousel__thumb {
	flex: 0 0 112px;
	width: 112px;
	height: 112px;
	padding: 0;
	border: 1px solid transparent;
	background: #f4f4f4;
	cursor: pointer;
}

.ttc-carousel__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ttc-carousel__thumb.is-active {
	border-color: #1d2327;
}

.ttc-carousel__thumb.is-video {
	position: relative;
}

.ttc-carousel__thumb.is-video::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -6px 0 0 -4px;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent #fff;
	filter: drop-shadow(0 0 1px #000);
}

.ttc-carousel__caption {
	margin: 8px 0 0;
	min-height: 1.2em;
	font-size: 0.95rem;
}

.ttc-lightbox {
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 12px 12px 20px;
	border: 0;
	background: #111;
	color: #fff;
}

.ttc-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.88);
}

.ttc-lightbox__bar {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
}

.ttc-lightbox__caption {
	flex: 1;
	margin: 0;
}

.ttc-lightbox__close {
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
}

.ttc-lightbox .ttc-slide img,
.ttc-lightbox .ttc-slide video {
	height: calc(100vh - 88px);
	background: transparent;
}

.ttc-lightbox .ttc-carousel__nav {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

@media (max-width: 782px) {
	.ttc-slide img,
	.ttc-slide video {
		max-height: 70vw;
	}

	.ttc-carousel__thumb {
		flex-basis: 80px;
		width: 80px;
		height: 80px;
	}

	.ttc-lightbox {
		padding: 8px;
	}

	.ttc-lightbox .ttc-slide img,
	.ttc-lightbox .ttc-slide video {
		height: calc(100vh - 72px);
		height: calc(100dvh - 72px);
	}
}
