/* Custom Gallery Elementor Widget Styles */

.custom-gallery-wrapper {
	width: 100%;
}

/* Single Gallery */
.custom-gallery-single {
	display: flex;
	justify-content: center;
}

.custom-gallery-single .custom-gallery-card {
	max-width: 400px;
	width: 100%;
}

/* Multiple Gallery Sections */
.custom-gallery-multiple {
	width: 100%;
}

.custom-gallery-section {
	margin-bottom: 40px;
}

.custom-gallery-section:last-child {
	margin-bottom: 0;
}

.custom-gallery-section-title {
	margin: 0 0 20px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #333333;
	text-align: center;
}

/* Gallery Tabs */
.custom-gallery-tabs {
	width: 100%;
}

.custom-gallery-tabs-nav {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 2px solid #e1e5e9;
	margin-bottom: 30px;
	gap: 0;
}

.custom-gallery-tab-button {
	background: transparent;
	border: none;
	padding: 15px 25px;
	font-size: 16px;
	font-weight: 500;
	color: #6c757d;
	cursor: pointer;
	transition: all 0.3s ease;
	border-bottom: 3px solid transparent;
	white-space: nowrap;
	position: relative;
}

.custom-gallery-tab-button:hover {
	color: #495057;
	background-color: rgba(0,0,0,0.03);
}

.custom-gallery-tab-button.active {
	color: #007cba;
	border-bottom-color: #007cba;
	background-color: rgba(0, 124, 186, 0.05);
}

.custom-gallery-tab-button:focus {
	outline: 2px solid #007cba;
	outline-offset: -2px;
}

.custom-gallery-tabs-content {
	width: 100%;
}

.custom-gallery-tab-panel {
	display: none;
	width: 100%;
}

.custom-gallery-tab-panel.active {
	display: block;
}

/* Responsive tabs */
@media (max-width: 767px) {
	.custom-gallery-tabs-nav {
		flex-direction: column;
	}
	
	.custom-gallery-tab-button {
		width: 100%;
		text-align: left;
		border-bottom: 1px solid #e1e5e9;
		border-left: 3px solid transparent;
	}
	
	.custom-gallery-tab-button.active {
		border-bottom-color: #e1e5e9;
		border-left-color: #007cba;
	}
}

/* Multiple Gallery Grid */
.custom-gallery-grid {
	display: grid;
	width: 100%;
}

/* Desktop Columns */
.custom-gallery-columns-1 {
	grid-template-columns: repeat(1, 1fr);
}

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

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

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

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

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

/* Tablet Columns */
@media (max-width: 1024px) {
	.custom-gallery-columns-tablet-1 {
		grid-template-columns: repeat(1, 1fr) !important;
	}

	.custom-gallery-columns-tablet-2 {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.custom-gallery-columns-tablet-3 {
		grid-template-columns: repeat(3, 1fr) !important;
	}

	.custom-gallery-columns-tablet-4 {
		grid-template-columns: repeat(4, 1fr) !important;
	}

	.custom-gallery-columns-tablet-5 {
		grid-template-columns: repeat(5, 1fr) !important;
	}

	.custom-gallery-columns-tablet-6 {
		grid-template-columns: repeat(6, 1fr) !important;
	}
}

/* Mobile Columns */
@media (max-width: 767px) {
	.custom-gallery-columns-mobile-1 {
		grid-template-columns: repeat(1, 1fr) !important;
	}

	.custom-gallery-columns-mobile-2 {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.custom-gallery-columns-mobile-3 {
		grid-template-columns: repeat(3, 1fr) !important;
	}

	.custom-gallery-columns-mobile-4 {
		grid-template-columns: repeat(4, 1fr) !important;
	}

	.custom-gallery-columns-mobile-5 {
		grid-template-columns: repeat(5, 1fr) !important;
	}

	.custom-gallery-columns-mobile-6 {
		grid-template-columns: repeat(6, 1fr) !important;
	}
}

/* Gallery Card */
.custom-gallery-card {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-gallery-card:hover {
	transform: translateY(-5px);
}

/* Card Image */
.custom-gallery-card-image {
	width: 100%;
	overflow: hidden;
	position: relative;
}

.custom-gallery-card-image img {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.custom-gallery-card:hover .custom-gallery-card-image img {
	transform: scale(1.05);
}

/* Card Content */
.custom-gallery-card-content {
	padding: 20px;
	text-align: center;
}

.custom-gallery-card-name {
	margin: 0 0 8px 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	color: #333333;
}

.custom-gallery-card-designation {
	margin: 0 0 5px 0;
	font-size: 14px;
	line-height: 1.4;
	color: #666666;
}

.custom-gallery-card-company {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: #666666;
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.custom-gallery-card-content {
		padding: 15px;
	}

	.custom-gallery-card-name {
		font-size: 16px;
	}

	.custom-gallery-card-designation,
	.custom-gallery-card-company {
		font-size: 13px;
	}
}

