/* basic reset */
body,* { margin: 0; padding: 0; }
button::-moz-focus-inner { border: 0; padding: 0; }
input, textarea, select { font-family: inherit; }
input.no-appearance { -webkit-appearance: textfield; -moz-appearance: textfield; appearance: field; }
input.no-appearance::-webkit-inner-spin-button { -webkit-appearance: none; }
input.no-appearance::-webkit-outer-spin-button { -webkit-appearance: none; }

.full-width {
	width: 100%;
	height: auto;
	border-radius: var(--bs-border-radius);
}
.img-fit {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.li-sq {
	list-style: square;
}

.card-img-top {
	height: auto;
}

/*** gallery classic ***/
.gallery {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	margin: -5px;
}
.gallery a {
	display: block;
	text-decoration: none;
	margin: 5px;
	width: calc(50% - 10px);
}
.gallery img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--bs-border-radius);
}

/*** gallery grid ***/
.grid {
	margin: -5px;
}
.grid-item {
	position: relative;
	padding: 5px;
}
.grid-text,
.grid-item img {
	border-radius: var(--bs-border-radius);
}
.grid-text {
	position: absolute;
	bottom: 10px;
	left: 10px;
	right: 10px;
	padding: 10px;
	background: rgba(255, 255, 255, 0.2);
}
.grid-text :last-child {
	margin-bottom: 0;
}

/*** Slideshow ***/
.slider-block {
	position: relative;
}
.slider-frame {
	position: relative;
	overflow: hidden;
}
.slideshow {
	position: relative;
	z-index: 11;
	height: auto;
	width: 100%;
	overflow: hidden;
}
.slide {
	display: none;
	position: relative;
	z-index: 12;
	top: 0;
	left: 0;
	width: 100%;
	min-height: 300px;
}
.slide img {
	display: block;
	width: 100%;
	height: auto;
	min-height: 300px;
	object-fit: cover;
	border-radius: var(--bs-border-radius);
}
.slide.active {
	display: block;
	position: relative;
	z-index: 13;
}
.slide.slide-off {
	display: block;
	position: absolute;
	z-index: 11;
}

.slide-text {
	position: absolute;
	display: flex;
	flex-direction: column;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}

/*** modification for CSS only effect ***/
.slideshow-css .slide {
	height: 0;
	overflow: hidden;
	opacity: 0;
}
.slideshow-css .slide-show,
.slideshow-css .active {
	opacity: 1;
}
.slideshow-css .slide-hide {
	position: absolute;
	z-index: 11;
}
.slideshow-css .active,
.slideshow-css .slide-show,
.slideshow-css .slide-hide {
	height: auto;
	transition: opacity 1s ease-in-out;
}

.slider-pager {
	position: absolute;
	left: 0;
	bottom: 2%;
	z-index: 15;
	width: 100%;
	text-align: center;
}
.slider-pager button {
	display: inline-block;
	background: #333;;
	height: 12px;
	width: 12px;
	border-radius: 12px;
	border: none;
	margin: 0 5px 0 5px;
	outline: none;
}
.slider-pager button.active {
	background: #999;
}

/*** carousel ***/
.carousel-block {
	position: relative;
	margin: 0 -10px;
}
.carousel-window {
	position: relative;
	width: 100%;
	overflow: hidden;
}
.carousel-content {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	position: relative;
	top: 0;
	left: 0;
	height: 100%;
}
.carousel-content.carousel-nomination {
	transition: none !important;
	animation: none !important;
}
.carousel-content .card {
	margin: 0 10px;
}
.carousel-endless-box {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 100%;
}
.carousel-arrows button {
	position: absolute;
	top: calc(50% - 24px);
	width: 36px;
	height: 48px;
	background-repeat: no-repeat;
	background-position: center center;
	background-color: var(--bs-border-color-translucent);
	background-size: 26px 26px;
	border: none;
	border-radius: var(--bs-border-radius);
}
.carousel-arrows button:hover {
	background-color: var(--bs-tertiary-color);
}
.carousel-arrows button.carousel-arrows-left {
	left: 0;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='m11 2-6 6 6 6'/%3e%3c/svg%3e");
    background-position-x: 4px;
}
.carousel-arrows button.carousel-arrows-right {
	right: 0;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='m5 14 6-6-6-6'/%3e%3c/svg%3e");
    background-position-x: 7px;
}
.carousel-arrows button.disabled {
	opacity: 0.2;
}

/*** Gallery Box ***/
.gallery-box-all {
	display: none;
	position: absolute;
	top: 0;
	left: 0;
	margin: auto;
	z-index: 50;
	width: 100%;
	height: 100%;
}
.gallery-box-modal {
	position: fixed;
	top: 0;
	left: 0;
	margin: auto;
	z-index: 55;
	width: 100%;
	height: 100%;
	background-color: #000;
	opacity: 0.70;
}
.gallery-box {
	position: relative;
	top: 0;
	margin: 0;
	z-index: 60;
	text-align: center;
}
.gallery-box-content {
	position: relative;
	display: inline-block;
	padding: 10px 10px 5px 10px;
	margin: auto;
	background: #fff;
	border: none;
	color: #000;
	box-sizing: content-box;
}
.gallery-box-loading .gallery-box-image {
	height: 160px;
	width: 260px;
}
.gallery-box-loading .gallery-box-loader {
	position: absolute;
	top: calc(50% - 40px);
	left: calc(50% - 40px);
	width: 80px;
	height: 80px;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3e%3cpath d='m40 20c0 11-8.95 20-20 20-11 0-20-8.95-20-20s8.95-20 20-20v3.27c-9.24 0-16.7 7.46-16.7 16.7s7.46 16.7 16.7 16.7c9.2 0 16.7-7.46 16.7-16.7z' fill='%23aaa'/%3e%3cpath d='m20 0c11 0 20 8.95 20 20h-3.3c0-9.2-7.49-16.7-16.7-16.7z' fill='%23333'/%3e%3c/svg%3e");
	background-size: 100% 100%;;
	background-position: center center;
	background-repeat: no-repeat;
	animation: gallery-box-rotate 1s linear infinite;
}
.gallery-box-image img {
	display: block;
	position: relative;
	z-index: 62;
	height: 100%;
	width: 100%;
}
.gallery-box-title {
	margin: 0;
	padding: 5px 0 0 0;
}
.gallery-box .gallery-box-close,
.gallery-box .gallery-box-zoom,
.gallery-box .gallery-box-right,
.gallery-box .gallery-box-left {
	display: block;
	position: absolute;
	top: 0;
	z-index: 65;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center center;
	text-decoration: none;
	text-align: center;
	margin: 0;
	padding: 0;
	outline: none;
	border: none;
	cursor: pointer;
}
.gallery-box .gallery-box-close span,
.gallery-box .gallery-box-right span,
.gallery-box .gallery-box-left span {
	display: none;
}
.gallery-box a:hover {
	text-decoration: none;
}
.gallery-box .gallery-box-zoom {
	top: 30px;
	right: 40px;
	width: 80px;
	height: 80px;
	background-color: rgba(255, 255, 255, 0.4);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 494 494'%3e%3cg fill='none' stroke='%23000'%3e%3ccircle cx='170' cy='170' r='150' stroke-width='40'/%3e%3cpath d='m280 280 194 194' stroke-width='56'/%3e%3c/g%3e%3c/svg%3e");
	background-size: 42px 42px;
	opacity: 0.3;
	border-radius: 50px;
}
.gallery-box .gallery-box-zoom:hover {
	opacity: 1;
}
.gallery-box .gallery-box-close {
	right: 0;
	width: 32px;
	height: 32px;
	background-color: rgba(0, 0, 0, 0.5);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cg fill='none' stroke='%23eee' stroke-width='3'%3e%3cpath d='m1 1 14 14'/%3e%3cpath d='m1 15 14-14'/%3e%3c/g%3e%3c/svg%3e");
	background-size: 14px 14px;
	transition: 0.2s all linear;
}
.gallery-box .gallery-box-close:hover {
	background-size: 18px 18px;
}
.gallery-box .gallery-box-right,
.gallery-box .gallery-box-left {
	height: 100%;
	width: 30%;
}
.gallery-box .gallery-box-left {
	left: 0;
	background-position: left center;
}
.gallery-box .gallery-box-left:hover {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23eee' stroke-width='2' d='m11 2-6 6 6 6'/%3e%3c/svg%3e");
	background-size: 100px 100px;
}
.gallery-box .gallery-box-right {
	right: 0;
	background-position: right center;
}
.gallery-box .gallery-box-right:hover {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23eee' stroke-width='2' d='m5 14 6-6-6-6'/%3e%3c/svg%3e");
	background-size: 100px 100px;
}
@keyframes gallery-box-rotate {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

@media (min-width: 576px) {
	.grid {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
	}
	.grid-22 {
		grid-area: span 2 / span 2;
	}
	.grid-23 {
		grid-area: span 2 / span 3;
	}
	.grid-24 {
		grid-area: span 2 / span 4;
	}
	.grid-26 {
		grid-area: span 2 / span 6;
	}
	.grid-42 {
		grid-area: span 4 / span 2;
	}
	.grid-43 {
		grid-area: span 4 / span 3;
	}
	.grid-44 {
		grid-area: span 4 / span 4;
	}
	.grid-46 {
		grid-area: span 4 / span 6;
	}
	.grid-48 {
		grid-area: span 4 / span 8;
	}
	.grid-412 {
		grid-area: span 4 / span 12;
	}

	.carousel-arrows button.carousel-arrows-left {
		left: -10px;
	}
	.carousel-arrows button.carousel-arrows-right {
		right: -10px;
	}
}

@media (min-width: 768px) {
	.gallery a {
		width: calc(25% - 10px);
	}
}

@media (min-width: 992px) {
	.gallery,
	.grid {
		margin: -10px;
	}
	.grid-item {
		padding: 10px;
	}

	.gallery a {
		margin: 10px;
		width: calc(25% - 20px);
	}
}

@media (min-width: 1230px) {
	.gallery a {
		margin: 10px;
		width: calc(20% - 20px);
	}

	.carousel-arrows button.carousel-arrows-left {
		left: -36px;
	}
	.carousel-arrows button.carousel-arrows-right {
		right: -36px;
	}
}