.pvg-gallery-trigger {
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.pvg-gallery-trigger:focus-visible,
.pvg-modal button:focus-visible {
	outline: 3px solid rgba(80, 133, 255, 0.72);
	outline-offset: 3px;
}

body.pvg-modal-open {
	overflow: hidden !important;
	overscroll-behavior: none;
}

.pvg-modal,
.pvg-modal * {
	box-sizing: border-box;
}

.pvg-modal button {
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	tap-highlight-color: transparent;
	user-select: none;
	-webkit-user-select: none;
}

.pvg-modal button:focus:not(:focus-visible) {
	outline: none;
}

.pvg-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: flex-end;
	justify-content: stretch;
	padding: 0;
	background: rgba(14, 17, 22, 0.66);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.pvg-modal.is-open,
.pvg-modal.is-closing {
	display: flex;
}

.pvg-modal.is-open {
	animation: pvg-backdrop-in 260ms ease-out both;
}

.pvg-modal.is-closing {
	animation: pvg-backdrop-out 240ms ease-in both;
}

.pvg-modal__panel {
	position: relative;
	display: grid;
	grid-template-rows: auto auto minmax(0, 1fr);
	width: 100%;
	height: 80dvh;
	min-height: 420px;
	margin: 0;
	border-radius: 28px 28px 0 0;
	background: #fff;
	box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.24);
	overflow: hidden;
	overscroll-behavior: contain;
	color: #23262b;
}

.pvg-modal.is-open .pvg-modal__panel {
	animation: pvg-sheet-up 420ms cubic-bezier(0.22, 0.72, 0.25, 1) both;
}

.pvg-modal.is-closing .pvg-modal__panel {
	animation: pvg-sheet-down 240ms ease-in both;
}

.pvg-modal__grabber {
	width: 46px;
	height: 5px;
	margin: 11px auto 4px;
	border-radius: 99px;
	background: #d5d7db;
}

.pvg-modal__header {
	display: grid;
	grid-template-columns: 42px minmax(0, 1fr) 42px;
	align-items: center;
	padding: 4px clamp(18px, 3vw, 42px) 12px;
}

.pvg-modal__close {
	position: relative;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #25282d;
	cursor: pointer;
	transition: background-color 150ms ease, transform 150ms ease;
}

.pvg-modal__close:hover {
	background: #f0f1f3;
}

.pvg-modal__close:active {
	transform: scale(0.94);
}

.pvg-modal__close span::before,
.pvg-modal__close span::after {
	content: '';
	position: absolute;
	top: 20px;
	left: 10px;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.pvg-modal__close span::before {
	transform: rotate(45deg);
}

.pvg-modal__close span::after {
	transform: rotate(-45deg);
}

.pvg-gallery__counter {
	margin: 0;
	direction: ltr;
	text-align: center;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.06em;
	color: #6f747c;
}

.pvg-modal__header-spacer {
	display: block;
	width: 42px;
	height: 42px;
}

.pvg-modal__body {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	min-height: 0;
	padding: 0 clamp(14px, 3vw, 42px) max(18px, env(safe-area-inset-bottom));
}

.pvg-gallery__stage {
	position: relative;
	min-height: 0;
	width: auto;
	height: 100%;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	border-radius: 24px;
	background: #f4f4f5;
	overflow: hidden;
}

.pvg-gallery__figure {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
}

.pvg-modal .pvg-gallery__main-image {
	display: block;
	max-width: none;
	max-height: none;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	-webkit-user-drag: none;
	user-select: none;
	opacity: 1;
	transform: scale(1);
	transition: opacity 140ms ease, transform 220ms ease;
}

.pvg-gallery__main-image.is-changing {
	opacity: 0.32;
	transform: scale(0.985);
}

.pvg-gallery__navigation {
	position: absolute;
	right: clamp(12px, 2vw, 24px);
	bottom: clamp(12px, 2vw, 24px);
	left: clamp(12px, 2vw, 24px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	pointer-events: none;
}

.pvg-modal .pvg-gallery__arrow {
	position: relative;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	min-width: 46px;
	min-height: 46px;
	padding: 0 !important;
	border: 1px solid rgba(28, 32, 38, 0.08);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 8px 26px rgba(22, 26, 33, 0.11);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #2d3137;
	cursor: pointer;
	font-size: 0;
	line-height: 1;
	pointer-events: auto;
	overflow: hidden;
	transition: background-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.pvg-modal .pvg-gallery__arrow:hover,
.pvg-modal .pvg-gallery__arrow:focus {
	background: #fff;
	color: #2d3137;
	box-shadow: 0 10px 30px rgba(22, 26, 33, 0.17);
	border-color: rgba(28, 32, 38, 0.08);
}

.pvg-modal .pvg-gallery__arrow:hover {
	transform: translateY(-1px);
}

.pvg-gallery__arrow:active {
	transform: scale(0.94);
}

.pvg-modal .pvg-gallery__arrow i {
	position: absolute;
	top: 50%;
	left: 50%;
	display: block;
	width: 1em;
	height: 1em;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 24px !important;
	font-style: normal;
	line-height: 1 !important;
	text-align: center;
	color: inherit;
	transform: translate(-50%, -50%) !important;
}

.pvg-modal .pvg-gallery__arrow i::before {
	display: block;
	width: 1em;
	height: 1em;
	margin: 0;
	line-height: 1 !important;
	text-align: center;
}

.pvg-gallery__footer {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	width: min(100%, 1180px);
	margin: 0 auto;
	padding: 16px 4px 0;
}

.pvg-gallery__description {
	display: grid;
	gap: 4px;
	min-width: 0;
}

.pvg-gallery__description h2 {
	margin: 0;
	font: inherit;
	font-size: clamp(17px, 2vw, 22px);
	font-weight: 700;
	line-height: 1.4;
	color: #25282d;
}

.pvg-gallery__description p {
	margin: 0;
	font-size: 12px;
	line-height: 1.6;
	color: #848990;
}

.pvg-gallery__thumbnails {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	max-width: min(50%, 420px);
	min-height: 24px;
	padding: 5px 2px;
	overflow-x: auto;
	scrollbar-width: none;
}

.pvg-gallery__thumbnails::-webkit-scrollbar {
	display: none;
}

.pvg-gallery__thumbnails[hidden] {
	display: none;
}

.pvg-gallery__thumbnail {
	position: relative;
	flex: 0 0 7px;
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 99px;
	background: #d1d4d8;
	cursor: pointer;
	overflow: hidden;
	transition: width 180ms ease, background-color 180ms ease, transform 150ms ease;
}

.pvg-gallery__thumbnail:hover {
	background: #aeb3b9;
	transform: scale(1.2);
}

.pvg-gallery__thumbnail.is-active {
	flex-basis: 22px;
	width: 22px;
	background: #2d3137;
}

.pvg-gallery__thumbnail img {
	display: none;
}

@keyframes pvg-backdrop-in {
	from { background-color: rgba(14, 17, 22, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
	to { background-color: rgba(14, 17, 22, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
}

@keyframes pvg-backdrop-out {
	from { background-color: rgba(14, 17, 22, 0.66); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
	to { background-color: rgba(14, 17, 22, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
}

@keyframes pvg-sheet-up {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

@keyframes pvg-sheet-down {
	from { transform: translateY(0); }
	to { transform: translateY(100%); }
}

@keyframes pvg-popup-in {
	from { opacity: 0; transform: translateY(18px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pvg-popup-out {
	from { opacity: 1; transform: translateY(0) scale(1); }
	to { opacity: 0; transform: translateY(12px) scale(0.98); }
}

@media (min-width: 701px) {
	.pvg-modal {
		align-items: center;
		justify-content: center;
		padding: clamp(24px, 4vw, 56px);
	}

	.pvg-modal__panel {
		width: min(88vw, 760px, 88dvh);
		height: auto;
		min-height: 0;
		aspect-ratio: 1 / 1;
		margin: auto;
		border-radius: 28px;
		box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
	}

	.pvg-modal.is-open .pvg-modal__panel {
		animation: pvg-popup-in 320ms cubic-bezier(0.22, 0.72, 0.25, 1) both;
	}

	.pvg-modal.is-closing .pvg-modal__panel {
		animation: pvg-popup-out 220ms ease-in both;
	}

	.pvg-modal__grabber {
		display: none;
	}

	.pvg-modal__header {
		padding-top: 14px;
	}
}

@media (max-width: 700px) {
	.pvg-modal__panel {
		height: 80dvh;
		min-height: 0;
		border-radius: 24px 24px 0 0;
	}

	.pvg-modal__grabber {
		margin-top: 9px;
	}

	.pvg-modal__header {
		grid-template-columns: 38px minmax(0, 1fr) 38px;
		padding: 2px 14px 9px;
	}

	.pvg-modal__close,
	.pvg-modal__header-spacer {
		width: 38px;
		height: 38px;
	}

	.pvg-modal__close span::before,
	.pvg-modal__close span::after {
		top: 18px;
		left: 9px;
		width: 20px;
	}

	.pvg-modal__body {
		padding: 0 12px max(14px, env(safe-area-inset-bottom));
	}

	.pvg-gallery__stage {
		width: 100%;
		height: auto;
		border-radius: 20px;
	}

	.pvg-gallery__figure {
		padding: 0;
	}

	.pvg-gallery__navigation {
		right: 10px;
		bottom: 10px;
		left: 10px;
	}

	.pvg-modal .pvg-gallery__arrow {
		width: 40px;
		height: 40px;
		min-width: 40px;
		min-height: 40px;
	}

	.pvg-gallery__footer {
		align-items: center;
		gap: 12px;
		padding: 12px 3px 0;
	}

	.pvg-gallery__description h2 {
		font-size: 16px;
	}

	.pvg-gallery__description p {
		max-width: 190px;
		font-size: 11px;
	}

	.pvg-gallery__thumbnails {
		max-width: 38%;
	}
}

@media (max-height: 620px) {
	.pvg-modal__panel {
		height: 84dvh;
	}

	.pvg-gallery__description p {
		display: none;
	}

	.pvg-gallery__footer {
		padding-top: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pvg-modal.is-open,
	.pvg-modal.is-closing,
	.pvg-modal.is-open .pvg-modal__panel,
	.pvg-modal.is-closing .pvg-modal__panel {
		animation-duration: 1ms;
	}

	.pvg-gallery__main-image,
	.pvg-gallery__arrow,
	.pvg-gallery__thumbnail,
	.pvg-modal__close {
		transition: none;
	}
}
