/* Gallery Tailwind Custom Styles */

/* Body background */
body {
	background-color: #f8f9fa;
}

.bg-uf-yellow {
	background-color: #F6C042;
}

.text-uf-yellow {
	color: #F6C042;
}

/* Navigation bar shadow */
.gallery-nav {
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Logo max height */
.gallery-logo {
	max-height: 40px;
}

/* Card hover effect */
.gallery-card {
	cursor: pointer;
}

.gallery-card img {
	object-fit: cover;
}

/* Modal body centering */
.gallery-modal-body {
	display: flex;
	flex-direction: column;
	align-items: center;
}

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

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

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

/* Pagination centering and colors */
.gallery-pagination {
	justify-content: center;
}

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

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

/* Light background override */
.bg-gallery-light {
	background-color: #ebedef;
}

/* 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;
}

/* Close button for modal */
.gallery-modal-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;
}

/* Video aspect ratio helper */
.video-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	height: 0;
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
