.dertrip-gallery {
	--dertrip-gallery-ink: #172033;
	--dertrip-gallery-muted: #5d6878;
	--dertrip-gallery-line: rgba(23, 32, 51, 0.12);
	--dertrip-gallery-stage: #eef2f4;
	--dertrip-gallery-accent: #1f4b99;
	display: flow-root;
	clear: both;
	max-width: 920px;
	color: var(--dertrip-gallery-ink);
	font-family: inherit;
}

.dertrip-gallery button,
.dertrip-gallery button:hover,
.dertrip-gallery button:focus,
.dertrip-gallery button:active {
	appearance: none;
	-webkit-appearance: none;
	margin: 0;
	padding: 0 !important;
	border: 0;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none;
	color: inherit;
	line-height: 1;
	min-height: 0;
	min-width: 0;
	text-shadow: none;
	text-indent: 0;
}

.dertrip-gallery__stage {
	position: relative;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 0;
	background: #f4f5f7 !important;
	box-shadow: 0 18px 40px rgba(23, 32, 51, 0.12);
}

.dertrip-gallery__image {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: contain;
	background: transparent !important;
}

.dertrip-gallery__open {
	position: absolute;
	inset: 0;
	z-index: 1;
	cursor: zoom-in;
}

.dertrip-gallery__nav,
.dertrip-gallery-lightbox__nav,
.dertrip-gallery-lightbox__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	cursor: pointer;
}

.dertrip-gallery button.dertrip-gallery__nav,
.dertrip-gallery button.dertrip-gallery__nav:hover,
.dertrip-gallery button.dertrip-gallery__nav:focus,
.dertrip-gallery button.dertrip-gallery__nav:active {
	position: absolute;
	top: 50%;
	z-index: 2;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 26px !important;
	background-color: #405472 !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 22px 22px !important;
	box-shadow: 0 8px 18px rgba(30, 41, 59, 0.22);
	color: #fff !important;
	overflow: visible;
}

.dertrip-gallery button.dertrip-gallery__nav.is-prev {
	left: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M11 18l-6-6 6-6'/%3E%3C/svg%3E") !important;
}

.dertrip-gallery button.dertrip-gallery__nav.is-next {
	right: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") !important;
}

.dertrip-gallery__nav::before {
	content: none;
}

.dertrip-gallery-lightbox__nav::before {
	content: none;
}

.dertrip-gallery__counter {
	position: absolute;
	right: 14px;
	bottom: 14px;
	z-index: 2;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(23, 32, 51, 0.72);
	color: #fff;
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: 0.02em;
	pointer-events: none;
}

.dertrip-gallery__strip {
	display: flex;
	align-items: flex-start;
	gap: 0;
	width: 100%;
	margin-top: 14px;
	clear: both;
}

.dertrip-gallery__thumbs {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	overflow: hidden;
}

.dertrip-gallery__track {
	display: flex;
	align-items: flex-start;
	flex-wrap: nowrap;
	gap: 14px;
	width: 100%;
	transition: transform 0.28s ease;
}

.dertrip-gallery button.dertrip-gallery__strip-nav,
.dertrip-gallery button.dertrip-gallery__strip-nav:hover,
.dertrip-gallery button.dertrip-gallery__strip-nav:focus,
.dertrip-gallery button.dertrip-gallery__strip-nav:active {
	display: none;
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 26px !important;
	background-color: #405472 !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 22px 22px !important;
	box-shadow: 0 8px 18px rgba(30, 41, 59, 0.22);
	color: #fff !important;
	cursor: pointer;
	overflow: visible;
	align-self: center;
}

.dertrip-gallery__strip.is-paged .dertrip-gallery__strip-nav {
	display: inline-flex;
}

.dertrip-gallery button.dertrip-gallery__strip-nav.is-prev,
.dertrip-gallery button.dertrip-gallery__strip-nav.is-prev:hover,
.dertrip-gallery button.dertrip-gallery__strip-nav.is-prev:focus,
.dertrip-gallery button.dertrip-gallery__strip-nav.is-prev:active {
	margin-right: -15px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M11 18l-6-6 6-6'/%3E%3C/svg%3E") !important;
}

.dertrip-gallery button.dertrip-gallery__strip-nav.is-next,
.dertrip-gallery button.dertrip-gallery__strip-nav.is-next:hover,
.dertrip-gallery button.dertrip-gallery__strip-nav.is-next:focus,
.dertrip-gallery button.dertrip-gallery__strip-nav.is-next:active {
	margin-left: -15px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") !important;
}

.dertrip-gallery__strip-nav[hidden] {
	display: none !important;
}

.dertrip-gallery__strip-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.dertrip-gallery__strip-nav::before {
	content: none;
}

.dertrip-gallery__thumb {
	position: relative;
	display: block !important;
	flex: 0 0 calc((100% - 42px) / 4);
	width: calc((100% - 42px) / 4);
	height: auto !important;
	min-height: unset !important;
	max-height: none !important;
	overflow: hidden;
	border: 0 !important;
	border-radius: 0;
	background: #fff !important;
	background-color: #fff !important;
	box-shadow: 0 8px 22px rgba(23, 32, 51, 0.08);
	cursor: pointer;
}

.dertrip-gallery__thumbs[data-count="1"] .dertrip-gallery__thumb {
	flex-basis: 100%;
	width: 100%;
}

.dertrip-gallery__thumbs[data-count="2"] .dertrip-gallery__thumb {
	flex-basis: calc((100% - 14px) / 2);
	width: calc((100% - 14px) / 2);
}

.dertrip-gallery__thumbs[data-count="3"] .dertrip-gallery__thumb {
	flex-basis: calc((100% - 28px) / 3);
	width: calc((100% - 28px) / 3);
}

.dertrip-gallery__frame {
	display: block;
	position: relative;
	width: 100%;
	height: 0 !important;
	margin: 0;
	padding: 0 0 75% 0 !important;
	box-sizing: content-box !important;
	overflow: hidden;
	line-height: 0;
	pointer-events: none;
}

.dertrip-gallery__thumb img {
	position: absolute !important;
	inset: 0;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	float: none !important;
	border: 0;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none;
}

.elementor-element.elementor-widget.dertrip-gallery-shortcode,
.elementor-element.elementor-widget:has(.dertrip-gallery) {
	--flex-wrap: nowrap !important;
	flex-wrap: nowrap !important;
	height: auto;
	min-height: auto;
	align-content: stretch;
}

@media (max-width: 767px) {
	.elementor-element.e-con:has(> .elementor-element.dertrip-gallery-shortcode),
	.elementor-element.e-con:has(> .e-con-inner > .elementor-element.dertrip-gallery-shortcode),
	.e-con-inner:has(> .elementor-element.dertrip-gallery-shortcode) {
		--flex-wrap: nowrap !important;
		flex-wrap: nowrap !important;
	}
}

.elementor-element:has(.dertrip-gallery) > .elementor-widget-container,
.elementor-widget-container:has(.dertrip-gallery),
.elementor-shortcode:has(.dertrip-gallery) {
	display: flow-root;
	height: auto;
	max-height: none;
	overflow: visible;
}

.dertrip-gallery.is-single .dertrip-gallery__nav,
.dertrip-gallery.is-single .dertrip-gallery__counter,
.dertrip-gallery.is-single .dertrip-gallery__strip,
.dertrip-gallery-lightbox.is-single .dertrip-gallery-lightbox__nav {
	display: none;
}

.dertrip-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

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

.dertrip-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 14, 20, 0.88);
	backdrop-filter: blur(6px);
}

.dertrip-gallery-lightbox__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(1100px, 100%);
	max-height: 100%;
}

.dertrip-gallery-lightbox__figure {
	margin: 0;
	max-width: 100%;
}

.dertrip-gallery-lightbox__image {
	display: block;
	max-width: min(1100px, 92vw);
	max-height: min(78vh, calc(100vh - 160px));
	width: auto;
	height: auto;
	margin: 0 auto;
	border-radius: 0;
	background: #111;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.dertrip-gallery-lightbox__caption {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.dertrip-gallery-lightbox__toolbar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-top: 16px;
}

.dertrip-gallery-lightbox__counter {
	margin: 0;
	min-width: 4.5em;
	color: rgba(255, 255, 255, 0.78);
	font-size: 13px;
	text-align: center;
}

.dertrip-gallery button.dertrip-gallery-lightbox__nav,
.dertrip-gallery button.dertrip-gallery-lightbox__nav:hover,
.dertrip-gallery button.dertrip-gallery-lightbox__nav:focus,
.dertrip-gallery button.dertrip-gallery-lightbox__nav:active {
	position: static;
	top: auto;
	left: auto;
	right: auto;
	z-index: 2;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 26px !important;
	background-color: #405472 !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 22px 22px !important;
	box-shadow: 0 8px 18px rgba(30, 41, 59, 0.22);
	color: #fff !important;
}

.dertrip-gallery button.dertrip-gallery-lightbox__nav.is-prev,
.dertrip-gallery button.dertrip-gallery-lightbox__nav.is-prev:hover,
.dertrip-gallery button.dertrip-gallery-lightbox__nav.is-prev:focus,
.dertrip-gallery button.dertrip-gallery-lightbox__nav.is-prev:active {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='M11 18l-6-6 6-6'/%3E%3C/svg%3E") !important;
}

.dertrip-gallery button.dertrip-gallery-lightbox__nav.is-next,
.dertrip-gallery button.dertrip-gallery-lightbox__nav.is-next:hover,
.dertrip-gallery button.dertrip-gallery-lightbox__nav.is-next:focus,
.dertrip-gallery button.dertrip-gallery-lightbox__nav.is-next:active {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M13 6l6 6-6 6'/%3E%3C/svg%3E") !important;
}

.dertrip-gallery-lightbox__close {
	position: fixed;
	z-index: 5;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border: 0 !important;
	border-radius: 999px;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: #fff !important;
	box-shadow: none;
}

.dertrip-gallery-lightbox__close {
	top: 16px;
	right: 16px;
	font-size: 0;
	line-height: 0;
}

.dertrip-gallery-lightbox__close::before,
.dertrip-gallery-lightbox__close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 34px;
	height: 3px;
	border-radius: 2px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.dertrip-gallery-lightbox__close::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.dertrip-gallery-lightbox__close::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.dertrip-gallery-lightbox.is-single .dertrip-gallery-lightbox__nav {
	display: none !important;
}

body.dertrip-gallery-lock {
	overflow: hidden;
}

@media (min-width: 700px) {
	.dertrip-gallery button.dertrip-gallery__nav,
	.dertrip-gallery button.dertrip-gallery__nav:hover,
	.dertrip-gallery button.dertrip-gallery__nav:focus,
	.dertrip-gallery button.dertrip-gallery__nav:active {
		width: 30px;
		height: 30px;
		margin-top: -15px;
		background-size: 24px 24px !important;
	}
}

@media (max-width: 640px) {
	.dertrip-gallery button.dertrip-gallery__nav {
		width: 30px;
		height: 30px;
		margin-top: -15px;
		background-size: 22px 22px !important;
	}

	.dertrip-gallery__track {
		gap: 10px;
	}

	.dertrip-gallery__thumb {
		flex-basis: calc((100% - 30px) / 4);
		width: calc((100% - 30px) / 4);
	}

	.dertrip-gallery__thumbs[data-count="2"] .dertrip-gallery__thumb {
		flex-basis: calc((100% - 10px) / 2);
		width: calc((100% - 10px) / 2);
	}

	.dertrip-gallery__thumbs[data-count="3"] .dertrip-gallery__thumb {
		flex-basis: calc((100% - 20px) / 3);
		width: calc((100% - 20px) / 3);
	}

	.dertrip-gallery-lightbox {
		padding: 16px 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dertrip-gallery__image,
	.dertrip-gallery__thumb,
	.dertrip-gallery__track {
		transition: none;
	}
}
