/* Scoped gallery layout — matches 2/3 slider + 1/3 side stack design */

.bpg-gallery {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 65fr) minmax(0, 35fr);
	gap: 12px;
	width: 100%;
	height: 520px;
	max-width: 100%;
}

.bpg-gallery *,
.bpg-gallery *::before,
.bpg-gallery *::after {
	box-sizing: border-box;
}

.bpg-gallery--full {
	grid-template-columns: minmax(0, 1fr);
}

.bpg-gallery__main {
	position: relative;
	height: 100%;
	min-height: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #f3f3f3;
}

.bpg-gallery__main .bpg-swiper {
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.bpg-gallery .swiper-wrapper {
	height: 100%;
}

.bpg-gallery .swiper-slide {
	width: 100% !important;
	height: 100%;
	flex-shrink: 0;
}

.bpg-gallery__slide-image,
.bpg-gallery__side-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bpg-gallery__controls {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	pointer-events: none;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
}

.bpg-gallery__pagination {
	position: static !important;
	width: auto !important;
	display: flex !important;
	align-items: center;
	gap: 8px;
	pointer-events: auto;
}

.bpg-gallery__pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	margin: 0 !important;
	background: rgba(255, 255, 255, 0.45);
	opacity: 1;
	transition: background-color 0.2s ease;
}

.bpg-gallery__pagination .swiper-pagination-bullet-active {
	background: #fff;
}

.bpg-gallery__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: auto;
}

.bpg-gallery__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.bpg-gallery__arrow:hover,
.bpg-gallery__arrow:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	outline: none;
}

.bpg-gallery__side {
	display: grid;
	grid-template-rows: 1fr 1fr;
	gap: 12px;
	height: 100%;
	min-height: 0;
}

.bpg-gallery__side-item {
	height: 100%;
	min-height: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #f3f3f3;
}

.bpg-gallery__side-item:only-child {
	grid-row: 1 / -1;
}

@media (max-width: 768px) {
	.bpg-gallery {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
	}

	.bpg-gallery__main {
		height: 280px;
	}

	.bpg-gallery__side {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 160px;
		height: auto;
	}

	.bpg-gallery__side-item:only-child {
		grid-column: 1 / -1;
	}
}
