/* DoT Photo Gallery */
.dotpg {
	--dotpg-accent: #206092;
	--dotpg-accent-2: #6ec1e4;
	--dotpg-text: #2b3640;
	--dotpg-muted: #5c6873;
	--dotpg-gap: 12px;
	--dotpg-radius: 8px;
	color: var(--dotpg-text);
}

.dotpg-filters {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 0 18px;
}

.dotpg .dotpg-filter {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 9px 16px;
	border: 1px solid #c9d7e3;
	border-radius: 999px;
	background: #fff;
	color: var(--dotpg-accent);
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
	transition: background-color .15s, color .15s, border-color .15s;
}

.dotpg .dotpg-filter:hover {
	border-color: var(--dotpg-accent);
	background: #f2f7fb;
	color: var(--dotpg-accent);
}

.dotpg .dotpg-filter[aria-pressed="true"] {
	border-color: var(--dotpg-accent);
	background: var(--dotpg-accent);
	color: #fff;
}

.dotpg .dotpg-filter:focus-visible {
	outline: 3px solid var(--dotpg-accent-2);
	outline-offset: 2px;
}

.dotpg-count {
	min-width: 22px;
	padding: 2px 7px;
	border-radius: 999px;
	background: rgba(32, 96, 146, .1);
	font-size: 12px;
	font-weight: 700;
	text-align: center;
}

.dotpg-filter[aria-pressed="true"] .dotpg-count {
	background: rgba(255, 255, 255, .22);
}

.dotpg-desc {
	max-width: 760px;
	margin: -4px auto 20px;
	color: var(--dotpg-muted);
	text-align: center;
}

.dotpg-grid {
	display: grid;
	grid-template-columns: repeat(var(--dotpg-cols, 4), minmax(0, 1fr));
	gap: var(--dotpg-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.dotpg-item {
	margin: 0;
	padding: 0;
	list-style: none;
}

.dotpg-item[hidden] {
	display: none;
}

.dotpg-link {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--dotpg-radius);
	background: #e8eef3;
}

.dotpg .dotpg-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform .35s ease;
}

.dotpg-link::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 47, 77, .35), transparent 45%);
	opacity: 0;
	transition: opacity .25s;
}

.dotpg-link:hover .dotpg-img,
.dotpg-link:focus-visible .dotpg-img {
	transform: scale(1.04);
}

.dotpg-link:hover::after,
.dotpg-link:focus-visible::after {
	opacity: 1;
}

.dotpg-link:focus-visible {
	outline: 3px solid var(--dotpg-accent-2);
	outline-offset: 2px;
}

@media (max-width: 1024px) {
	.dotpg-grid { grid-template-columns: repeat(min(var(--dotpg-cols, 4), 3), minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.dotpg { --dotpg-gap: 8px; }
	.dotpg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dotpg .dotpg-filter { padding: 8px 13px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.dotpg .dotpg-img,
	.dotpg-link::after { transition: none; }
}

/* Lightbox */
.dotpg-lb {
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 12px 16px 16px;
	border: 0;
	background: rgba(8, 18, 28, .96);
	color: #fff;
	overflow: hidden;
}

.dotpg-lb::backdrop {
	background: rgba(8, 18, 28, .96);
}

.dotpg-lb[open] {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) 56px;
	grid-template-rows: auto minmax(0, 1fr) auto;
	grid-template-areas:
		"top  top   top"
		"prev stage next"
		"cap  cap   cap";
	gap: 12px;
	align-items: center;
}

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

.dotpg-lb-top {
	grid-area: top;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 48px;
}

.dotpg-lb-counter {
	font-size: 15px;
	font-weight: 600;
	opacity: .85;
}

.dotpg-lb-stage {
	grid-area: stage;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 0;
	margin: 0;
	padding: 0;
}

.dotpg-lb-img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.dotpg-lb-caption {
	grid-area: cap;
	justify-self: center;
	max-width: 900px;
	min-height: 1.4em;
	margin: 0;
	color: #fff;
	font-size: 15px;
	line-height: 1.4;
	text-align: center;
}

/* Buttons: reset theme styles, then style. */
.dotpg-lb .dotpg-lb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, .55);
	border-radius: 999px;
	background: rgba(255, 255, 255, .14);
	color: #fff;
	font-family: inherit;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}

.dotpg-lb .dotpg-lb-btn:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, .28);
	color: #fff;
}

.dotpg-lb .dotpg-lb-btn:focus-visible {
	outline: 3px solid #6ec1e4;
	outline-offset: 3px;
}

.dotpg-lb .dotpg-lb-btn[hidden] {
	display: none;
}

.dotpg-lb .dotpg-lb-prev,
.dotpg-lb .dotpg-lb-next {
	width: 52px;
	height: 52px;
	justify-self: center;
}

.dotpg-lb .dotpg-lb-prev { grid-area: prev; }
.dotpg-lb .dotpg-lb-next { grid-area: next; }

.dotpg-lb .dotpg-lb-close {
	height: 48px;
	padding: 0 20px 0 16px;
	border-color: #fff;
	background: #fff;
	color: #0f2f4d;
	font-size: 16px;
	font-weight: 700;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.dotpg-lb .dotpg-lb-close:hover {
	border-color: #e3f1fa;
	background: #e3f1fa;
	color: #0f2f4d;
}

.dotpg-lb-close-icon {
	display: block;
	width: 18px;
	height: 18px;
	flex: none;
}

/* Phones and small tablets: photo full width, arrows below. */
@media (max-width: 640px) {
	.dotpg-lb {
		padding: 10px 10px max(14px, env(safe-area-inset-bottom));
	}

	.dotpg-lb[open] {
		grid-template-columns: 52px minmax(0, 1fr) 52px;
		grid-template-areas:
			"top   top   top"
			"stage stage stage"
			"prev  cap   next";
		gap: 10px;
	}

	.dotpg-lb-caption {
		font-size: 14px;
	}
}

/* Short landscape screens (phones turned sideways). */
@media (max-height: 480px) {
	.dotpg-lb {
		padding: 6px 12px 8px;
	}

	.dotpg-lb[open] {
		grid-template-columns: 48px minmax(0, 1fr) 48px;
		grid-template-areas:
			"top  top   top"
			"prev stage next"
			"cap  cap   cap";
		gap: 6px;
	}

	.dotpg-lb-top { min-height: 40px; }
	.dotpg-lb .dotpg-lb-close { height: 40px; }
	.dotpg-lb .dotpg-lb-prev,
	.dotpg-lb .dotpg-lb-next { width: 44px; height: 44px; }
	.dotpg-lb-caption { font-size: 13px; min-height: 0; }
}

html.dotpg-lock { overflow: hidden; }

.dotpg-admin-note {
	padding: 10px 14px;
	border-left: 4px solid #206092;
	background: #f2f7fb;
}
