html {
	margin: 0;
	padding: 0;
}

canvas {
	position: fixed;
	bottom: 0;
	right: 0;
	z-index: -1;
}

body {
	font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
	font-weight: 100;
	background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
	background-attachment: fixed;
	color: white;
	text-align: center;
	margin: 0;
	min-height: 100vh;
}

#header {
	margin-bottom: 20px;
}

/* ------------------------------- ALL IMAGES ------------------------------- */

img {
	z-index: 1;
	max-width: 100%; 
	max-height: 100%;
	width: auto;
	height: auto;
	position: relative;
	display: block;
	border-radius: 10px;
	object-fit: contain; 
	transition: transform 0.1s ease, filter 0.3s ease;
}

/* Image and overlay container */
.image-container {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 10px;
	transform-style: preserve-3d;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
	overflow: hidden;
}

.image-container:hover .overlay {
	opacity: 1;
}

/* 3D push-down effect - now only for images */
.image-container img {
	transition: transform 0.1s ease, filter 0.3s ease;
}

/* Default hover state for images - will be overridden by JavaScript */
.image-container:hover img {
	transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateZ(-5px);
	filter: blur(5px) brightness(0.75);
	z-index: 98;
}

/* Mouse-following highlight */
.mouse-highlight {
	position: absolute;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: radial-gradient(circle, 
		rgba(255, 255, 255, 0.3) 0%, 
		rgba(255, 255, 255, 0.1) 40%, 
		transparent 70%);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	z-index: 100;
	mix-blend-mode: overlay;
}

.image-container:hover::before {
	opacity: 1;
}

h2 {
	/* padding: 0px 0; */
	font-size: 28px;
	font-weight: 200;
	letter-spacing: 0.1em;
	color: #ffffff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
	margin: 0;
	padding-bottom: 20px;
	background: linear-gradient(45deg, #ffffff, #e0e0e0);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.works-container {
	border-radius: 25px;
	width: 100%;
	margin: 0 auto;
	padding: 20px 0;
}

.show-container {
	/* background: linear-gradient(135deg, rgba(21, 21, 21, 0.9), rgba(35, 35, 35, 0.8)); */
	/* backdrop-filter: blur(20px); */
	/* border-radius: 25px; */
	/* border: 1px solid rgba(255, 255, 255, 0.1); */
	/* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
	width: 95%;
	max-width: 1800px;
	margin: 0 auto 50px;
	padding: 30px 20px 40px;
	position: relative;
	overflow: hidden;
}

/* -------------------------------- PLAYBILL -------------------------------- */
.playbill-grid,
.film_tv-grid {
	width: 90%;
	margin: -20px auto;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
	gap: 0px; /* Remove gap between containers */
	padding: 10px;
}

.playbill-grid .image-container,
.film_tv-grid .image-container {
	height: 340px; /* Larger container */
	padding: 20px; /* Internal padding for spacing */
	box-sizing: border-box;
}

/* -------------------------------- PORTFOLIO ------------------------------- */

.portfolio-grid {
	line-height: 0;
	column-count: 3;
	column-gap: 15px;
	width: 75%;
	margin: 0 auto;
}

.portfolio-grid img {
	width: 100% !important;
	height: auto !important;
	margin-bottom: 15px;
	object-fit: contain !important;
}

/* --------------------------------- OVERLAY -------------------------------- */

.overlay {
	position: absolute;
	z-index: 99;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	color: white;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	opacity: 0;
	/* Hidden by default */
	transition: opacity 0.3s ease;
	/* Smooth transition */
	border-radius: 10px;
	pointer-events: none;
	/* Prevent overlay from interfering with hover */
	text-align: center;
	/* Ensure text is centered */
}

/* Text styling inside the overlay */
.overlay p {
	padding: 5px 10px;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
	margin: 6px 0;
	/* Increase vertical spacing for consistency */
	font-size: 12px;
	line-height: 1.3;
	/* Improve text readability */
}

.overlay .line1 {
	font-size: 13px;
	font-weight: bold;
}

.overlay .title {
	font-size: 9px;
	font-weight: bold;
}

@media only screen and (max-width: 1000px) {
	#header {
		margin-bottom: 15px;
	}

	h2 {
		font-size: 24px;
		padding: 15px 0;
	}

	.show-container {
		width: 98%;
		margin: 0 auto 40px;
		padding: 25px 15px 35px;
	}

	.playbill-grid,
	.film_tv-grid {
		width: 90%;
		margin: -20px auto;
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 0px;
		padding: 10px;
	}

	.playbill-grid .image-container,
	.film_tv-grid .image-container {
		height: 280px;
		padding: 15px;
	}

	.overlay p {
		font-size: 12px;
	}

	.image-container {
		overflow: hidden;
	}

	img:hover {
		transform: none;
		z-index: 98;
		filter: blur(5px) brightness(0.75);
	}
	
	/* Disable 3D effects on mobile for performance */
	.image-container:hover img {
		transform: none !important;
	}
	
	.image-container::before {
		display: none;
	}
	
	.mouse-highlight {
		display: none;
	}
}