/* --------------------------------------------
	INSERT CSS FOR YOUR CHILD THEME HERE
-------------------------------------------- */

:root {
	--art-mobile-gallery-peek-height: 74px;
	--art-mobile-gallery-card-height: 188px;
	--art-mobile-gallery-bottom-gap: calc(env(safe-area-inset-bottom, 0px) + 12px);
	--art-mobile-gallery-side-gap: 14px;
	--art-mobile-gallery-radius: 24px;
	--art-mobile-gallery-handle-width: 74px;
	--art-mobile-gallery-handle-height: 8px;
	--art-mobile-gallery-shadow: 0 20px 44px rgba(17, 17, 17, 0.22);
	--art-mobile-gallery-border: rgba(17, 17, 17, 0.08);
	--art-mobile-gallery-accent: #eb8f2f;
	--art-mobile-gallery-surface: rgba(255, 255, 255, 0.94);
}

.art-mobile-gallery-peek {
	display: none;
}

@media (max-width: 991px) and (orientation: portrait) {
	body.art-mobile-content-peek-enabled,
	body.art-mobile-content-peek-enabled #wrap-outer,
	body.art-mobile-content-peek-enabled #wrap {
		overflow-x: hidden;
		overscroll-behavior-x: none;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek {
		display: block;
	}

	body.art-mobile-content-peek-enabled .single-col2-gallery-wrap,
	body.art-mobile-content-peek-enabled .art-mobile-gallery-target,
	body.art-mobile-content-peek-enabled .art-mobile-content-target {
		scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 84px);
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek {
		position: fixed;
		left: var(--art-mobile-gallery-side-gap);
		right: var(--art-mobile-gallery-side-gap);
		bottom: var(--art-mobile-gallery-bottom-gap);
		z-index: 1200;
		opacity: 0;
		pointer-events: none;
		transform: translateY(calc(100% + 12px));
		transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
		will-change: transform, opacity;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-visible {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(calc(var(--art-mobile-gallery-card-height) - var(--art-mobile-gallery-peek-height) - var(--art-mobile-gallery-drag-offset, 0px)));
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-engaged {
		transition-duration: 0.14s;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__button {
		position: relative;
		display: block;
		width: 100%;
		height: var(--art-mobile-gallery-card-height);
		padding: 0;
		border: 1px solid var(--art-mobile-gallery-border);
		border-radius: var(--art-mobile-gallery-radius);
		background: #efe7de;
		box-shadow: var(--art-mobile-gallery-shadow);
		cursor: pointer;
		overflow: hidden;
		text-align: left;
		pointer-events: auto;
		touch-action: pan-x pinch-zoom;
		user-select: none;
		-webkit-user-select: none;
		-webkit-tap-highlight-color: transparent;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__button:focus-visible {
		outline: 2px solid var(--art-mobile-gallery-accent);
		outline-offset: 3px;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__media,
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__scrim {
		position: absolute;
		inset: 0;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__media,
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__scrim,
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__frame,
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__handle,
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__meta,
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__copy,
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__arrow {
		pointer-events: none;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__media img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__button.is-fallback .art-mobile-gallery-peek__media {
		background:
			radial-gradient(circle at top right, rgba(235, 143, 47, 0.42), transparent 44%),
			linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 230, 220, 0.92));
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__scrim {
		background:
			linear-gradient(180deg, rgba(17, 17, 17, 0.64) 0%, rgba(17, 17, 17, 0.38) 52%, rgba(17, 17, 17, 0.1) 100%),
			linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 58%);
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__frame {
		position: absolute;
		inset: 0;
		border-radius: inherit;
		background:
			linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%),
			linear-gradient(180deg, transparent 56%, rgba(17, 17, 17, 0.12));
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__handle {
		position: absolute;
		top: 13px;
		left: 50%;
		width: 66px;
		height: 10px;
		border-radius: 999px;
		transform: translateX(-50%);
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.16));
		border: 1px solid rgba(255, 255, 255, 0.28);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.34),
			0 8px 20px rgba(17, 17, 17, 0.14);
		backdrop-filter: blur(18px) saturate(165%);
		-webkit-backdrop-filter: blur(18px) saturate(165%);
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__meta {
		position: absolute;
		left: 18px;
		right: 18px;
		top: 32px;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__copy {
		flex: 1 1 auto;
		min-width: 0;
		max-width: min(72%, 248px);
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__title,
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__hint {
		display: block;
		color: #ffffff;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__title {
		font-size: 0.95rem;
		line-height: 1.15;
		font-weight: 600;
		letter-spacing: -0.01em;
		text-shadow: 0 1px 10px rgba(17, 17, 17, 0.24);
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__hint {
		margin-top: 4px;
		font-size: 0.74rem;
		line-height: 1.2;
		opacity: 0.88;
		text-shadow: 0 1px 10px rgba(17, 17, 17, 0.22);
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__arrow {
		display: inline-flex;
		flex: 0 0 auto;
		position: relative;
		align-items: center;
		justify-content: center;
		width: 38px;
		height: 38px;
		margin-top: 0;
		border-radius: 999px;
		background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.12));
		border: 1px solid rgba(255, 255, 255, 0.24);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.28),
			0 10px 24px rgba(17, 17, 17, 0.12);
		color: transparent;
		font-size: 0;
		line-height: 1;
		backdrop-filter: blur(18px) saturate(165%);
		-webkit-backdrop-filter: blur(18px) saturate(165%);
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek__arrow::before {
		content: "";
		position: absolute;
		top: 53%;
		left: 50%;
		width: 10px;
		height: 10px;
		border-top: 1.5px solid rgba(255, 255, 255, 0.96);
		border-right: 1.5px solid rgba(255, 255, 255, 0.96);
		transform: translate(-50%, -38%) rotate(-45deg);
	}

	/* Text-first and image-first layouts share the same peek interaction. */
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-text .art-mobile-gallery-peek__button {
		background:
			radial-gradient(circle at top right, rgba(235, 143, 47, 0.16), transparent 42%),
			linear-gradient(135deg, #fffaf3 0%, #f2e8db 100%);
		border-color: rgba(24, 22, 20, 0.1);
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-text .art-mobile-gallery-peek__media,
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-text .art-mobile-gallery-peek__scrim {
		display: none;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-text .art-mobile-gallery-peek__frame {
		background:
			linear-gradient(180deg, rgba(255, 255, 255, 0.56), transparent 36%),
			linear-gradient(180deg, transparent 62%, rgba(24, 22, 20, 0.04));
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-text .art-mobile-gallery-peek__handle {
		background: linear-gradient(180deg, rgba(24, 22, 20, 0.22), rgba(24, 22, 20, 0.09));
		border-color: rgba(24, 22, 20, 0.08);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.62),
			0 8px 20px rgba(24, 22, 20, 0.08);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-text .art-mobile-gallery-peek__copy {
		max-width: min(78%, 300px);
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-text .art-mobile-gallery-peek__title {
		color: #181614;
		text-shadow: none;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-text .art-mobile-gallery-peek__hint {
		display: -webkit-box;
		max-width: 31rem;
		color: #665f57;
		font-size: 0.76rem;
		line-height: 1.35;
		opacity: 1;
		text-shadow: none;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-text .art-mobile-gallery-peek__arrow {
		background: rgba(24, 22, 20, 0.07);
		border-color: rgba(24, 22, 20, 0.09);
		box-shadow:
			inset 0 1px 0 rgba(255, 255, 255, 0.72),
			0 10px 24px rgba(24, 22, 20, 0.07);
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-text .art-mobile-gallery-peek__arrow::before {
		border-top-color: rgba(24, 22, 20, 0.82);
		border-right-color: rgba(24, 22, 20, 0.82);
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-compact .art-mobile-gallery-peek__handle {
		top: 6px;
		width: 56px;
		height: 6px;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-compact .art-mobile-gallery-peek__meta {
		top: 0;
		left: 12px;
		right: 12px;
		height: var(--art-mobile-gallery-peek-height);
		padding-top: 12px;
		padding-bottom: 4px;
		align-items: flex-end;
		gap: 10px;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-compact .art-mobile-gallery-peek__copy {
		max-width: none;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-compact .art-mobile-gallery-peek__title {
		font-size: 0.82rem;
		line-height: 1;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-compact .art-mobile-gallery-peek__hint {
		display: none;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-compact .art-mobile-gallery-peek__arrow {
		width: 30px;
		height: 30px;
	}

	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek.is-compact .art-mobile-gallery-peek__arrow::before {
		width: 8px;
		height: 8px;
		border-top-width: 1.25px;
		border-right-width: 1.25px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.art-mobile-content-peek-enabled .art-mobile-gallery-peek {
		transition: none;
	}
}


/*
 * BM Builder's universal color rows can add `default-logo-univer`, which
 * forces the default logo with `!important` and overrides the page-level
 * `alt-logo` setting. When the page explicitly asks for the alt logo, let
 * that choice win.
 */
body.alt-logo.bm-enable-univer.default-logo-univer .logo-image-alt {
	display: inline-block !important;
}

body.alt-logo.bm-enable-univer.default-logo-univer .logo-image-default {
	display: none !important;
}
