/**
 * ThryonLab Multi Column Content — front-end
 */

[data-tlc-columns] {
	--tlc-cols-lg: 3;
	--tlc-cols-md: 2;
	--tlc-cols-sm: 1;
	--tlc-btn-blue: #0d6efd;
	--tlc-color-title: #0a2558;
	--tlc-color-text: #5c6578;
	--tlc-color-accent: #e91e63;
	margin-bottom: 80px;
}

[data-tlc-columns] > div:first-child {
	width: 100%;
	padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
	padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
	margin-right: auto;
	margin-left: auto;
	box-sizing: border-box;
}

@media (min-width: 576px) {
	[data-tlc-columns] > div:first-child {
		max-width: 540px;
	}
}

@media (min-width: 768px) {
	[data-tlc-columns] > div:first-child {
		max-width: 720px;
	}
}

@media (min-width: 992px) {
	[data-tlc-columns] > div:first-child {
		max-width: 960px;
	}
}

@media (min-width: 1200px) {
	[data-tlc-columns] > div:first-child {
		max-width: 1140px;
	}
}

@media (min-width: 1400px) {
	[data-tlc-columns] > div:first-child {
		max-width: 1320px;
	}
}

.tlc-columns__header {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 1rem;
	@media (min-width: 1200px) {
		margin: 0 auto 2.5rem;
	}
}

.tlc-columns__section-subheading {
	margin: 0 0 1rem;
	font-size: 1.125rem;
	color: var(--tlc-color-text);
}

.tlc-columns__section-description {
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--tlc-color-text);
}

.tlc-columns__section-description > *:first-child {
	margin-top: 0;
}

.tlc-columns__section-description > *:last-child {
	margin-bottom: 0;
}

.tlc-columns__grid {
	display: grid;
	grid-template-columns: repeat(var(--tlc-cols-sm), minmax(0, 1fr));
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.tlc-columns__grid {
		grid-template-columns: repeat(var(--tlc-cols-md), minmax(0, 1fr));
	}
}

@media (min-width: 992px) {
	.tlc-columns__grid {
		grid-template-columns: repeat(var(--tlc-cols-lg), minmax(0, 1fr));
		gap: 2rem;
	}
}

.tlc-columns__col-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	gap: 1rem;
	position: relative;
}

.tlc-columns__media {
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.tlc-columns__media img,
.tlc-columns__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	object-position: top center;
}

.tlc-columns__icon-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
	width: 64px;
	min-width: 64px;
}

.thry-card__icon.tlc-columns__icon-inner--blue,
.thry-card__icon.tlc-columns__icon-inner--teal,
.thry-card__icon.tlc-columns__icon-inner--purple,
.thry-card__icon.tlc-columns__icon-inner--orange,
.thry-card__icon.tlc-columns__icon-inner--pink,
.thry-card__icon.tlc-columns__icon-inner--green,
.thry-card__icon.tlc-columns__icon-inner--custom {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	min-width: 64px;
	min-height: 64px;
	border-radius: 50%;
}

.thry-card__icon.tlc-columns__icon-inner--blue {
	background: rgba(13, 91, 255, 0.1);
	color: #0d5bff;
}

.thry-card__icon.tlc-columns__icon-inner--teal {
	background: rgba(13, 148, 136, 0.12);
	color: #0d9488;
}

.thry-card__icon.tlc-columns__icon-inner--purple {
	background: rgba(124, 58, 237, 0.1);
	color: #7c3aed;
}

.thry-card__icon.tlc-columns__icon-inner--orange {
	background: rgba(249, 115, 22, 0.12);
	color: #f97316;
}

.thry-card__icon.tlc-columns__icon-inner--pink {
	background: rgba(236, 72, 153, 0.12);
	color: #ec4899;
}

.thry-card__icon.tlc-columns__icon-inner--green {
	background: rgba(69, 177, 44, 0.12);
	color: #45b12c;
}

.thry-card__icon.tlc-columns__icon-inner--custom {
	background: color-mix(in srgb, var(--tlc-icon-color, #0d5bff) 12%, transparent);
	color: var(--tlc-icon-color, #0d5bff);
}

/* Colored circle: override theme gradient on .bi */
.thry-card__icon.tlc-columns__icon-inner--blue .bi,
.thry-card__icon.tlc-columns__icon-inner--teal .bi,
.thry-card__icon.tlc-columns__icon-inner--purple .bi,
.thry-card__icon.tlc-columns__icon-inner--orange .bi,
.thry-card__icon.tlc-columns__icon-inner--pink .bi,
.thry-card__icon.tlc-columns__icon-inner--green .bi,
.thry-card__icon.tlc-columns__icon-inner--custom .bi {
	background: none;
	-webkit-background-clip: unset;
	background-clip: unset;
	-webkit-text-fill-color: unset;
	color: inherit;
}

.tlc-columns__icon-img {
	display: block;
	max-width: 100%;
	height: auto;
	object-fit: contain;
}

.thry-card__icon i {
	font-size: 2rem;
	line-height: 1;
}

.tlc-columns__icon-text {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tlc-color-title);
}

.tlc-columns__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.5rem;
}

.tlc-columns__eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tlc-color-accent);
}

.tlc-columns__title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1.2;
	color: var(--tlc-color-title);
}

.tlc-columns__heading-accent,
.tlc-columns__title-accent {
	display: inline-block;
	color: var(--tlc-color-accent);
}

.tlc-columns__subtitle {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--tlc-color-title);
}

.tlc-columns__text {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--tlc-color-text);
}

.tlc-columns__text > *:first-child {
	margin-top: 0;
}

.tlc-columns__text > *:last-child {
	margin-bottom: 0;
}

.tlc-columns__long-text {
	margin-top: 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--tlc-color-text);
}

.tlc-columns__long-text > *:first-child {
	margin-top: 0;
}

.tlc-columns__long-text > *:last-child {
	margin-bottom: 0;
}

.tlc-columns__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	align-items: center;
	margin-top: auto;
	padding-top: 0.5rem;
}

.tlc-columns__link {
	font-weight: 600;
	text-decoration: underline;
	color: var(--tlc-btn-blue);
}

.tlc-columns__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	border-radius: 999px;
	transition: background 0.2s ease, transform 0.15s ease;
}

.tlc-columns__btn-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

/* Image bottom */
.tlc-columns--img-bottom .tlc-columns__media {
	order: 2;
}

.tlc-columns--img-bottom .tlc-columns__content {
	order: 1;
}

.tlc-columns__content {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 1rem;
	min-width: 0;
}

/* Image left / right */
.tlc-columns--img-left .tlc-columns__col-inner,
.tlc-columns--img-right .tlc-columns__col-inner {
	flex-direction: row;
	align-items: flex-start;
}

.tlc-columns--img-left .tlc-columns__media,
.tlc-columns--img-right .tlc-columns__media {
	flex: 0 0 42%;
	max-width: 42%;
}

.tlc-columns__icon {
	display: flex;
	justify-content: center;
}

/* Icon beside content (left / right) */
.tlc-columns--icon-left .tlc-columns__content-row,
.tlc-columns--icon-right .tlc-columns__content-row {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 1rem;
}

.tlc-columns--icon-left .tlc-columns__icon,
.tlc-columns--icon-right .tlc-columns__icon {
	flex-shrink: 0;
}

.tlc-columns--icon-left .tlc-columns__body,
.tlc-columns--icon-right .tlc-columns__body {
	flex: 1;
	min-width: 0;
}

/* Icon bottom within content stack */
.tlc-columns--icon-bottom .tlc-columns__icon {
	order: 2;
}

.tlc-columns--icon-bottom .tlc-columns__body {
	order: 1;
}

/* Layout without icon hides icon block */
.tlc-columns--layout-image_text .tlc-columns__icon {
	display: none;
}

.tlc-columns--layout-icon_text .tlc-columns__media {
	display: none;
}

@media (max-width: 767px) {
	.tlc-columns--img-left .tlc-columns__col-inner,
	.tlc-columns--img-right .tlc-columns__col-inner {
		flex-direction: column;
	}

	.tlc-columns--img-left .tlc-columns__media,
	.tlc-columns--img-right .tlc-columns__media {
		flex: none;
		max-width: none;
		width: 100%;
	}
}

/* Slider / Bootstrap carousel mode */
.tlc-columns--slider .carousel {
	position: relative;
	padding-left: 2.5rem;
	padding-right: 2.5rem;
	padding-bottom: 2.5rem;
}

.tlc-columns--slider .carousel-inner {
	overflow: hidden;
}

.tlc-columns--slider .carousel-item {
	height: auto;
	min-height: 0;
}

.tlc-columns--slider .carousel-item .row {
	align-items: stretch;
}

.tlc-columns--slider .tlc-columns__col {
	height: 100%;
}

.tlc-columns--slider .carousel-control-prev,
.tlc-columns--slider .carousel-control-next {
	width: 2.75rem;
	opacity: 1;
	z-index: 3;
}

.tlc-columns--slider .carousel-control-prev {
	left: 0;
}

.tlc-columns--slider .carousel-control-next {
	right: 0;
}

.tlc-columns--slider .carousel-control-prev-icon,
.tlc-columns--slider .carousel-control-next-icon {
	width: 1.5rem;
	height: 1.5rem;
	filter: none;
	background-color: rgba(0, 0, 0, 0.45);
	border-radius: 50%;
	background-size: 60% 60%;
}

.tlc-columns--slider .carousel-indicators {
	margin-bottom: 0;
	z-index: 3;
}

.tlc-columns--slider .carousel-indicators [data-bs-target] {
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.35);
	border: 0;
	opacity: 1;
}

.tlc-columns--slider .carousel-indicators .active {
	background-color: rgba(0, 0, 0, 0.75);
}

/* One-card scroll-snap track (chrome look comes from theme .thry-tech-carousel) */
.tlc-columns__carousel--scroll {
	position: relative;
}

.tlc-columns__scroll-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	width: 100%;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.tlc-columns__scroll-viewport::-webkit-scrollbar {
	display: none;
}

.tlc-columns__scroll-track {
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
}

.tlc-columns__scroll-card {
	box-sizing: border-box;
	min-width: 0;
	/* Shadow/hover room stays inside the flex item so overflow clip does not cut it, and no side peek. */
	padding: 0.75rem;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.tlc-columns__scroll-card > .tlc-columns__col,
.tlc-columns__scroll-card > article {
	height: 100%;
}

/* Post-source extras (portfolio / service) */
.tlc-columns__category,
.thry-project-card__category {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0.15rem 0 0.35rem;
}

.tlc-columns__industry,
.thry-project-card__industry {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin: 0.15rem 0 0.65rem;
}

.tlc-columns__website {
	display: inline-block;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	margin-top: 0.35rem;
}

.tlc-columns__website:hover,
.tlc-columns__website:focus {
	text-decoration: underline;
}

.tlc-columns__screens {
	display: flex;
	gap: 0.35rem;
	padding: 0.5rem 0 0;
	overflow-x: auto;
}

.tlc-columns__screen {
	flex: 0 0 auto;
	width: 48px;
	height: 36px;
	object-fit: cover;
	border-radius: 4px;
}

.tlc-columns__tech-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.tlc-columns__list {
	margin: 0.5rem 0 0;
	padding-left: 1.1rem;
}

.tlc-columns__list li {
	margin-bottom: 0.25rem;
}

.tlc-columns__footer {
	margin-top: 0.75rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.tlc-columns__action,
.thry-project-card__action {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 50%;
	text-decoration: none;
	font-size: 1.25rem;
	line-height: 1;
	position: relative;
	z-index: 2;
}

.tlc-columns__col--linked,
.tlc-columns__col.thry-project-card--linked {
	position: relative;
}

.tlc-columns__stretched-link,
.thry-project-card__stretched-link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.tlc-columns__website,
.thry-project-card__website,
.tlc-columns__actions,
.tlc-columns__action,
.thry-project-card__action {
	position: relative;
	z-index: 2;
}
