/*
 * Desk9 Project Gallery Pro - front end
 *
 * Colors and fonts follow the theme: lines, muted text and tiles are mixed from the
 * current text color, so the gallery works on light and dark themes alike. The accent
 * color and the corner radius can be changed under Projects > Settings.
 *
 * Table of contents
 *  1. Tokens
 *  2. Base: neutralize theme defaults inside the gallery
 *  3. Filters (product tiles, industry buttons)
 *  4. Photo grid
 *  5. Product links
 *  6. Lightbox
 *  7. Pro: layouts (masonry, carousel)
 *  8. Pro: before/after tile
 *  9. Pro: lightbox slides (compare slider, video, consent)
 * 10. Pro 1.1: style options (tile height, details, badge, hover, frame, filter buttons, lightbox colors)
 * 11. Container queries: layout by the width of the block
 * 12. Media queries: lightbox on tablets and phones, hover-less devices, reduced motion
 */

/* ---------- Tokens ---------- */
.d9pg {
	--d9pg-bg: var(--wp--preset--color--base, #fff);
	--d9pg-accent-c: var(--d9pg-accent, var(--wp--preset--color--contrast, #1e1e1e));
	--d9pg-on-accent-c: var(--d9pg-on-accent, var(--wp--preset--color--base, #fff));
	--d9pg-line: color-mix(in srgb, currentColor 15%, transparent);
	--d9pg-line-strong: color-mix(in srgb, currentColor 28%, transparent);
	--d9pg-muted: color-mix(in srgb, currentColor 70%, transparent);
	--d9pg-soft: color-mix(in srgb, currentColor 5%, transparent);
	--d9pg-tile: color-mix(in srgb, currentColor 8%, transparent);
	--d9pg-r-sm: var(--d9pg-radius-all, 6px);
	--d9pg-r: var(--d9pg-radius-all, 12px);
	--d9pg-r-lg: var(--d9pg-radius-all, 16px);
	--d9pg-r-pill: var(--d9pg-radius-all, 999px);
}

/* ---------- Base: neutralize theme defaults inside the gallery ---------- */
.d9pg,
.d9pg *,
.d9pg *::before,
.d9pg *::after { box-sizing: border-box; }
.d9pg { line-height: 1.5; }
.d9pg p, .d9pg li, .d9pg strong, .d9pg span, .d9pg label {
	color: inherit;
	font-family: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}
.d9pg p { margin: 0; padding: 0; }
.d9pg h2, .d9pg h3 { margin: 0; padding: 0; line-height: 1.15; }
.d9pg a { text-decoration: none; }
.d9pg img { max-width: 100%; height: auto; display: block; }
.d9pg [hidden] { display: none !important; }
.d9pg button { font-family: inherit; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; }
.d9pg :focus-visible { outline: 3px solid var(--d9pg-accent-c); outline-offset: 3px; }
.d9pg .d9pg-notice { padding: 16px 20px; border: 1px dashed var(--d9pg-line-strong); border-radius: var(--d9pg-r); color: var(--d9pg-muted); }
.d9pg .d9pg-btn {
	min-height: 48px; margin: 0; padding: 0 26px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid currentColor; border-radius: var(--d9pg-r-pill);
	background: transparent; color: inherit;
	font-size: 15px; font-weight: 600; line-height: 1.2;
}
.d9pg .d9pg-btn:hover { background: var(--d9pg-soft); color: inherit; }

/* ---------- Filters ---------- */
.d9pg .d9pg-picker { padding: 8px 0 24px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 60px; }
.d9pg .d9pg-picker__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.d9pg .d9pg-picker__title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.d9pg .d9pg-all,
.d9pg .d9pg-industry {
	display: inline-flex; align-items: center; gap: 10px;
	height: 40px; padding: 0 8px 0 16px; margin: 0;
	border: 1px solid var(--d9pg-line-strong); border-radius: var(--d9pg-r-pill);
	background: transparent; color: inherit;
	font-size: 14px; font-weight: 600; line-height: 1;
}
.d9pg .d9pg-all { height: 44px; padding: 0 10px 0 20px; }
.d9pg .d9pg-all:hover,
.d9pg .d9pg-industry:hover { border-color: currentColor; background: transparent; color: inherit; }
.d9pg .d9pg-n {
	min-width: 24px; height: 24px; padding: 0 7px; border-radius: var(--d9pg-r-pill);
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--d9pg-tile); font-size: 12px;
}
.d9pg .d9pg-all[aria-pressed="true"],
.d9pg .d9pg-industry[aria-pressed="true"] { background: var(--d9pg-accent-c); border-color: var(--d9pg-accent-c); color: var(--d9pg-on-accent-c); }
.d9pg [aria-pressed="true"] .d9pg-n { background: color-mix(in srgb, var(--d9pg-on-accent-c) 20%, transparent); }

.d9pg .d9pg-group { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; }
.d9pg .d9pg-group--plain { grid-template-columns: minmax(0, 1fr); }
.d9pg .d9pg-group__label { padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.d9pg .d9pg-group__label strong { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.d9pg .d9pg-group__label span { font-size: 12px; color: var(--d9pg-muted); }
.d9pg .d9pg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.d9pg .d9pg-tile {
	display: flex; flex-direction: column; gap: 10px; align-items: stretch;
	padding: 8px 8px 12px; margin: 0; text-align: left;
	border: 1px solid var(--d9pg-line); border-radius: var(--d9pg-r);
	background: transparent; color: inherit; line-height: 1.25;
	transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.d9pg .d9pg-tile:hover { border-color: var(--d9pg-line-strong); background: transparent; color: inherit; }
.d9pg .d9pg-tile[aria-pressed="true"] { border-color: var(--d9pg-accent-c); box-shadow: 0 0 0 1px var(--d9pg-accent-c), 0 8px 24px rgba(0, 0, 0, 0.08); }
.d9pg .d9pg-tile[data-empty] { opacity: 0.45; }
.d9pg .d9pg-tile__pic { height: 72px; border-radius: min(8px, var(--d9pg-r)); background: var(--d9pg-tile); display: flex; align-items: center; justify-content: center; padding: 8px; }
.d9pg .d9pg-tile__pic img { width: 100%; height: 100%; object-fit: contain; }
.d9pg .d9pg-tile__pic--photo { padding: 0; overflow: hidden; }
.d9pg .d9pg-tile__pic--photo img { object-fit: cover; }
.d9pg .d9pg-tile__name { font-size: 13px; font-weight: 700; }
.d9pg .d9pg-tile__count { font-size: 12px; color: var(--d9pg-muted); margin-top: -8px; }

.d9pg .d9pg-industries { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; padding-top: 16px; border-top: 1px solid var(--d9pg-line); }
.d9pg .d9pg-industries__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.d9pg .d9pg-industries > div { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Photo grid ---------- */
.d9pg .d9pg-results { padding: 8px 0 48px; display: flex; flex-direction: column; gap: 18px; }
.d9pg .d9pg-results__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.d9pg .d9pg-results__title { font-size: 22px; font-weight: 600; }
.d9pg .d9pg-results__count { font-size: 14px; color: var(--d9pg-muted); }
.d9pg .d9pg-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 240px; grid-auto-flow: dense; gap: 12px;
}
.d9pg .d9pg-grid > li { margin: 0; padding: 0; min-width: 0; }
.d9pg .d9pg-grid > li::before { display: none; content: none; }
.d9pg .d9pg-item.is-hidden { display: none; }
.d9pg .d9pg-item--wide { grid-column: span 2; }
.d9pg .d9pg-item--tall { grid-row: span 2; }
.d9pg .d9pg-item__open {
	position: relative; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0;
	border-radius: var(--d9pg-r-lg); overflow: hidden; background: #111; color: #111; text-align: left;
}
.d9pg .d9pg-item__stack { position: absolute; inset: 0; display: block; }
.d9pg .d9pg-item__stack img {
	position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
	opacity: 0; transition: opacity 0.6s ease, transform 0.6s ease;
}
.d9pg .d9pg-item__stack img.is-active { opacity: 1; }
.d9pg .d9pg-item__open:hover .d9pg-item__stack img { transform: scale(1.03); }
.d9pg .d9pg-item__zoom,
.d9pg .d9pg-item__num {
	position: absolute; top: 12px; display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255, 255, 255, 0.92); color: #111; border-radius: var(--d9pg-r-pill); font-size: 12px; font-weight: 700;
}
.d9pg .d9pg-item__zoom { right: 12px; width: 34px; height: 34px; opacity: 0; transition: opacity 0.2s; }
.d9pg .d9pg-item__open:hover .d9pg-item__zoom,
.d9pg .d9pg-item__open:focus-visible .d9pg-item__zoom { opacity: 1; }
.d9pg .d9pg-item__num { left: 12px; height: 26px; padding: 0 9px; gap: 5px; }
.d9pg .d9pg-item__card {
	position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px);
	padding: 7px 11px; border-radius: min(9px, var(--d9pg-r)); background: rgba(255, 255, 255, 0.94); color: #111;
	display: flex; flex-direction: column; gap: 1px;
}
.d9pg .d9pg-item__tag { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #555; }
.d9pg .d9pg-item__place { font-size: 13px; font-weight: 600; color: #111; }
.d9pg .d9pg-empty { margin: 0; padding: 40px; border-radius: var(--d9pg-r-lg); background: var(--d9pg-soft); color: var(--d9pg-muted); }
.d9pg .d9pg-reset { margin-left: 8px; padding: 0; border: 0; background: none; color: inherit; font-weight: 600; text-decoration: underline; }
.d9pg .d9pg-more { margin: 8px 0 0; display: flex; justify-content: center; }

/* ---------- Product links ---------- */
.d9pg .d9pg-links { padding: 40px; border-radius: var(--d9pg-r-lg); background: var(--d9pg-soft); display: flex; flex-direction: column; gap: 24px; }
.d9pg .d9pg-links__head { display: flex; flex-direction: column; gap: 10px; }
.d9pg .d9pg-links__title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
.d9pg .d9pg-links__head p { font-size: 16px; line-height: 1.6; color: var(--d9pg-muted); }
.d9pg .d9pg-links__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.d9pg .d9pg-links__grid > li { margin: 0; padding: 0; }
.d9pg .d9pg-links__grid > li::before { display: none; content: none; }
.d9pg .d9pg-lcard {
	height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 10px 10px 14px;
	background: var(--d9pg-bg); border: 1px solid var(--d9pg-line); border-radius: var(--d9pg-r-lg); color: inherit; transition: transform 0.15s, border-color 0.15s;
}
.d9pg .d9pg-lcard:hover { transform: translateY(-2px); border-color: var(--d9pg-line-strong); color: inherit; }
.d9pg .d9pg-lcard__pic { height: 110px; border-radius: var(--d9pg-r); overflow: hidden; background: var(--d9pg-tile); display: block; }
.d9pg .d9pg-lcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.d9pg .d9pg-lcard__group { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--d9pg-muted); margin-top: 2px; }
.d9pg .d9pg-lcard__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 15px; }
.d9pg .d9pg-lcard__name svg { flex: none; }
.d9pg .d9pg-lcard--cta { justify-content: space-between; padding: 18px; background: var(--d9pg-accent-c); border-color: var(--d9pg-accent-c); color: var(--d9pg-on-accent-c); }
.d9pg .d9pg-lcard--cta:hover { color: var(--d9pg-on-accent-c); border-color: var(--d9pg-accent-c); }
.d9pg .d9pg-lcard__cta { font-weight: 700; font-size: 19px; line-height: 1.2; }
.d9pg .d9pg-lcard--cta .d9pg-lcard__name { justify-content: flex-end; }

/* ---------- Lightbox (dark by default, light or theme colors in the settings) ---------- */
html.d9pg-lb-open { overflow: hidden; }
.d9pg.d9pg-lb {
	width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 20px 28px;
	border: 0; background: var(--d9pg-lb-bg); color: var(--d9pg-lb-fg);
	flex-direction: column; gap: 16px;
}
.d9pg.d9pg-lb[open] { display: flex; }
.d9pg.d9pg-lb::backdrop { background: var(--d9pg-lb-backdrop); }
.d9pg.d9pg-lb .d9pg-lb__bar { display: flex; align-items: center; justify-content: space-between; }
.d9pg.d9pg-lb .d9pg-lb__counter { font-size: 14px; color: var(--d9pg-lb-muted); }
.d9pg.d9pg-lb .d9pg-lb__close,
.d9pg.d9pg-lb .d9pg-lb__nav {
	width: 48px; height: 48px; padding: 0; border: 1px solid var(--d9pg-lb-line); border-radius: var(--d9pg-r-pill);
	background: transparent; color: var(--d9pg-lb-fg); display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.d9pg.d9pg-lb .d9pg-lb__close:hover,
.d9pg.d9pg-lb .d9pg-lb__nav:hover { border-color: var(--d9pg-lb-fg); background: transparent; color: var(--d9pg-lb-strong); }
.d9pg.d9pg-lb .d9pg-lb__main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px 340px; gap: 20px; align-items: center; }
.d9pg.d9pg-lb .d9pg-lb__stage { margin: 0; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.d9pg.d9pg-lb .d9pg-lb__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--d9pg-r-sm); user-select: none; }
.d9pg.d9pg-lb .d9pg-lb__info { align-self: stretch; padding: 28px; border-radius: var(--d9pg-r-lg); background: var(--d9pg-lb-panel); display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.d9pg.d9pg-lb .d9pg-lb__tag { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d9pg-lb-muted); }
.d9pg.d9pg-lb .d9pg-lb__title { margin: 0; font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--d9pg-lb-strong); }
.d9pg.d9pg-lb .d9pg-lb__place { font-size: 15px; color: var(--d9pg-lb-muted); margin-top: -6px; }
.d9pg.d9pg-lb .d9pg-lb__partner,
.d9pg.d9pg-lb .d9pg-lb__text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--d9pg-lb-text); }
.d9pg.d9pg-lb .d9pg-lb__actions { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--d9pg-lb-line); display: flex; flex-direction: column; gap: 10px; }
.d9pg.d9pg-lb .d9pg-lb__btn {
	min-height: 48px; padding: 0 20px; display: flex; align-items: center;
	border: 1px solid var(--d9pg-lb-line); border-radius: var(--d9pg-r-pill); color: var(--d9pg-lb-fg); font-weight: 600; font-size: 15px;
}
.d9pg.d9pg-lb .d9pg-lb__btn:hover { border-color: var(--d9pg-lb-fg); color: var(--d9pg-lb-strong); }
.d9pg.d9pg-lb .d9pg-lb__btn--accent,
.d9pg.d9pg-lb .d9pg-lb__btn--accent:hover { background: var(--d9pg-lb-strong); border-color: var(--d9pg-lb-strong); color: var(--d9pg-lb-bg); }
.d9pg.d9pg-lb .d9pg-lb__btn--accent:hover { opacity: 0.88; }
.d9pg.d9pg-lb .d9pg-lb__thumbs { display: flex; gap: 10px; justify-content: center; overflow-x: auto; padding: 2px 360px 2px 0; scrollbar-width: none; }
.d9pg.d9pg-lb .d9pg-lb__thumb { width: 96px; height: 64px; flex: none; padding: 0; border: 2px solid transparent; border-radius: min(10px, var(--d9pg-r)); overflow: hidden; background: #000; opacity: 0.55; }
.d9pg.d9pg-lb .d9pg-lb__thumb[aria-current="true"] { border-color: var(--d9pg-lb-fg); opacity: 1; }
.d9pg.d9pg-lb .d9pg-lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.d9pg.d9pg-lb :focus-visible { outline: 3px solid var(--d9pg-lb-fg); outline-offset: 3px; }
.d9pg.d9pg-lb.is-bare .d9pg-lb__main { grid-template-columns: 48px minmax(0, 1fr) 48px; }
.d9pg.d9pg-lb.is-bare .d9pg-lb__info { display: none; }
.d9pg.d9pg-lb.is-bare .d9pg-lb__thumbs { padding-right: 0; }

/* ---------- Pro: layouts ---------- */
/* Masonry: view.js sets a row span per tile from the photo shape; without JS every tile is 240px tall. */
.d9pg .d9pg-grid--masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 8px; grid-auto-flow: row; }
.d9pg .d9pg-grid--masonry > .d9pg-item { grid-row-end: span 12; }
/* Carousel: one row that scrolls sideways and snaps to the tiles */
.d9pg .d9pg-grid--carousel {
	display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scroll-padding: 0; scrollbar-width: thin; padding: 8px 4px 16px; margin: -8px -4px 0;
}
.d9pg .d9pg-grid--carousel > .d9pg-item { flex: 0 0 clamp(240px, 30%, 420px); height: 320px; scroll-snap-align: start; }
.d9pg .d9pg-grid--carousel > .d9pg-item.is-hidden { display: none; }
.d9pg .d9pg-carnav { display: inline-flex; gap: 8px; margin-left: auto; }
.d9pg .d9pg-carnav__btn {
	width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--d9pg-line-strong); border-radius: var(--d9pg-r-pill);
	background: transparent; color: inherit; display: inline-flex; align-items: center; justify-content: center;
}
.d9pg .d9pg-carnav__btn:hover { border-color: currentColor; background: transparent; color: inherit; }
.d9pg .d9pg-carnav__btn:disabled { opacity: 0.35; cursor: default; }
.d9pg.d9pg-gallery--carousel .d9pg-results__head { align-items: center; }

/* ---------- Pro: before/after tile ---------- */
.d9pg .d9pg-item__ba { position: absolute; inset: 0; display: block; --d9pg-pos: 50%; }
.d9pg .d9pg-item__ba img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.d9pg .d9pg-item__ba .d9pg-item__ba-after { clip-path: inset(0 0 0 var(--d9pg-pos)); transition: clip-path 0.6s ease; }
.d9pg .d9pg-item__ba-line { position: absolute; top: 0; bottom: 0; left: var(--d9pg-pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, 0.4); transition: left 0.6s ease; }
.d9pg .d9pg-item__open:hover .d9pg-item__ba-after { clip-path: inset(0 0 0 30%); }
.d9pg .d9pg-item__open:hover .d9pg-item__ba-line { left: 30%; }
.d9pg .d9pg-item__ba-tag {
	position: absolute; top: 50%; transform: translateY(-50%); padding: 3px 8px; border-radius: var(--d9pg-r-pill);
	background: rgba(17, 17, 17, 0.72); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.d9pg .d9pg-item__ba-tag--before { left: 10px; }
.d9pg .d9pg-item__ba-tag--after { right: 10px; }
.d9pg .d9pg-item__play {
	position: absolute; top: 12px; left: 12px; width: 26px; height: 26px; border-radius: var(--d9pg-r-pill);
	display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.92); color: #111;
}
.d9pg .d9pg-item__play--shift + .d9pg-item__num { left: 44px; }

/* ---------- Pro: lightbox slides ---------- */
.d9pg.d9pg-lb .d9pg-lb__stage { container-type: size; position: relative; }
.d9pg.d9pg-lb .d9pg-ba { position: relative; display: block; max-width: 100cqw; max-height: 100cqh; user-select: none; --d9pg-pos: 50%; }
.d9pg.d9pg-lb .d9pg-ba img { display: block; max-width: 100cqw; max-height: 100cqh; width: auto; height: auto; border-radius: var(--d9pg-r-sm); }
.d9pg.d9pg-lb .d9pg-ba .d9pg-ba__after { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 0 0 var(--d9pg-pos)); }
.d9pg.d9pg-lb .d9pg-ba__line { position: absolute; top: 0; bottom: 0; left: var(--d9pg-pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); pointer-events: none; }
.d9pg.d9pg-lb .d9pg-ba__line::after {
	content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
	border: 3px solid #fff; background: rgba(17, 17, 17, 0.55); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.d9pg.d9pg-lb .d9pg-ba__label {
	position: absolute; top: 14px; padding: 5px 11px; border-radius: var(--d9pg-r-pill); background: rgba(17, 17, 17, 0.72); color: #fff;
	font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; pointer-events: none;
}
.d9pg.d9pg-lb .d9pg-ba__label--before { left: 14px; }
.d9pg.d9pg-lb .d9pg-ba__label--after { right: 14px; }
.d9pg.d9pg-lb .d9pg-ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.d9pg.d9pg-lb .d9pg-ba:has(.d9pg-ba__range:focus-visible) .d9pg-ba__line::after { outline: 3px solid #fff; outline-offset: 3px; }

.d9pg.d9pg-lb .d9pg-player {
	position: relative; width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; border-radius: var(--d9pg-r); overflow: hidden; background: #000;
	container-type: inline-size;
}
.d9pg.d9pg-lb .d9pg-player img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.d9pg.d9pg-lb .d9pg-player iframe,
.d9pg.d9pg-lb .d9pg-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.d9pg.d9pg-lb .d9pg-player__btn {
	position: absolute; inset: 0; margin: 0; padding: 0; border: 0; background: transparent; color: #fff;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.d9pg.d9pg-lb .d9pg-player__play {
	width: 88px; height: 88px; border-radius: var(--d9pg-r-pill); background: #fff; color: #111;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); transition: transform 0.15s;
}
.d9pg.d9pg-lb .d9pg-player__play svg { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.d9pg.d9pg-lb .d9pg-player__btn:hover .d9pg-player__play { transform: scale(1.06); }
.d9pg.d9pg-lb .d9pg-player.is-asking img { filter: blur(2px) brightness(0.45); }

/* Consent panel inside the player */
.d9pg.d9pg-lb .d9pg-consent {
	position: absolute; inset: 0; padding: 24px 28px; display: flex; flex-direction: column; justify-content: safe center; align-items: flex-start;
	gap: 10px; overflow-y: auto; color: #fff; background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.75)); text-align: left;
}
.d9pg.d9pg-lb .d9pg-consent p { margin: 0; color: #fff; }
.d9pg.d9pg-lb .d9pg-consent__title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.d9pg.d9pg-lb .d9pg-consent__text { font-size: 14px; line-height: 1.5; max-width: 460px; opacity: 0.88; }
.d9pg.d9pg-lb .d9pg-consent__text a { color: #fff; text-decoration: underline; }
.d9pg.d9pg-lb .d9pg-consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.d9pg.d9pg-lb .d9pg-consent__play { min-height: 44px; margin: 0; padding: 0 20px; border: 0; border-radius: var(--d9pg-r-pill); background: #fff; color: #111; font-size: 15px; font-weight: 600; }
.d9pg.d9pg-lb .d9pg-consent__play:hover { background: #e8e8e8; color: #111; }
.d9pg.d9pg-lb .d9pg-consent__always { display: inline-flex; align-items: center; gap: 8px; margin: 0; min-height: 44px; font-size: 14px; font-weight: 600; color: #fff; cursor: pointer; }
.d9pg.d9pg-lb .d9pg-consent__always input { width: 20px; height: 20px; margin: 0; }
.d9pg.d9pg-lb .d9pg-consent__close {
	position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: var(--d9pg-r-pill);
	background: transparent; color: #fff; display: flex; align-items: center; justify-content: center;
}
.d9pg.d9pg-lb .d9pg-consent__close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Customer quote and video button in the details */
.d9pg.d9pg-lb .d9pg-lb__quote { margin: 4px 0 0; padding: 16px 18px; border-left: 3px solid var(--d9pg-lb-fg); border-radius: 0 var(--d9pg-r) var(--d9pg-r) 0; background: var(--d9pg-lb-soft); display: flex; flex-direction: column; gap: 8px; }
.d9pg.d9pg-lb .d9pg-lb__stars { color: #f5b400; font-size: 16px; letter-spacing: 2px; }
.d9pg.d9pg-lb .d9pg-lb__quote-text { margin: 0; padding: 0; border: 0; font-size: 16px; line-height: 1.55; font-style: italic; color: var(--d9pg-lb-fg); }
.d9pg.d9pg-lb .d9pg-lb__quote-text::before { content: "\201C"; }
.d9pg.d9pg-lb .d9pg-lb__quote-text::after { content: "\201D"; }
.d9pg.d9pg-lb .d9pg-lb__quote-by { font-size: 13px; font-weight: 600; color: var(--d9pg-lb-muted); }
.d9pg.d9pg-lb .d9pg-lb__btn--video { margin: 0; background: transparent; cursor: pointer; font-family: inherit; text-align: left; }
.d9pg.d9pg-lb .d9pg-lb__thumb { position: relative; }
.d9pg.d9pg-lb .d9pg-lb__thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(0, 0, 0, 0.35); }
.d9pg.d9pg-lb .d9pg-lb__thumb-play svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.d9pg.d9pg-lb .d9pg-lb__thumb--compare::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; }

/* ==========================================================================
   Pro 1.1: style options
   Block (classes on the gallery): d9pg-cols-*, d9pg-size--*, d9pg-gap--*, d9pg-info--*,
   d9pg-pf--*, d9pg-hide-*. Global (Settings): d9pg-hover--*, d9pg-frame--*,
   d9pg-filter--*, d9pg-no-counts, d9pg-no-ba-labels. Lightbox: d9pg-lb--dark|light|theme.
   ========================================================================== */

/* ---------- Tile height, gap and columns ---------- */
.d9pg.d9pg-gallery { --d9pg-row: 240px; --d9pg-car: 320px; --d9pg-cap: 0px; }
.d9pg.d9pg-size--s { --d9pg-row: 180px; --d9pg-car: 240px; }
.d9pg.d9pg-size--l { --d9pg-row: 320px; --d9pg-car: 420px; }
.d9pg.d9pg-gallery .d9pg-grid:not(.d9pg-grid--masonry):not(.d9pg-grid--carousel) { grid-auto-rows: calc(var(--d9pg-row) + var(--d9pg-cap)); }
.d9pg.d9pg-gallery .d9pg-grid--carousel > .d9pg-item { height: calc(var(--d9pg-car) + var(--d9pg-cap)); }
.d9pg.d9pg-gap--s .d9pg-grid { gap: 6px; }
.d9pg.d9pg-gap--l .d9pg-grid { gap: 20px; }
.d9pg.d9pg-cols-2 .d9pg-grid:not(.d9pg-grid--carousel) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.d9pg.d9pg-cols-3 .d9pg-grid:not(.d9pg-grid--carousel) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d9pg.d9pg-cols-4 .d9pg-grid:not(.d9pg-grid--carousel) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.d9pg.d9pg-cols-5 .d9pg-grid:not(.d9pg-grid--carousel) { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* ---------- Project details on the tile ---------- */
.d9pg .d9pg-item__caption { display: none; }
.d9pg.d9pg-info--none .d9pg-item__card { display: none; }
.d9pg.d9pg-info--hover .d9pg-item__card { opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; }
.d9pg.d9pg-info--hover .d9pg-item__open:hover .d9pg-item__card,
.d9pg.d9pg-info--hover .d9pg-item__open:focus-visible .d9pg-item__card { opacity: 1; transform: none; }
/* Title below the tile */
.d9pg.d9pg-info--below { --d9pg-cap: 52px; }
.d9pg.d9pg-info--below .d9pg-item__card { display: none; }
.d9pg.d9pg-info--below .d9pg-item { display: flex; flex-direction: column; }
.d9pg.d9pg-info--below .d9pg-item.is-hidden { display: none; }
.d9pg.d9pg-info--below .d9pg-item__open { flex: 1 1 auto; height: auto; min-height: 0; }
.d9pg.d9pg-info--below .d9pg-grid--masonry .d9pg-item__open { height: auto; }
.d9pg.d9pg-info--below .d9pg-item__caption {
	display: flex; flex-direction: column; gap: 2px; flex: none; padding: 8px 2px 0; min-width: 0; cursor: pointer; line-height: 1.3;
}
.d9pg .d9pg-item__cap-main { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d9pg .d9pg-item__cap-sub { font-size: 12px; color: var(--d9pg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d9pg.d9pg-info--below .d9pg-item:hover .d9pg-item__cap-main { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- What is shown on the tile ---------- */
.d9pg.d9pg-hide-count .d9pg-item__num,
.d9pg.d9pg-hide-video .d9pg-item__play,
.d9pg.d9pg-hide-tag .d9pg-item__tag,
.d9pg.d9pg-hide-tag .d9pg-item__cap-sub,
.d9pg.d9pg-no-ba-labels .d9pg-item__ba-tag { display: none; }
.d9pg.d9pg-hide-video .d9pg-item__play--shift + .d9pg-item__num,
.d9pg.d9pg-hide-count .d9pg-item__play--shift + .d9pg-item__num,
.d9pg.d9pg-hide-count .d9pg-item__play--shift { left: 12px; }

/* ---------- "New" badge ---------- */
.d9pg .d9pg-item__new {
	position: absolute; top: 12px; right: 12px; padding: 4px 8px; border-radius: min(6px, var(--d9pg-r-sm));
	background: var(--d9pg-accent-c); color: var(--d9pg-on-accent-c); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
	transition: opacity 0.2s;
}
.d9pg .d9pg-item__open:hover .d9pg-item__new,
.d9pg .d9pg-item__open:focus-visible .d9pg-item__new { opacity: 0; }

/* ---------- Hover effect (the photo fade is started by view.js only for "fade") ---------- */
.d9pg .d9pg-item { transition: transform 0.2s ease; }
.d9pg .d9pg-item__open { transition: box-shadow 0.2s ease; }
.d9pg.d9pg-hover--zoom .d9pg-item__open:hover .d9pg-item__stack img { transform: scale(1.06); }
.d9pg.d9pg-hover--lift .d9pg-item__open:hover .d9pg-item__stack img,
.d9pg.d9pg-hover--none .d9pg-item__open:hover .d9pg-item__stack img { transform: none; }
.d9pg.d9pg-hover--lift .d9pg-item:hover { transform: translateY(-4px); }
.d9pg.d9pg-hover--lift .d9pg-item:hover .d9pg-item__open { box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2); }
.d9pg.d9pg-hover--none .d9pg-item__open:hover .d9pg-item__ba-after { clip-path: inset(0 0 0 50%); }
.d9pg.d9pg-hover--none .d9pg-item__open:hover .d9pg-item__ba-line { left: 50%; }

/* ---------- Tile frame ---------- */
.d9pg.d9pg-frame--line .d9pg-item__open { box-shadow: 0 0 0 1px var(--d9pg-line-strong); }
.d9pg.d9pg-frame--shadow .d9pg-item__open { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14); }

/* ---------- Filter buttons (industries, "All projects", product chips) ---------- */
.d9pg.d9pg-filter--square .d9pg-industry,
.d9pg.d9pg-filter--square .d9pg-all,
.d9pg.d9pg-filter--square.d9pg-pf--chips .d9pg-tile { border-radius: min(6px, var(--d9pg-r-sm)); }
.d9pg.d9pg-filter--square .d9pg-n { border-radius: min(4px, var(--d9pg-r-sm)); }
.d9pg.d9pg-filter--tabs .d9pg-industries > div { gap: 4px 20px; }
.d9pg.d9pg-filter--tabs .d9pg-industry,
.d9pg.d9pg-filter--tabs .d9pg-industry:hover,
.d9pg.d9pg-filter--tabs .d9pg-all,
.d9pg.d9pg-filter--tabs .d9pg-all:hover,
.d9pg.d9pg-filter--tabs.d9pg-pf--chips .d9pg-tile,
.d9pg.d9pg-filter--tabs.d9pg-pf--chips .d9pg-tile:hover {
	padding: 0 2px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--d9pg-muted); box-shadow: none;
}
.d9pg.d9pg-filter--tabs .d9pg-industry:hover,
.d9pg.d9pg-filter--tabs .d9pg-all:hover,
.d9pg.d9pg-filter--tabs.d9pg-pf--chips .d9pg-tile:hover { color: inherit; border-bottom-color: var(--d9pg-line-strong); }
.d9pg.d9pg-filter--tabs .d9pg-industry[aria-pressed="true"],
.d9pg.d9pg-filter--tabs .d9pg-all[aria-pressed="true"],
.d9pg.d9pg-filter--tabs.d9pg-pf--chips .d9pg-tile[aria-pressed="true"] { background: transparent; color: inherit; border-bottom-color: var(--d9pg-accent-c); box-shadow: none; }
.d9pg.d9pg-filter--tabs [aria-pressed="true"] .d9pg-n { background: var(--d9pg-accent-c); color: var(--d9pg-on-accent-c); }
.d9pg.d9pg-no-counts .d9pg-n,
.d9pg.d9pg-no-counts .d9pg-tile__count { display: none; }
.d9pg.d9pg-no-counts .d9pg-industry,
.d9pg.d9pg-no-counts .d9pg-all { padding-right: 16px; }
.d9pg.d9pg-filter--tabs.d9pg-no-counts .d9pg-industry,
.d9pg.d9pg-filter--tabs.d9pg-no-counts .d9pg-all { padding: 0 2px; }

/* ---------- Product filter as slim buttons ---------- */
.d9pg.d9pg-pf--chips .d9pg-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.d9pg.d9pg-pf--chips .d9pg-group { align-items: center; }
.d9pg.d9pg-pf--chips .d9pg-group__label { padding-top: 0; }
.d9pg.d9pg-pf--chips .d9pg-tile {
	flex-direction: row; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 16px;
	border: 1px solid var(--d9pg-line-strong); border-radius: var(--d9pg-r-pill); box-shadow: none;
}
.d9pg.d9pg-pf--chips .d9pg-tile__pic { display: none; }
.d9pg.d9pg-pf--chips .d9pg-tile__name { font-size: 14px; font-weight: 600; white-space: nowrap; }
.d9pg.d9pg-pf--chips .d9pg-tile__count { margin: 0; font-size: 12px; white-space: nowrap; }
.d9pg.d9pg-pf--chips .d9pg-tile[aria-pressed="true"] { background: var(--d9pg-accent-c); border-color: var(--d9pg-accent-c); color: var(--d9pg-on-accent-c); box-shadow: none; }
.d9pg.d9pg-pf--chips .d9pg-tile[aria-pressed="true"] .d9pg-tile__count { color: inherit; opacity: 0.8; }

/* ---------- Lightbox colors ---------- */
.d9pg.d9pg-lb,
.d9pg.d9pg-lbmock {
	--d9pg-lb-bg: #141414; --d9pg-lb-backdrop: rgba(20, 20, 20, 0.96); --d9pg-lb-fg: #f2f2f2; --d9pg-lb-strong: #fff;
	--d9pg-lb-muted: #b5b5b5; --d9pg-lb-text: #d6d6d6; --d9pg-lb-line: #3a3a3a; --d9pg-lb-panel: #1f1f1f; --d9pg-lb-soft: #262626;
}
.d9pg.d9pg-lb.d9pg-lb--light,
.d9pg.d9pg-lbmock.d9pg-lb--light {
	--d9pg-lb-bg: #f4f4f4; --d9pg-lb-backdrop: rgba(244, 244, 244, 0.97); --d9pg-lb-fg: #1e1e1e; --d9pg-lb-strong: #000;
	--d9pg-lb-muted: #5c5c5c; --d9pg-lb-text: #333; --d9pg-lb-line: #d4d4d4; --d9pg-lb-panel: #fff; --d9pg-lb-soft: #f0f0f0;
}
.d9pg.d9pg-lb.d9pg-lb--theme,
.d9pg.d9pg-lbmock.d9pg-lb--theme {
	--d9pg-lb-bg: var(--wp--preset--color--base, #fff);
	--d9pg-lb-backdrop: color-mix(in srgb, var(--wp--preset--color--base, #fff) 96%, transparent);
	--d9pg-lb-fg: var(--wp--preset--color--contrast, #1e1e1e); --d9pg-lb-strong: var(--wp--preset--color--contrast, #1e1e1e);
	--d9pg-lb-muted: color-mix(in srgb, var(--wp--preset--color--contrast, #1e1e1e) 65%, transparent);
	--d9pg-lb-text: color-mix(in srgb, var(--wp--preset--color--contrast, #1e1e1e) 85%, transparent);
	--d9pg-lb-line: color-mix(in srgb, var(--wp--preset--color--contrast, #1e1e1e) 18%, transparent);
	--d9pg-lb-panel: color-mix(in srgb, var(--wp--preset--color--contrast, #1e1e1e) 5%, var(--wp--preset--color--base, #fff));
	--d9pg-lb-soft: color-mix(in srgb, var(--wp--preset--color--contrast, #1e1e1e) 8%, var(--wp--preset--color--base, #fff));
	font-family: var(--wp--preset--font-family--body, inherit);
}

/* ---------- Layout by the width of the block (also in narrow content columns) ---------- */
.d9pg.d9pg-gallery { container: d9pg-gal / inline-size; }
/* A size container has no width of its own content: inside flex or grid groups give it the full width */
:where(.is-layout-flex, .is-layout-grid, .wp-block-group-is-layout-flex) > .d9pg.d9pg-gallery,
:where(.is-layout-flex, .is-layout-grid, .wp-block-group-is-layout-flex) > .wp-block-desk9-project-gallery-gallery { align-self: stretch; flex: 1 1 100%; width: 100%; min-width: 0; }
@container d9pg-gal (max-width: 1000px) {
	.d9pg.d9pg-cols-5 .d9pg-grid:not(.d9pg-grid--carousel) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container d9pg-gal (max-width: 860px) {
	.d9pg .d9pg-grid,
	.d9pg.d9pg-cols-4 .d9pg-grid:not(.d9pg-grid--carousel),
	.d9pg.d9pg-cols-5 .d9pg-grid:not(.d9pg-grid--carousel) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.d9pg .d9pg-grid--masonry { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container d9pg-gal (max-width: 760px) {
	.d9pg .d9pg-picker { gap: 16px; }
	.d9pg .d9pg-group,
	.d9pg .d9pg-industries { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.d9pg .d9pg-group__label { padding-top: 0; flex-direction: row; gap: 8px; align-items: baseline; }
	/* Tiles swipe instead of wrapping */
	.d9pg .d9pg-tiles {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 124px;
		overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; scroll-snap-type: x proximity;
	}
	.d9pg .d9pg-tiles::-webkit-scrollbar { display: none; }
	.d9pg .d9pg-tile { scroll-snap-align: start; }
	.d9pg .d9pg-tile__pic { height: 60px; }
	.d9pg.d9pg-pf--chips .d9pg-tiles { flex-wrap: nowrap; }
	.d9pg.d9pg-pf--chips .d9pg-tile { flex: none; }
	.d9pg .d9pg-industries > div { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.d9pg .d9pg-industry { flex: none; }
	.d9pg .d9pg-links { padding: 24px 16px; }
	.d9pg .d9pg-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.d9pg .d9pg-lcard__pic { height: 90px; }
}
@container d9pg-gal (max-width: 640px) {
	/* Container queries style only descendants of the container, so set the sizes on the results */
	.d9pg .d9pg-results { --d9pg-row: 170px; --d9pg-car: 260px; }
	.d9pg.d9pg-size--s .d9pg-results { --d9pg-row: 130px; --d9pg-car: 200px; }
	.d9pg.d9pg-size--l .d9pg-results { --d9pg-row: 220px; --d9pg-car: 320px; }
	.d9pg .d9pg-grid,
	.d9pg[class*="d9pg-cols-"] .d9pg-grid:not(.d9pg-grid--carousel) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.d9pg.d9pg-gap--m .d9pg-grid { gap: 8px; }
	.d9pg.d9pg-gap--s .d9pg-grid { gap: 4px; }
	.d9pg.d9pg-gap--l .d9pg-grid { gap: 12px; }
	.d9pg .d9pg-grid--masonry { grid-auto-rows: 6px; }
	.d9pg .d9pg-grid--carousel > .d9pg-item { flex-basis: 78%; }
	.d9pg .d9pg-carnav { display: none; }
	.d9pg .d9pg-item__open { border-radius: min(12px, var(--d9pg-r-lg)); }
	.d9pg .d9pg-item__num { top: 8px; left: 8px; height: 22px; padding: 0 7px; font-size: 11px; }
	.d9pg .d9pg-item__play { top: 8px; left: 8px; }
	.d9pg .d9pg-item__new { top: 8px; right: 8px; }
	.d9pg .d9pg-item__card { left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 5px 8px; }
	.d9pg .d9pg-item__place { font-size: 12px; }
	.d9pg .d9pg-item__cap-main { font-size: 14px; }
}

/* ---------- Consent box in a narrow lightbox ---------- */
@container (max-width: 420px) {
	.d9pg.d9pg-lb .d9pg-consent { padding: 12px 14px; gap: 6px; }
	.d9pg.d9pg-lb .d9pg-consent__title { font-size: 16px; padding-right: 36px; }
	.d9pg.d9pg-lb .d9pg-consent__text { font-size: 12px; line-height: 1.4; }
	.d9pg.d9pg-lb .d9pg-consent__play { min-height: 40px; padding: 0 16px; font-size: 14px; }
	.d9pg.d9pg-lb .d9pg-consent__always { min-height: 32px; font-size: 12px; }
	.d9pg.d9pg-lb .d9pg-player__play { width: 64px; height: 64px; }
}

/* ---------- Devices without hover: always show the details card ---------- */
@media (hover: none) {
	.d9pg.d9pg-info--hover .d9pg-item__card { opacity: 1; transform: none; }
}

/* ---------- Lightbox on tablets and phones ---------- */
@media (max-width: 960px) {
	.d9pg.d9pg-lb { padding: 12px; gap: 10px; }
	.d9pg.d9pg-lb .d9pg-lb__main { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; position: relative; gap: 12px; }
	.d9pg.d9pg-lb .d9pg-lb__stage { grid-row: 1; }
	.d9pg.d9pg-lb .d9pg-lb__nav { position: absolute; top: 40%; z-index: 2; background: color-mix(in srgb, var(--d9pg-lb-bg) 75%, transparent); width: 44px; height: 44px; }
	.d9pg.d9pg-lb .d9pg-lb__nav--prev { left: 4px; }
	.d9pg.d9pg-lb .d9pg-lb__nav--next { right: 4px; }
	.d9pg.d9pg-lb .d9pg-lb__info { grid-row: 2; padding: 18px; max-height: 40vh; }
	.d9pg.d9pg-lb .d9pg-lb__actions { flex-direction: row; flex-wrap: wrap; }
	.d9pg.d9pg-lb .d9pg-lb__btn { min-height: 44px; font-size: 14px; }
	.d9pg.d9pg-lb .d9pg-lb__thumbs { justify-content: flex-start; padding: 2px 0; }
	.d9pg.d9pg-lb .d9pg-lb__thumb { width: 64px; height: 44px; }
	.d9pg.d9pg-lb .d9pg-lb__quote { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.d9pg .d9pg-item__stack img { transition: none; }
	.d9pg .d9pg-item__ba-after, .d9pg .d9pg-item__ba-line { transition: none; }
	.d9pg .d9pg-item__open:hover .d9pg-item__stack img,
	.d9pg.d9pg-hover--zoom .d9pg-item__open:hover .d9pg-item__stack img { transform: none; }
	.d9pg .d9pg-item,
	.d9pg .d9pg-item__open,
	.d9pg.d9pg-info--hover .d9pg-item__card { transition: none; }
	.d9pg.d9pg-hover--lift .d9pg-item:hover { transform: none; }
}
