.rpx-gallery {
	--rpx-gallery-columns-mobile: 1;
	--rpx-gallery-columns-tablet: 2;
	--rpx-gallery-columns-desktop: 3;
	--rpx-gallery-gap: 20px;
	--rpx-gallery-slider-aspect-ratio: 16 / 10;
	margin: 0 0 1.5rem;
}

.rpx-gallery--aspect-landscape {
	--rpx-gallery-slider-aspect-ratio: 16 / 9;
}

.rpx-gallery--aspect-portrait {
	--rpx-gallery-slider-aspect-ratio: 3 / 4;
}

.rpx-gallery--aspect-square {
	--rpx-gallery-slider-aspect-ratio: 1 / 1;
}

.rpx-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-bottom: 1rem;
}

.rpx-gallery__filter-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.rpx-gallery__filter-button:hover,
.rpx-gallery__filter-button:focus-visible {
	border-color: rgba(0, 0, 0, 0.32);
	outline: none;
}

.rpx-gallery__filter-button.is-active,
.rpx-gallery__filter-button[aria-pressed="true"] {
	background: #111;
	border-color: #111;
	color: #fff;
}

.rpx-gallery__grid {
	display: grid;
	grid-template-columns: repeat(var(--rpx-gallery-columns-mobile), minmax(0, 1fr));
	gap: var(--rpx-gallery-gap);
}

.rpx-gallery__grid--masonry {
	grid-auto-flow: dense;
	grid-auto-rows: 10px;
	align-items: start;
}

.rpx-gallery__grid--justified {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: var(--rpx-gallery-gap);
}

.rpx-gallery__grid--mosaic {
	grid-template-columns: repeat(var(--rpx-gallery-mosaic-columns-mobile, 1), minmax(0, 1fr));
	grid-auto-flow: dense;
	grid-auto-rows: 148px;
	align-items: stretch;
}

.rpx-gallery__grid--before-after {
	grid-template-columns: repeat(var(--rpx-gallery-columns-mobile), minmax(0, 1fr));
}

.rpx-gallery__item {
	margin: 0;
	min-width: 0;
}

.rpx-gallery__item--justified {
	flex: 1 1 220px;
}

.rpx-gallery__item--mosaic {
	position: relative;
	min-width: 0;
	min-height: 0;
	grid-column: span var(--rpx-gallery-mosaic-col-span-mobile, 1);
	grid-row: span var(--rpx-gallery-mosaic-row-span-mobile, 1);
	overflow: hidden;
	border-radius: 0;
	background: #0f1720;
	box-shadow: 0 18px 48px rgba(15, 23, 32, 0.12);
	isolation: isolate;
}

.rpx-gallery__item--mosaic::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: inherit;
	pointer-events: none;
}

.rpx-gallery__item--mosaic-feature {
	box-shadow: 0 24px 64px rgba(15, 23, 32, 0.18);
}

.rpx-gallery__item--mosaic-feature::before,
.rpx-gallery__item--mosaic-wide::before,
.rpx-gallery__item--mosaic-portrait::before,
.rpx-gallery__item--mosaic-tall::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.rpx-gallery__item--mosaic-feature::before {
	background:
		linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 48%),
		linear-gradient(180deg, rgba(11, 18, 29, 0) 0%, rgba(11, 18, 29, 0.38) 100%);
}

.rpx-gallery__item--mosaic-wide::before {
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), transparent 44%);
}

.rpx-gallery__item--mosaic-portrait::before,
.rpx-gallery__item--mosaic-tall::before {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 40%);
}

.rpx-gallery__link,
.rpx-gallery__media,
.rpx-gallery__video-trigger {
	display: block;
	color: inherit;
	text-decoration: none;
}

.rpx-gallery__video-trigger {
	position: relative;
	width: 100%;
	padding: 0;
	border: 0;
	background: #101820;
	cursor: pointer;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.rpx-gallery__video-trigger:hover,
.rpx-gallery__video-trigger:focus-visible {
	outline: none;
}

.rpx-gallery--layout-justified .rpx-gallery__link,
.rpx-gallery--layout-justified .rpx-gallery__media,
.rpx-gallery--layout-justified .rpx-gallery__video-trigger {
	height: var(--rpx-gallery-justified-height, auto);
}

.rpx-gallery--layout-mosaic .rpx-gallery__link,
.rpx-gallery--layout-mosaic .rpx-gallery__media,
.rpx-gallery--layout-mosaic .rpx-gallery__video-trigger {
	position: relative;
	z-index: 0;
	height: 100%;
	background: #0f1720;
	overflow: hidden;
}

.rpx-gallery--layout-mosaic .rpx-gallery__video-trigger {
	aspect-ratio: auto;
}

.rpx-gallery--layout-justified .rpx-gallery__item--justified {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	background: #0f1720;
}

.rpx-gallery--layout-justified .rpx-gallery__item--justified .rpx-gallery__link,
.rpx-gallery--layout-justified .rpx-gallery__item--justified .rpx-gallery__media,
.rpx-gallery--layout-justified .rpx-gallery__item--justified .rpx-gallery__video-trigger {
	position: relative;
	overflow: hidden;
	background: #0f1720;
}

.rpx-gallery__image {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

.rpx-gallery--layout-justified .rpx-gallery__image,
.rpx-gallery--layout-justified .rpx-gallery__image--video {
	height: 100%;
	object-fit: cover;
}

.rpx-gallery--layout-mosaic .rpx-gallery__image,
.rpx-gallery--layout-mosaic .rpx-gallery__image--video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.rpx-gallery--layout-mosaic .rpx-gallery__item:hover .rpx-gallery__image,
.rpx-gallery--layout-mosaic .rpx-gallery__item:hover .rpx-gallery__image--video,
.rpx-gallery--layout-mosaic .rpx-gallery__item:focus-within .rpx-gallery__image,
.rpx-gallery--layout-mosaic .rpx-gallery__item:focus-within .rpx-gallery__image--video {
	transform: scale(1.03);
}

.rpx-gallery__image--video {
	height: 100%;
	object-fit: cover;
}

.rpx-gallery__item--before-after {
	overflow: hidden;
	border: 1px solid rgba(15, 23, 32, 0.1);
	border-radius: 0;
	background: #fff;
	box-shadow: 0 18px 48px rgba(15, 23, 32, 0.08);
}

.rpx-gallery__before-after {
	display: grid;
}

.rpx-gallery__before-after-media {
	position: relative;
	aspect-ratio: var(--rpx-gallery-before-after-aspect-ratio, 4 / 3);
	overflow: hidden;
	background: #0f1720;
}

.rpx-gallery__before-after-pane {
	position: absolute;
	inset: 0;
}

.rpx-gallery__before-after-pane--before {
	clip-path: inset(0 calc(100% - var(--rpx-gallery-before-after-split, 50%)) 0 0);
}

.rpx-gallery__before-after-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-select: none;
	pointer-events: none;
}

.rpx-gallery__before-after-label {
	position: absolute;
	top: 1rem;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem 0.8rem;
	border-radius: 999px;
	background: rgba(7, 10, 16, 0.74);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	pointer-events: none;
	backdrop-filter: blur(3px);
}

.rpx-gallery__before-after-label--before {
	left: 1rem;
}

.rpx-gallery__before-after-label--after {
	right: 1rem;
}

.rpx-gallery__before-after-range {
	position: absolute;
	inset: 0;
	z-index: 3;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	opacity: 0;
	cursor: ew-resize;
	appearance: none;
	-webkit-appearance: none;
	touch-action: pan-y;
}

.rpx-gallery__before-after-range::-webkit-slider-thumb {
	width: 48px;
	height: 48px;
	cursor: ew-resize;
	appearance: none;
	-webkit-appearance: none;
}

.rpx-gallery__before-after-range::-moz-range-thumb {
	width: 48px;
	height: 48px;
	border: 0;
	cursor: ew-resize;
	appearance: none;
}

.rpx-gallery__before-after-range::-moz-range-track {
	background: transparent;
	border: 0;
}

.rpx-gallery__before-after-handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--rpx-gallery-before-after-split, 50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 0;
	pointer-events: none;
	transform: translateX(-50%);
}

.rpx-gallery__before-after-handle-line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: 2px;
	background: rgba(255, 255, 255, 0.95);
	transform: translateX(-50%);
	box-shadow: 0 0 0 1px rgba(7, 10, 16, 0.14);
}

.rpx-gallery__before-after-handle-grip {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.98);
	box-shadow: 0 16px 38px rgba(7, 10, 16, 0.24);
}

.rpx-gallery__before-after-handle-icon {
	position: relative;
	display: block;
	width: 20px;
	height: 14px;
}

.rpx-gallery__before-after-handle-icon::before,
.rpx-gallery__before-after-handle-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 7px;
	height: 7px;
	border-top: 2px solid #111;
	border-right: 2px solid #111;
	transform-origin: center;
}

.rpx-gallery__before-after-handle-icon::before {
	left: 0;
	transform: translateY(-50%) rotate(-135deg);
}

.rpx-gallery__before-after-handle-icon::after {
	right: 0;
	transform: translateY(-50%) rotate(45deg);
}

.rpx-gallery__before-after-range:focus-visible + .rpx-gallery__before-after-handle .rpx-gallery__before-after-handle-grip {
	outline: 3px solid #72aee6;
	outline-offset: 2px;
}

.rpx-gallery__video-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 1rem;
	background:
		radial-gradient(circle at top, rgba(255, 255, 255, 0.1), transparent 50%),
		linear-gradient(135deg, #1a2430, #0d1218);
}

.rpx-gallery__video-placeholder-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.4rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.rpx-gallery__video-play-indicator {
	position: absolute;
	top: 50%;
	left: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 999px;
	background: rgba(7, 10, 16, 0.68);
	transform: translate(-50%, -50%);
	backdrop-filter: blur(4px);
}

.rpx-gallery__video-play-icon {
	display: block;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 12px solid transparent;
	border-bottom: 12px solid transparent;
	border-left: 20px solid #fff;
}

.rpx-gallery__video-provider-badge {
	position: absolute;
	top: 0.8rem;
	left: 0.8rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.38rem 0.7rem;
	border-radius: 999px;
	background: rgba(7, 10, 16, 0.78);
	color: #fff;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.rpx-gallery__caption {
	display: grid;
	gap: 0.35rem;
	margin-top: 0.65rem;
}

.rpx-gallery__caption-title {
	font-weight: 600;
	line-height: 1.35;
}

.rpx-gallery__caption-text {
	color: inherit;
	font-size: 0.95em;
	line-height: 1.5;
}

.rpx-gallery--layout-justified .rpx-gallery__caption--overlay {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	gap: 0.25rem;
	margin-top: 0;
	padding: 1.1rem 1rem 0.95rem;
	color: #fff;
	background: linear-gradient(180deg, rgba(7, 10, 16, 0) 0%, rgba(7, 10, 16, 0.52) 38%, rgba(7, 10, 16, 0.9) 100%);
	pointer-events: none;
}

.rpx-gallery--layout-justified .rpx-gallery__caption--overlay .rpx-gallery__caption-title,
.rpx-gallery--layout-justified .rpx-gallery__caption--overlay .rpx-gallery__caption-text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.rpx-gallery--layout-justified .rpx-gallery__caption--overlay .rpx-gallery__caption-title {
	color: #fff;
	font-size: 0.98rem;
	-webkit-line-clamp: 2;
}

.rpx-gallery--layout-justified .rpx-gallery__caption--overlay .rpx-gallery__caption-text {
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.88rem;
	-webkit-line-clamp: 2;
}

.rpx-gallery--layout-mosaic .rpx-gallery__caption--overlay {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
	gap: 0.28rem;
	margin-top: 0;
	padding: 1.05rem 0.95rem 0.9rem;
	color: #fff;
	background: linear-gradient(180deg, rgba(7, 10, 16, 0) 0%, rgba(7, 10, 16, 0.2) 34%, rgba(7, 10, 16, 0.9) 100%);
	pointer-events: none;
}

.rpx-gallery--layout-mosaic .rpx-gallery__caption--overlay .rpx-gallery__caption-title,
.rpx-gallery--layout-mosaic .rpx-gallery__caption--overlay .rpx-gallery__caption-text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.rpx-gallery--layout-mosaic .rpx-gallery__caption--overlay .rpx-gallery__caption-title {
	color: #fff;
	font-size: 0.98rem;
	-webkit-line-clamp: 2;
}

.rpx-gallery--layout-mosaic .rpx-gallery__caption--overlay .rpx-gallery__caption-text {
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.88rem;
	-webkit-line-clamp: 3;
}

.rpx-gallery__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rpx-gallery__pagination {
	display: grid;
	gap: 0.85rem;
	justify-items: center;
	margin-top: 1.15rem;
}

.rpx-gallery__pagination-summary {
	margin: 0;
	color: rgba(15, 23, 32, 0.72);
	font-size: 0.95rem;
	line-height: 1.45;
	text-align: center;
}

.rpx-gallery__pagination-pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
}

.rpx-gallery__pagination-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
}

.rpx-gallery__pagination-button,
.rpx-gallery__load-less,
.rpx-gallery__load-more,
.rpx-gallery__load-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.14);
	border-radius: 999px;
	background: #fff;
	color: inherit;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.rpx-gallery__pagination-button:hover,
.rpx-gallery__pagination-button:focus-visible,
.rpx-gallery__load-less:hover,
.rpx-gallery__load-less:focus-visible,
.rpx-gallery__load-more:hover,
.rpx-gallery__load-more:focus-visible,
.rpx-gallery__load-all:hover,
.rpx-gallery__load-all:focus-visible {
	border-color: rgba(0, 0, 0, 0.32);
	outline: none;
	transform: translateY(-1px);
}

.rpx-gallery__pagination-button.is-active,
.rpx-gallery__pagination-button[aria-current="page"] {
	background: #111;
	border-color: #111;
	color: #fff;
}

.rpx-gallery__load-less,
.rpx-gallery__load-more,
.rpx-gallery__load-all {
	padding-right: 1.2rem;
	padding-left: 1.2rem;
}

.rpx-gallery__load-less[disabled],
.rpx-gallery__load-more[disabled],
.rpx-gallery__load-all[disabled] {
	opacity: 0.5;
	cursor: default;
	transform: none;
}

.rpx-gallery__slider {
	position: relative;
	display: grid;
	gap: 1rem;
}

.rpx-gallery__slider-stage {
	position: relative;
	min-width: 0;
}

.rpx-gallery__slider-viewport {
	overflow: hidden;
	outline: none;
	touch-action: pan-y pinch-zoom;
	transition: height 0.28s ease;
}

.rpx-gallery__slider-track {
	display: flex;
	align-items: stretch;
	will-change: transform;
	backface-visibility: hidden;
}

.rpx-gallery__slider-track > .rpx-gallery__item {
	flex: 0 0 100%;
	min-width: 100%;
}

.rpx-gallery__slider-track > .rpx-gallery__item[hidden] {
	display: none;
}

.rpx-gallery__slider-stash {
	display: none !important;
}

.rpx-gallery__slider-arrow {
	position: absolute;
	top: calc(50% - 1.5rem);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 32, 0.76);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.16s ease, opacity 0.16s ease, transform 0.16s ease;
}

.rpx-gallery__slider-arrow:hover,
.rpx-gallery__slider-arrow:focus-visible {
	background: rgba(15, 23, 32, 0.9);
	outline: none;
	transform: translateY(-1px);
}

.rpx-gallery__slider-arrow[disabled] {
	opacity: 0.42;
	cursor: default;
	transform: none;
}

.rpx-gallery__slider-arrow--previous {
	left: 1rem;
}

.rpx-gallery__slider-arrow--next {
	right: 1rem;
}

.rpx-gallery__slider-footer {
	display: flex;
	align-items: center;
	justify-content: center;
}

.rpx-gallery__slider-dots {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
}

.rpx-gallery__slider-dot {
	width: 0.8rem;
	height: 0.8rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(15, 23, 32, 0.22);
	cursor: pointer;
	transition: transform 0.16s ease, background-color 0.16s ease, opacity 0.16s ease;
}

.rpx-gallery__slider-dot:hover,
.rpx-gallery__slider-dot:focus-visible {
	background: rgba(15, 23, 32, 0.52);
	outline: none;
	transform: scale(1.08);
}

.rpx-gallery__slider-dot.is-active,
.rpx-gallery__slider-dot[aria-current="true"] {
	background: #111;
}

.rpx-gallery__slider-thumbnails {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(4.75rem, 5.75rem);
	gap: 0.75rem;
	overflow-x: auto;
	padding: 0.2rem 0.15rem 0.35rem;
	overscroll-behavior-x: contain;
	scrollbar-width: thin;
}

.rpx-gallery__slider-thumbnail {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 1px solid rgba(15, 23, 32, 0.12);
	border-radius: 0;
	background: #fff;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.rpx-gallery__slider-thumbnail:hover,
.rpx-gallery__slider-thumbnail:focus-visible {
	border-color: rgba(15, 23, 32, 0.34);
	outline: none;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(15, 23, 32, 0.1);
}

.rpx-gallery__slider-thumbnail.is-active,
.rpx-gallery__slider-thumbnail[aria-current="true"] {
	border-color: #111827;
	box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12), 0 14px 30px rgba(15, 23, 32, 0.12);
}

.rpx-gallery__slider-thumbnail[disabled] {
	cursor: default;
	opacity: 0.45;
	transform: none;
	box-shadow: none;
}

.rpx-gallery__slider-thumbnail-media {
	position: relative;
	display: block;
	background: #ebe6dc;
}

.rpx-gallery__slider-thumbnail-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.rpx-gallery__slider-thumbnail-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 4.6rem;
	padding: 0.85rem;
	color: rgba(15, 23, 32, 0.68);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-align: center;
	text-transform: uppercase;
}

.rpx-gallery__slider-thumbnail-badge {
	position: absolute;
	right: 0.45rem;
	bottom: 0.45rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.22rem 0.48rem;
	border-radius: 999px;
	background: rgba(17, 24, 39, 0.78);
	color: #fff;
	font-size: 0.64rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1;
	text-transform: uppercase;
}

.rpx-gallery--layout-carousel .rpx-gallery__slider-viewport,
.rpx-gallery--layout-slideshow .rpx-gallery__slider-viewport {
	border-radius: 0;
}

.rpx-gallery--layout-carousel .rpx-gallery__item,
.rpx-gallery--layout-slideshow .rpx-gallery__item {
	margin: 0;
}

.rpx-gallery--layout-carousel .rpx-gallery__item {
	overflow: hidden;
	border: 1px solid rgba(15, 23, 32, 0.1);
	border-radius: 0;
	background: #fff;
	box-shadow: 0 18px 48px rgba(15, 23, 32, 0.08);
}

.rpx-gallery--layout-carousel .rpx-gallery__slider-stage {
	width: min(100%, 700px);
	max-width: 700px;
	margin-inline: auto;
}

.rpx-gallery--layout-slideshow .rpx-gallery__item {
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #111827;
	box-shadow: none;
}

.rpx-gallery--layout-carousel .rpx-gallery__link,
.rpx-gallery--layout-carousel .rpx-gallery__media,
.rpx-gallery--layout-carousel .rpx-gallery__video-trigger,
.rpx-gallery--layout-slideshow .rpx-gallery__link,
.rpx-gallery--layout-slideshow .rpx-gallery__media,
.rpx-gallery--layout-slideshow .rpx-gallery__video-trigger {
	aspect-ratio: var(--rpx-gallery-slider-aspect-ratio);
	background: #0f1720;
	overflow: hidden;
}

.rpx-gallery--layout-carousel .rpx-gallery__image,
.rpx-gallery--layout-carousel .rpx-gallery__image--video,
.rpx-gallery--layout-slideshow .rpx-gallery__image,
.rpx-gallery--layout-slideshow .rpx-gallery__image--video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rpx-gallery__slider--image-sizing-natural .rpx-gallery__slider-track {
	align-items: flex-start;
}

.rpx-gallery__slider--image-sizing-natural .rpx-gallery__item {
	align-self: flex-start;
}

.rpx-gallery__slider--image-sizing-natural .rpx-gallery__item--image .rpx-gallery__link,
.rpx-gallery__slider--image-sizing-natural .rpx-gallery__item--image .rpx-gallery__media {
	aspect-ratio: auto;
	background: transparent;
	overflow: visible;
}

.rpx-gallery__slider--image-sizing-natural .rpx-gallery__item--image .rpx-gallery__image {
	width: 100%;
	height: auto;
	object-fit: contain;
}

.rpx-gallery__item--before-after .rpx-gallery__caption {
	margin-top: 0;
	padding: 1rem 1.1rem 1.15rem;
}

.rpx-gallery__item--before-after .rpx-gallery__caption-text {
	color: rgba(15, 23, 32, 0.72);
}

.rpx-gallery--layout-carousel .rpx-gallery__caption,
.rpx-gallery--layout-slideshow .rpx-gallery__caption {
	margin-top: 0;
	padding: 1rem 1.1rem 1.15rem;
}

.rpx-gallery--layout-carousel .rpx-gallery__caption-title {
	font-size: 1rem;
}

.rpx-gallery--layout-carousel .rpx-gallery__caption-text {
	color: rgba(15, 23, 32, 0.72);
}

.rpx-gallery--layout-slideshow .rpx-gallery__caption {
	padding: 1.15rem 1.25rem 1.25rem;
	border-top: 1px solid rgba(15, 23, 32, 0.08);
	background: #fff;
}

.rpx-gallery--layout-slideshow .rpx-gallery__caption-title,
.rpx-gallery--layout-slideshow .rpx-gallery__caption-text {
	color: #111827;
}

.rpx-gallery--layout-slideshow .rpx-gallery__caption-text {
	color: rgba(15, 23, 32, 0.72);
}

.rpx-gallery--layout-slideshow .rpx-gallery__slider {
	gap: 1.15rem;
}

.rpx-gallery--layout-slideshow .rpx-gallery__slider-stage {
	width: min(100%, 700px);
	max-width: 700px;
	margin-inline: auto;
}

.rpx-gallery--layout-slideshow .rpx-gallery__slider-viewport {
	border-radius: 0;
	background: transparent;
}

.rpx-gallery--layout-slideshow .rpx-gallery__slider-arrow {
	background: rgba(17, 24, 39, 0.78);
}

.rpx-gallery--layout-slideshow .rpx-gallery__slider-arrow--previous {
	left: 0.75rem;
}

.rpx-gallery--layout-slideshow .rpx-gallery__slider-arrow--next {
	right: 0.75rem;
}

.rpx-gallery--layout-slideshow .rpx-gallery__slider-arrow:hover,
.rpx-gallery--layout-slideshow .rpx-gallery__slider-arrow:focus-visible {
	background: rgba(17, 24, 39, 0.92);
}

.rpx-gallery--layout-slideshow .rpx-gallery__slider-thumbnails {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	grid-auto-flow: unset;
	grid-auto-columns: unset;
	overflow-x: visible;
	padding-inline: 0;
}

.rpx-gallery--layout-slideshow .rpx-gallery__slider-thumbnail {
	flex: 0 0 auto;
	width: clamp(5rem, 8vw, 6.5rem);
}

@media (hover: hover) {
	.rpx-gallery--layout-carousel .rpx-gallery__slider-arrow {
		opacity: 0;
		pointer-events: none;
	}

	.rpx-gallery--layout-carousel .rpx-gallery__slider-stage:hover .rpx-gallery__slider-arrow,
	.rpx-gallery--layout-carousel .rpx-gallery__slider-stage:focus-within .rpx-gallery__slider-arrow {
		opacity: 1;
		pointer-events: auto;
	}

	.rpx-gallery--layout-carousel .rpx-gallery__slider-stage:hover .rpx-gallery__slider-arrow[disabled],
	.rpx-gallery--layout-carousel .rpx-gallery__slider-stage:focus-within .rpx-gallery__slider-arrow[disabled] {
		opacity: 0.42;
	}
}

@media (min-width: 640px) {
	.rpx-gallery__grid {
		grid-template-columns: repeat(var(--rpx-gallery-columns-tablet), minmax(0, 1fr));
	}

	.rpx-gallery__grid--mosaic {
		grid-template-columns: repeat(var(--rpx-gallery-mosaic-columns-tablet, 2), minmax(0, 1fr));
		grid-auto-rows: 112px;
	}

	.rpx-gallery__item--mosaic {
		grid-column: span var(--rpx-gallery-mosaic-col-span-tablet, 1);
		grid-row: span var(--rpx-gallery-mosaic-row-span-tablet, 1);
	}
}

@media (min-width: 960px) {
	.rpx-gallery__grid {
		grid-template-columns: repeat(var(--rpx-gallery-columns-desktop), minmax(0, 1fr));
	}

	.rpx-gallery__grid--mosaic {
		grid-template-columns: repeat(var(--rpx-gallery-mosaic-columns-desktop, 3), minmax(0, 1fr));
		grid-auto-rows: 120px;
	}

	.rpx-gallery__item--mosaic {
		grid-column: span var(--rpx-gallery-mosaic-col-span-desktop, 1);
		grid-row: span var(--rpx-gallery-mosaic-row-span-desktop, 1);
	}
}

@media (max-width: 640px) {
	.rpx-gallery__filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 0.25rem;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.rpx-gallery__filter-button {
		flex: 0 0 auto;
	}

	.rpx-gallery__pagination-pages {
		gap: 0.45rem;
	}

	.rpx-gallery__pagination-button,
	.rpx-gallery__load-more {
		padding: 0.6rem 0.9rem;
	}

	.rpx-gallery__slider {
		gap: 0.85rem;
	}

	.rpx-gallery__slider-arrow {
		top: calc(50% - 1.35rem);
		width: 2.7rem;
		height: 2.7rem;
	}

	.rpx-gallery__slider-arrow--previous {
		left: 0.65rem;
	}

	.rpx-gallery__slider-arrow--next {
		right: 0.65rem;
	}

	.rpx-gallery__slider-thumbnails {
		grid-auto-columns: minmax(4.25rem, 4.85rem);
		gap: 0.55rem;
	}

	.rpx-gallery__grid--justified {
		display: grid;
		grid-template-columns: 1fr;
	}

	.rpx-gallery__grid--mosaic {
		grid-auto-rows: 156px;
	}

	.rpx-gallery__item--justified {
		flex: 1 1 auto;
		width: auto !important;
	}

	.rpx-gallery__item--mosaic {
		border-radius: 0;
	}

	.rpx-gallery--layout-justified .rpx-gallery__item--justified {
		border-radius: 0;
	}

	.rpx-gallery--layout-justified .rpx-gallery__caption--overlay {
		padding: 0.95rem 0.85rem 0.8rem;
	}

	.rpx-gallery--layout-mosaic .rpx-gallery__caption--overlay {
		padding: 0.95rem 0.85rem 0.78rem;
	}

	.rpx-gallery__video-play-indicator {
		width: 60px;
		height: 60px;
	}

	.rpx-gallery__video-provider-badge {
		top: 0.65rem;
		left: 0.65rem;
	}

	.rpx-gallery__before-after-label {
		top: 0.7rem;
		padding: 0.38rem 0.68rem;
		font-size: 0.72rem;
	}

	.rpx-gallery__before-after-label--before {
		left: 0.7rem;
	}

	.rpx-gallery__before-after-label--after {
		right: 0.7rem;
	}

	.rpx-gallery__before-after-handle-grip {
		width: 42px;
		height: 42px;
	}

	.rpx-gallery__item--before-after {
		border-radius: 0;
	}

	.rpx-gallery--layout-carousel .rpx-gallery__slider-viewport,
	.rpx-gallery--layout-slideshow .rpx-gallery__slider-viewport,
	.rpx-gallery--layout-carousel .rpx-gallery__item,
	.rpx-gallery--layout-slideshow .rpx-gallery__item {
		border-radius: 0;
	}

	.rpx-gallery--layout-slideshow .rpx-gallery__slider-stage {
		width: 100%;
		max-width: 700px;
	}

	.rpx-gallery--layout-slideshow .rpx-gallery__caption {
		padding: 1rem 1rem 1.05rem;
	}

	.rpx-gallery--layout-slideshow .rpx-gallery__slider-thumbnails {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(4.25rem, 4.85rem);
		justify-content: start;
		overflow-x: auto;
		padding-inline: 0.15rem;
	}

	.rpx-gallery--layout-slideshow .rpx-gallery__slider-thumbnail {
		width: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rpx-gallery__slider-track,
	.rpx-gallery__slider-viewport,
	.rpx-gallery__slider-arrow,
	.rpx-gallery__slider-dot,
	.rpx-gallery__slider-thumbnail {
		transition: none;
	}
}

body.rpx-gallery-lightbox-open {
	overflow: hidden;
}

body.rpx-gallery-video-modal-open {
	overflow: hidden;
}

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

.rpx-gallery-video-modal[hidden] {
	display: none;
}

.rpx-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.rpx-gallery-video-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
}

.rpx-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(12, 16, 24, 0.88);
}

.rpx-gallery-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(9, 12, 18, 0.9);
}

.rpx-gallery-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(100vw - 24px, 1120px);
	height: min(100vh - 24px, 900px);
	margin: 12px auto;
	padding: 12px;
	background: rgba(18, 24, 34, 0.96);
	color: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.rpx-gallery-video-modal__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto;
	width: min(100vw - 24px, 1080px);
	max-height: min(100vh - 24px, 900px);
	margin: 12px auto;
	padding: 12px;
	background: rgba(18, 24, 34, 0.98);
	color: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.rpx-gallery-lightbox__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
}

.rpx-gallery-video-modal__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
}

.rpx-gallery-video-modal__heading {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.rpx-gallery-lightbox__toolbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rpx-gallery-lightbox__counter {
	margin: 0;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.8);
}

.rpx-gallery-lightbox__control,
.rpx-gallery-lightbox__nav,
.rpx-gallery-video-modal__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	color: inherit;
	cursor: pointer;
	transition: background-color 0.16s ease, opacity 0.16s ease;
}

.rpx-gallery-lightbox__control:hover,
.rpx-gallery-lightbox__control:focus-visible,
.rpx-gallery-lightbox__nav:hover,
.rpx-gallery-lightbox__nav:focus-visible,
.rpx-gallery-video-modal__close:hover,
.rpx-gallery-video-modal__close:focus-visible {
	background: rgba(255, 255, 255, 0.24);
	outline: none;
}

.rpx-gallery-lightbox__control[disabled],
.rpx-gallery-lightbox__nav[disabled] {
	opacity: 0.45;
	cursor: default;
}

.rpx-gallery-lightbox__control--close,
.rpx-gallery-video-modal__close {
	font-size: 1.4rem;
	line-height: 1;
}

.rpx-gallery-lightbox__stage {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 56px;
	align-items: center;
	gap: 12px;
	min-height: 0;
}

.rpx-gallery-lightbox__viewport {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	height: 100%;
	overflow: hidden;
	position: relative;
	user-select: none;
	-webkit-user-select: none;
	overscroll-behavior: contain;
}

.rpx-gallery-video-modal__viewport {
	min-height: 0;
}

.rpx-gallery-video-modal__frame-shell {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 14px;
	background: #05070a;
	overflow: hidden;
}

.rpx-gallery-video-modal__frame,
.rpx-gallery-video-modal__frame iframe {
	width: 100%;
	height: 100%;
}

.rpx-gallery-video-modal__frame iframe {
	display: block;
	border: 0;
}

.rpx-gallery-lightbox__media {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-height: 0;
	transform: translate3d(0, 0, 0);
	transition: width 0.18s ease, height 0.18s ease, transform 0.18s ease;
	will-change: width, height, transform;
}

.rpx-gallery-lightbox__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	margin: 0;
	object-fit: contain;
	transition: opacity 0.16s ease;
	pointer-events: none;
	touch-action: none;
}

.rpx-gallery-lightbox.is-loading .rpx-gallery-lightbox__image {
	opacity: 0.5;
}

.rpx-gallery-lightbox__viewport.is-pannable {
	cursor: grab;
	touch-action: none;
}

.rpx-gallery-lightbox__viewport.is-dragging {
	cursor: grabbing;
}

.rpx-gallery-lightbox__viewport.is-dragging .rpx-gallery-lightbox__media {
	transition: none;
}

.rpx-gallery-lightbox__meta,
.rpx-gallery-video-modal__meta {
	display: grid;
	gap: 8px;
	padding-top: 12px;
}

.rpx-gallery-lightbox__title,
.rpx-gallery-video-modal__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
}

.rpx-gallery-lightbox__caption,
.rpx-gallery-video-modal__caption {
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.95rem;
	line-height: 1.55;
}

.rpx-gallery-lightbox__caption[hidden],
.rpx-gallery-video-modal__caption[hidden] {
	display: none;
}

@media (max-width: 782px) {
	.rpx-gallery-lightbox__dialog {
		width: 100vw;
		height: 100vh;
		margin: 0;
		padding: 12px;
		border-radius: 0;
	}

	.rpx-gallery-video-modal__dialog {
		width: 100vw;
		max-height: none;
		height: 100vh;
		margin: 0;
		padding: 12px;
		border-radius: 0;
	}

	.rpx-gallery-lightbox__stage {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		gap: 8px;
	}

	.rpx-gallery-lightbox__image {
		max-height: none;
	}

	.rpx-gallery-lightbox__toolbar {
		align-items: flex-start;
	}

	.rpx-gallery-lightbox__toolbar-actions {
		flex-wrap: wrap;
		justify-content: flex-end;
	}
}
