/**
 * Shared widgets: the Google badge and score ([hydro_google_reviews], hydro-core), the review
 * spotlight ([hydro_google_review_list] + assets/js/reviews.js), the service dialog
 * (assets/js/services.js), the photo viewer (assets/js/gallery.js) and the phone action bar.
 */

/* ------------------------------------------------------------------ Google badge (hero) */
.hydro-greviews {
	color: var(--ink);
	text-decoration: none;
}

.hydro-greviews.gbadge {
	display: inline-flex;
	align-items: center;
	gap: 0.9rem;
	padding: 0.55rem 1.1rem 0.55rem 0.7rem;
	border-radius: var(--radius);
	background: #fff;
}

.gbadge .hydro-greviews__logo {
	width: 6.25rem;
	height: auto;
}

.gbadge .hydro-greviews__rating {
	padding-left: 0.9rem;
	border-left: 1px solid var(--line-cool);
	font: 600 1.7rem/1 var(--display);
}

.hydro-greviews__body {
	display: flex;
	flex-direction: column;
}

.gbadge .hydro-greviews__body {
	line-height: 1.25;
}

.hydro-greviews__stars {
	letter-spacing: 0.1em;
	color: var(--c-star);
}

.gbadge .hydro-greviews__meta {
	font-size: 0.875rem;
	color: var(--muted);
}

.gbadge:hover .hydro-greviews__meta {
	color: var(--ink);
	text-decoration: underline;
}

@media (max-width: 640px) {
	.hydro-greviews.gbadge {
		flex-wrap: wrap;
		gap: 0.6rem 0.8rem;
	}
}

/* ------------------------------------------------------------------ Google score (reviews section) */
.hydro-greviews.score {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 0.75rem 1.25rem;
	margin-top: 2.25rem;
	padding-top: 1.75rem;
	border-top: 1px solid var(--line-cool);
}

.score .hydro-greviews__rating {
	font: 700 clamp(3.4rem, 2.7rem + 2.4vw, 4.5rem)/0.9 var(--display);
	letter-spacing: -0.03em;
}

.score .hydro-greviews__body {
	gap: 0.2rem;
}

.score .hydro-greviews__stars {
	font-size: 1.15rem;
	letter-spacing: 0.12em;
}

.score .hydro-greviews__meta {
	font-weight: 600;
}

.score:hover .hydro-greviews__meta {
	text-decoration: underline;
}

.score .hydro-greviews__logo {
	grid-column: 1 / -1;
	grid-row: 2;
	width: 6.25rem;
	height: auto;
}

/* ------------------------------------------------------------------ reviews: spotlight */
.hydro-rv {
	color: var(--ink);
}

.hydro-review-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.hydro-review-card figure {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
	margin: 0;
	min-width: 0;
}

.hydro-review-card__head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.hydro-review-card__avatar {
	display: grid;
	flex: none;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	background: var(--paper-2);
	font: 600 1rem var(--display);
	color: var(--ink);
}

.hydro-review-card__who {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.hydro-review-card__name {
	font-weight: 700;
}

.hydro-review-card__date,
.hydro-review-card__source {
	font-size: 0.8125rem;
	color: var(--muted);
}

.hydro-review-card__g {
	flex: none;
	align-self: flex-start;
}

.hydro-review-card__stars {
	display: flex;
	gap: 0.12em;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--c-star);
}

.hydro-review-card__stars .is-on::before {
	content: "★";
}

.hydro-review-card__stars .is-off::before {
	content: "☆";
}

.hydro-review-card__text,
.hydro-review-card__note {
	margin: 0;
	line-height: 1.6;
}

.hydro-review-card__text p {
	margin: 0;
}

.hydro-review-card__text p + p {
	margin-top: 0.7em;
}

.hydro-review-card__text.is-clamped {
	max-height: calc(1.6em * 6);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(#000 65%, transparent);
	mask-image: linear-gradient(#000 65%, transparent);
}

.hydro-review-card__note {
	font-style: italic;
}

.hydro-review-card__photos {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hydro-review-card__photos img {
	width: 4.5rem;
	height: 4.5rem;
	object-fit: cover;
	border-radius: var(--radius);
}

.hydro-review-card__source {
	margin: auto 0 0;
	font-weight: 600;
}

.hydro-rv-more {
	align-self: flex-start;
	min-height: 2.75rem;
	margin: -0.6rem 0 -0.3rem;
	padding: 0;
	border: 0;
	background: none;
	font: 700 0.9375rem var(--sans);
	color: var(--ocean-ink);
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

/* One review at a time: stars, the quote, then who wrote it. */
.hydro-rv.is-spot:not(.is-all) .hydro-review-card figure {
	gap: 1.25rem;
}

.hydro-rv.is-spot:not(.is-all) .hydro-review-card__stars {
	order: 1;
}

.hydro-rv.is-spot:not(.is-all) .hydro-review-card__text,
.hydro-rv.is-spot:not(.is-all) .hydro-review-card__note,
.hydro-rv.is-spot:not(.is-all) .hydro-rv-more,
.hydro-rv.is-spot:not(.is-all) .hydro-review-card__photos {
	order: 2;
}

.hydro-rv.is-spot:not(.is-all) .hydro-review-card__head {
	order: 3;
	margin-top: 0.5rem;
}

.hydro-rv.is-spot:not(.is-all) .hydro-review-card__source {
	order: 4;
}

.hydro-rv.is-spot:not(.is-all) .hydro-review-card__text,
.hydro-rv.is-spot:not(.is-all) .hydro-review-card__note {
	position: relative;
	font: 400 clamp(1.125rem, 1rem + 0.55vw, 1.4rem)/1.65 var(--display);
	letter-spacing: -0.005em;
	color: var(--ink);
}

.hydro-rv.is-spot:not(.is-all) .hydro-review-card__text::before {
	content: "“";
	display: block;
	height: 2.4rem;
	font: 700 4.25rem/2.4rem var(--display);
	color: var(--quote);
}

.hydro-rv.is-spot:not(.is-all) .hydro-review-card__text.is-clamped {
	max-height: calc(2.4rem + 1.4em * 6);
}

.hydro-rv__nav {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--line-cool);
}

/* ------------------------------------------------------------------ HYDRO / Gallery Arrow
 * One control for every gallery viewer (.sl-gal__nav, assets/js/service.js) and review carousel
 * (.hydro-rv__arrow, hydro-core's review list), Figma R1.1 1131:101350: a 48 px circle (target ≥ 24 px),
 * white with a 1 px cool line and a soft navy shadow, navy chevron. Hover: navy; pressed: cobalt;
 * focus: a 3 px cobalt ring outside; disabled: light blue, muted, 55 % opacity, no shadow. Always a
 * Previous / Next pair with the status ("Photo 1 of 3 · …", "Review 1 of 21") between or beside them. */
.hydro-rv__arrow,
.sl-gal__nav {
	display: grid;
	place-items: center;
	flex: none;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border: 1px solid var(--line-cool);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 16px rgb(9 38 92 / 0.16);
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hydro-rv__arrow:hover,
.sl-gal__nav:hover {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

.hydro-rv__arrow:active,
.sl-gal__nav:active {
	border-color: var(--ocean);
	background: var(--ocean);
	color: #fff;
}

.hydro-rv__arrow:focus-visible,
.sl-gal__nav:focus-visible {
	outline: 3px solid var(--ocean);
	outline-offset: 2px;
}

.hydro-rv__arrow:disabled,
.sl-gal__nav:disabled {
	border-color: var(--line-cool);
	background: var(--paper);
	box-shadow: none;
	color: var(--muted);
	opacity: 0.55;
	cursor: default;
}

.hydro-rv__arrow svg {
	width: 1.375rem;
	height: 1.375rem;
}

@media (prefers-reduced-motion: reduce) {
	.hydro-rv__arrow,
	.sl-gal__nav {
		transition: none;
	}
}

.hydro-rv__arrow--next svg {
	transform: scaleX(-1);
}

.hydro-rv__status {
	min-width: 7.5rem;
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	text-align: center;
	color: var(--muted);
}

.hydro-rv__more {
	display: flex;
	margin: 1.5rem 0 0;
}

.hydro-rv__all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.875rem;
	padding: 0.75rem 1.4rem;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	background: transparent;
	font: 700 1rem/1.2 var(--sans);
	color: var(--ink);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hydro-rv__all:hover {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

/* "Show all": every review as a list. */
.hydro-rv.is-all .hydro-review-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
	gap: 0 2rem;
	align-items: start;
	margin-top: 1.5rem;
}

.hydro-rv.is-all .hydro-review-card {
	padding: 1.5rem 0;
	border-top: 1px solid var(--line-cool);
}

/* Without JavaScript every review shows as a list (the spotlight needs the script). */
.hydro-rv:not(.is-spot) .hydro-review-card + .hydro-review-card {
	margin-top: 1.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line-cool);
}

/* ------------------------------------------------------------------ dialogs */
.hydro-sd,
.hydro-lb {
	max-width: calc(100vw - 2rem);
	max-height: calc(100dvh - 2rem);
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: var(--radius-lg);
	background: #fff;
	color: #101826;
	box-shadow: 0 30px 80px rgba(5, 12, 26, 0.45);
}

.hydro-sd::backdrop,
.hydro-lb::backdrop {
	background: rgba(5, 12, 26, 0.74);
}

@media (prefers-reduced-motion: no-preference) {
	.hydro-sd[open],
	.hydro-lb[open] {
		animation: hydro-dialog-in 0.25s ease;
	}
}

@keyframes hydro-dialog-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

.hydro-sd__close,
.hydro-lb__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(16, 24, 38, 0.15);
	border-radius: 50%;
	background: #fff;
	color: #101826;
	cursor: pointer;
}

/* Service dialog ("Explore <service>"). */
.hydro-sd {
	width: min(56rem, calc(100vw - 2rem));
}

.hydro-sd__inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.hydro-sd__media {
	margin: 0;
}

.hydro-sd__media img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 18rem;
	object-fit: cover;
}

.hydro-sd__body {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	font-family: var(--sans);
}

.hydro-sd__body > * {
	margin: 0;
}

.hydro-sd__title {
	padding-right: 2.5rem;
	font: 700 clamp(1.6rem, 1.3rem + 1vw, 2.1rem)/1.1 var(--display);
	color: var(--ink);
}

.hydro-sd__title:focus {
	outline: none;
}

.hydro-sd__tags {
	margin-top: 0.5rem !important;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ocean-ink);
}

.hydro-sd__text {
	margin-top: 1rem !important;
	line-height: 1.6;
	color: var(--muted);
}

.hydro-sd__label {
	margin-top: 1.4rem !important;
	font: 700 0.9375rem/1.4 var(--sans);
	letter-spacing: 0;
}

.hydro-sd__list {
	margin-top: 0.6rem !important;
	padding: 0;
	list-style: none;
}

.hydro-sd__list li {
	position: relative;
	padding: 0.45rem 0 0.45rem 1.6rem;
	border-top: 1px solid var(--line-cool);
}

.hydro-sd__list li:last-child {
	border-bottom: 1px solid var(--line-cool);
}

.hydro-sd__list li::before {
	content: "";
	position: absolute;
	top: 0.95rem;
	left: 0.2rem;
	width: 0.7rem;
	height: 0.4rem;
	border-bottom: 2px solid var(--ocean-ink);
	border-left: 2px solid var(--ocean-ink);
	transform: rotate(-45deg);
}

.hydro-sd__area {
	margin-top: 1rem !important;
	font-size: 0.9375rem;
	color: var(--muted);
}

.hydro-sd__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem !important;
}

.hydro-sd__estimate,
.hydro-sd__call {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.875rem;
	padding: 0.75rem 1.4rem;
	border: 2px solid transparent;
	border-radius: var(--radius);
	font: 700 1rem/1.2 var(--sans);
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hydro-sd__estimate {
	background: var(--teal);
	color: var(--navy-2);
}

.hydro-sd__estimate:hover {
	background: var(--navy);
	color: #fff;
}

.hydro-sd__call {
	border-color: currentColor;
	background: transparent;
	color: var(--ocean-ink);
}

.hydro-sd__call:hover {
	border-color: var(--navy);
	background: var(--navy);
	color: #fff;
}

@media (max-width: 700px) {
	.hydro-sd__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.hydro-sd__media img {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.hydro-sd__actions > * {
		flex: 1 1 100%;
	}
}

/* Photo viewer ("Surfaces we clean"). */
.hydro-lb {
	width: min(72rem, calc(100vw - 2rem));
	background: #050b16;
	color: #fff;
}

.hydro-lb__figure {
	margin: 0;
}

.hydro-lb__figure img {
	display: block;
	width: 100%;
	max-height: calc(100dvh - 7rem);
	object-fit: contain;
	background: #000;
}

.hydro-lb__figure figcaption {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1.25rem;
	font: 500 0.9375rem/1.4 var(--sans);
}

.hydro-lb__count {
	color: #a9b9cc;
}

.hydro-lb__nav {
	position: absolute;
	top: calc(50% - 2rem);
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #101826;
	cursor: pointer;
}

.hydro-lb__prev {
	left: 0.75rem;
}

.hydro-lb__next {
	right: 0.75rem;
}

.hydro-lb__next svg {
	transform: scaleX(-1);
}

/* ------------------------------------------------------------------ phone action bar */
.hydro-mobilebar {
	display: none;
}

@media (max-width: 1099px) {
	.hydro-mobilebar {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 90;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.6rem;
		padding: 0.6rem max(0.75rem, env(safe-area-inset-right)) calc(0.6rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
		border-top: 1px solid rgba(255, 255, 255, 0.14);
		background: rgb(var(--shade-rgb) / 0.97);
		transition: transform 0.25s ease, visibility 0s linear 0s;
	}

	/* Slides away while the estimate form is on screen, so it never covers form controls; once out of
	   view it is hidden, so keyboard focus can't land on links nobody can see. */
	html.hydro-form-in-view .hydro-mobilebar {
		visibility: hidden;
		transform: translateY(110%);
		transition: transform 0.25s ease, visibility 0s linear 0.25s;
	}

	.hydro-mobilebar a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 3rem;
		border-radius: var(--radius);
		font: 700 1rem var(--sans);
		text-decoration: none;
	}

	.hydro-mobilebar__call a {
		border: 1px solid rgba(255, 255, 255, 0.7);
		color: #fff;
	}

	.hydro-mobilebar__est a {
		background: var(--teal);
		color: var(--navy-2);
	}
}

/* ------------------------------------------------------------------ HYDRO / FAQ Toggle (R1.5, theme 1.16.0)
 * One control for every FAQ (the homepage list .faq__list and the shared .sl-faq__list on the service,
 * Services Overview, city and Jeffersonville pages): a 44 px circle with a 2 px cross, centred on the
 * row; open = navy disc with a white bar. Answers start closed (inc/render.php hydro_faq_closed()). The
 * summary itself is the native, keyboard-operable control (Enter / Space) and exposes its expanded
 * state; the circle is decoration. No movement, so nothing to reduce. */
:is(.faq__list, .sl-faq__list) summary::after {
	content: "";
	flex: none;
	width: 2.75rem;
	height: 2.75rem;
	box-sizing: border-box;
	border: 1.5px solid var(--line);
	border-radius: 50%;
	background:
		linear-gradient(var(--ocean), var(--ocean)) center / 0.875rem 2px no-repeat,
		linear-gradient(var(--ocean), var(--ocean)) center / 2px 0.875rem no-repeat,
		#fff;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

:is(.faq__list, .sl-faq__list) summary:hover::after {
	border-color: var(--teal);
}

:is(.faq__list, .sl-faq__list) details[open] summary::after {
	border-color: var(--navy);
	background: linear-gradient(#fff, #fff) center / 0.875rem 2px no-repeat, var(--navy);
}

/* ------------------------------------------------------------------ HYDRO / Video Tile (R1.6, theme 1.17.0)
 * A muted, trimmed clip (core video block, inc/service-sections.php hydro_svc_video()): poster, native
 * controls, preload="none", never autoplay. assets/js/media.js wraps the video in a frame and adds a
 * 64 px play button over the poster (hidden while it plays). The caption names the clip and says what it
 * shows. Service pages: under the gallery ("Videos"); Our Work: in the collection grid. */
.hydro-video {
	margin: 0;
}

.hydro-video__frame {
	position: relative;
}

.hydro-video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	border-radius: var(--radius);
	background: var(--navy);
}

.hydro-video--portrait video {
	aspect-ratio: 9 / 16;
}

.hydro-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	margin: -2rem 0 0 -2rem;
	padding: 0 0 0 0.25rem;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--navy);
	box-shadow: 0 0.25rem 1rem rgb(11 42 74 / 0.3);
	cursor: pointer;
}

.hydro-video__play:hover {
	background: var(--paper);
}

.hydro-video__play:focus-visible {
	outline: var(--hydro-focus);
	outline-offset: 3px;
}

.hydro-video__frame.is-playing .hydro-video__play {
	display: none;
}

.hydro-video .wp-element-caption {
	margin: 0.75rem 0 0;
	text-align: left;
	font: 400 var(--hydro-small) / 1.5 var(--sans);
	color: var(--muted);
}

.hydro-video__title {
	display: block;
	font: 600 1rem / 1.4 var(--sans);
	color: var(--ink);
}

@media (forced-colors: active) {
	.hydro-video__play {
		border: 2px solid ButtonText;
	}
}

/* ------------------------------------------------------------------ HYDRO / Media viewer (R1.8, theme 1.19.0)
 * One gallery for photos and clips, and one viewer (assets/js/media.js) built on the theme's photo viewer
 * (.hydro-lb above). A gallery photo is the content of a button (.hydro-zoom): a zoom cursor, a small
 * enlarge mark on hover and focus, the focus ring inside the photo. A clip in a gallery slide fills the
 * slide's frame letterboxed (its own ratio is printed inline by WordPress), its caption chip moves to the
 * top so the native controls stay free, and a small button opens it in the viewer. */
.hydro-zoom {
	position: relative;
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: inherit;
	background: none;
	color: inherit;
	font: inherit;
	cursor: zoom-in;
}

.hydro-zoom img {
	display: block;
}

.hydro-zoom:focus-visible {
	outline: var(--hydro-focus);
	outline-offset: -3px;
}

.hydro-zoom__icon,
.hydro-video__expand {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.94);
	color: var(--navy);
	box-shadow: 0 0.25rem 0.75rem rgb(11 42 74 / 0.25);
}

.hydro-zoom__icon {
	opacity: 0;
	pointer-events: none;
}

.hydro-zoom:hover .hydro-zoom__icon,
.hydro-zoom:focus-visible .hydro-zoom__icon {
	opacity: 1;
}

.hydro-video__expand {
	padding: 0;
	border: 0;
	cursor: pointer;
}

.hydro-video__expand:focus-visible {
	outline: var(--hydro-focus);
	outline-offset: 2px;
}

/* A clip as a gallery slide: the slide's 3 : 2 frame, letterboxed on navy. */
.sl-gal__item.hydro-video {
	position: relative;
}

.sl-gal__item.hydro-video video {
	aspect-ratio: 3 / 2 !important;
	object-fit: contain;
	border-radius: 0;
	background: var(--navy);
}

.sl-gal__item.hydro-video figcaption {
	top: 0.75rem;
	bottom: auto;
}

.sl-gal__item.hydro-video .hydro-video__expand {
	top: 0.75rem;
	right: 0.75rem;
}

/* A clip's thumbnail: its poster with a play mark. */
.sl-gal__thumb--video::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	width: 2.25rem;
	height: 2.25rem;
	margin: -1.125rem 0 0 -1.125rem;
	border-radius: 50%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%230b2a4a'/%3E%3C/svg%3E") 55% 50% / 1.125rem no-repeat, rgb(255 255 255 / 0.94);
	box-shadow: 0 0.125rem 0.5rem rgb(11 42 74 / 0.3);
	pointer-events: none;
}

/* The viewer: photos and clips uncropped; full screen on phones. */
.hydro-lb--media .hydro-lb__stage {
	display: grid;
	place-items: center;
	background: #000;
	touch-action: pan-y;
}

.hydro-lb--media .hydro-lb__stage img {
	user-select: none;
	-webkit-user-drag: none;
}

.hydro-lb--media .hydro-lb__stage :is(img, video) {
	display: block;
	width: 100%;
	max-height: calc(100dvh - 7rem);
	object-fit: contain;
	background: #000;
}

.hydro-lb--media .hydro-lb__nav[hidden] {
	display: none;
}

.hydro-lb--media .hydro-lb__nav:focus-visible,
.hydro-lb--media .hydro-lb__close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

@media (max-width: 767px) {
	.hydro-lb--media {
		width: 100vw;
		max-width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		border-radius: 0;
	}

	.hydro-lb--media .hydro-lb__figure {
		display: grid;
		grid-template-rows: minmax(0, 1fr) auto;
		height: 100%;
	}

	.hydro-lb--media .hydro-lb__stage :is(img, video) {
		max-height: calc(100dvh - 4.5rem);
	}
}

@media (forced-colors: active) {
	.sl-gal__thumb--video::before {
		forced-color-adjust: none;
		background: ButtonFace;
		border: 2px solid ButtonText;
	}
}

