:root {
	--aog-glass: rgba(255, 255, 255, 0.66);
	--aog-border: rgba(255, 255, 255, 0.72);
	--aog-text: #1d1d1f;
}

* {
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

.aog-shell::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -2;
	background:
		radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.95), transparent 34rem),
		linear-gradient(135deg, #f5f5f7 0%, #edf2f7 42%, #f9f4f2 100%);
}

.aog-content {
	min-height: 45vh;
}

.aog-content > *:not(.wp-block-gallery):not(.gallery) {
	margin-left: auto;
	margin-right: auto;
	max-width: 72rem;
}

.aog-content p:has(img),
.aog-content figure:has(img),
.aog-content .wp-block-image,
.aog-content .wp-caption {
	margin: 0;
	max-width: none;
}

.aog-content,
.aog-content .wp-block-gallery,
.aog-content .gallery {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 0.75rem;
}

.aog-content .wp-block-gallery,
.aog-content .gallery {
	grid-column: 1 / -1;
}

.aog-content .wp-block-gallery.has-nested-images,
.aog-content .wp-block-gallery.has-nested-images.columns-default,
.aog-content .wp-block-gallery.has-nested-images[class*="columns-"] {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 0.75rem;
}

.aog-content .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image),
.aog-content .wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image),
.aog-content .wp-block-gallery.has-nested-images[class*="columns-"] figure.wp-block-image:not(#individual-image),
.aog-content .gallery .gallery-item {
	width: auto;
	max-width: none;
	margin: 0;
}

.aog-content [data-aog-image] {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 16rem;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	cursor: zoom-in;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 16px 38px rgba(20, 23, 31, 0.1);
	transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.aog-content [data-aog-image]:hover {
	transform: translateY(-3px) scale(1.006);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 22px 52px rgba(20, 23, 31, 0.15);
	filter: saturate(1.03);
}

.aog-content figcaption,
.aog-content .wp-caption-text {
	margin-top: 0.65rem;
	padding: 0 0.35rem;
	color: rgba(29, 29, 31, 0.62);
	font-size: 0.875rem;
	line-height: 1.5;
}

.aog-content > p:not(:has(img)),
.aog-content > h2,
.aog-content > h3,
.aog-content > ul,
.aog-content > ol {
	padding: 0.75rem 0.5rem;
	color: rgba(29, 29, 31, 0.76);
	line-height: 1.7;
}

.aog-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	opacity: 0;
	transition: opacity 180ms ease;
}

.aog-lightbox.is-open {
	display: block;
	opacity: 1;
}

.aog-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(245, 245, 247, 0.48);
	backdrop-filter: blur(34px) saturate(1.25);
	-webkit-backdrop-filter: blur(34px) saturate(1.25);
}

.aog-lightbox__stage {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
	align-items: center;
	gap: 1rem;
	width: min(100vw, 116rem);
	height: 100vh;
	margin: 0 auto;
	padding: 5rem 1rem 2rem;
}

.aog-lightbox__figure {
	position: relative;
	display: flex;
	min-width: 0;
	height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.aog-lightbox__image {
	max-width: 100%;
	max-height: calc(100vh - 9rem);
	border-radius: 24px;
	object-fit: contain;
	background: rgba(255, 255, 255, 0.58);
	box-shadow: 0 30px 100px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.aog-lightbox__caption {
	min-height: 1.8rem;
	margin-top: 1rem;
	color: rgba(29, 29, 31, 0.72);
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
}

.aog-lightbox__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.56);
	color: var(--aog-text);
	box-shadow: 0 14px 44px rgba(0, 0, 0, 0.12), 0 1px 0 rgba(255, 255, 255, 0.72) inset;
	backdrop-filter: blur(20px) saturate(1.22);
	-webkit-backdrop-filter: blur(20px) saturate(1.22);
	transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.aog-lightbox__button:hover {
	transform: scale(1.04);
	background: rgba(255, 255, 255, 0.74);
	box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16), 0 1px 0 rgba(255, 255, 255, 0.82) inset;
}

.aog-lightbox__button:focus-visible {
	outline: 3px solid rgba(0, 113, 227, 0.35);
	outline-offset: 4px;
}

.aog-lightbox__nav {
	width: 3.5rem;
	height: 3.5rem;
}

.aog-lightbox__nav svg {
	width: 1.7rem;
	height: 1.7rem;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.2;
}

.aog-lightbox__close {
	position: fixed;
	right: max(1rem, env(safe-area-inset-right));
	top: max(1rem, env(safe-area-inset-top));
	z-index: 2;
	width: 3.25rem;
	height: 3.25rem;
}

.aog-lightbox__close span,
.aog-lightbox__close span::after {
	position: absolute;
	width: 1.15rem;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	content: "";
}

.aog-lightbox__close span {
	transform: rotate(45deg);
}

.aog-lightbox__close span::after {
	left: 0;
	transform: rotate(90deg);
}

body.aog-lightbox-open {
	overflow: hidden;
}

@media (min-width: 640px) {
	.aog-content,
	.aog-content .wp-block-gallery,
	.aog-content .gallery,
	.aog-content .wp-block-gallery.has-nested-images,
	.aog-content .wp-block-gallery.has-nested-images.columns-default,
	.aog-content .wp-block-gallery.has-nested-images[class*="columns-"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}

	.aog-content [data-aog-image] {
		min-height: 18rem;
	}
}

@media (min-width: 1024px) {
	.aog-content [data-aog-image] {
		min-height: 20rem;
	}

	.aog-content > p:has(img):first-child:nth-last-child(1) [data-aog-image],
	.aog-content > figure:has(img):first-child:nth-last-child(1) [data-aog-image] {
		aspect-ratio: 16 / 9;
		min-height: 34rem;
	}
}

@media (max-width: 700px) {
	.aog-lightbox__stage {
		grid-template-columns: 1fr;
		padding: 4.75rem 0.75rem 5.5rem;
	}

	.aog-lightbox__nav {
		position: fixed;
		bottom: max(1rem, env(safe-area-inset-bottom));
		z-index: 2;
	}

	.aog-lightbox__prev {
		left: calc(50% - 4.25rem);
	}

	.aog-lightbox__next {
		right: calc(50% - 4.25rem);
	}

	.aog-lightbox__image {
		max-height: calc(100vh - 12rem);
		border-radius: 18px;
	}
}
