body#gallery {
	background-color: #fff;
	color: #63666A;
}

.gallery-wrap,
.gallery-wrap *,
.gallery-lightbox,
.gallery-lightbox * {
	box-sizing: border-box;
}

.gallery-jump {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	max-width: var(--gallery-max, 1100px);
	margin: 0 auto;
	padding: 22px 20px 0;
}

.gallery-jump a {
	flex: 1 1 140px;
	max-width: 220px;
	min-width: 0;
	display: block;
	padding: 10px 18px;
	background-color: #4CAF50;
	color: #fff;
	text-align: center;
	text-decoration: none;
	font-size: 18px;
}

.gallery-jump a:hover,
.gallery-jump a:focus {
	background-color: #3d8b40;
	color: #fff;
}

.gallery-section {
	scroll-margin-top: 12px;
}

.gallery-section-winter {
	background-color: #f9f9f9;
	border-top: 10px solid rgba(40, 33, 29, 0.75);
}

.gallery-section-head {
	max-width: var(--gallery-max, 1100px);
	margin: 0 auto;
	padding: 28px 20px 12px;
}

.gallery-section-head h2 {
	margin: 0;
}

.gallery-section-head h2 a {
	color: #4CAF50;
	text-decoration: none;
}

.gallery-section-head h2 a:hover,
.gallery-section-head h2 a:focus {
	color: #3d8b40;
	text-decoration: underline;
}

.gallery-section-head p {
	margin: 10px 0 0;
	font-size: 18px;
	line-height: 1.4;
	color: #63666A;
}

/* Uniform crop tiles: every photo shares one frame size so mixed
   originals never sit side-by-side at unequal heights. Full photos
   stay available in the lightbox. */
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	align-items: stretch;
	max-width: var(--gallery-max, 1100px);
	margin: 0 auto;
	padding: 8px 20px 48px;
}

@media only screen and (min-width: 2000px) {
	:root {
		--gallery-max: 1320px;
	}
}

.shot {
	margin: 0;
	position: relative;
	overflow: hidden;
	background-color: #28211d;
	aspect-ratio: 4 / 3;
}

.shot a {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 1;
	color: inherit;
	text-decoration: none;
}

.shot a:focus {
	outline: 3px solid #4CAF50;
	outline-offset: -3px;
}

.shot img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transform: scale(1);
	transition: transform 280ms ease;
}

.shot figcaption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	margin: 0;
	padding: 36px 14px 12px;
	color: #fff;
	font-size: 15px;
	line-height: 1.35;
	pointer-events: none;
	background: linear-gradient(to top, rgba(40, 33, 29, 0.9) 0%, rgba(40, 33, 29, 0.4) 60%, rgba(40, 33, 29, 0) 100%);
}

.shot:hover img,
.shot:focus-within img {
	transform: scale(1.04);
}

@media (hover: none) {
	.shot img {
		transition: none;
	}

	.shot:hover img,
	.shot:focus-within img {
		transform: none;
	}
}

.gallery-lightbox {
	border: none;
	padding: 12px 12px 16px;
	width: min(1000px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	max-height: calc(100dvh - 24px);
	background: #fff;
}

.gallery-lightbox::backdrop {
	background: rgba(40, 33, 29, 0.88);
}

.gallery-lightbox-bar {
	margin: 0 0 8px;
	padding: 0;
}

.gallery-lightbox-close {
	display: block;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: none;
	background-color: #4CAF50;
	color: #fff;
	font-family: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus {
	background-color: #3d8b40;
}

.gallery-lightbox img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 160px);
	max-height: calc(100dvh - 160px);
	margin: 0 auto;
}

.gallery-lightbox p {
	text-align: center;
	font-size: 16px;
	margin-bottom: 0;
}

@media only screen and (max-width: 1000px) {
	.gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 500px) {
	.gallery-grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.gallery-jump a {
		flex-basis: 100%;
		max-width: none;
	}

	.gallery-lightbox {
		width: calc(100vw - 16px);
		padding: 8px 8px 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.shot img {
		transition: none;
	}

	.shot:hover img,
	.shot:focus-within img {
		transform: none;
	}
}
