/* ==========================================================================
   Builder Components — FC Space Tab widget styles
   Prefix: bc_
   ========================================================================== */

.bc_space-tab-widget {
	width: 100%;
}

.bc_space-tab-widget .bc_heading {
	margin: 0 0 30px;
}

/* ---------- Tabs Nav ---------- */

.bc_tabs-nav {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 30px;
	padding: 0;
	gap: 12px;
	justify-content: center;
}

.bc_tab-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 8px;
	cursor: pointer;
	background-color: #ffffff;
	border: 1px solid #e4e4e4;
	border-radius: 8px;
	padding: 14px 18px;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
	-webkit-user-select: none;
	user-select: none;
}

.bc_tab-item .bc_tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 22px;
}

.bc_tab-item .bc_tab-icon svg,
.bc_tab-item .bc_tab-icon i {
	width: 1em;
	height: 1em;
	font-size: inherit;
}

.bc_tab-item .bc_tab-label {
	font-size: 14px;
	white-space: nowrap;
}

.bc_tab-item.bc_active {
	background-color: #b08d57;
	border-color: #b08d57;
}

.bc_tab-item.bc_active .bc_tab-label,
.bc_tab-item.bc_active .bc_tab-icon {
	color: #ffffff;
}

/* ---------- Tabs Content / Panels ---------- */

.bc_tabs-content .bc_tab-panel {
	display: none;
}

.bc_tabs-content .bc_tab-panel.bc_active {
	display: block;
	animation: bc_fade-in 0.35s ease;
}

@keyframes bc_fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ---------- Gallery Grid ---------- */

.bc_gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-auto-rows: minmax(120px, auto);
	gap: 16px;
}

.bc_gallery-item {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 12px;
	height: 260px;
	cursor: pointer;
}

.bc_gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.bc_gallery-item:hover img {
	transform: scale(1.06);
}

.bc_featured-enabled .bc_gallery-item-featured {
	/*grid-row: span 2;*/
	height: 100%;
}

.bc_gallery-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.bc_gallery-item:hover .bc_gallery-overlay {
	opacity: 1;
}

.bc_gallery-overlay svg {
	width: 22px;
	height: 22px;
	color: #ffffff;
}

.bc_gallery-empty {
	padding: 30px;
	text-align: center;
	color: #999999;
	border: 1px dashed #dddddd;
	border-radius: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.bc_gallery-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 767px) {
	.bc_gallery-grid {
		grid-template-columns: repeat(1, 1fr) !important;
	}

	.bc_featured-enabled .bc_gallery-item-featured {
		grid-row: auto;
	}

	.bc_tab-item {
		flex: 1 1 auto;
	}
}
