/* Campus Modal Carousel Styles */
.campus-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	font-family: var(--font-family);
	color: var(--theme-color);
	padding: 0;
	pointer-events: all;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	overflow: hidden;
}

/* Backdrop with blur effect */
.campus-modal::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(10px);
	z-index: -1;
	pointer-events: none;
}

/* Theme-aware backdrop for light mode */
[theme="light"] .campus-modal::before {
	background: rgba(255, 255, 255, 0.3);
}

.campus-header {
	font-size: 2.5rem;
	margin-top: 3rem;
	margin-bottom: 2rem;
	text-align: center;
	color: var(--theme-color);
	font-family: var(--font-family);
}
.campus-carousel-wrapper {
	width: 100vw;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 0;
	box-sizing: border-box;
	min-height: 0; /* Allows flex item to shrink below content size */
}
.campus-carousel {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	width: 100vw;
	height: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	gap: 2rem;
	padding-left: 50vw;
	padding-right: 50vw;
	scrollbar-width: none;
}
.campus-carousel::-webkit-scrollbar { display: none; }
.campus-carousel-item {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: all 0.4s cubic-bezier(.4,2,.6,1);
	cursor: pointer;
	/* max-width: 35vw; */
	/* margin: 0 1rem; */
	height: 100%;
	max-height: 100%;
	flex-shrink: 0;
}
.campus-carousel-item.selected {
	transform: scale(1);
	z-index: 2;
	opacity: 1;
	max-width: 75vw;
}
.campus-carousel-img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	flex-shrink: 1;
	min-height: 0;
	min-width: 0;
	object-fit: contain;
	border-radius: 1.5rem;
	box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
	background: transparent;
	transition: box-shadow 0.25s, border 0.25s;
	border: 3px solid transparent;
}
.campus-carousel-item.selected .campus-carousel-img {
	border: 3px solid var(--theme-color);
	box-shadow: 0 4px 24px 0 rgba(0,0,0,0.18);
}
.campus-carousel-label {
	font-size: 1.9rem;
	text-align: center;
	margin: 0 0 0.7rem 0;
	color: var(--theme-color);
	line-height: 1.1;
	overflow: visible;
	flex-shrink: 0;
}

.campus-modal-confirm {
	background-color: rgb(53, 101, 248);
	padding: 0.5rem 1.5rem;
	font-size: 2rem;
	color: white;
	border-radius: 3rem;
	font-weight: 500;
	align-self: end;
    transition: background 0.25s;
	margin: 2rem 1.5rem;
}
.campus-modal-confirm:hover {
	background: #1d2fcb;
}

@media (max-width: 600px) {
	/* .campus-carousel-item { max-width: 50vw; } */
	/* .campus-carousel-item.selected { max-width: 55vw; } */
	.campus-header { font-size: 2rem; }
}
