/* Scoped, self-contained defaults: see event-booking-widget.css for why. */
.loga-ebg,
.loga-ebg *,
.loga-ebg *::before,
.loga-ebg *::after {
	box-sizing: border-box;
}

.loga-ebg {
	display: grid;
	grid-template-columns: 40% 1fr;
	gap: 24px;
	align-items: start;
	width: 100%;
}

@media (max-width: 640px) {
	.loga-ebg {
		grid-template-columns: 1fr;
	}
}

.loga-ebg__gallery {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.loga-ebg__main-image-wrap {
	position: relative;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: #f0f0f0;
	width: 100%;
}

/* Host themes commonly reset `img { max-width: 100%; height: auto; }`
   globally, which fights object-fit (an "auto" height ignores the wrapper
   entirely). Taking the image out of flow with absolute positioning +
   inset:0 makes it fill the wrapper's exact box regardless of any such
   reset or the image's own intrinsic size — the only way both cover
   (fill/crop) and contain (fit/letterbox, centered) render correctly
   everywhere. object-position centers explicitly rather than relying on
   the (same, but overridable) default. */
.loga-ebg__main-image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-position: center center;
}

.loga-ebg--fit-cover .loga-ebg__main-image {
	object-fit: cover !important;
}

.loga-ebg--fit-contain .loga-ebg__main-image {
	object-fit: contain !important;
}

.loga-ebg__main-image--placeholder {
	width: 100%;
	height: 100%;
	background: #eee;
}

/*
 * Icons are rendered by Elementor's icon picker, which can hand back either
 * an icon-font <i> tag (sizes via font-size, inherits fine) or a raw inline
 * <svg> (which otherwise renders at its own intrinsic size -- often huge).
 * Give every icon a sane 1em default so it always looks right even if the
 * admin never touches the Style-tab size controls, which only add on top of
 * this via font-size (both font icons and the svg rule below scale with it).
 */
.loga-ebg__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: 1.1em;
	line-height: 1;
	vertical-align: middle;
	flex-shrink: 0;
}

.loga-ebg__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.loga-ebg__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.85);
	border: none;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 1.2em;
	line-height: 1;
	padding: 0;
}

.loga-ebg__nav .loga-ebg__icon {
	font-size: 1em;
}

.loga-ebg__nav--prev {
	left: 8px;
}

.loga-ebg__nav--next {
	right: 8px;
}

.loga-ebg__thumbs {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 4px;
}

.loga-ebg__thumb {
	flex: 0 0 64px;
	width: 64px;
	height: 64px;
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	background: none;
}

.loga-ebg__thumb img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover !important;
	object-position: center center;
	display: block;
}

.loga-ebg__thumb.is-active {
	border-color: #2271b1;
}

.loga-ebg__details {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	min-width: 0;
}

.loga-ebg__title {
	margin: 0;
	font-size: 1.5em;
}

.loga-ebg__location {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	color: #555;
	margin: 0 0 8px;
}

/* Left unstyled, this is a plain <a> — themes/Elementor apply their default
   link and link-hover color to it (often the site's global "pink"/accent
   link color), same class of override problem as the booking form's own
   buttons; see event-booking-widget.css for why this goes through a CSS
   variable + !important instead of a plain color. */
.loga-ebg__location-link {
	color: var( --loga-ebg-maplink-color, inherit ) !important;
	text-decoration: underline !important;
}

.loga-ebg__location-link:hover {
	color: var( --loga-ebg-maplink-color-hover, var( --loga-ebg-maplink-color, inherit ) ) !important;
}

.loga-ebw__quantities-heading {
	margin: 0 0 4px;
	display: flex;
	align-items: center;
}

@media ( max-width: 480px ) {
	.loga-ebg {
		gap: 16px;
	}

	.loga-ebg__title {
		font-size: 1.25em;
	}

	.loga-ebg__thumb {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}

	.loga-ebg__nav {
		width: 30px;
		height: 30px;
		font-size: 1em;
	}
}
