/**
 * HLxHub — Mobile Review Gallery
 *
 * File:
 * assets/css/single-mobile/mobile-gallery.css
 *
 * Style:
 * Premium / Modern / Responsive
 */


/* ================================================================
   ROOT
================================================================ */

.hlx-mobile-gallery {

	--gallery-bg: #f8fafc;
	--gallery-white: #ffffff;

	--gallery-text: #0f172a;
	--gallery-text-soft: #334155;
	--gallery-muted: #64748b;

	--gallery-border: #e2e8f0;
	--gallery-border-soft: #eef2f7;

	--gallery-primary: #2563eb;
	--gallery-primary-dark: #1d4ed8;
	--gallery-primary-soft: #eff6ff;

	--gallery-success: #16a34a;

	position: relative;

	width: 100%;

	margin: 32px 0;

	background:
		radial-gradient(
			circle at 0% 0%,
			rgba(37, 99, 235, 0.08),
			transparent 30%
		),
		radial-gradient(
			circle at 100% 100%,
			rgba(14, 165, 233, 0.07),
			transparent 32%
		),
		var(--gallery-bg);

	border: 1px solid var(--gallery-border);

	border-radius: 26px;

	box-shadow:
		0 24px 60px rgba(15, 23, 42, 0.08),
		0 5px 18px rgba(15, 23, 42, 0.04);

	overflow: hidden;

	color: var(--gallery-text);
}


/* ================================================================
   GLOBAL BOX SIZING
================================================================ */

.hlx-mobile-gallery *,
.hlx-mobile-gallery *::before,
.hlx-mobile-gallery *::after {
	box-sizing: border-box;
}


/* ================================================================
   DECORATIVE GLOW
================================================================ */

.hlx-mobile-gallery__glow {
	position: absolute;

	width: 320px;
	height: 320px;

	border-radius: 50%;

	pointer-events: none;

	filter: blur(5px);

	opacity: 0.8;
}

.hlx-mobile-gallery__glow--one {

	top: -210px;
	left: -120px;

	background:
		radial-gradient(
			circle,
			rgba(37, 99, 235, 0.14),
			rgba(37, 99, 235, 0.04) 40%,
			transparent 72%
		);
}

.hlx-mobile-gallery__glow--two {

	right: -140px;
	bottom: -210px;

	background:
		radial-gradient(
			circle,
			rgba(14, 165, 233, 0.12),
			rgba(14, 165, 233, 0.03) 42%,
			transparent 72%
		);
}


/* ================================================================
   CONTAINER
================================================================ */

.hlx-mobile-gallery__container {

	position: relative;

	z-index: 2;

	width: min(
		1180px,
		calc(100% - 40px)
	);

	margin: 0 auto;

	padding: 38px 0 30px;
}


/* ================================================================
   HEADER
================================================================ */

.hlx-mobile-gallery__header {

	display: flex;

	align-items: flex-end;

	justify-content: space-between;

	gap: 30px;

	margin-bottom: 28px;
}


/* ================================================================
   HEADING
================================================================ */

.hlx-mobile-gallery__heading {
	min-width: 0;
}

.hlx-mobile-gallery__eyebrow {

	display: inline-flex;

	align-items: center;

	gap: 8px;

	margin-bottom: 9px;

	font-size: 11px;

	font-weight: 850;

	line-height: 1;

	letter-spacing: 0.14em;

	text-transform: uppercase;

	color: var(--gallery-primary);
}

.hlx-mobile-gallery__eyebrow::before {

	content: "";

	width: 7px;
	height: 7px;

	flex: 0 0 7px;

	border-radius: 50%;

	background: var(--gallery-primary);

	box-shadow:
		0 0 0 5px rgba(37, 99, 235, 0.09);
}


/* ================================================================
   TITLE
================================================================ */

.hlx-mobile-gallery__title {

	margin: 0;

	font-size: clamp(
		28px,
		3.2vw,
		41px
	);

	line-height: 1.08;

	font-weight: 850;

	letter-spacing: -0.045em;

	color: var(--gallery-text);
}


/* ================================================================
   DESCRIPTION
================================================================ */

.hlx-mobile-gallery__description {

	max-width: 680px;

	margin: 11px 0 0;

	font-size: 14px;

	line-height: 1.7;

	color: var(--gallery-muted);
}


/* ================================================================
   HEADER META
================================================================ */

.hlx-mobile-gallery__header-meta {

	display: flex;

	align-items: center;

	gap: 10px;

	flex: 0 0 auto;
}


/* ================================================================
   PHOTO COUNT
================================================================ */

.hlx-mobile-gallery__photo-count {

	display: inline-flex;

	align-items: baseline;

	gap: 5px;

	padding: 11px 15px;

	border: 1px solid var(--gallery-border);

	border-radius: 13px;

	background:
		rgba(255, 255, 255, 0.88);

	box-shadow:
		0 8px 20px rgba(15, 23, 42, 0.045);

	white-space: nowrap;
}

.hlx-mobile-gallery__photo-count-number {

	font-size: 19px;

	line-height: 1;

	font-weight: 900;

	color: var(--gallery-text);
}

.hlx-mobile-gallery__photo-count-label {

	font-size: 11px;

	font-weight: 750;

	color: var(--gallery-muted);
}


/* ================================================================
   SWIPE HINT
================================================================ */

.hlx-mobile-gallery__hint {

	display: inline-flex;

	align-items: center;

	gap: 7px;

	padding: 11px 14px;

	border: 1px solid #dbeafe;

	border-radius: 13px;

	background:
		linear-gradient(
			135deg,
			#eff6ff,
			#f8fbff
		);

	font-size: 11px;

	font-weight: 750;

	color: var(--gallery-primary);

	white-space: nowrap;
}

.hlx-mobile-gallery__hint-icon {

	display: inline-flex;

	align-items: center;

	justify-content: center;

	font-size: 17px;

	line-height: 1;

	font-weight: 500;
}


/* ================================================================
   MAIN GALLERY
================================================================ */

.hlx-mobile-gallery__main {

	position: relative;

	width: 100%;
}


/* ================================================================
   VIEWPORT
================================================================ */

.hlx-mobile-gallery__viewport {

	width: 100%;

	overflow-x: auto;

	overflow-y: hidden;

	padding: 4px 3px 18px;

	scroll-behavior: smooth;

	scroll-snap-type: x mandatory;

	-webkit-overflow-scrolling: touch;

	overscroll-behavior-x: contain;

	touch-action: pan-x;

	outline: none;

	scrollbar-width: thin;

	scrollbar-color:
		#cbd5e1
		transparent;
}


/* ================================================================
   WEBKIT SCROLLBAR
================================================================ */

.hlx-mobile-gallery__viewport::-webkit-scrollbar {

	height: 7px;
}

.hlx-mobile-gallery__viewport::-webkit-scrollbar-track {

	background: transparent;

	border-radius: 50px;
}

.hlx-mobile-gallery__viewport::-webkit-scrollbar-thumb {

	background: #cbd5e1;

	border-radius: 50px;
}

.hlx-mobile-gallery__viewport::-webkit-scrollbar-thumb:hover {

	background: #94a3b8;
}


/* ================================================================
   TRACK
================================================================ */

.hlx-mobile-gallery__track {

	display: flex;

	align-items: stretch;

	gap: 18px;

	width: max-content;
}


/* ================================================================
   ITEM
================================================================ */

.hlx-mobile-gallery__item {

	flex: 0 0 245px;

	width: 245px;

	margin: 0;

	padding: 0;

	scroll-snap-align: start;

	scroll-snap-stop: normal;
}


/* ================================================================
   IMAGE CARD
================================================================ */

.hlx-mobile-gallery__image-card {

	position: relative;

	height: 100%;

	overflow: hidden;

	border: 1px solid var(--gallery-border);

	border-radius: 21px;

	background: var(--gallery-white);

	box-shadow:
		0 10px 28px rgba(15, 23, 42, 0.065);

	transition:
		transform 0.3s cubic-bezier(.2,.7,.2,1),
		box-shadow 0.3s ease,
		border-color 0.3s ease;
}

.hlx-mobile-gallery__item:hover
.hlx-mobile-gallery__image-card {

	transform: translateY(-6px);

	border-color: #cbd5e1;

	box-shadow:
		0 20px 40px rgba(15, 23, 42, 0.12);
}


/* ================================================================
   IMAGE WRAP
================================================================ */

.hlx-mobile-gallery__image-wrap {

	position: relative;

	width: 100%;

	aspect-ratio: 4 / 5;

	overflow: hidden;

	background:
		linear-gradient(
			145deg,
			#e2e8f0,
			#f8fafc
		);
}


/* ================================================================
   IMAGE
================================================================ */

.hlx-mobile-gallery__image {

	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	object-position: center;

	transition:
		transform 0.65s
		cubic-bezier(.2,.7,.2,1);
}

.hlx-mobile-gallery__item:hover
.hlx-mobile-gallery__image {

	transform: scale(1.055);
}


/* ================================================================
   IMAGE OVERLAY
================================================================ */

.hlx-mobile-gallery__image-wrap::after {

	content: "";

	position: absolute;

	inset: 0;

	pointer-events: none;

	background:
		linear-gradient(
			to bottom,
			rgba(15, 23, 42, 0.18),
			transparent 25%,
			transparent 72%,
			rgba(15, 23, 42, 0.12)
		);
}


/* ================================================================
   IMAGE NUMBER
================================================================ */

.hlx-mobile-gallery__number {

	position: absolute;

	top: 13px;
	left: 13px;

	z-index: 4;

	display: inline-flex;

	align-items: baseline;

	gap: 3px;

	padding: 8px 10px;

	border: 1px solid
		rgba(255, 255, 255, 0.24);

	border-radius: 10px;

	background:
		rgba(15, 23, 42, 0.72);

	backdrop-filter: blur(12px);

	-webkit-backdrop-filter: blur(12px);

	color: #ffffff;

	font-size: 13px;

	line-height: 1;

	font-weight: 850;

	box-shadow:
		0 7px 20px
		rgba(15, 23, 42, 0.18);
}

.hlx-mobile-gallery__number-total {

	font-size: 9px;

	font-weight: 650;

	opacity: 0.62;
}


/* ================================================================
   EXPAND ICON
================================================================ */

.hlx-mobile-gallery__expand {

	position: absolute;

	top: 13px;
	right: 13px;

	z-index: 4;

	display: grid;

	place-items: center;

	width: 36px;
	height: 36px;

	border: 1px solid
		rgba(255, 255, 255, 0.25);

	border-radius: 10px;

	background:
		rgba(15, 23, 42, 0.70);

	backdrop-filter: blur(12px);

	-webkit-backdrop-filter: blur(12px);

	color: #ffffff;

	box-shadow:
		0 7px 20px
		rgba(15, 23, 42, 0.17);
}


/* ================================================================
   CAPTION
================================================================ */

.hlx-mobile-gallery__caption {

	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 12px;

	min-height: 70px;

	padding: 13px 15px;

	background: #ffffff;
}


/* ================================================================
   CAPTION CONTENT
================================================================ */

.hlx-mobile-gallery__caption-content {

	min-width: 0;
}

.hlx-mobile-gallery__caption-label {

	display: block;

	margin-bottom: 4px;

	font-size: 9px;

	line-height: 1;

	font-weight: 850;

	letter-spacing: 0.11em;

	text-transform: uppercase;

	color: var(--gallery-muted);
}

.hlx-mobile-gallery__caption-title {

	display: block;

	font-size: 14px;

	line-height: 1.35;

	font-weight: 800;

	color: var(--gallery-text);

	overflow-wrap: anywhere;
}


/* ================================================================
   CAPTION ARROW
================================================================ */

.hlx-mobile-gallery__caption-arrow {

	display: grid;

	place-items: center;

	flex: 0 0 31px;

	width: 31px;
	height: 31px;

	border-radius: 9px;

	background: var(--gallery-primary-soft);

	color: var(--gallery-primary);

	font-size: 16px;

	font-weight: 800;

	transition:
		transform 0.2s ease,
		background 0.2s ease;
}

.hlx-mobile-gallery__item:hover
.hlx-mobile-gallery__caption-arrow {

	transform:
		translate(2px, -2px);

	background: #dbeafe;
}


/* ================================================================
   NAVIGATION BUTTONS
================================================================ */

.hlx-mobile-gallery__nav {

	position: absolute;

	top: 50%;

	z-index: 20;

	display: grid;

	place-items: center;

	width: 46px;
	height: 46px;

	padding: 0;

	border: 1px solid
		rgba(255, 255, 255, 0.45);

	border-radius: 50%;

	background:
		rgba(15, 23, 42, 0.78);

	backdrop-filter: blur(12px);

	-webkit-backdrop-filter: blur(12px);

	color: #ffffff;

	cursor: pointer;

	transform:
		translateY(-50%);

	box-shadow:
		0 12px 30px
		rgba(15, 23, 42, 0.22);

	transition:
		transform 0.22s ease,
		background 0.22s ease,
		opacity 0.22s ease;
}

.hlx-mobile-gallery__nav:hover {

	background: #0f172a;

	transform:
		translateY(-50%)
		scale(1.07);
}

.hlx-mobile-gallery__nav:active {

	transform:
		translateY(-50%)
		scale(0.96);
}

.hlx-mobile-gallery__nav:focus-visible {

	outline: 3px solid
		rgba(37, 99, 235, 0.35);

	outline-offset: 3px;
}

.hlx-mobile-gallery__nav--prev {

	left: -23px;
}

.hlx-mobile-gallery__nav--next {

	right: -23px;
}


/* ================================================================
   FOOTER
================================================================ */

.hlx-mobile-gallery__footer {

	display: grid;

	grid-template-columns:
		auto
		minmax(100px, 1fr)
		auto;

	align-items: center;

	gap: 18px;

	margin-top: 5px;
}


/* ================================================================
   FOOTER LEFT / RIGHT
================================================================ */

.hlx-mobile-gallery__footer-left,
.hlx-mobile-gallery__footer-right {

	display: flex;

	align-items: center;

	gap: 8px;

	font-size: 11px;

	line-height: 1.3;

	font-weight: 700;

	color: var(--gallery-muted);

	white-space: nowrap;
}


/* ================================================================
   STATUS DOT
================================================================ */

.hlx-mobile-gallery__status-dot {

	display: block;

	width: 7px;
	height: 7px;

	flex: 0 0 7px;

	border-radius: 50%;

	background: var(--gallery-success);

	box-shadow:
		0 0 0 5px
		rgba(22, 163, 74, 0.08);
}


/* ================================================================
   PROGRESS
================================================================ */

.hlx-mobile-gallery__progress {

	position: relative;

	width: 100%;
	height: 4px;

	overflow: hidden;

	border-radius: 50px;

	background: #e2e8f0;
}

.hlx-mobile-gallery__progress-bar {

	display: block;

	width: var(--gallery-progress, 0%);

	height: 100%;

	border-radius: inherit;

	background: var(--gallery-primary);

	transition:
		width 0.25s ease;
}


/* ================================================================
   TABLET
================================================================ */

@media (max-width: 1000px) {

	.hlx-mobile-gallery__container {

		width:
			min(
				calc(100% - 32px),
				900px
			);

		padding-top: 32px;
	}

	.hlx-mobile-gallery__header {

		gap: 20px;
	}

	.hlx-mobile-gallery__item {

		flex-basis: 225px;

		width: 225px;
	}

	.hlx-mobile-gallery__nav--prev {

		left: -16px;
	}

	.hlx-mobile-gallery__nav--next {

		right: -16px;
	}
}


/* ================================================================
   MOBILE
================================================================ */

@media (max-width: 700px) {

	.hlx-mobile-gallery {

		margin: 24px 0;

		border-radius: 21px;

		box-shadow:
			0 14px 35px
			rgba(15, 23, 42, 0.07);
	}

	.hlx-mobile-gallery__container {

		width:
			min(
				calc(100% - 22px),
				560px
			);

		padding:
			26px 0
			22px;
	}


	/* HEADER */

	.hlx-mobile-gallery__header {

		display: block;

		margin-bottom: 20px;
	}

	.hlx-mobile-gallery__title {

		font-size: 29px;
	}

	.hlx-mobile-gallery__description {

		font-size: 13px;

		line-height: 1.65;
	}


	/* META */

	.hlx-mobile-gallery__header-meta {

		display: flex;

		justify-content: space-between;

		margin-top: 16px;

		gap: 8px;
	}

	.hlx-mobile-gallery__photo-count,
	.hlx-mobile-gallery__hint {

		padding:
			9px 11px;
	}


	/* GALLERY */

	.hlx-mobile-gallery__track {

		gap: 13px;
	}

	.hlx-mobile-gallery__item {

		flex:
			0 0
			min(74vw, 250px);

		width:
			min(74vw, 250px);
	}

	.hlx-mobile-gallery__viewport {

		padding:
			3px 2px
			15px;
	}


	/* MOBILE NAVIGATION */

	.hlx-mobile-gallery__nav {

		display: none;
	}


	/* FOOTER */

	.hlx-mobile-gallery__footer {

		grid-template-columns:
			auto
			1fr;

		gap: 12px;
	}

	.hlx-mobile-gallery__footer-right {

		display: none;
	}
}


/* ================================================================
   SMALL MOBILE
================================================================ */

@media (max-width: 420px) {

	.hlx-mobile-gallery__container {

		width:
			calc(100% - 16px);

		padding-top: 23px;
	}

	.hlx-mobile-gallery__title {

		font-size: 26px;
	}

	.hlx-mobile-gallery__eyebrow {

		font-size: 10px;
	}

	.hlx-mobile-gallery__description {

		font-size: 12.5px;
	}

	.hlx-mobile-gallery__header-meta {

		margin-top: 14px;
	}

	.hlx-mobile-gallery__photo-count {

		padding:
			8px 10px;
	}

	.hlx-mobile-gallery__hint {

		padding:
			8px 10px;

		font-size: 10px;
	}

	.hlx-mobile-gallery__photo-count-number {

		font-size: 17px;
	}

	.hlx-mobile-gallery__item {

		flex:
			0 0
			78vw;

		width:
			78vw;
	}

	.hlx-mobile-gallery__track {

		gap: 11px;
	}

	.hlx-mobile-gallery__image-card {

		border-radius: 18px;
	}

	.hlx-mobile-gallery__caption {

		min-height: 63px;

		padding:
			11px 13px;
	}

	.hlx-mobile-gallery__caption-title {

		font-size: 13px;
	}

	.hlx-mobile-gallery__caption-arrow {

		width: 29px;
		height: 29px;

		flex-basis: 29px;
	}
}


/* ================================================================
   VERY SMALL MOBILE
================================================================ */

@media (max-width: 340px) {

	.hlx-mobile-gallery__header-meta {

		align-items: stretch;

		flex-direction: column;
	}

	.hlx-mobile-gallery__photo-count,
	.hlx-mobile-gallery__hint {

		justify-content: center;

		width: 100%;
	}

	.hlx-mobile-gallery__item {

		flex:
			0 0
			82vw;

		width:
			82vw;
	}
}


/* ================================================================
   ACCESSIBILITY
================================================================ */

@media (prefers-reduced-motion: reduce) {

	.hlx-mobile-gallery *,
	.hlx-mobile-gallery *::before,
	.hlx-mobile-gallery *::after {

		scroll-behavior: auto !important;

		transition: none !important;
	}

	.hlx-mobile-gallery__item:hover
	.hlx-mobile-gallery__image-card {

		transform: none;
	}

	.hlx-mobile-gallery__item:hover
	.hlx-mobile-gallery__image {

		transform: none;
	}

	.hlx-mobile-gallery__item:hover
	.hlx-mobile-gallery__caption-arrow {

		transform: none;
	}
}

