/* Pridecarts - Gallery Tabs widget styles
   Most spacing/color/size values are controlled live from the Elementor Style tab.
   The values below are just safe fallbacks so the widget still looks right
   before any custom values are set. */

.pc-gallery-tabs-wrap {
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
}
.pc-gallery-tabs-wrap * {
	box-sizing: border-box;
}

/* ---------- Tabs ---------- */
.pc-gt-tabs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0 0 24px;
}

.pc-gt-tab-btn {
	all: unset;
	box-sizing: border-box;
	display: inline-block;
	background: #ffffff;
	border-style: solid;
	border-width: 1px;
	border-color: #e3e3e3;
	border-radius: 0;
	padding: 10px 22px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #7a7a7a;
	cursor: pointer;
	white-space: nowrap;
	text-align: center;
	line-height: 1.4;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.pc-gt-tab-btn:hover {
	border-color: #b5b5b5;
	color: #333333;
}
.pc-gt-tab-btn.active {
	font-weight: 700;
}

/* ---------- Panels / Grid (masonry via CSS columns, images never get cropped by default) ---------- */
.pc-gt-panel {
	width: 100%;
}

.pc-gt-grid {
	column-count: 4;
	column-gap: var(--pc-gap, 10px);
}

.pc-gt-item {
	position: relative;
	display: block;
	break-inside: avoid;
	-webkit-column-break-inside: avoid;
	margin: 0 0 var(--pc-gap, 10px);
	overflow: hidden;
	border-radius: 8px;
	background: #f1f1f1;
	cursor: pointer;
}

.pc-gt-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform 0.45s ease;
}

.pc-gt-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	transition: background 0.25s ease;
	pointer-events: none;
}
.pc-gt-item:hover::after {
	background: rgba(0, 0, 0, 0.12);
}
.pc-gt-item:hover img {
	transform: scale(1.06);
}
.pc-gt-no-zoom .pc-gt-item:hover img {
	transform: none;
}

/* Fixed-height mode (added by PHP only when "Auto Height" is switched off) */
.pc-gt-fixed-height .pc-gt-item {
	height: 250px;
}
.pc-gt-fixed-height .pc-gt-item img {
	height: 100%;
	object-fit: cover;
}

.pc-gt-empty {
	padding: 40px 20px;
	text-align: center;
	color: #7a7a7a;
	font-size: 14px;
}

@media (max-width: 1024px) {
	.pc-gt-grid {
		column-count: 3;
	}
}
@media (max-width: 767px) {
	.pc-gt-grid {
		column-count: 2;
	}
	.pc-gt-tab-btn {
		padding: 8px 14px;
		font-size: 10.5px;
	}
}

/* ---------- Lightbox ---------- */
.pc-gt-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.94);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 24px;
}
.pc-gt-lightbox.open {
	display: flex;
}
.pc-gt-lb-img {
	max-width: 90vw;
	max-height: 84vh;
	object-fit: contain;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.pc-gt-lb-count {
	position: absolute;
	top: 22px;
	left: 24px;
	color: #ffffff;
	font-size: 12px;
	letter-spacing: 0.05em;
	opacity: 0.7;
}
.pc-gt-lb-btn {
	all: unset;
	box-sizing: border-box;
	position: absolute;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #ffffff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}
.pc-gt-lb-btn:hover {
	background: rgba(255, 255, 255, 0.22);
}
.pc-gt-lb-close {
	top: 20px;
	right: 20px;
}
.pc-gt-lb-prev {
	left: 20px;
	top: 50%;
	transform: translateY(-50%);
}
.pc-gt-lb-next {
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 600px) {
	.pc-gt-lb-prev,
	.pc-gt-lb-next {
		width: 38px;
		height: 38px;
		font-size: 16px;
	}
}
