/* WCG School Gallery — all public styles are scoped to the plugin. */
.wcgsg-shell {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
}

.wcgsg-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

.wcgsg {
	--wcgsg-accent: #155e75;
	--wcgsg-columns: 3;
	--wcgsg-ink: #163342;
	--wcgsg-muted: #5d7079;
	--wcgsg-border: #dce7eb;
	--wcgsg-surface: #f4f8fa;
	box-sizing: border-box;
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 36px 24px 56px;
	color: var(--wcgsg-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.65;
	text-align: left;
	isolation: isolate;
}

.wcgsg *,
.wcgsg *::before,
.wcgsg *::after {
	box-sizing: border-box;
}

.wcgsg a {
	color: var(--wcgsg-accent);
	text-decoration: none;
}

.wcgsg button,
.wcgsg input,
.wcgsg select {
	font-family: inherit;
	font-size: 16px;
	letter-spacing: normal;
	text-transform: none;
}

.wcgsg :where(a, button, input, select, textarea):focus-visible {
	outline: 3px solid var(--wcgsg-accent);
	outline-offset: 4px;
}

.wcgsg__hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-bottom: 26px;
	padding: 38px 40px;
	border: 1px solid #d6e6eb;
	border-radius: 24px;
	background: linear-gradient(120deg, #edf6f8 0%, #f8fbfc 66%, #e9f3f2 100%);
}

.wcgsg__hero::after {
	position: absolute;
	z-index: -1;
	right: -90px;
	bottom: -150px;
	width: 400px;
	height: 400px;
	border: 52px solid rgba(21, 94, 117, 0.035);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.wcgsg__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 13px;
	color: var(--wcgsg-accent);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.09em;
	line-height: 1.6;
	text-transform: uppercase;
}

.wcgsg__eyebrow::before {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	content: "";
}

.wcgsg .wcgsg__title {
	max-width: 870px;
	margin: 0 0 15px;
	color: var(--wcgsg-ink);
	font-family: inherit;
	font-size: clamp(28px, 3.3vw, 42px);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.25;
	text-transform: none;
	overflow-wrap: anywhere;
}

.wcgsg__intro {
	max-width: 720px;
	margin: 0;
	color: #506974;
	font-size: 17px;
	line-height: 1.75;
	overflow-wrap: anywhere;
}

.wcgsg__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin-top: 26px;
	color: var(--wcgsg-muted);
	font-size: 14px;
	line-height: 1.5;
}

.wcgsg__stats > span {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.wcgsg__stats strong {
	color: var(--wcgsg-accent);
	font-size: 23px;
	font-weight: 750;
	line-height: 1.3;
}

.wcgsg .wcgsg__filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	align-items: end;
	gap: 18px;
	margin: 0 0 26px;
	padding: 22px;
	border: 1px solid var(--wcgsg-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 5px 22px rgba(28, 55, 70, 0.035);
}

.wcgsg__field {
	min-width: 0;
}

.wcgsg .wcgsg__field label {
	display: block;
	margin: 0 0 7px;
	color: #294956;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.5;
}

.wcgsg .wcgsg__field input,
.wcgsg .wcgsg__field select {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	height: 48px;
	margin: 0;
	padding: 10px 13px;
	border: 1px solid #cddce2;
	border-radius: 10px;
	background-color: #fff;
	color: var(--wcgsg-ink);
	box-shadow: none;
	line-height: 1.4;
}

.wcgsg .wcgsg__field select {
	padding-right: 32px;
}

.wcgsg .wcgsg__field input::placeholder {
	color: #74858d;
	opacity: 1;
}

.wcgsg .wcgsg__field input:focus,
.wcgsg .wcgsg__field select:focus {
	border-color: var(--wcgsg-accent);
	box-shadow: 0 0 0 1px var(--wcgsg-accent);
}

.wcgsg__filter-actions {
	display: flex;
	align-items: center;
	gap: 13px;
	min-height: 48px;
}

.wcgsg .wcgsg__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	margin: 0;
	padding: 10px 21px;
	border: 1px solid var(--wcgsg-accent);
	border-radius: 10px;
	background: var(--wcgsg-accent);
	color: #fff;
	box-shadow: none;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 160ms ease;
}

.wcgsg .wcgsg__button:hover {
	background: var(--wcgsg-accent);
	color: #fff;
	filter: brightness(0.9);
}

.wcgsg .wcgsg__reset {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #4f6875;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: underline;
	text-underline-offset: 4px;
	white-space: nowrap;
}

.wcgsg__results {
	margin: 0 0 24px;
	color: var(--wcgsg-muted);
	font-size: 16px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.wcgsg__results strong {
	color: var(--wcgsg-ink);
}

.wcgsg__timeline {
	position: relative;
}

.wcgsg__timeline::before {
	position: absolute;
	top: 18px;
	bottom: 20px;
	left: 6px;
	width: 2px;
	background: #e2ebee;
	content: "";
}

.wcgsg__month {
	position: relative;
	margin: 0 0 38px;
	padding-left: 32px;
}

.wcgsg__month:last-child {
	margin-bottom: 0;
}

.wcgsg .wcgsg__month-title {
	position: relative;
	margin: 0 0 19px;
	color: var(--wcgsg-ink);
	font-family: inherit;
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.5;
	text-transform: none;
}

.wcgsg__month-title::before {
	position: absolute;
	top: 11px;
	left: -31px;
	width: 12px;
	height: 12px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--wcgsg-accent);
	box-shadow: 0 0 0 2px #d6e6eb;
	content: "";
}

.wcgsg__grid {
	display: grid;
	grid-template-columns: repeat(var(--wcgsg-columns), minmax(0, 1fr));
	align-items: stretch;
	gap: 24px;
}

.wcgsg__card {
	min-width: 0;
	margin: 0;
	border: 1px solid var(--wcgsg-border);
	border-radius: 17px;
	background: #fff;
	box-shadow: 0 4px 15px rgba(28, 55, 70, 0.035);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.wcgsg .wcgsg__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: inherit;
	color: inherit;
	text-decoration: none;
}

.wcgsg__cover {
	position: relative;
	overflow: hidden;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 16px 16px 0 0;
	background: #e9f1f3;
}

.wcgsg__cover img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	transition: transform 300ms ease;
}

.wcgsg__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 25px;
	background: linear-gradient(135deg, #dfecef, #f3f7f8);
	color: #547784;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}

.wcgsg__placeholder svg {
	width: 52px;
	height: 52px;
}

.wcgsg__count {
	position: absolute;
	right: 13px;
	bottom: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 8px;
	background: rgba(12, 32, 43, 0.88);
	color: #fff;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.4;
}

.wcgsg__card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 21px;
}

.wcgsg__date {
	display: block;
	margin: 0 0 9px;
	color: var(--wcgsg-accent);
	font-size: 14px;
	font-weight: 650;
	line-height: 1.5;
}

.wcgsg .wcgsg__card-title {
	margin: 0 0 10px;
	color: var(--wcgsg-ink);
	font-family: inherit;
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.45;
	text-transform: none;
	overflow-wrap: anywhere;
}

.wcgsg__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 18px;
	color: var(--wcgsg-muted);
	font-size: 16px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow-wrap: anywhere;
}

.wcgsg__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-top: auto;
	padding-top: 5px;
}

.wcgsg__tags > span {
	display: inline-block;
	padding: 5px 9px;
	border-radius: 6px;
	background: #eef4f6;
	color: #49636f;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.wcgsg__empty {
	padding: 48px 24px;
	border: 1px dashed #c5d9df;
	border-radius: 18px;
	background: #f8fbfc;
	color: var(--wcgsg-muted);
	text-align: center;
}

.wcgsg__empty h2,
.wcgsg__empty h3,
.wcgsg__empty > strong {
	display: block;
	margin: 0 0 12px;
	color: var(--wcgsg-ink);
	font-size: 23px;
	line-height: 1.5;
}

.wcgsg__empty p {
	margin: 0;
}

.wcgsg__empty a {
	display: inline-block;
	margin-top: 14px;
	font-weight: 650;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.wcgsg__pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 36px;
}

.wcgsg__pagination ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wcgsg__pagination ul.page-numbers > li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wcgsg__pagination a.page-numbers,
.wcgsg__pagination span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	margin: 0;
	padding: 8px 13px;
	border: 1px solid var(--wcgsg-border);
	border-radius: 10px;
	background: #fff;
	color: #385766;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
}

.wcgsg__pagination a.page-numbers:hover {
	border-color: var(--wcgsg-accent);
	color: var(--wcgsg-accent);
}

.wcgsg__pagination span.current {
	border-color: var(--wcgsg-accent);
	background: var(--wcgsg-accent);
	color: #fff;
}

.wcgsg__pagination span.dots {
	min-width: 28px;
	padding-right: 3px;
	padding-left: 3px;
	border-color: transparent;
	background: transparent;
}

.wcgsg .wcgsg__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-bottom: 16px;
	font-size: 16px;
	font-weight: 650;
	line-height: 1.5;
}

.wcgsg .wcgsg__back:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.wcgsg__album-header {
	margin: 0 0 28px;
	padding: 0 0 25px;
	border-bottom: 1px solid var(--wcgsg-border);
}

.wcgsg--single .wcgsg__title {
	max-width: 1050px;
}

.wcgsg__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 21px;
	margin: 17px 0 0;
	color: var(--wcgsg-muted);
	font-size: 15px;
	line-height: 1.7;
}

.wcgsg__meta time,
.wcgsg__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.wcgsg__description {
	max-width: 960px;
	margin: 0 0 30px;
	color: #3f5a67;
	font-size: 17px;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.wcgsg__description p {
	margin-bottom: 17px;
}

.wcgsg__description a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wcgsg__description img,
.wcgsg__description iframe,
.wcgsg__description video,
.wcgsg__description figure {
	max-width: 100%;
}

.wcgsg__description img {
	height: auto;
}

.wcgsg__description > :last-child {
	margin-bottom: 0;
}

.wcgsg__photos {
	display: grid;
	grid-template-columns: repeat(var(--wcgsg-columns), minmax(0, 1fr));
	align-items: start;
	gap: 22px;
}

.wcgsg .wcgsg__photo {
	display: block;
	overflow: hidden;
	min-width: 0;
	border: 1px solid var(--wcgsg-border);
	border-radius: 14px;
	background: #fff;
	color: #3f5a67;
	text-decoration: none;
	cursor: zoom-in;
	transition: box-shadow 180ms ease;
}

.wcgsg__photo img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	margin: 0;
	object-fit: cover;
	transition: filter 180ms ease;
}

.wcgsg__photo-caption {
	display: block;
	padding: 12px 15px;
	font-size: 14px;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.wcgsg__hint,
.wcgsg__photo-help {
	margin: 0 0 19px;
	color: var(--wcgsg-muted);
	font-size: 14px;
}

.wcgsg__notice {
	margin: 20px 0;
	padding: 16px 19px;
	border: 1px solid var(--wcgsg-border);
	border-radius: 12px;
	background: var(--wcgsg-surface);
}

/* The native dialog lives outside the theme's page containers. */
.wcgsg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: 100%;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 0;
	background: #0c1522;
	color: #f7f9fc;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.wcgsg-lightbox[open] {
	display: flex;
	flex-direction: column;
}

.wcgsg-lightbox::backdrop {
	background: rgba(4, 10, 18, 0.92);
}

.wcgsg-lightbox *,
.wcgsg-lightbox *::before,
.wcgsg-lightbox *::after {
	box-sizing: border-box;
}

.wcgsg-lightbox [hidden] {
	display: none !important;
}

.wcgsg-lightbox :where(button, a):focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}

.wcgsg-lightbox__header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 17px 24px;
	padding-top: max(17px, env(safe-area-inset-top));
	padding-right: max(24px, env(safe-area-inset-right));
	padding-left: max(24px, env(safe-area-inset-left));
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wcgsg-lightbox .wcgsg-lightbox__title {
	overflow: hidden;
	margin: 0;
	color: #f7f9fc;
	font-family: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.5;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-transform: none;
}

.wcgsg-lightbox .wcgsg-lightbox__button {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 46px;
	min-width: 46px;
	height: 46px;
	min-height: 46px;
	margin: 0;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.21);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 24px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
}

.wcgsg-lightbox .wcgsg-lightbox__button:hover {
	border-color: rgba(255, 255, 255, 0.55);
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}

.wcgsg-lightbox__button svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.wcgsg-lightbox__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 100px;
	touch-action: pan-y pinch-zoom;
}

.wcgsg-lightbox__media {
	position: absolute;
	inset: 18px 82px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 0;
}

.wcgsg-lightbox__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	margin: 0;
	border-radius: 4px;
	object-fit: contain;
	user-select: none;
}

.wcgsg-lightbox .wcgsg-lightbox__nav {
	position: absolute;
	z-index: 2;
	top: 50%;
	transform: translateY(-50%);
}

.wcgsg-lightbox__prev {
	left: max(18px, env(safe-area-inset-left));
}

.wcgsg-lightbox__next {
	right: max(18px, env(safe-area-inset-right));
}

.wcgsg-lightbox__loading,
.wcgsg-lightbox__error {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	margin: 0;
	padding: 20px;
	color: #d9e3ef;
	font-size: 16px;
	line-height: 1.7;
	text-align: center;
}

.wcgsg-lightbox__loading::before {
	width: 32px;
	height: 32px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #fff;
	border-radius: 50%;
	content: "";
	animation: wcgsg-spin 800ms linear infinite;
}

.wcgsg-lightbox__footer {
	display: grid;
	flex: 0 0 auto;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 7px 22px;
	max-height: 32vh;
	margin: 0;
	padding: 16px 26px 20px;
	padding-right: max(26px, env(safe-area-inset-right));
	padding-bottom: max(20px, env(safe-area-inset-bottom));
	padding-left: max(26px, env(safe-area-inset-left));
	overflow-y: auto;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	background: #0c1522;
}

.wcgsg-lightbox__caption {
	grid-column: 1 / -1;
	margin: 0;
	color: #f2f6fb;
	font-size: 16px;
	line-height: 1.7;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.wcgsg-lightbox__counter {
	margin: 0;
	color: #b8c8d9;
	font-size: 14px;
	line-height: 1.6;
}

.wcgsg-lightbox .wcgsg-lightbox__original {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	min-height: 38px;
	color: #d7eaf8;
	font-size: 14px;
	line-height: 1.5;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.wcgsg-lightbox .wcgsg-lightbox__original:hover {
	color: #fff;
}

@keyframes wcgsg-spin {
	to { transform: rotate(360deg); }
}

@media (hover: hover) {
	.wcgsg__card:hover {
		transform: translateY(-3px);
		box-shadow: 0 12px 28px rgba(28, 55, 70, 0.09);
	}

	.wcgsg__card:hover .wcgsg__cover img {
		transform: scale(1.035);
	}

	.wcgsg__photo:hover {
		box-shadow: 0 8px 24px rgba(28, 55, 70, 0.12);
	}

	.wcgsg__photo:hover img {
		filter: brightness(1.04);
	}
}

@media (max-width: 1000px) {
	.wcgsg .wcgsg__filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wcgsg__grid,
	.wcgsg__photos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	.wcgsg__hero {
		padding: 30px;
	}

	.wcgsg__filter-actions {
		justify-content: flex-start;
	}
}

@media (max-width: 600px) {
	.wcgsg {
		padding: 22px 16px 36px;
	}

	.wcgsg__hero {
		margin-bottom: 20px;
		padding: 25px 22px;
		border-radius: 18px;
	}

	.wcgsg .wcgsg__title {
		font-size: 29px;
		line-height: 1.3;
	}

	.wcgsg__intro {
		font-size: 16px;
	}

	.wcgsg__stats {
		gap: 12px 22px;
		margin-top: 21px;
	}

	.wcgsg .wcgsg__filters {
		grid-template-columns: minmax(0, 1fr);
		gap: 15px;
		margin-bottom: 22px;
		padding: 18px;
		border-radius: 14px;
	}

	.wcgsg__filter-actions {
		gap: 18px;
		padding-top: 2px;
	}

	.wcgsg__filter-actions .wcgsg__button {
		flex: 1;
	}

	.wcgsg__grid,
	.wcgsg__photos {
		grid-template-columns: minmax(0, 1fr);
		gap: 19px;
	}

	.wcgsg__month {
		margin-bottom: 30px;
		padding-left: 25px;
	}

	.wcgsg .wcgsg__month-title {
		margin-bottom: 15px;
		font-size: 21px;
	}

	.wcgsg__month-title::before {
		top: 10px;
		left: -24px;
	}

	.wcgsg__card-body {
		padding: 19px;
	}

	.wcgsg__card,
	.wcgsg .wcgsg__photo {
		border-radius: 13px;
	}

	.wcgsg__cover {
		border-radius: 12px 12px 0 0;
	}

	.wcgsg__pagination {
		gap: 6px;
		margin-top: 28px;
	}

	.wcgsg__pagination a.page-numbers,
	.wcgsg__pagination span.page-numbers {
		padding: 8px 11px;
	}

	.wcgsg__album-header {
		margin-bottom: 21px;
		padding-bottom: 21px;
	}

	.wcgsg__meta {
		gap: 8px 15px;
		font-size: 14px;
	}

	.wcgsg__description {
		font-size: 16px;
	}

	.wcgsg-lightbox__header {
		gap: 12px;
		padding: 12px 14px;
		padding-top: max(12px, env(safe-area-inset-top));
	}

	.wcgsg-lightbox .wcgsg-lightbox__title {
		font-size: 16px;
	}

	.wcgsg-lightbox__media {
		inset: 10px 6px;
	}

	.wcgsg-lightbox .wcgsg-lightbox__nav {
		top: auto;
		bottom: 14px;
		background: rgba(12, 21, 34, 0.82);
		transform: none;
	}

	.wcgsg-lightbox__prev {
		left: max(13px, env(safe-area-inset-left));
	}

	.wcgsg-lightbox__next {
		right: max(13px, env(safe-area-inset-right));
	}

	.wcgsg-lightbox__footer {
		gap: 6px 14px;
		padding: 12px 16px 15px;
		padding-bottom: max(15px, env(safe-area-inset-bottom));
	}

	.wcgsg-lightbox__caption {
		font-size: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcgsg *,
	.wcgsg-lightbox * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}

@media print {
	.wcgsg {
		max-width: none;
		padding: 0;
	}

	.wcgsg__filters,
	.wcgsg__pagination,
	.wcgsg__back,
	.wcgsg-lightbox {
		display: none !important;
	}

	.wcgsg__card,
	.wcgsg__photo {
		break-inside: avoid;
		box-shadow: none;
	}

	.wcgsg__grid,
	.wcgsg__photos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
