/* WB Design System — Gallery */

.wb-gallery {
	margin-bottom: 0;
}

.wb-gallery-main {
	border-radius: var(--wb-ctx-radius, 0.9375rem);
	overflow: hidden;
	margin-bottom: 0.625rem;
	max-height: 25rem;
}

.wb-gallery-main a {
	display: block;
	line-height: 0;
}

.wb-gallery-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-height: 25rem;
}

.wb-gallery-thumbs {
	display: flex;
	gap: 0.5rem;
}

.wb-gallery-thumb {
	width: 5rem;
	height: 3.75rem;
	border-radius: calc(var(--wb-ctx-radius, 0.9375rem) / 2);
	overflow: hidden;
	cursor: pointer;
	border: 0.125rem solid transparent;
	flex-shrink: 0;
	transition: border-color 0.2s;
	position: relative;
}

.wb-gallery-thumb.wb-gallery-thumb-active {
	border-color: var(--wb-ctx-primary);
}

.wb-gallery-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0 !important;
}

.wb-gallery-hidden-link {
	display: none;
}

/* "+N more" overlay on last visible thumbnail */
.wb-gallery-more {
	position: relative;
}

.wb-gallery-more-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
	font-weight: 700;
}

/* Gallery placeholder (no images) */
.wb-gallery-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	background: #fff;
	border-radius: var(--wb-ctx-radius, 0.9375rem);
	min-height: 20rem;
	padding: 2rem;
}

.wb-gallery-placeholder-logo {
	max-width: 10rem;
	max-height: 8rem;
	width: auto;
	height: auto;
	object-fit: contain;
}

.wb-gallery-placeholder-title {
	font-size: 2.5rem;
	font-weight: 700;
	color: #1a1a1a;
	letter-spacing: 0.02em;
}
