/* Galeri Foto Kegiatan Kampus - Modern Responsive Grid & Lightbox Styles */

.iai-gallery-wrapper {
	margin-top: 1.5rem;
	margin-bottom: 2.5rem;
}

.iai-gallery-section-title {
	font-size: 1.75rem;
	font-weight: 800;
	color: #0f172a;
	margin-bottom: 1.5rem;
}

/* Album Card Grid */
.iai-gallery-album-grid,
.iai-gallery-photos-grid {
	display: grid;
	gap: 20px;
}

.iai-gallery-album-grid.cols-2, .iai-gallery-photos-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.iai-gallery-album-grid.cols-3, .iai-gallery-photos-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.iai-gallery-album-grid.cols-4, .iai-gallery-photos-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.iai-gallery-album-grid.cols-5, .iai-gallery-photos-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 992px) {
	.iai-gallery-album-grid.cols-4, .iai-gallery-photos-grid.cols-4,
	.iai-gallery-album-grid.cols-5, .iai-gallery-photos-grid.cols-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.iai-gallery-album-grid, .iai-gallery-photos-grid {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 14px;
	}
}

@media (max-width: 480px) {
	.iai-gallery-album-grid, .iai-gallery-photos-grid {
		grid-template-columns: 1fr !important;
	}
}

/* Album Card Item */
.iai-gallery-card {
	background: #ffffff;
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
}

.iai-gallery-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 28px -6px rgba(15, 23, 42, 0.15);
	border-color: #cbd5e1;
}

.iai-gallery-card-thumb {
	position: relative;
	height: 220px;
	overflow: hidden;
	background: #0f172a;
}

.iai-gallery-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.iai-gallery-card:hover .iai-gallery-card-thumb img {
	transform: scale(1.06);
}

.iai-gallery-badge-count {
	position: absolute;
	top: 12px;
	right: 12px;
	background: rgba(15, 23, 42, 0.82);
	color: #f59e0b;
	font-weight: 700;
	font-size: 0.8rem;
	padding: 4px 12px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.iai-gallery-card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.iai-gallery-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px 0;
	line-height: 1.35;
}

.iai-gallery-card-meta {
	font-size: 0.825rem;
	color: #64748b;
	margin-bottom: 16px;
}

.iai-gallery-open-btn {
	margin-top: auto;
	background-color: #6b21a8;
	color: #ffffff;
	border: none;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 0.875rem;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
	text-align: center;
	width: 100%;
}

.iai-gallery-open-btn:hover {
	background-color: #581c87;
	transform: translateY(-1px);
}

/* Single Photo Grid Items */
.iai-gallery-photo-item {
	position: relative;
	height: 200px;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: #0f172a;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.iai-gallery-photo-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.iai-gallery-photo-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.iai-gallery-zoom-icon {
	color: #ffffff;
	font-weight: 700;
	font-size: 0.9rem;
	background: rgba(107, 33, 168, 0.85);
	padding: 6px 14px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
}

.iai-gallery-photo-item:hover img {
	transform: scale(1.08);
}

.iai-gallery-photo-item:hover .iai-gallery-photo-overlay {
	opacity: 1;
}

/* Lightbox Modal HD Popup */
.iai-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.iai-lightbox.active {
	display: flex;
	opacity: 1;
}

.iai-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.92);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.iai-lightbox-container {
	position: relative;
	z-index: 2;
	width: 92%;
	max-width: 1100px;
	height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.iai-lightbox-content {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.iai-lightbox-image-wrap {
	position: relative;
	max-width: 100%;
	max-height: 80vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.iai-lightbox-image-wrap img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
	transition: opacity 0.2s ease;
}

.iai-lightbox-caption-bar {
	margin-top: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	max-width: 900px;
	color: #f1f5f9;
	font-size: 0.95rem;
}

#iai-lightbox-caption {
	font-weight: 600;
	text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#iai-lightbox-counter {
	color: #f59e0b;
	font-weight: 700;
	font-size: 0.85rem;
	background: rgba(255, 255, 255, 0.1);
	padding: 4px 12px;
	border-radius: 20px;
}

/* Lightbox Buttons */
.iai-lightbox-close {
	position: absolute;
	top: -10px;
	right: -10px;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.3);
	font-size: 28px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	z-index: 10;
}

.iai-lightbox-close:hover {
	background: #dc2626;
}

.iai-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.25);
	font-size: 22px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	z-index: 10;
}

.iai-lightbox-nav:hover {
	background: #6b21a8;
	border-color: #6b21a8;
}

.iai-lightbox-nav.prev { left: -20px; }
.iai-lightbox-nav.next { right: -20px; }

@media (max-width: 768px) {
	.iai-lightbox-nav.prev { left: 5px; }
	.iai-lightbox-nav.next { right: 5px; }
	.iai-lightbox-close { top: 10px; right: 10px; }
}
