/* ==========================================================================
   TMPST Art Lab Showcase Widget
   ========================================================================== */

.tmpst-sc {
	position: relative;
	font-family: inherit;
	box-sizing: border-box;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.tmpst-sc *,
.tmpst-sc *::before,
.tmpst-sc *::after {
	box-sizing: inherit;
}

/* --------------------------------------------------------------------------
   Section Header
   -------------------------------------------------------------------------- */

.tmpst-sc__header {
	text-align: center;
	margin-bottom: 2.5rem;
}

.tmpst-sc__heading {
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 0.5rem;
	letter-spacing: -0.01em;
	position: relative;
	display: inline-block;
}

.tmpst-sc__heading::after {
	content: '';
	display: block;
	width: 60px;
	height: 4px;
	border-radius: 2px;
	margin: 0.75rem auto 0;
}

/* --------------------------------------------------------------------------
   Introduction Text
   -------------------------------------------------------------------------- */

.tmpst-sc__intro {
	max-width: 760px;
	margin: 0 auto 3rem;
	font-size: 1.05rem;
	line-height: 1.75;
	text-align: center;
}

.tmpst-sc__intro p {
	margin: 0 0 1rem;
}

.tmpst-sc__intro p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Highlights Grid
   -------------------------------------------------------------------------- */

.tmpst-sc__highlights {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	margin-bottom: 3.5rem;
}

.tmpst-sc__hl {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	padding: 1.25rem;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.02);
	border: 1px solid rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tmpst-sc__hl:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

/* Icon */

.tmpst-sc__icon-wrap {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: #fff;
}

.tmpst-sc__icon-wrap svg {
	width: 22px;
	height: 22px;
}

/* Text */

.tmpst-sc__hl-body {
	min-width: 0;
}

.tmpst-sc__hl-title {
	font-size: 0.95rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
	line-height: 1.3;
}

.tmpst-sc__hl-desc {
	font-size: 0.875rem;
	line-height: 1.55;
	margin: 0;
	opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */

.tmpst-sc__gallery-heading {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 1.25rem;
	text-align: center;
}

.tmpst-sc__gallery {
	display: grid;
	gap: 1rem;
}

.tmpst-sc__gallery--cols-2 { grid-template-columns: repeat(2, 1fr); }
.tmpst-sc__gallery--cols-3 { grid-template-columns: repeat(3, 1fr); }
.tmpst-sc__gallery--cols-4 { grid-template-columns: repeat(4, 1fr); }

.tmpst-sc__photo {
	position: relative;
	margin: 0;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	cursor: pointer;
}

.tmpst-sc__photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.tmpst-sc__photo:hover img {
	transform: scale(1.05);
}

.tmpst-sc__caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 2rem 0.75rem 0.75rem;
	font-size: 0.8rem;
	line-height: 1.3;
	color: #fff;
	background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
	opacity: 0;
	transition: opacity 0.3s ease;
}

.tmpst-sc__photo:hover .tmpst-sc__caption {
	opacity: 1;
}

/* --------------------------------------------------------------------------
   Partner Section
   -------------------------------------------------------------------------- */

.tmpst-sc__partner {
	margin-top: 3.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	text-align: center;
}

.tmpst-sc__partner-heading {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin: 0 0 1.25rem;
	opacity: 0.5;
}

.tmpst-sc__partner-logo {
	display: flex;
	justify-content: center;
}

.tmpst-sc__partner-logo img {
	display: block;
	width: 200px;
	height: auto;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.tmpst-sc__partner-logo a {
	display: inline-block;
}

.tmpst-sc__partner-logo a:hover img {
	opacity: 0.8;
	transform: scale(1.03);
}

.tmpst-sc__partner-name {
	font-size: 1.1rem;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.tmpst-sc__partner-logo a:hover .tmpst-sc__partner-name {
	text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Lightbox Overlay
   -------------------------------------------------------------------------- */

.tmpst-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.88);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tmpst-lb--open {
	opacity: 1;
	visibility: visible;
}

.tmpst-lb__inner {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.tmpst-lb__img {
	display: block;
	max-width: 100%;
	max-height: 80vh;
	border-radius: 8px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
	object-fit: contain;
}

.tmpst-lb__caption {
	margin-top: 0.75rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.95rem;
	text-align: center;
	max-width: 600px;
}

.tmpst-lb__close,
.tmpst-lb__prev,
.tmpst-lb__next {
	position: absolute;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	font-size: 1.25rem;
	line-height: 1;
}

.tmpst-lb__close:hover,
.tmpst-lb__prev:hover,
.tmpst-lb__next:hover {
	background: rgba(255, 255, 255, 0.3);
}

.tmpst-lb__close {
	top: -54px;
	right: 0;
}

.tmpst-lb__prev {
	left: -60px;
	top: 50%;
	transform: translateY(-50%);
}

.tmpst-lb__next {
	right: -60px;
	top: 50%;
	transform: translateY(-50%);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
	.tmpst-sc__highlights {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.tmpst-sc__highlights {
		grid-template-columns: 1fr;
	}

	.tmpst-sc__gallery--cols-3,
	.tmpst-sc__gallery--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.tmpst-lb__prev {
		left: 8px;
	}

	.tmpst-lb__next {
		right: 8px;
	}

	.tmpst-lb__close {
		top: 8px;
		right: 8px;
	}
}

@media (max-width: 480px) {
	.tmpst-sc__gallery--cols-2,
	.tmpst-sc__gallery--cols-3,
	.tmpst-sc__gallery--cols-4 {
		grid-template-columns: 1fr;
	}

	.tmpst-sc__hl {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}
}
