:root {
--gold-gradient: linear-gradient(135deg, #C49423 0%, #F4DF9E 50%, #C79436 100%);
 --red-accent: #cc2222;
}
@font-face {
    font-family: 'Lato';
    src: url('../../assets/fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
#gallery {margin: 0px 0px 50px 0px;float: left;width: 100%;}
.img-wrapper {position: relative;margin: 10px 0px;border: 5px solid #fff; box-shadow: 2px 2px 2px 2px #ccc;}
.img-wrapper video{width:100%;object-fit: cover;}
.img-wrapper img {width: 100%;}
.img-overlay {background: rgba(0, 0, 0, 0.7);width: 100%;height: 100%;position: absolute;top: 0;left: 0;display: flex;justify-content: center;align-items: center;opacity: 0;}
.img-overlay i {color: #fff;font-size: 3em;}
#overlay {background: rgba(0, 0, 0, 0.7);width: 100%;height: 100%;position: fixed;top: 0;left: 0;display: flex;justify-content: center;align-items: center;z-index: 9999;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;}
#overlay img {margin: 0;width: 80%;/*height: calc(100% - 100px);*/height:auto;-o-object-fit: cover;object-fit: cover;margin: 5%;border: 5px solid #fff;}

@media screen and (min-width: 768px) {
#overlay img {width: 60%;}
}

@media screen and (min-width: 1200px) {
#overlay img {width: 60%;}
}

#nextButton {color: #fff;font-size: 2em;transition: opacity 0.8s;}
#nextButton:hover {opacity: 0.7;}

@media screen and (min-width: 768px) {
#nextButton {font-size: 2em;}
}

#prevButton {color: #fff;font-size: 2em;transition: opacity 0.8s;}
#prevButton:hover {opacity: 0.7;}

@media screen and (min-width: 768px) {
#prevButton {font-size: 2em;}
}

#exitButton {color: #fff;font-size: 2em;transition: opacity 0.8s;position: absolute;top: 15px;right: 15px;}
#exitButton:hover {opacity: 0.7;}

@media screen and (min-width: 768px) {
#exitButton {font-size: 2em;}  
}

#gallery {
	float: none;
	margin: 0;
	background:var(--gold-gradient);
}

#image-gallery > .container,
#image-gallery .gradient-tab > .container {
	width: min(1180px, calc(100% - 40px));
	max-width: 100%;
	margin: 0 auto;
	padding: 0;
}

.gradient-tab {
	padding: 24px 0;
}

#myTabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#myTabs li {
	margin: 0;
}

#myTabs a {
	display: block;
	padding: 10px 30px;
	color: #222;
	font-size: 14px;
	line-height: 1.35;
	text-decoration: none;border-radius:6px;
	transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}


#myTabs a.active {
	border-color: var(--red-accent);
	background-color: var(--red-accent);
	color: #fff;
}

#image-gallery .tab-content {
	padding: 26px 0 48px;
}

#image-gallery .tab-pane {
	display: none;
}

#image-gallery .tab-pane.active {
	display: block;
}

#image-gallery .tab-pane:not(#video-event) > .row {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin: 0;
}

#image-gallery .tab-pane > .row > .image {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}

#image-gallery .img-wrapper {
	position: relative;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border: 4px solid #fff;
	background: #eceff1;
	box-shadow: 0 2px 8px rgb(20 28 36 / 16%);
}

#image-gallery .img-wrapper a {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

#image-gallery .img-wrapper img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

#image-gallery .img-wrapper:hover img {
	transform: scale(1.04);
}

#image-gallery .img-overlay {
	cursor: zoom-in;
	opacity: 0;
	transition: opacity 160ms ease;
}

#image-gallery .img-wrapper:hover .img-overlay,
#image-gallery .img-wrapper:focus-within .img-overlay {
	opacity: 1;
}

.vid-slider,
.vid-wrapper {
	width: 100%;
}

.vid-wrapper {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
	padding: 0;
	text-align: left;
	box-sizing: border-box;
}

.vid-wrapper > div {
	float: none;
	width: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
}

.videoevent-cardbox {
	display: flex;
	height: 100%;
	min-height: 0;
	flex-direction: column;
	padding: 0;
	overflow: hidden;
	border: 1px solid #e0e2e5;
	background: #fff;
	box-shadow: 0 2px 9px rgb(20 28 36 / 12%);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.videoevent-cardbox:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgb(20 28 36 / 18%);
}

.videoevent-cardbox .card-image {
	position: relative;
	float: none;
	width: 100%;
	max-height: none;
	overflow: hidden;
	background: #111;
	aspect-ratio: 16 / 9;
	box-sizing: border-box;
}

.video-card-trigger {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: #111;
	cursor: pointer;
}

.video-card-trigger img,
.video-card-trigger video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.video-card-trigger video {
	min-height: 0;
}

.video-card-play {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(transparent, rgb(0 0 0 / 15%));
	color: #fff;
	font-size: 44px;
	text-shadow: 0 2px 8px rgb(0 0 0 / 60%);
}

.videoevent-cardbox .card-content {
	flex: 1;
	padding: 15px 17px;
}

.videoevent-cardbox .card-content p {
	margin: 0;
	color: #222;
	font-size: 15px;
	line-height: 1.55;
}

.gallery-lightbox[hidden] {
	display: none;
}

.gallery-lightbox {
	position: fixed;
	z-index: 10000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 54px 72px;
	background: rgb(0 0 0 / 88%);
}

.gallery-lightbox__content {
	display: flex;
	width: min(1100px, 100%);
	max-height: 100%;
	align-items: center;
	justify-content: center;
}

.gallery-lightbox__content img,
.gallery-lightbox__content video,
.gallery-lightbox__content iframe {
	display: block;
	width: 100%;
	max-height: calc(100vh - 108px);
	border: 0;
	object-fit: contain;
}

.gallery-lightbox__content iframe {
	aspect-ratio: 16 / 9;
	height: auto;
}

.gallery-lightbox__button {
	position: absolute;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 14%);
	color: #fff;
	font-size: 25px;
	cursor: pointer;
}

.gallery-lightbox__button:hover {
	background: rgb(255 255 255 / 28%);
}

.gallery-lightbox__close {
	top: 16px;
	right: 18px;
}

.gallery-lightbox__previous {
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
}

.gallery-lightbox__next {
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
}

.gallery-lightbox.is-video .gallery-lightbox__previous,
.gallery-lightbox.is-video .gallery-lightbox__next {
	display: none;
}

body.gallery-modal-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	#image-gallery .tab-pane:not(#video-event) > .row {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vid-wrapper {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 620px) {
	#image-gallery > .container,
	#image-gallery .gradient-tab > .container {
		width: calc(100% - 28px);
	}

	#myTabs {
		justify-content: flex-start;
		gap: 7px;
	}

	#myTabs a {
		padding: 9px 12px;
		font-size: 13px;
	}

	#image-gallery .tab-pane:not(#video-event) > .row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.vid-wrapper {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.gallery-lightbox {
		padding: 54px 14px;
	}

	.gallery-lightbox__button {
		width: 38px;
		height: 38px;
		font-size: 21px;
	}

	.gallery-lightbox__previous {
		left: 6px;
	}

	.gallery-lightbox__next {
		right: 6px;
	}
}