/* YourBrandsTeam Portfolio — frontend
   Rebrand by editing these variables. */
.ybt-portfolio {
	--ybt-purple: #6C2BD9;
	--ybt-cyan:   #22D3EE;
	--ybt-navy:   #1E1B4B;
	--ybt-text:   #1E1B4B;
	--ybt-muted:  #6b7280;
	--ybt-card-bg:#ffffff;
	--ybt-gap:    24px;
	--ybt-radius: 14px;
	max-width: 1200px;
	margin: 0 auto;
}

/* ---- Filters ---- */
.ybt-portfolio-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-bottom: 32px;
}
.ybt-filter {
	appearance: none;
	border: 1px solid #e5e7eb;
	background: #fff;
	color: var(--ybt-text);
	padding: 9px 20px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s ease;
	line-height: 1;
}
.ybt-filter:hover { border-color: var(--ybt-purple); color: var(--ybt-purple); }
.ybt-filter.is-active {
	background: var(--ybt-purple);
	border-color: var(--ybt-purple);
	color: #fff;
}

/* ---- Grid ---- */
.ybt-portfolio-grid {
	display: grid;
	gap: var(--ybt-gap);
	grid-template-columns: repeat(3, 1fr);
}
.ybt-portfolio[data-columns="2"] .ybt-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
.ybt-portfolio[data-columns="4"] .ybt-portfolio-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
	.ybt-portfolio-grid,
	.ybt-portfolio[data-columns="4"] .ybt-portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.ybt-portfolio-grid,
	.ybt-portfolio[data-columns="2"] .ybt-portfolio-grid,
	.ybt-portfolio[data-columns="4"] .ybt-portfolio-grid { grid-template-columns: 1fr; }
}

/* ---- Card ---- */
.ybt-project-card {
	background: var(--ybt-card-bg);
	border-radius: var(--ybt-radius);
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(30, 27, 75, .06);
	transition: transform .25s ease, box-shadow .25s ease;
	cursor: pointer;
	outline: none;
}
.ybt-project-card[tabindex]:focus-visible {
	box-shadow: 0 0 0 3px var(--ybt-cyan);
}
.ybt-project-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 34px rgba(30, 27, 75, .16);
}
.ybt-project-card.is-hidden { display: none; }

.ybt-card-cover {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f3f4f6;
}
.ybt-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.ybt-project-card:hover .ybt-card-cover img { transform: scale(1.06); }
.ybt-card-nocover { width: 100%; height: 100%; background: #e5e7eb; }

.ybt-card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(108, 43, 217, .0);
	color: #fff;
	font-weight: 700;
	letter-spacing: .3px;
	opacity: 0;
	transition: all .3s ease;
}
.ybt-project-card:hover .ybt-card-overlay {
	background: rgba(30, 27, 75, .55);
	opacity: 1;
}

.ybt-card-body { padding: 16px 18px 20px; }
.ybt-card-title {
	margin: 0 0 6px;
	font-size: 19px;
	line-height: 1.25;
	color: var(--ybt-text);
	font-weight: 700;
}
.ybt-card-meta {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	font-size: 13px;
}
.ybt-card-cat {
	color: var(--ybt-purple);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.ybt-card-count { color: var(--ybt-muted); }

.ybt-portfolio-empty {
	text-align: center;
	color: #6b7280;
	padding: 40px 0;
}

/* ---- Lightbox ---- */
.ybt-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: rgba(15, 12, 41, .94);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 5vh 4vw;
}
.ybt-lightbox.is-open { display: flex; }

.ybt-lb-stage {
	margin: 0;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
}
.ybt-lb-image {
	max-width: 90vw;
	max-height: 78vh;
	object-fit: contain;
	border-radius: 6px;
	box-shadow: 0 10px 50px rgba(0, 0, 0, .5);
}
.ybt-lb-info {
	color: #fff;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 14px;
}
.ybt-lb-title  { font-weight: 700; font-size: 17px; }
.ybt-lb-counter{ color: var(--ybt-cyan, #22D3EE); font-weight: 600; }
.ybt-lb-caption{ color: #cbd5e1; }

.ybt-lb-close,
.ybt-lb-prev,
.ybt-lb-next {
	position: absolute;
	background: rgba(255, 255, 255, .1);
	border: none;
	color: #fff;
	cursor: pointer;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease;
	line-height: 1;
}
.ybt-lb-close:hover,
.ybt-lb-prev:hover,
.ybt-lb-next:hover { background: rgba(255, 255, 255, .25); }

.ybt-lb-close {
	top: 20px; right: 24px;
	width: 46px; height: 46px;
	font-size: 30px;
}
.ybt-lb-prev, .ybt-lb-next {
	top: 50%;
	transform: translateY(-50%);
	width: 56px; height: 56px;
	font-size: 34px;
}
.ybt-lb-prev { left: 20px; }
.ybt-lb-next { right: 20px; }

@media (max-width: 560px) {
	.ybt-lb-prev, .ybt-lb-next { width: 44px; height: 44px; font-size: 26px; }
	.ybt-lb-prev { left: 8px; }
	.ybt-lb-next { right: 8px; }
	.ybt-lb-image { max-height: 70vh; }
}
