/* Gallery Styles - Student & Parent Portal */
.wlsm-gallery-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e9ecef;
}
.wlsm-gallery-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: #333;
	display: flex;
	align-items: center;
	gap: 10px;
}
.wlsm-gallery-title i {
	color: #3f51b5;
}
.wlsm-gallery-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 25px;
}
.wlsm-gallery-filter-btn {
	padding: 7px 16px;
	border-radius: 20px;
	border: 1px solid #dee2e6;
	background: #fff;
	color: #495057;
	font-size: 0.88rem;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
}
.wlsm-gallery-filter-btn:hover {
	border-color: #3f51b5;
	color: #3f51b5;
	background: #f8f9fe;
	text-decoration: none;
}
.wlsm-gallery-filter-btn.active {
	background: #3f51b5;
	color: #fff;
	border-color: #3f51b5;
	box-shadow: 0 2px 6px rgba(63, 81, 181, 0.3);
}
.wlsm-gallery-filter-btn .badge {
	background: rgba(0, 0, 0, 0.08);
	color: inherit;
	font-size: 0.75rem;
	padding: 2px 7px;
	border-radius: 10px;
}
.wlsm-gallery-filter-btn.active .badge {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}
.wlsm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
	margin-bottom: 30px;
}
.wlsm-gallery-card {
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	flex-direction: column;
	border: 1px solid #edf0f2;
	position: relative;
	cursor: pointer;
}
.wlsm-gallery-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.wlsm-gallery-thumb-wrap {
	position: relative;
	width: 100%;
	height: 195px;
	background: #f1f3f5;
	overflow: hidden;
}
.wlsm-gallery-thumb-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}
.wlsm-gallery-card:hover .wlsm-gallery-thumb-wrap img {
	transform: scale(1.05);
}
.wlsm-gallery-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #adb5bd;
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}
.wlsm-gallery-placeholder i {
	font-size: 3rem;
	margin-bottom: 6px;
}
.wlsm-gallery-badge-cat {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 10px;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 4px;
	color: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,0.25);
}
.wlsm-gallery-badge-photos {
	background: #17a2b8;
}
.wlsm-gallery-badge-student_work {
	background: #28a745;
}
.wlsm-gallery-badge-activities {
	background: #6f42c1;
}
.wlsm-gallery-badge-count {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 9px;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
	backdrop-filter: blur(2px);
	display: flex;
	align-items: center;
	gap: 5px;
}
.wlsm-gallery-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.wlsm-gallery-card-title {
	font-size: 1.05rem;
	font-weight: 600;
	color: #212529;
	margin: 0 0 6px 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.wlsm-gallery-card-meta {
	font-size: 0.8rem;
	color: #6c757d;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 5px;
}
.wlsm-gallery-card-desc {
	font-size: 0.85rem;
	color: #555;
	line-height: 1.45;
	margin: 0 0 14px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}
.wlsm-gallery-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 10px;
	border-top: 1px solid #f1f3f5;
}
.wlsm-gallery-view-btn {
	font-size: 0.85rem;
	font-weight: 600;
	color: #3f51b5;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.wlsm-gallery-empty {
	text-align: center;
	padding: 60px 20px;
	background: #fff;
	border-radius: 10px;
	border: 1px dashed #ced4da;
	color: #6c757d;
}
.wlsm-gallery-empty i {
	font-size: 3.5rem;
	color: #ced4da;
	margin-bottom: 15px;
}
.wlsm-gallery-empty h4 {
	font-size: 1.25rem;
	margin-bottom: 8px;
	color: #495057;
}

/* Lightbox Modal */
.wlsm-lightbox-modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 10, 15, 0.92);
	z-index: 999999;
	overflow: hidden;
	user-select: none;
}
.wlsm-lightbox-modal.active {
	display: flex;
	flex-direction: column;
}
.wlsm-lightbox-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	color: #fff;
	background: rgba(0, 0, 0, 0.4);
}
.wlsm-lightbox-header-left {
	display: flex;
	align-items: center;
	gap: 12px;
}
.wlsm-lightbox-title {
	font-size: 1.15rem;
	font-weight: 600;
	margin: 0;
	color: #fff;
}
.wlsm-lightbox-counter {
	font-size: 0.85rem;
	color: #adb5bd;
	background: rgba(255, 255, 255, 0.12);
	padding: 3px 10px;
	border-radius: 12px;
}
.wlsm-lightbox-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 1.6rem;
	cursor: pointer;
	padding: 4px 8px;
	line-height: 1;
	transition: color 0.2s ease;
}
.wlsm-lightbox-close:hover {
	color: #f44336;
}
.wlsm-lightbox-stage {
	flex: 1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 70px;
	min-height: 0;
}
.wlsm-lightbox-stage img {
	max-width: 100%;
	max-height: 70vh;
	object-fit: contain;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	border-radius: 4px;
	transition: opacity 0.2s ease;
}
.wlsm-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	font-size: 1.8rem;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
}
.wlsm-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.35);
	transform: translateY(-50%) scale(1.08);
}
.wlsm-lightbox-prev {
	left: 18px;
}
.wlsm-lightbox-next {
	right: 18px;
}
.wlsm-lightbox-thumbnails {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 20px 20px 20px;
	overflow-x: auto;
	max-height: 95px;
	background: rgba(0, 0, 0, 0.4);
}
.wlsm-lightbox-thumb {
	width: 60px;
	height: 60px;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.5;
	border: 2px solid transparent;
	transition: all 0.2s ease;
	flex-shrink: 0;
}
.wlsm-lightbox-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.wlsm-lightbox-thumb:hover {
	opacity: 0.85;
}
.wlsm-lightbox-thumb.active {
	opacity: 1;
	border-color: #3f51b5;
	transform: scale(1.05);
}
