/* States Index Page Styles - Shared across state landing pages */

body {
	opacity: 0;
	transition: opacity 0.5s ease;
}
body.loaded {
	opacity: 1;
}

/* Page title styling */
h2 {
	text-align: center;
	font-size: 30px;
	letter-spacing: 8px;
	margin: 40px 0 30px 0;
	color: blue;
	font-family: Garamond, serif;
	padding: 40px 0 6px 0;
}

/* Cinematic fade banner - reusable for state transition pages */
.europe-fade-banner {
	position: relative;
	width: 100%;
	aspect-ratio: 1400 / 788;
	max-width: 1400px;
	margin: 0 auto 10px auto;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}
.europe-fade-banner .fade-image {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 2.8s ease-in-out;
}
.europe-fade-banner .fade-image.next-active {
	transition-delay: 9800ms;
}
.europe-fade-banner .fade-active {
	opacity: 1;
}
.europe-fade-banner .fade-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1.05);
	will-change: transform;
}
.europe-fade-banner .fade-zoom img {
	--kb-name: kenburns_base;
	animation: var(--kb-name) 20000ms ease-out forwards;
}
@keyframes kenburns_base {
	0% { transform: scale(1); }
	100% { transform: scale(1.2); }
}

/* Caption overlay - customizable per state */
.hawaii-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 28px 40px;
	background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
	color: #fff;
	font-size: 1.4rem;
	font-weight: 300;
	letter-spacing: 0.5px;
	pointer-events: none;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 1.2s ease, transform 1.2s ease;
}
.fade-active .hawaii-caption {
	opacity: 1;
	transform: translateY(0);
}

/* Grid containers - flexible for state places */
.grid-container {
	max-width: 1000px;
	margin: 0 auto 10px auto;
	padding: 0 10px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 25px;
}
.multi-pics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 18px;
	padding: 10px 0;
	align-items: start;
}
.multi-pic-item {
	text-align: center;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 0 0 1px black;
	transition: box-shadow 0.25s ease;
	position: relative;
}
.multi-pic-item a {
	display: block;
	border-radius: inherit;
}
.multi-pic-item img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	border: 0;
	border-radius: 0;
	box-shadow: 0 6px 14px rgba(0,0,0,0.22);
	transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.multi-pic-item:hover img,
.multi-pic-item a:focus-visible img {
	transform: scale(1.04);
	box-shadow: 0 10px 20px rgba(0,0,0,0.35);
	filter: saturate(1.05);
}
.multi-pic-item:hover,
.multi-pic-item a:focus-visible {
	box-shadow: 0 0 0 1px red;
}
.multi-pic-caption {
	margin-top: 10px;
	font-family: Garamond, serif;
	font-size: 27px;
	color: #333;
	line-height: 1.25;
}

/* States section titles */
.states-title {
	text-align: center;
	font-size: 32px;
	font-family: Garamond, serif;
	margin-bottom: 10px;
}
.states-subtitle {
	text-align: center;
	font-size: 18px;
	color: #555;
	margin-bottom: 10px;
	font-style: italic;
}
.states-divider {
	width: 80px;
	height: 3px;
	background: #6072FE;
	margin: 0 auto 20px auto;
	border-radius: 2px;
}

/* Fade-in animation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.grid-item {
	opacity: 0;
	animation: fadeInUp 0.6s ease forwards;
}
.grid-item:nth-child(1) { animation-delay: 0.05s; }
.grid-item:nth-child(2) { animation-delay: 0.10s; }
.grid-item:nth-child(3) { animation-delay: 0.15s; }
.grid-item:nth-child(4) { animation-delay: 0.20s; }
.grid-item:nth-child(5) { animation-delay: 0.25s; }
.grid-item:nth-child(6) { animation-delay: 0.30s; }
/* Hawaii-specific caption (alias for state-caption) */
.hawaii-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 28px 40px;
	background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
	color: #fff;
	font-size: 1.4rem;
	font-weight: 300;
	letter-spacing: 0.5px;
	pointer-events: none;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 1.2s ease, transform 1.2s ease;
}
.fade-active .hawaii-caption {
	opacity: 1;
	transform: translateY(0);
}
