/* ===== Image Gallery Plugin Styles ===== */

.igp-gallery-page,
.igp-full-gallery-page {
	max-width: 1300px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: 'Noto Nastaliq Urdu', 'Segoe UI', sans-serif;
}

/* Gallery Header */
.igp-gallery-header {
	text-align: center;
	margin-bottom: 50px;
}

.igp-gallery-title,
.igp-full-gallery-page .igp-gallery-title {
	color: #0A2463;
	font-size: 42px;
	margin: 0 0 30px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15px;
}

.igp-gallery-title i,
.igp-full-gallery-page .igp-gallery-title i {
	color: #f59e0b;
	font-size: 42px;
}

/* Category Filters */
.igp-category-filters {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.igp-category-btn {
	background: white;
	color: #0A2463;
	border: 2px solid #0A2463;
	padding: 10px 25px;
	border-radius: 50px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s;
	font-family: 'Noto Nastaliq Urdu', sans-serif;
}

.igp-category-btn:hover {
	background: #0A2463;
	color: white;
}

.igp-category-btn.active {
	color: white;
	background: #f59e0b;
	border-color: #f59e0b;
}

/* Gallery Grid - Base Styles */
.igp-gallery-grid {
	display: grid;
	gap: 20px;
}

/* Grid Columns */
.igp-gallery-grid.igp-columns-1 { grid-template-columns: repeat(1, 1fr); }
.igp-gallery-grid.igp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.igp-gallery-grid.igp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.igp-gallery-grid.igp-columns-4 { grid-template-columns: repeat(4, 1fr); }
.igp-gallery-grid.igp-columns-5 { grid-template-columns: repeat(5, 1fr); }
.igp-gallery-grid.igp-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Gallery Item - Base Styles */
.igp-gallery-item {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	transition: all 0.3s;
	background: white;
	border: 1px solid #e5e7eb;
}

.igp-gallery-item:hover {
	box-shadow: 0 20px 30px rgba(10, 36, 99, 0.25);
	border-color: #f59e0b;
}

.igp-gallery-item .igp-glightbox {
	padding: 10px;
	display: block;
}

.igp-image-wrapper {
	padding: 0;
	position: relative;
	aspect-ratio: 4/3;
	overflow: hidden;
	cursor: pointer;
}

.igp-image-wrapper img {
	width: 100%;
	height: 100% !important;
	object-fit: contain !important;
	transition: transform 0.5s;
}

.igp-gallery-item:hover .igp-image-wrapper img {
	transform: scale(1.08);
}

/* Hover Overlay */
.igp-image-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to top, rgba(10, 36, 99, 0.9), transparent);
	opacity: 0;
	transition: opacity 0.3s;
	display: flex;
	align-items: flex-end;
	padding: 20px;
}

.igp-gallery-item:hover .igp-image-overlay {
	opacity: 1;
}

.igp-overlay-content {
	color: white;
	transform: translateY(20px);
	transition: transform 0.3s;
}

.igp-gallery-item:hover .igp-overlay-content {
	transform: translateY(0);
}

.igp-image-title {
	margin: 0 0 10px 0;
	font-size: 18px;
	color: #f59e0b;
}

.igp-image-location,
.igp-image-date {
	display: block;
	font-size: 13px;
	margin-bottom: 5px;
	color: rgba(255, 255, 255, 0.9);
}

.igp-image-location i,
.igp-image-date i {
	color: #f59e0b;
	margin-left: 5px;
	width: 16px;
}

/* Zoom Icon */
.igp-zoom-icon {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #f59e0b;
	color: white;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	opacity: 0;
	transform: scale(0.8);
	transition: all 0.3s;
	z-index: 2;
}

.igp-gallery-item:hover .igp-zoom-icon {
	opacity: 1;
	transform: scale(1);
}

.igp-zoom-icon:hover {
	background: #0A2463;
	transform: scale(1.1) !important;
}

/* Image Caption */
.igp-image-caption {
	background: #f8fafc;
	padding: 15px;
	border-top: 2px solid #f59e0b;
}

.igp-image-caption p {
	margin: 0;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
}

/* No Images */
.igp-no-images {
	text-align: center;
	padding: 80px 20px;
	background: #f8fafc;
	border-radius: 20px;
	border: 2px dashed #e5e7eb;
}

.igp-no-images i {
	font-size: 60px;
	color: #9ca3af;
	margin-bottom: 20px;
}

.igp-no-images h3 {
	color: #0A2463;
	margin-bottom: 10px;
}

.igp-no-images p {
	color: #6b7280;
}

/* Full Gallery Container */
.igp-full-gallery,
.igp-main-gallery {
	max-width: 1300px;
	margin: 0 auto;
}

#igp-pagination {
	gap: 20px;
	margin: 0;
	display: flex;
	padding: 30px 20px;
	align-items: center;
	justify-content: center;
}

/* ===== BEAUTIFUL CENTERED PAGINATION ===== */
.igp-ajax-pagination {
	margin: 60px 0 40px;
	text-align: center;
	width: 100%;
}

/* Page Buttons (Prev/Next) */
.igp-page-btn {
	padding: 0;
	width: 48px;
	height: 48px;
	border: none;
	font-family: "Roboto", sans-serif;
	background: linear-gradient(135deg, #0A2463, #1e3a8a);
	color: white;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 18px rgba(10, 36, 99, 0.25);
}

.igp-page-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, #f59e0b, #fbbf24);
	box-shadow: 0 12px 25px rgba(245, 158, 11, 0.35);
}

.igp-page-btn:disabled {
	background: #e5e7eb;
	color: #9ca3af;
	cursor: not-allowed;
	opacity: 0.6;
	box-shadow: none;
	transform: none;
}

/* Page Numbers Container */
.igp-page-numbers {
	gap: 12px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

/* Individual Page Number */
.igp-page-number {
	padding: 0;
	height: 48px;
	min-width: 48px;
	border: none;
	background: #f8fafc;
	color: #0A2463;
	border-radius: 5px;
	cursor: pointer;
	font-family: "Roboto", sans-serif;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-weight: 700;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
	border: 2px solid transparent;
}

.igp-page-number:hover {
	color: white;
	background: #f59e0b;
	box-shadow: 0 10px 20px rgba(245, 158, 11, 0.3);
	border-color: #f59e0b;
}

.igp-page-number.active {
	color: white;
	background: #0A2463;
	border-color: #0A2463;
	box-shadow: 0 10px 20px rgba(10, 36, 99, 0.3);
}

/* Loading Spinner */
.igp-loading-spinner {
	text-align: center;
	margin: 40px 0;
}

.spinner {
	display: inline-block;
	width: 60px;
	height: 60px;
	border: 5px solid rgba(245, 158, 11, 0.2);
	border-top: 5px solid #f59e0b;
	border-radius: 50%;
	animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
	.igp-gallery-grid.igp-columns-5,
	.igp-gallery-grid.igp-columns-6 {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 992px) {
	.igp-gallery-grid.igp-columns-4,
	.igp-gallery-grid.igp-columns-5,
	.igp-gallery-grid.igp-columns-6 {
		grid-template-columns: repeat(3, 1fr);
	}
	
	.igp-gallery-title,
	.igp-full-gallery-page .igp-gallery-title {
		font-size: 36px;
	}
}

@media (max-width: 768px) {
	.igp-gallery-title,
	.igp-full-gallery-page .igp-gallery-title {
		font-size: 32px;
	}

	.igp-category-filters {
		gap: 10px;
	}

	.igp-category-btn {
		padding: 8px 20px;
		font-size: 14px;
	}

	.igp-gallery-grid.igp-columns-3,
	.igp-gallery-grid.igp-columns-4,
	.igp-gallery-grid.igp-columns-5,
	.igp-gallery-grid.igp-columns-6 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.igp-full-gallery-page .igp-gallery-title i {
		font-size: 32px;
	}
	
	.igp-page-numbers {
		order: 2;
		width: 100%;
	}
	
	.igp-page-btn {
		order: 1;
	}
}

@media (max-width: 576px) {
	.igp-gallery-grid[class*="igp-columns-"] {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.igp-gallery-title,
	.igp-full-gallery-page .igp-gallery-title {
		font-size: 28px;
	}

	.igp-gallery-title i,
	.igp-full-gallery-page .igp-gallery-title i {
		font-size: 28px;
	}
	
	.igp-page-btn {
		width: 100%;
		max-width: 200px;
		border-radius: 40px;
	}
	
	.igp-page-number {
		min-width: 42px;
		height: 42px;
		font-size: 14px;
	}
	
	.igp-zoom-icon {
		width: 35px;
		height: 35px;
		font-size: 16px;
	}
}