/* GV Listings: inherits the theme's fonts and colors wherever possible. */

/* Grid: flexbox so short rows (and a partial last row) sit centered. */
.gvl-grid {
	--gvl-gap: 24px;
	--gvl-cols: var(--gvl-columns, 3);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--gvl-gap);
}

@media (max-width: 900px) {
	.gvl-grid {
		--gvl-cols: min(var(--gvl-columns, 3), 2);
	}
}

@media (max-width: 560px) {
	.gvl-grid {
		--gvl-cols: 1;
	}
}

.gvl-card {
	display: flex;
	flex: 0 0 calc((100% - (var(--gvl-cols) - 1) * var(--gvl-gap)) / var(--gvl-cols));
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 6px;
}

.gvl-card__media {
	display: block;
	aspect-ratio: 1 / 1;
	background: #f4f4f4;
}

.gvl-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gvl-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 16px;
}

.gvl-card__title {
	margin: 0;
	font-size: 1.05em;
	line-height: 1.3;
}

.gvl-card__title a {
	color: inherit;
	text-decoration: none;
}

.gvl-card__title a:hover {
	text-decoration: underline;
}

.gvl-card__specs {
	margin: 0;
	font-size: 0.85em;
	opacity: 0.7;
}

.gvl-card .gvl-price {
	margin-top: auto;
	padding-top: 6px;
	font-size: 1.25em;
	font-weight: 700;
}

/* Single listing */
.gvl-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: start;
}

@media (max-width: 768px) {
	.gvl-single {
		grid-template-columns: 1fr;
		gap: 24px;
	}
}

/* Item page gallery */
.gvl-gallery__stage {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
}

.gvl-gallery__slide {
	display: block;
	width: 100%;
	height: 100%;
	cursor: zoom-in;
}

.gvl-gallery__slide[hidden] {
	display: none;
}

.gvl-gallery__slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.gvl-gallery__zoom {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #222;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.gvl-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #222;
	font-size: 28px;
	line-height: 38px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	opacity: 0;
	transition: opacity 0.2s;
}

.gvl-gallery.is-ready .gvl-gallery__nav {
	display: block;
}

.gvl-gallery__stage:hover .gvl-gallery__nav,
.gvl-gallery__nav:focus-visible {
	opacity: 1;
}

@media (hover: none) {
	.gvl-gallery__nav {
		opacity: 1;
	}
}

.gvl-gallery__nav--prev {
	left: 12px;
}

.gvl-gallery__nav--next {
	right: 12px;
}

.gvl-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.gvl-gallery__thumbs li {
	margin: 0;
	padding: 0;
}

.gvl-gallery__thumb {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 4px;
	opacity: 0.6;
	transition: opacity 0.2s, border-color 0.2s;
}

.gvl-gallery__thumb:hover,
.gvl-gallery__thumb:focus-visible,
.gvl-gallery__thumb.is-active {
	opacity: 1;
}

.gvl-gallery__thumb.is-active {
	border-color: currentColor;
}

.gvl-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Lightbox */
.gvl-lightbox-open,
.gvl-lightbox-open body {
	overflow: hidden;
}

.gvl-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.92);
}

.gvl-lightbox[hidden] {
	display: none;
}

.gvl-lightbox__figure {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 56px 64px;
	box-sizing: border-box;
}

.gvl-lightbox__figure img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.gvl-lightbox__close,
.gvl-lightbox__nav {
	position: absolute;
	z-index: 1;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: 0.8;
}

.gvl-lightbox__close:hover,
.gvl-lightbox__nav:hover,
.gvl-lightbox__close:focus-visible,
.gvl-lightbox__nav:focus-visible {
	opacity: 1;
}

.gvl-lightbox__close {
	top: 10px;
	right: 16px;
	width: 44px;
	height: 44px;
	font-size: 36px;
	line-height: 44px;
}

.gvl-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 52px;
	height: 72px;
	font-size: 52px;
	line-height: 72px;
}

.gvl-lightbox__nav[hidden] {
	display: none;
}

.gvl-lightbox__nav--prev {
	left: 6px;
}

.gvl-lightbox__nav--next {
	right: 6px;
}

.gvl-lightbox__count {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
	opacity: 0.8;
}

@media (max-width: 560px) {
	.gvl-lightbox__figure {
		padding: 56px 8px;
	}

	.gvl-lightbox__nav {
		top: auto;
		bottom: 4px;
		transform: none;
	}
}

.gvl-single .gvl-price {
	display: block;
	font-size: 2em;
	font-weight: 700;
	line-height: 1.2;
}

.gvl-price-note {
	margin: 4px 0 20px;
	font-size: 0.85em;
	opacity: 0.7;
}

.gvl-specs {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.gvl-specs li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 8px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.gvl-specs li span {
	opacity: 0.7;
}

.gvl-price--unavailable {
	font-size: 1.1em;
}

.gvl-single .gvl-price--unavailable {
	font-size: 1.4em;
}

/* Gallery buttons: undo theme button styling (background, padding, borders, hover colors). */
.gvl-gallery .gvl-gallery__slide,
.gvl-gallery .gvl-gallery__slide:hover,
.gvl-gallery .gvl-gallery__slide:focus,
.gvl-gallery .gvl-gallery__slide:active,
.gvl-gallery .gvl-gallery__thumb,
.gvl-gallery .gvl-gallery__thumb:hover,
.gvl-gallery .gvl-gallery__thumb:focus,
.gvl-gallery .gvl-gallery__thumb:active {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: 0;
	letter-spacing: normal;
	text-transform: none;
	transform: none;
}

.gvl-gallery .gvl-gallery__slide,
.gvl-gallery .gvl-gallery__slide:hover,
.gvl-gallery .gvl-gallery__slide:focus,
.gvl-gallery .gvl-gallery__slide:active {
	height: 100%;
	border: 0;
	border-radius: 0;
}

.gvl-gallery .gvl-gallery__thumb,
.gvl-gallery .gvl-gallery__thumb:hover,
.gvl-gallery .gvl-gallery__thumb:focus,
.gvl-gallery .gvl-gallery__thumb:active {
	height: auto;
	border: 2px solid transparent;
	border-radius: 4px;
	cursor: pointer;
}

.gvl-gallery .gvl-gallery__thumb.is-active,
.gvl-gallery .gvl-gallery__thumb.is-active:hover,
.gvl-gallery .gvl-gallery__thumb.is-active:focus {
	border-color: currentColor;
}

.gvl-gallery .gvl-gallery__slide:focus-visible,
.gvl-gallery .gvl-gallery__thumb:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/*
 * Arrows and close buttons: keep them pinned in place in every state.
 * Some themes (including Beaver Builder Theme) set `position: relative` on
 * buttons while pressed or focused, which knocks overlay buttons out of
 * position mid-click so the click never lands.
 */
.gvl-gallery .gvl-gallery__nav,
.gvl-gallery .gvl-gallery__nav:hover,
.gvl-gallery .gvl-gallery__nav:focus,
.gvl-gallery .gvl-gallery__nav:active {
	position: absolute;
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	color: #222;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	font-size: 28px;
	line-height: 38px;
	text-transform: none;
}

.gvl-gallery .gvl-gallery__nav--prev,
.gvl-gallery .gvl-gallery__nav--prev:hover,
.gvl-gallery .gvl-gallery__nav--prev:focus,
.gvl-gallery .gvl-gallery__nav--prev:active {
	left: 12px;
	right: auto;
}

.gvl-gallery .gvl-gallery__nav--next,
.gvl-gallery .gvl-gallery__nav--next:hover,
.gvl-gallery .gvl-gallery__nav--next:focus,
.gvl-gallery .gvl-gallery__nav--next:active {
	right: 12px;
	left: auto;
}

.gvl-lightbox .gvl-lightbox__close,
.gvl-lightbox .gvl-lightbox__close:hover,
.gvl-lightbox .gvl-lightbox__close:focus,
.gvl-lightbox .gvl-lightbox__close:active,
.gvl-lightbox .gvl-lightbox__nav,
.gvl-lightbox .gvl-lightbox__nav:hover,
.gvl-lightbox .gvl-lightbox__nav:focus,
.gvl-lightbox .gvl-lightbox__nav:active {
	position: absolute;
	z-index: 2;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
}

.gvl-lightbox .gvl-lightbox__close,
.gvl-lightbox .gvl-lightbox__close:hover,
.gvl-lightbox .gvl-lightbox__close:focus,
.gvl-lightbox .gvl-lightbox__close:active {
	top: 10px;
	right: 16px;
	bottom: auto;
	left: auto;
	transform: none;
	width: 44px;
	height: 44px;
	font-size: 36px;
	line-height: 44px;
}

.gvl-lightbox .gvl-lightbox__nav,
.gvl-lightbox .gvl-lightbox__nav:hover,
.gvl-lightbox .gvl-lightbox__nav:focus,
.gvl-lightbox .gvl-lightbox__nav:active {
	top: 50%;
	bottom: auto;
	transform: translateY(-50%);
	width: 52px;
	height: 72px;
	font-size: 52px;
	line-height: 72px;
}

.gvl-lightbox .gvl-lightbox__nav--prev,
.gvl-lightbox .gvl-lightbox__nav--prev:hover,
.gvl-lightbox .gvl-lightbox__nav--prev:focus,
.gvl-lightbox .gvl-lightbox__nav--prev:active {
	left: 6px;
	right: auto;
}

.gvl-lightbox .gvl-lightbox__nav--next,
.gvl-lightbox .gvl-lightbox__nav--next:hover,
.gvl-lightbox .gvl-lightbox__nav--next:focus,
.gvl-lightbox .gvl-lightbox__nav--next:active {
	right: 6px;
	left: auto;
}

.gvl-lightbox .gvl-lightbox__nav[hidden] {
	display: none;
}

.gvl-lightbox .gvl-lightbox__close:focus-visible,
.gvl-lightbox .gvl-lightbox__nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.gvl-lightbox .gvl-lightbox__nav,
	.gvl-lightbox .gvl-lightbox__nav:hover,
	.gvl-lightbox .gvl-lightbox__nav:focus,
	.gvl-lightbox .gvl-lightbox__nav:active {
		top: auto;
		bottom: 4px;
		transform: none;
	}
}
