/* =========================================================
   Carousel Widget
   ========================================================= */

.carousel-widget {
	width: 100%;
	position: relative;
	box-sizing: border-box;
}

.carousel-widget *,
.carousel-widget *::before,
.carousel-widget *::after {
	box-sizing: border-box;
}


/* =========================================================
   Header
   ========================================================= */

.carousel-widget .carousel-widget__header {
	width: 100%;
	max-width: 1000px;
	margin: 0 auto 35px;
	text-align: center;
}

.carousel-widget .carousel-widget__heading {
	margin: 0 0 14px;
	padding: 0;
	line-height: 1.2;
	font-weight: 600;

	color: #222;
}

.carousel-widget .carousel-widget__description {
	font-size: 18px;
	line-height: 1.5;
	color: #6a6a6a;
}


/* =========================================================
   Main Carousel - 3D Coverflow
   ========================================================= */

.carousel-widget .carousel-widget__carousel {
    position: relative;
    width: 100%;
    overflow: hidden;

    /*
     * Gives the 3D effect enough vertical/horizontal space.
     */
    perspective: 1400px;
}

.carousel-widget .carousel-widget__swiper {
    width: 100%;
    overflow: visible;
    perspective: 1400px;
}

.carousel-widget .carousel-widget__swiper .swiper-wrapper {
    align-items: center;
    transform-style: preserve-3d;
}

.carousel-widget .carousel-widget__swiper .swiper-slide {
    height: auto;
    transform-style: preserve-3d;

    /*
     * Do NOT add transform here.
     * Swiper's coverflow effect controls it.
     */

    transition:
        all 500ms ease,
        filter 500ms ease;
}

/*
 * Center slide
 */
.carousel-widget
.carousel-widget__swiper
.swiper-slide-active {
    z-index: 3;
    opacity: 1;
    filter: none;
}

/*
 * Side slides
 */
.carousel-widget
.carousel-widget__swiper
.swiper-slide-prev,
.carousel-widget
.carousel-widget__swiper
.swiper-slide-next {
    opacity: 0.75;
}

/*
 * Slides further away from the active slide
 */
.carousel-widget
.carousel-widget__swiper
.swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) {
    opacity: 0.35;
}


/* =========================================================
   Slide
   ========================================================= */

.carousel-widget .carousel-widget__slide {
	width: 100%;
}

.carousel-widget .carousel-widget__slide-image {
	width: 100%;
	aspect-ratio: 16 / 9;

	overflow: hidden;

	border-radius: 15px;

	background: #f1f1f1;
}

.carousel-widget .carousel-widget__slide-image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}


/* =========================================================
   Caption
   ========================================================= */

.carousel-widget .carousel-widget__caption {
	margin-top: 14px;

	font-size: 20px;
	line-height: 1.4;
	font-weight: 600;
	text-align: center;

	color: #222;
}


/* =========================================================
   Arrows
   ========================================================= */

.carousel-widget .carousel-widget__arrow {
	position: absolute;
	top: 50%;
	z-index: 5;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;

	margin: 0;
	padding: 0;

	border: 0;
	border-radius: 50%;

	background: #fff;
	color: #222;

	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);

	transform: translateY(-50%);

	cursor: pointer;

	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.carousel-widget .carousel-widget__arrow span {
	font-size: 0px;
	line-height: 1;
}

.carousel-widget .carousel-widget__arrow--prev {
	left: 15px;
}

.carousel-widget .carousel-widget__arrow--next {
	right: 15px;
}

.carousel-widget .carousel-widget__arrow:hover {
	background: #f5f5f5;
}


/* =========================================================
   Load More Button
   ========================================================= */

.carousel-widget .carousel-widget__button-wrap {
	display: flex;
	justify-content: center;

	margin-top: 32px;
}

.carousel-widget .carousel-widget__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 28px;
	border: 1px solid #006CB3;
	border-radius: 8px;

	background: #006CB3;
	color: #fff;

	font-family: inherit;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 600;

	cursor: pointer;

	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		border-color 0.2s ease;
}

.carousel-widget .carousel-widget__button:hover {
	background: #fff;
	color: #222;
}


/* =========================================================
   Modal Overlay
   ========================================================= */

.carousel-widget .carousel-widget__modal {
	position: fixed;

	inset: 0;

	z-index: 999999;

	display: none;
	align-items: center;
	justify-content: center;

	width: 100%;
	height: 100%;

	padding: 30px;

	background: rgba(0, 0, 0, 0.45);

	box-sizing: border-box;
}

.carousel-widget .carousel-widget__modal.is-open {
	display: flex;
}


/* =========================================================
   Modal Inner
   ========================================================= */

.carousel-widget .carousel-widget__modal-inner {
	position: relative;

	width: 100%;
	max-width: 1167px;

	height: calc(100vh - 60px);
	max-height: 950px;

	overflow: hidden;

	border-radius: 16px;

	background: #fff;

	box-sizing: border-box;

	display: flex;
	flex-direction: column;
}


/* =========================================================
   Modal Header
   ========================================================= */

.carousel-widget .carousel-widget__modal-header {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;

	flex: 0 0 auto;

	padding: 16.5px 70px;

	box-sizing: border-box;
}

.carousel-widget .carousel-widget__modal-heading {
	margin: 0;
	padding: 0;

	font-size: 20px;
	line-height: 1.2;
	font-weight: 600;

	color: #222;

	text-align: center;
}


/* =========================================================
   Modal Close
   ========================================================= */

.carousel-widget__modal .carousel-widget__modal-close {
	position: absolute;

	top: 50%;
	right: 25px;

	display: flex;
	align-items: center;
	justify-content: center;

	width: 42px;
	height: 42px;

	margin: 0;
	padding: 0;

	border: 0;

	background: transparent;

	color: #222;

	font-family: inherit;
	font-size: 36px;
	line-height: 1;
	font-weight: 300;

	transform: translateY(-50%);

	cursor: pointer;

	transition: color 0.2s ease;
}

.carousel-widget__modal .carousel-widget__modal-close:focus {
	background-color: transparent;
}

.carousel-widget__modal .carousel-widget__modal-close:hover {
	color: #6a6a6a;
	background-color: transparent;
}


/* =========================================================
   Modal Tabs
   ========================================================= */

.carousel-widget .carousel-widget__modal-tabs {
	display: flex;
	align-items: stretch;

	flex: 0 0 auto;

	gap: 30px;

	width: calc(100% - 100px);

	margin: 0 auto;

	overflow-x: auto;

	scrollbar-width: none;

	box-sizing: border-box;
}

.carousel-widget .carousel-widget__modal-tabs::-webkit-scrollbar {
	display: none;
}


/* =========================================================
   Modal Tab
   ========================================================= */

.carousel-widget .carousel-widget__modal-tabs .carousel-widget__modal-tab {
	position: relative;

	flex: 0 0 auto;

	margin: 0;
	padding: 8px 8px 16px;

	border: 0;

	background: transparent;

	color: #6a6a6a;

	font-family: inherit;

	font-size: 14px;
	line-height: 1.2;
	font-weight: 500;

	white-space: nowrap;

	cursor: pointer;

	transition: color 0.2s ease;
}

.carousel-widget .carousel-widget__modal-tabs .carousel-widget__modal-tab::after {
	content: '';

	position: absolute;

	left: 0;
	right: 0;
	bottom: 0;

	height: 3px;

	background: transparent;
}

.carousel-widget .carousel-widget__modal-tabs .carousel-widget__modal-tab:hover {
	color: #222;
}

.carousel-widget .carousel-widget__modal-tabs .carousel-widget__modal-tab.is-active {
	color: #222;
}

.carousel-widget .carousel-widget__modal-tabs .carousel-widget__modal-tab.is-active::after {
	background: #006CB3;
}


/* =========================================================
   Separator
   ========================================================= */

.carousel-widget .carousel-widget__modal-separator {
	flex: 0 0 auto;

	width: calc(100% - 100px);

	height: 1px;

	margin: 0 auto;

	background: #ddd;
}


/* =========================================================
   Gallery Grid
   ========================================================= */

.carousel-widget .carousel-widget__modal-grid {
	display: grid;

	grid-template-columns: repeat(5, minmax(0, 1fr));

	align-content: start;

	gap: 20px;

	width: calc(100% - 100px);

	flex: 1 1 auto;

	min-height: 0;

	margin: 30px auto 0;

	padding-bottom: 30px;

	overflow-y: auto;

	box-sizing: border-box;

	scroll-behavior: smooth;
}


/* =========================================================
   Gallery Grid Item
   ========================================================= */

.carousel-widget .carousel-widget__modal-grid-item {
	display: block;

	width: 100%;

	aspect-ratio: 1.35 / 1;

	margin: 0;
	padding: 0;

	border: 0;
	border-radius: 10px;

	overflow: hidden;

	background: #f1f1f1;

	cursor: pointer;

	box-sizing: border-box;

	position: relative;
}

.carousel-widget .carousel-widget__modal-grid-item img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform 0.25s ease;
}

.carousel-widget .carousel-widget__modal-grid-item:hover img {
	transform: scale(1.03);
}

/* .carousel-widget .carousel-widget__modal-grid-item.is-active {
	outline: 3px solid #087dc1;
	outline-offset: -3px;
} */


/* =========================================================
   Hidden Filter Items
   ========================================================= */

.carousel-widget .carousel-widget__modal-grid-item.is-hidden {
	display: none;
}


/* =========================================================
   No Results
   ========================================================= */

.carousel-widget .carousel-widget__modal-grid.is-empty::before {
	content: 'No images found';

	grid-column: 1 / -1;

	display: flex;
	align-items: center;
	justify-content: center;

	min-height: 150px;

	color: #777;

	font-size: 16px;
}


/* =========================================================
   Body Lock
   ========================================================= */

body.hs-carousel-modal-open {
	overflow: hidden;
}


/* =========================================================
   Full Gallery 1
   ========================================================= */

.carousel-widget .carousel-widget__full-gallery-1 {
	width: 100%;
}

.carousel-widget .carousel-widget__gallery-header {
	margin-bottom: 30px;
}

.carousel-widget .carousel-widget__gallery-tabs {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.carousel-widget .carousel-widget__gallery-tab {
	position: relative;

	margin: 0;
	padding: 10px 0;

	border: 0;

	background: transparent;

	font-family: inherit;
	font-size: 17px;
	font-weight: 500;

	color: #666;

	cursor: pointer;
}

.carousel-widget .carousel-widget__gallery-tab.is-active {
	color: #222;
}

.carousel-widget .carousel-widget__gallery-grid {
	display: grid;

	grid-template-columns: repeat(4, minmax(0, 1fr));

	gap: 20px;
}

.carousel-widget .carousel-widget__gallery-grid-item {
	display: block;

	width: 100%;

	aspect-ratio: 1.35 / 1;

	padding: 0;

	border: 0;
	border-radius: 10px;

	overflow: hidden;

	background: #f1f1f1;

	cursor: pointer;
}

.carousel-widget .carousel-widget__gallery-grid-item img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform 0.25s ease;
}

.carousel-widget .carousel-widget__gallery-grid-item:hover img {
	transform: scale(1.03);
}


/* =========================================================
   Full Gallery 2
   ========================================================= */

.carousel-widget .carousel-widget__full-gallery-2 {
	width: 100%;
}

.carousel-widget .carousel-widget__viewer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;

	margin-bottom: 20px;
}

.carousel-widget .carousel-widget__back,
.carousel-widget .carousel-widget__close {
	border: 0;

	background: transparent;

	font-family: inherit;

	cursor: pointer;
}

.carousel-widget .carousel-widget__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;

	font-size: 16px;
}

.carousel-widget .carousel-widget__close {
	font-size: 30px;
	line-height: 1;
}

.carousel-widget .carousel-widget__viewer-tabs {
	display: flex;
	gap: 20px;

	margin-bottom: 25px;

	overflow-x: auto;

	scrollbar-width: none;
}

.carousel-widget .carousel-widget__viewer-tabs::-webkit-scrollbar {
	display: none;
}

.carousel-widget .carousel-widget__viewer-tab {
	flex: 0 0 auto;

	padding: 10px 0;

	border: 0;

	background: transparent;

	font-family: inherit;

	font-size: 16px;

	color: #666;

	cursor: pointer;
}

.carousel-widget .carousel-widget__viewer-tab.is-active {
	color: #222;
}

.carousel-widget .carousel-widget__viewer {
	position: relative;

	display: flex;
	align-items: center;
	justify-content: center;
}

.carousel-widget .carousel-widget__viewer-image {
	position: relative;

	width: 100%;
}

.carousel-widget .carousel-widget__viewer-image-item {
	display: none;

	width: 100%;
	height: auto;

	object-fit: contain;
}

.carousel-widget .carousel-widget__viewer-image-item.is-active {
	display: block;
}

.carousel-widget .carousel-widget__viewer-arrow {
	position: absolute;

	top: 50%;
	z-index: 2;

	width: 42px;
	height: 42px;

	border: 0;
	border-radius: 50%;

	background: #fff;

	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);

	transform: translateY(-50%);

	cursor: pointer;
}

.carousel-widget .carousel-widget__viewer-arrow--prev {
	left: 15px;
}

.carousel-widget .carousel-widget__viewer-arrow--next {
	right: 15px;
}

.carousel-widget .carousel-widget__viewer-caption {
	display: flex;
	align-items: center;
	justify-content: space-between;

	gap: 20px;

	margin-top: 15px;
}

.carousel-widget .carousel-widget__current-caption {
	font-size: 16px;
	color: #222;
}

.carousel-widget .carousel-widget__counter {
	font-size: 14px;
	color: #777;
}

.carousel-widget .carousel-widget__thumbnails {
	display: flex;
	gap: 10px;

	margin-top: 20px;

	overflow-x: auto;

	scrollbar-width: none;
}

.carousel-widget .carousel-widget__thumbnails::-webkit-scrollbar {
	display: none;
}

.carousel-widget .carousel-widget__thumbnail {
	flex: 0 0 90px;

	width: 90px;
	height: 70px;

	padding: 0;

	border: 0;

	border-radius: 6px;

	overflow: hidden;

	background: #f1f1f1;

	cursor: pointer;
}

.carousel-widget .carousel-widget__thumbnail img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;
}

.carousel-widget .carousel-widget__thumbnail.is-active {
	outline: 3px solid #087dc1;
	outline-offset: -3px;
}

/* =========================================================
   Gallery Viewer
   ========================================================= */

.carousel-widget .carousel-widget__gallery-viewer {
    position: absolute;
    inset: 0;
    z-index: 20;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    padding: 0;

    background: #fff;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.carousel-widget .carousel-widget__gallery-viewer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* =========================================================
   Viewer Header
   ========================================================= */

.carousel-widget .carousel-widget__gallery-viewer-header {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    flex: 0 0 auto;

    padding: 14px 20px;
}

.carousel-widget .carousel-widget__gallery-viewer-heading {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
}

.carousel-widget .carousel-widget__gallery-viewer-back,
.carousel-widget .carousel-widget__gallery-viewer-close {
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
	color: #222;
	border-radius: 0;
}

.carousel-widget .carousel-widget__gallery-viewer-back {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 0;
    font-size: 16px;
    font-weight: 500;
	color: #222;
}

.carousel-widget .carousel-widget__gallery-viewer-back span {
    font-size: 34px;
    line-height: 0.7;
}

.carousel-widget .carousel-widget__gallery-viewer-close {
    padding: 0;

    font-size: 36px;
    line-height: 1;
    font-weight: 300;
}


/* =========================================================
   Main Viewer
   ========================================================= */

.carousel-widget .carousel-widget__gallery-viewer-main {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 1 1 auto;

    min-height: 0;

    margin-top: 5px;
}

.carousel-widget .carousel-widget__gallery-viewer-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
	max-width: 80%;

    min-height: 0;
}

.carousel-widget .carousel-widget__gallery-viewer-image-item {
    display: none;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: cover;

    border-radius: 15px;
}

.carousel-widget
.carousel-widget__gallery-viewer-image-item.is-active {
    display: block;
}


/* =========================================================
   Viewer Arrows
   ========================================================= */

.carousel-widget .carousel-widget__gallery-viewer-arrow {
    position: absolute;

    top: 50%;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    padding: 0;

    border: 1px solid #C0CBD7;
    border-radius: 50%;

    background: #fff;
    color: #222;

    font-size: 38px;
    line-height: 1;

    transform: translateY(-50%);

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.carousel-widget .carousel-widget__gallery-viewer-arrow:hover {
    background: #f5f5f5;
}

.carousel-widget .carousel-widget__gallery-viewer-arrow--prev {
    left: 40px;
}

.carousel-widget .carousel-widget__gallery-viewer-arrow--next {
    right: 40px;
}


/* =========================================================
   Caption / Counter
   ========================================================= */

.carousel-widget .carousel-widget__gallery-viewer-caption {
    display: flex;
    align-items: center;
    justify-content: center;
	flex-direction: column;

    position: relative;

    flex: 0 0 auto;

    min-height: 65px;

    padding: 10px 80px;
}

.carousel-widget .carousel-widget__gallery-viewer-current-caption {
    font-size: 20px;
    line-height: 1.25;
    font-weight: 600;

    color: #222;

    text-align: center;
}

.carousel-widget .carousel-widget__gallery-viewer-counter {
    font-size: 12px;
    color: #6a6a6a;
}


/* =========================================================
   Thumbnails
   ========================================================= */

.carousel-widget .carousel-widget__gallery-viewer-thumbnails {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 20px;
    width: 100%;
    margin-top: 5px;
    padding: 34px 40px 24px;

    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    scrollbar-width: none;
}

.carousel-widget .carousel-widget__gallery-viewer-thumbnails::-webkit-scrollbar {
    display: none;
}

.carousel-widget .carousel-widget__gallery-viewer-thumbnail {
    flex: 0 0 160px;

    width: 160px;
    height: 90px;

    padding: 0;

    border: 0;
    border-radius: 10px;

    overflow: hidden;

    background: #f1f1f1;

    cursor: pointer;

    opacity: 0.6;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.carousel-widget .carousel-widget__gallery-viewer-thumbnail:hover {
    opacity: 0.8;
}

.carousel-widget .carousel-widget__gallery-viewer-thumbnail.is-active {
    opacity: 1;
    outline: 2px solid #006CB3;
    outline-offset: -2px;
}

.carousel-widget .carousel-widget__gallery-viewer-thumbnail img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   Tablet
   ========================================================= */

@media (max-width: 1024px) {

	.carousel-widget .carousel-widget__modal-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.carousel-widget .carousel-widget__modal-tabs {
		gap: 20px;
	}

	.carousel-widget .carousel-widget__gallery-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {

	.carousel-widget .carousel-widget__header {
		margin-bottom: 25px;
	}

	.carousel-widget .carousel-widget__description {
		font-size: 16px;
	}

	.carousel-widget .carousel-widget__arrow {
		width: 38px;
		height: 38px;
	}

	.carousel-widget .carousel-widget__arrow span {
		font-size: 26px;
	}

	.carousel-widget .carousel-widget__arrow--prev {
		left: 8px;
	}

	.carousel-widget .carousel-widget__arrow--next {
		right: 8px;
	}


	/* Modal */

	.carousel-widget .carousel-widget__modal {
		padding: 10px;
	}

	.carousel-widget .carousel-widget__modal-inner {
		height: calc(100vh - 20px);
		max-height: none;

		border-radius: 14px;
	}

	.carousel-widget .carousel-widget__modal-header {
		min-height: 65px;

		padding: 10px 55px 10px 20px;
	}

	.carousel-widget .carousel-widget__modal-heading {
		font-size: 21px;
	}

	.carousel-widget .carousel-widget__modal-close {
		right: 12px;

		width: 38px;
		height: 38px;

		font-size: 30px;
	}

	.carousel-widget .carousel-widget__modal-tabs {
		width: calc(100% - 30px);

		gap: 12px;
	}

	.carousel-widget .carousel-widget__modal-tab {
		padding: 12px 8px 16px;

		font-size: 15px;
	}

	.carousel-widget .carousel-widget__modal-separator {
		width: calc(100% - 30px);
	}

	.carousel-widget .carousel-widget__modal-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));

		gap: 12px;

		width: calc(100% - 30px);

		margin-top: 20px;
		padding-bottom: 20px;
	}


	/* Full gallery */

	.carousel-widget .carousel-widget__gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.carousel-widget .carousel-widget__gallery-tabs {
		gap: 15px;
	}
}


/* =========================================================
   Small Mobile
   ========================================================= */

@media (max-width: 480px) {

	.carousel-widget .carousel-widget__modal-grid {
		gap: 8px;
	}

	.carousel-widget .carousel-widget__gallery-grid {
		gap: 8px;
	}

	.carousel-widget .carousel-widget__thumbnail {
		flex-basis: 75px;

		width: 75px;
		height: 60px;
	}
}