/**
 * BGS Helper - Frontend Styles
 */

/* Gallery Wrapper */
.bgs-gallery-wrapper {
	width: 100%;
	margin: 20px 0;
}

/* Gallery Grid */
.bgs-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin: 0;
	padding: 0;
}

.bgs-gallery-columns-1 {
	grid-template-columns: repeat(1, 1fr);
}

.bgs-gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.bgs-gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.bgs-gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.bgs-gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.bgs-gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

/* Gallery Item */
.bgs-gallery-item {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #f5f5f5;
	aspect-ratio: 1;
}

.bgs-gallery-item img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.bgs-gallery-item:hover img {
	transform: scale(1.05);
}

/* Gallery Link */
.bgs-gallery-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
	position: relative;
	cursor: pointer;
}

/* Gallery Caption */
.bgs-gallery-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	color: #fff;
	padding: 15px 10px 10px;
	font-size: 14px;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bgs-gallery-item:hover .bgs-gallery-caption {
	opacity: 1;
}

/* Video Placeholder */
.bgs-video-placeholder {
	width: 100%;
	height: 100%;
	background: #333;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bgs-play-icon {
	font-size: 48px;
	color: #fff;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.bgs-gallery-item:hover .bgs-play-icon {
	opacity: 1;
}

/* Lightbox Overlay */
.bgs-lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.9);
	z-index: 999999;
	display: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bgs-lightbox-overlay.active {
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
}

/* Lightbox Container */
.bgs-lightbox-container {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Lightbox Content */
.bgs-lightbox-content {
	position: relative;
	max-width: 100%;
	max-height: 90vh;
}

.bgs-lightbox-content img {
	max-width: 100%;
	max-height: 90vh;
	object-fit: contain;
	display: block;
}

.bgs-lightbox-content iframe {
	width: 800px;
	height: 450px;
	max-width: 90vw;
	max-height: 90vh;
	border: none;
}

.bgs-lightbox-content video {
	max-width: 100%;
	max-height: 90vh;
}

/* Lightbox Caption */
.bgs-lightbox-caption {
	position: absolute;
	bottom: -40px;
	left: 0;
	right: 0;
	color: #fff;
	text-align: center;
	padding: 10px;
	font-size: 16px;
}

/* Lightbox Navigation */
.bgs-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #fff;
	font-size: 32px;
	width: 50px;
	height: 50px;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
	z-index: 10;
}

.bgs-lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.4);
}

.bgs-lightbox-prev {
	left: 20px;
}

.bgs-lightbox-next {
	right: 20px;
}

/* Lightbox Close */
.bgs-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: #fff;
	font-size: 32px;
	width: 50px;
	height: 50px;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s ease;
	z-index: 10;
	line-height: 1;
}

.bgs-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.4);
}

/* Responsive Styles */
@media (max-width: 768px) {
	.bgs-gallery-columns-3,
	.bgs-gallery-columns-4,
	.bgs-gallery-columns-5,
	.bgs-gallery-columns-6 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.bgs-lightbox-content iframe {
		width: 100%;
		height: 300px;
	}
	
	.bgs-lightbox-nav {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
	
	.bgs-lightbox-prev {
		left: 10px;
	}
	
	.bgs-lightbox-next {
		right: 10px;
	}
	
	.bgs-lightbox-close {
		top: 10px;
		right: 10px;
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.bgs-gallery-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	
	.bgs-lightbox-content iframe {
		height: 250px;
	}
}

/* Faculty Wrapper */
.bgs-faculty-wrapper {
	width: 100%;
	margin: 20px 0;
}

/* Faculty Grid */
.bgs-faculty-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
}

/* Faculty Card */
.bgs-faculty-card {
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	border-bottom: 5px solid #2965f1;
}

.bgs-faculty-card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

/* Faculty Image */
.bgs-faculty-image {
	width: 100%;
	aspect-ratio: 1;
	overflow: hidden;
	background: #4a4a4a;
	position: relative;
}

.bgs-faculty-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bgs-faculty-placeholder {
	width: 100%;
	height: 100%;
	background: #4a4a4a;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.bgs-faculty-placeholder-text {
	color: #999;
	font-size: 14px;
	text-align: center;
	padding: 20px;
}

/* Faculty Content */
.bgs-faculty-content {
	background: #fff;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex-grow: 1;
}

.bgs-faculty-card:hover .bgs-faculty-content {
	background: #7077a1;
}
.bgs-faculty-card:hover  .bgs-faculty-name,.bgs-faculty-card:hover  .bgs-faculty-degree{
	color: #fff;
}

.bgs-faculty-name {
	font-family: "Canela trial", sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: #2c2c2c;
	margin: 0 0 8px 0;
	line-height: 1.4;
}

.bgs-faculty-degree {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	font-size: 14px;
	color: #666;
	margin: 0 0 15px 0;
	line-height: 1.4;
}

/* Faculty LinkedIn */
.bgs-faculty-linkedin-wrapper {
	margin-top: auto;
	padding-top: 10px;
}

.bgs-faculty-linkedin {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #e0e0e0;
	color: #2c2c2c;
	text-decoration: none;
	transition: background 0.3s ease, transform 0.2s ease;
}

.bgs-faculty-linkedin:hover {
	background: #d0d0d0;
	transform: scale(1.1);
}

.bgs-faculty-linkedin svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Responsive Styles for Faculty */
@media (max-width: 1024px) {
	.bgs-faculty-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 18px;
	}
}

@media (max-width: 768px) {
	.bgs-faculty-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px;
	}
}

@media (max-width: 480px) {
	.bgs-faculty-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.bgs-faculty-content {
		padding: 15px;
	}
	
	.bgs-faculty-name {
		font-size: 16px;
	}
	
	.bgs-faculty-degree {
		font-size: 13px;
	}
}

