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

.tmpst-al {
	position: relative;
	font-family: inherit;
	box-sizing: border-box;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	opacity: 0;
	transition: opacity 0.6s ease;
}

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

/* --------------------------------------------------------------------------
   Hero Layout
   -------------------------------------------------------------------------- */

.tmpst-al--hero {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 2rem;
	min-height: 480px;
}

.tmpst-al--hero .tmpst-al__content {
	position: relative;
	z-index: 2;
}

.tmpst-al--hero .tmpst-al__visual {
	position: relative;
	z-index: 1;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

/* --------------------------------------------------------------------------
   Card Layout
   -------------------------------------------------------------------------- */

.tmpst-al--card {
	max-width: 480px;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.tmpst-al--card .tmpst-al__content {
	padding: 0;
}

/* --------------------------------------------------------------------------
   Minimal Layout
   -------------------------------------------------------------------------- */

.tmpst-al--minimal {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.tmpst-al--minimal .tmpst-al__heading {
	font-size: 1.5rem !important;
	line-height: 1.2;
	margin-bottom: 0.25rem;
}

.tmpst-al--minimal .tmpst-al__sub {
	display: none;
}

.tmpst-al--minimal .tmpst-al__meta {
	flex: 1;
	min-width: 200px;
}

/* --------------------------------------------------------------------------
   Badge
   -------------------------------------------------------------------------- */

.tmpst-al__badge {
	display: inline-block;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Heading
   -------------------------------------------------------------------------- */

.tmpst-al__heading {
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	font-weight: 800;
	line-height: 1.05;
	margin: 0 0 1rem;
	letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Sub-heading
   -------------------------------------------------------------------------- */

.tmpst-al__sub {
	font-size: 1.05rem;
	line-height: 1.6;
	margin: 0 0 1.5rem;
	max-width: 440px;
}

/* --------------------------------------------------------------------------
   Event Meta
   -------------------------------------------------------------------------- */

.tmpst-al__meta {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	margin-bottom: 1.75rem;
	padding: 1rem 1.25rem;
	background: rgba(255, 255, 255, 0.7);
	border-radius: 12px;
	max-width: 440px;
	border: 1px solid rgba(0, 0, 0, 0.06);
}

.tmpst-al__date-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 64px;
	flex-shrink: 0;
}

.tmpst-al__date-day {
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.7;
}

.tmpst-al__date-number {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

.tmpst-al__details {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.tmpst-al__time,
.tmpst-al__location {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.95rem;
	line-height: 1.4;
}

.tmpst-al__icon {
	flex-shrink: 0;
	opacity: 0.6;
}

/* --------------------------------------------------------------------------
   CTA Button
   -------------------------------------------------------------------------- */

.tmpst-al__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 2rem;
	font-size: 0.95rem;
	font-weight: 700;
	text-decoration: none;
	border-radius: 50px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
	cursor: pointer;
	letter-spacing: 0.02em;
}

.tmpst-al__cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
	filter: brightness(1.05);
	text-decoration: none;
	color: inherit;
}

.tmpst-al__cta:active {
	transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Partner Label & Logo
   -------------------------------------------------------------------------- */

.tmpst-al__partner-wrap {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.5rem;
}

.tmpst-al--hero .tmpst-al__partner-wrap {
	align-items: flex-start;
}

.tmpst-al--card .tmpst-al__partner-wrap,
.tmpst-al--minimal .tmpst-al__partner-wrap {
	align-items: center;
}

.tmpst-al__partner {
	margin: 0;
	font-size: 0.8rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.55;
}

.tmpst-al__partner-logo img {
	display: block;
	width: 140px;
	height: auto;
	transition: opacity 0.2s ease;
}

.tmpst-al__partner-logo a:hover img {
	opacity: 0.75;
}

/* --------------------------------------------------------------------------
   No-event fallback
   -------------------------------------------------------------------------- */

.tmpst-al__no-event {
	font-size: 1rem;
	font-style: italic;
	opacity: 0.7;
	margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   Visual / Image
   -------------------------------------------------------------------------- */

.tmpst-al__event-image {
	width: 100%;
	max-width: 420px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tmpst-al__event-image img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* --------------------------------------------------------------------------
   Fallback Gallery (slideshow when no event)
   -------------------------------------------------------------------------- */

.tmpst-al__fb-gallery {
	display: grid;
	position: relative;
	width: 100%;
	max-width: 420px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.tmpst-al__fb-slide {
	grid-row: 1;
	grid-column: 1;
	position: relative;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.tmpst-al__fb-slide--active {
	opacity: 1;
}

.tmpst-al__fb-slide img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 380px;
	object-fit: cover;
}

.tmpst-al__fb-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 0.5rem 0.75rem;
	font-size: 0.8rem;
	line-height: 1.3;
	color: #555;
	background: rgba(255, 255, 255, 0.85);
}

.tmpst-al__fb-label {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	padding: 0.4rem 0.75rem;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
}

/* Prevent external parallax / motion effects from moving the gallery */
.tmpst-al__fb-gallery,
.tmpst-al__fb-slide,
.tmpst-al__fb-slide img {
	transform: none !important;
	will-change: auto !important;
	backface-visibility: hidden;
}

.elementor-widget-tmpst-art-lab {
	transform: none !important;
	will-change: auto !important;
}

/* --------------------------------------------------------------------------
   Safe Zone Badge
   -------------------------------------------------------------------------- */

.tmpst-al__safe-zone {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.4rem 1rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: rgba(255, 255, 255, 0.85);
	color: #333;
	border-radius: 6px;
	border: 1px solid rgba(0, 0, 0, 0.08);
}

/* --------------------------------------------------------------------------
   Decorative Shapes (Hero only)
   -------------------------------------------------------------------------- */

.tmpst-al__shapes {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.tmpst-al__shape {
	position: absolute;
	border-radius: 50%;
	opacity: 0.55;
}

.tmpst-al__shape--circle-teal {
	width: 120px;
	height: 120px;
	background: #2ebfa5;
	top: 5%;
	right: 32%;
}

.tmpst-al__shape--circle-yellow {
	width: 90px;
	height: 90px;
	background: #f5c542;
	top: 12%;
	right: 12%;
}

.tmpst-al__shape--circle-blue {
	width: 70px;
	height: 70px;
	background: #3b82f6;
	bottom: 28%;
	right: 42%;
}

.tmpst-al__shape--circle-coral {
	width: 110px;
	height: 110px;
	background: #f4845f;
	top: 8%;
	right: 2%;
}

.tmpst-al__shape--circle-green {
	width: 140px;
	height: 140px;
	background: #34d399;
	bottom: 4%;
	right: 22%;
	border-radius: 50% 50% 50% 20%;
}

.tmpst-al__shape--circle-purple {
	width: 80px;
	height: 80px;
	background: #7c3aed;
	bottom: 12%;
	right: 6%;
}

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

@media (max-width: 768px) {
	.tmpst-al--hero {
		grid-template-columns: 1fr;
		min-height: auto;
		text-align: center;
	}

	.tmpst-al--hero .tmpst-al__content {
		order: 2;
	}

	.tmpst-al--hero .tmpst-al__visual {
		order: 1;
	}

	.tmpst-al__meta {
		margin-left: auto;
		margin-right: auto;
	}

	.tmpst-al__sub {
		margin-left: auto;
		margin-right: auto;
	}

	.tmpst-al__event-image,
	.tmpst-al__fb-gallery {
		margin: 0 auto;
	}

	.tmpst-al__partner-wrap {
		align-items: center;
	}

	.tmpst-al__shapes {
		display: none;
	}

	.tmpst-al--minimal {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* --------------------------------------------------------------------------
   Entrance Animation
   -------------------------------------------------------------------------- */

.tmpst-al--visible {
	opacity: 1;
}

.elementor-editor-active .tmpst-al {
	opacity: 1;
}

@media (max-width: 480px) {
	.tmpst-al__heading {
		font-size: 2.25rem;
	}

	.tmpst-al__meta {
		flex-direction: column;
		align-items: flex-start;
	}
}
