@import "bscaGalleryBase.css";
html,
body {
	cursor: auto;
}
.banner,
.banner * {
	cursor: var(--gallery-cursor), auto;
}
.page,
.grid {
	cursor: var(--gallery-cursor), auto;
}
body {
	margin: 0;
	font-family: Arial, sans-serif;
	background: var(--gallery-bg);
	color: var(--gallery-text);
}
.bg,
.sticky,
.container3,
table,
table * {
	cursor: auto;
}
.page {
	max-width: var(--gallery-page-max-width);
	margin: 0 auto;
	padding: var(--gallery-page-padding);
	text-align: center;
}
h1 {
	margin: 0 0 12px;
	font-size: 28px;
}
.intro {
	margin: 0 auto 20px;
	color: var(--gallery-muted-text);
	max-width: 700px;
}
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 8px;
	align-items: start;
}
.card {
	background: var(--gallery-card-dark);
	border: 1px solid var(--gallery-card-border);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--gallery-shadow);
	display: flex;
	flex-direction: column;
	contain: layout paint;
	margin: 0;
}
.card,
.card a,
.card img,
.card figcaption {
	cursor: pointer;
}
.card,
.card * {
	cursor: pointer;
}
.card a {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	background: var(--gallery-bg);
	width: 100%;
	aspect-ratio: 1 / 1;
	padding: 2px;
	box-sizing: border-box;
	overflow: hidden;
	flex-shrink: 0;
}
.card img {
	display: block;
	width: 100%;
	height: auto;
	margin-top: auto;
	background: var(--gallery-bg);
}
.card figcaption {
	margin: 0;
	padding: 3px 6px 4px;
	font-size: 10px;
	color: var(--gallery-text);
	background: var(--gallery-bg);
	line-height: 1.05;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.banner img,
.toolbar img {
	width: 100%;
	height: auto;
	display: block;
}
.banner {
	position: relative;
	padding: 0;
	margin: 0 auto;
}
.banner img {
	width: var(--gallery-banner-width);
	max-width: 100%;
	height: var(--gallery-banner-height);
	display: block;
	margin: 0 auto;
}
.banner .banner-text {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	pointer-events: none;
}
.banner .banner-title {
	color: #111;
	font-size: 40px;
	font-weight: 900;
	margin: 0;
	padding: 0 12px;
	text-shadow:
		1px 1px 4px rgba(255, 255, 255, 0.9),
		-1px -1px 4px rgba(0, 0, 0, 0.5);
}
.banner .banner-subtitle {
	color: #111;
	font-size: 16px;
	font-weight: 700;
	margin: 6px 0 0;
	padding: 0 12px;
	text-shadow:
		1px 1px 4px rgba(255, 255, 255, 0.9),
		-1px -1px 4px rgba(0, 0, 0, 0.5);
}
.sticky {
	position: sticky;
	top: 0;
	z-index: 999;
	width: var(--gallery-sticky-width);
	max-width: 100%;
	margin: 0 auto;
	background: transparent;
	min-height: 55px;
}
.container3 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	align-items: center;
	justify-content: center;
	height: var(--gallery-nav-height);
	width: min(100%, 1000px);
	max-width: 100%;
	padding: 0 4px;
	box-sizing: border-box;
}
.container3 a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--gallery-nav-height);
	flex: 0 0 auto;
	box-sizing: border-box;
}
.container3 img {
	width: auto;
	height: var(--gallery-nav-height);
	max-height: var(--gallery-nav-height);
	flex: 0 0 auto;
}
.viewer {
	position: fixed;
	inset: 0;
	background: rgba(255, 242, 0, 0.95);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 1000;
}
.viewer.open {
	display: flex;
}
.viewer-stage {
	position: relative;
	max-width: min(94vw, 1100px);
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.viewer-image {
	max-width: 100%;
	max-height: 84vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.viewer-nav,
.viewer-close {
	position: absolute;
	border: 2px solid #111;
	background: #111;
	color: #fff200;
	width: 52px;
	height: 52px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	font-weight: 900;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.viewer-nav {
	top: 50%;
	transform: translateY(-50%);
}
.viewer-nav.prev {
	left: -12px;
}
.viewer-nav.next {
	right: -12px;
}
.viewer-close {
	top: -12px;
	right: -12px;
}
.viewer-caption {
	position: absolute;
	left: 50%;
	bottom: -38px;
	transform: translateX(-50%);
	color: #000;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 90%;
}
body.viewer-open {
	overflow: hidden;
}
@media (max-width: 1024px) {
	.page {
		padding-top: 16px;
	}
	.sticky {
		position: static;
		top: auto;
		min-height: 0;
		margin-top: 0 !important;
	}
	.banner .banner-title {
		font-size: 32px;
	}
	.banner .banner-subtitle {
		font-size: 13px;
	}
	.container3 {
		position: static;
		top: auto;
		left: auto;
		transform: none;
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px;
		height: auto;
		padding: 6px 0 10px;
		width: 100%;
	}
	.container3 a {
		flex: 0 0 auto;
		width: fit-content;
		height: auto;
	}
	.container3 img {
		width: auto;
		height: auto !important;
		max-height: 24px;
	}
}
@media (max-width: 900px) {
	.banner img {
		height: auto;
		max-height: 100px;
	}
}
@media (max-width: 760px) {
	.banner img {
		height: auto;
		max-height: 90px;
	}
	.banner .banner-title {
		font-size: 28px;
	}
	.banner .banner-subtitle {
		font-size: 12px;
	}
	.container3 {
		gap: 6px;
		padding: 4px 2px 8px;
		width: min(100%, 260px);
		margin: 0 auto;
	}
	.container3 a {
		height: auto;
	}
	.container3 img {
		height: auto !important;
		max-height: 22px;
	}
}
@media (max-width: 640px) {
	.banner img {
		max-height: 80px;
	}
	.banner .banner-title {
		font-size: 22px;
	}
	.banner .banner-subtitle {
		font-size: 11px;
	}
	.grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.viewer-nav {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}
	.viewer-nav.prev {
		left: 6px;
	}
	.viewer-nav.next {
		right: 6px;
	}
	.viewer-close {
		top: 6px;
		right: 6px;
	}
	.viewer-caption {
		bottom: -30px;
		font-size: 12px;
	}
}
@media (max-width: 420px) {
	.container3 a[href="../index.html"] {
		display: none;
	}
}
