@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: 900px;
}
.grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(160px, 1fr));
	gap: 18px;
	align-items: stretch;
	justify-content: center;
}
.card {
	background: var(--gallery-bg);
	border: 1px solid var(--gallery-card-border);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: var(--gallery-shadow);
	display: grid;
	grid-template-rows: 1fr auto;
	contain: layout paint;
	margin: 0;
	width: 100%;
	min-width: 160px;
	max-width: 240px;
}
@media (max-width: 1300px) {
	.grid {
		grid-template-columns: repeat(5, minmax(160px, 1fr));
		gap: 16px;
	}
}
@media (max-width: 1100px) {
	.grid {
		grid-template-columns: repeat(4, minmax(160px, 1fr));
		gap: 14px;
	}
}
@media (max-width: 860px) {
	.grid {
		grid-template-columns: repeat(3, minmax(160px, 1fr));
		gap: 12px;
	}
}
@media (max-width: 620px) {
	.grid {
		grid-template-columns: repeat(2, minmax(140px, 1fr));
		gap: 10px;
	}
}
@media (max-width: 420px) {
	.grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}
.card,
.card a,
.card img,
.card figcaption {
	cursor: pointer;
}
.card,
.card * {
	cursor: pointer;
}
.card a {
	display: block;
	background: var(--gallery-bg);
	width: 100%;
	height: 100%;
	overflow: hidden;
	box-sizing: border-box;
	text-decoration: none;
}
.card img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	background: var(--gallery-bg);
}
.card figcaption {
	margin: 0;
	padding: 6px 8px;
	font-size: 12px;
	color: var(--gallery-text);
	background: var(--gallery-bg);
	font-weight: 700;
	text-align: center;
	line-height: 1.2;
	min-height: 2.4em;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
	white-space: normal;
	word-break: break-word;
}
.viewer {
	position: fixed;
	inset: 0;
	background: rgba(17, 17, 17, 0.86);
	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: 48px;
	height: 48px;
	border-radius: 6px;
	cursor: pointer;
	font-size: 22px;
	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: #fff;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 90%;
}
body.viewer-open {
	overflow: hidden;
}
.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);
}
div.sticky {
	position: sticky;
	top: 0;
	z-index: 999;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto;
	background: transparent;
	background-color: transparent;
	min-height: 55px;
}
div.sticky .container3 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: transparent;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: var(--gallery-nav-height);
	width: min(100%, 1000px) !important;
	max-width: 100% !important;
	overflow: visible;
	padding: 0 4px;
	box-sizing: border-box;
	align-content: center;
}
div.sticky .container3 a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: var(--gallery-nav-height);
	flex: 0 0 auto;
	box-sizing: border-box;
	padding: 0;
	margin: 0;
	border: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
div.sticky .container3 a:focus,
div.sticky .container3 a:active,
div.sticky .container3 a:hover {
	outline: 0;
	box-shadow: none;
	background: transparent;
}
div.sticky .container3 a img {
	display: block;
	width: 125px !important;
	height: 43px !important;
	max-height: var(--gallery-nav-height);
	flex: 0 0 auto;
	border: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
	object-fit: contain;
}
@media (max-width: 1024px) {
	.page {
		padding-top: 16px;
	}
	div.sticky {
		position: static;
		top: auto;
		min-height: 0;
		margin-top: 0 !important;
		background: transparent;
		background-color: transparent;
	}
	.banner .banner-title {
		font-size: 32px;
	}
	.banner .banner-subtitle {
		font-size: 13px;
	}
	div.sticky .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% !important;
		max-width: 100% !important;
	}
	div.sticky .container3 a {
		flex: 0 1 calc(33.333% - 6px);
		width: calc(33.333% - 6px);
		min-width: 0;
		height: auto;
	}
	div.sticky .container3 a img {
		width: 100% !important;
		height: auto !important;
		max-height: 28px;
		object-fit: contain;
	}
}
@media (max-width: 900px) {
	.banner img {
		height: auto;
		max-height: 100px;
	}
}
@media (max-width: 760px) {
	.grid {
		justify-content: center;
	}
	.card {
		flex: 1 1 calc(50% - 10px);
		width: auto;
		min-width: 140px;
		max-width: 280px;
	}
	.banner img {
		height: auto;
		max-height: 90px;
	}
	.banner .banner-title {
		font-size: 28px;
	}
	.banner .banner-subtitle {
		font-size: 12px;
	}
	div.sticky .container3 {
		gap: 6px;
		padding: 4px 2px 8px;
		width: min(100%, 320px) !important;
		margin: 0 auto;
	}
	div.sticky .container3 a {
		flex: 0 1 calc(33.333% - 6px);
		width: calc(33.333% - 6px);
		height: auto;
	}
	div.sticky .container3 a img {
		width: 100% !important;
		height: auto !important;
		max-height: 24px;
		object-fit: contain;
	}
}
@media (max-width: 640px) {
	.banner img {
		max-height: 80px;
	}
	.banner .banner-title {
		font-size: 22px;
	}
	.banner .banner-subtitle {
		font-size: 11px;
	}
	div.sticky .container3 {
		gap: 4px;
		padding: 3px 1px 6px;
		width: min(100%, 280px) !important;
	}
	div.sticky .container3 a {
		flex: 0 1 calc(33.333% - 4px);
		width: calc(33.333% - 4px);
	}
	div.sticky .container3 a img {
		width: 100% !important;
		max-height: 22px;
		object-fit: contain;
	}
}
@media (max-width: 520px) {
	.card {
		flex: 1 1 100%;
		max-width: 100%;
	}
}
@media (max-width: 420px) {
	.grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}
}

/* Compacte variant voor de eenvoudige indexpagina (Fotos-BSCA_1.html) */
body.simple-gallery .page {
	max-width: var(--gallery-page-max-width);
	margin: 0 auto;
	padding: var(--gallery-page-padding);
}
body.simple-gallery .intro {
	margin: 0 0 20px;
	max-width: none;
}
body.simple-gallery .grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
	justify-content: flex-start;
}
body.simple-gallery .card {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	width: 220px;
	flex: 0 0 220px;
	min-width: 160px;
	max-width: 220px;
}
body.simple-gallery .card a {
	display: block;
	width: 100%;
	height: auto;
	padding: 2px;
	overflow: visible;
}
body.simple-gallery .card img {
	width: 100%;
	height: auto;
	object-fit: initial;
	object-position: initial;
}
body.simple-gallery .card figcaption {
	padding: 6px 8px;
	font-size: 12px;
	line-height: 1.2;
	min-height: 2.4em;
	white-space: normal;
	overflow: visible;
	text-overflow: clip;
	word-break: break-word;
}
@media (max-width: 640px) {
	body.simple-gallery .grid {
		justify-content: center;
	}
	body.simple-gallery .card {
		width: min(100%, 220px);
		flex-basis: min(100%, 220px);
	}
}
