body {
	background-color: #f8f9fa;
}

.navbar {
	margin-bottom: 20px;
	background-color: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar .navbar-brand img {
	max-height: 40px;
}

.navbar .form-inline input {
	border-radius: 0;
}

.navbar .form-inline button {
	border-radius: 0;
}

.card {
	cursor: pointer;
}

.card img {
	object-fit: cover;
}

/* Override link color for artwork cards */
a.text-decoration-none {
	color: #212529 !important;
}

a.text-decoration-none .card-body .text-muted {
	color: #6c757d !important;
}

a.text-decoration-none p,
a.text-decoration-none div {
	color: #212529 !important;
}

.modal-body {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.modal-body .rounded-circle {
	margin-top: 20px;
}

.modal-body p {
	margin-top: 10px;
	text-align: center;
}

.modal-body button {
	margin-top: 15px;
}

.pagination {
	justify-content: center;
}

.pagination .page-link {
	color: #007bff;
}

.pagination .page-item.active .page-link {
	background-color: #007bff;
	border-color: #007bff;
	color: whitesmoke;
}

.bg-light {
	background-color: #ebedef !important;
}

/* Turbo-powered modal styles */
#gallery-modal {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1050;
	overflow-y: auto;
}

#gallery-modal .modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1040;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.5);
}

#gallery-modal .modal-dialog {
	z-index: 1060;
	position: relative;
}

/* Ensure close button is visible on mobile */
#gallery-modal .btn-close {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 1070;
	opacity: 1;
	width: 2em;
	height: 2em;
	padding: 0;
	background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1.2em auto no-repeat;
	border: none;
	cursor: pointer;
}

#gallery-modal .modal-header {
	position: relative;
	min-height: 50px;
}