.ooi-sat002-gallery {
	margin-block: 2rem;
}

.ooi-sat002-gallery__header {
	margin-block-end: 1rem;
}

.ooi-sat002-gallery__eyebrow {
	margin: 0 0 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ooi-sat002-gallery__title {
	margin: 0;
}

.ooi-sat002-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ooi-sat002-gallery__figure {
	margin: 0;
}

.ooi-sat002-gallery__trigger,
.ooi-sat002-gallery__media {
	display: block;
	width: 100%;
	overflow: hidden;
	border-radius: 0.75rem;
	border: 0;
	padding: 0;
	background: #eef2f4;
	aspect-ratio: 4 / 3;
}

.ooi-sat002-gallery__trigger {
	cursor: zoom-in;
}

.ooi-sat002-gallery__trigger:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.ooi-sat002-gallery__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ooi-sat002-viewer[hidden] {
	display: none;
}

.ooi-sat002-viewer {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: grid;
	place-items: center;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	box-sizing: border-box;
	margin: 0;
	padding: 1rem;
}

.ooi-sat002-viewer__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(8 18 28 / 92%);
}

.ooi-sat002-viewer__dialog {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	width: min(95vw, 90rem);
	height: min(90vh, 64rem);
	height: min(90dvh, 64rem);
	max-width: 95vw;
	max-height: 90vh;
	max-height: 90dvh;
	box-sizing: border-box;
	padding: 3.5rem 1rem 1rem;
	border-radius: 1rem;
	background: #10223b;
	color: #fff;
}

.ooi-sat002-viewer__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	border: 1px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.75rem;
	cursor: pointer;
}

.ooi-sat002-viewer__stage {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

.ooi-sat002-viewer__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 92vw;
	max-height: 82vh;
	max-height: 82dvh;
	object-fit: contain;
}

.ooi-sat002-viewer__status {
	margin: 1rem;
	text-align: center;
}

.ooi-sat002-viewer__status:empty {
	display: none;
}

.ooi-sat002-viewer__controls {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.75rem;
	padding-block-start: 1rem;
}

.ooi-sat002-viewer__controls button {
	min-height: 2.75rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.ooi-sat002-viewer__controls button:last-child {
	justify-self: end;
}

.ooi-sat002-viewer__controls button:disabled {
	opacity: 0.45;
	cursor: default;
}

.ooi-sat002-viewer-open {
	overflow: hidden;
}

@media (max-width: 40rem) {
	.ooi-sat002-viewer {
		padding: 0;
	}

	.ooi-sat002-viewer__dialog {
		width: 100%;
		height: 100vh;
		height: 100dvh;
		max-width: none;
		max-height: none;
		border-radius: 0;
	}

	.ooi-sat002-viewer__image {
		max-width: 95vw;
		max-height: 80vh;
		max-height: 80dvh;
	}
}

/* Protected Moment Album — progressive browser. */
.ooi-moment-album__browser {
	margin-block: 1.5rem 2rem;
}

.ooi-moment-album-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
}

.ooi-moment-album-item {
	margin: 0;
}

.ooi-moment-album-item__trigger {
	display: block;
	width: 100%;
	overflow: hidden;
	border: 0;
	border-radius: 0.75rem;
	padding: 0;
	background: #eef2f4;
	aspect-ratio: 4 / 3;
	cursor: zoom-in;
}

.ooi-moment-album-item__trigger:focus-visible,
.ooi-moment-album__load-more:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.ooi-moment-album-item__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ooi-moment-album__pagination {
	display: grid;
	justify-items: center;
	gap: 0.75rem;
	margin-block-start: 1.5rem;
}

.ooi-moment-album__load-more {
	min-height: 2.75rem;
	padding: 0.65rem 1.1rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.ooi-moment-album__load-more:disabled {
	opacity: 0.6;
	cursor: default;
}

.ooi-moment-album__pagination-status {
	margin: 0;
	text-align: center;
}

.ooi-moment-album__pagination-status:empty {
	display: none;
}

/* SAT-002 final polish — native album CTA and keyboard states. */
.ooi-sat002-gallery__actions {
	display: flex;
	justify-content: center;
	margin-block-start: 1.25rem;
}

.ooi-sat002-gallery__album-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.7rem 1.15rem;
	border: 1px solid #7270ac;
	border-radius: 999px;
	background: #7270ac;
	color: #fff;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.ooi-sat002-gallery__album-link:hover {
	filter: brightness(0.94);
	color: #fff;
	text-decoration: none;
}

.ooi-sat002-gallery__album-link:focus-visible,
.ooi-sat002-viewer__close:focus-visible,
.ooi-sat002-viewer__controls button:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.ooi-sat002-viewer__controls button:not(:disabled):hover,
.ooi-moment-album__load-more:not(:disabled):hover {
	background: rgb(255 255 255 / 10%);
}

.ooi-sat002-viewer__counter,
[data-ooi-sat002-viewer-counter] {
	min-width: 5rem;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.ooi-moment-album__load-more {
	border-color: #7270ac;
	background: #7270ac;
	color: #fff;
	font-weight: 700;
}

.ooi-moment-album__load-more:not(:disabled):hover {
	filter: brightness(0.94);
}

.ooi-moment-album__pagination-status {
	max-width: 42rem;
}

@media (max-width: 40rem) {
	.ooi-sat002-gallery__actions {
		align-items: stretch;
	}

	.ooi-sat002-gallery__album-link {
		width: 100%;
	}

	.ooi-sat002-viewer__controls {
		grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
		gap: 0.5rem;
	}

	.ooi-sat002-viewer__controls button {
		padding-inline: 0.75rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ooi-sat002-gallery__album-link,
	.ooi-moment-album__load-more {
		scroll-behavior: auto;
	}
}
