.exg-gallery-wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

.exg-filters {
	display: flex;
	gap: 20px;
	margin-bottom: 2rem;
	padding: 20px;
	background: #f5f5f5;
	border-radius: 8px;
	flex-wrap: wrap;
	/* Handle many filters */
}

.exg-filter-group label {
	display: block;
	font-weight: bold;
	margin-bottom: 5px;
}

.exg-filter-select {
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	min-width: 150px;
}

.exg-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
}

.exg-gallery-item {
	border: 1px solid #eee;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
	text-decoration: none !important;
	/* For anchor tags */
	color: inherit !important;
}

.exg-gallery-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	cursor: pointer;
}

/* Ensure empty images don't break layout */
.exg-item-image {
	background: #fff;
	width: 100%;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-bottom: 1px solid #eee;
}

.exg-item-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	padding: 10px;
}

.exg-item-content {
	padding: 15px;
	flex-grow: 1;
}

.exg-item-title {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 1.1em;
	color: #333;
}

.exg-item-row {
	margin-bottom: 8px;
	font-size: 0.95em;
	color: #444;
	word-break: break-word;
	/* Ensure URLs don't overflow */
}