.trattler-webcams {
	box-sizing: border-box;
	width: 100%;
}

.trattler-webcams *,
.trattler-webcams *::before,
.trattler-webcams *::after {
	box-sizing: border-box;
}

.trattler-webcams__heading,
.trattler-webcams__title {
	margin: 0;
}

.trattler-webcams__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

.trattler-webcams__item {
	min-width: 0;
}

.trattler-webcams__item--full {
	grid-column: 1 / -1;
}

.trattler-webcams__card {
	position: relative;
	overflow: hidden;
	background: #fff;
	isolation: isolate;
	transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 260ms ease;
}

.trattler-webcams__card:hover,
.trattler-webcams__card:focus-within {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(47, 47, 86, 0.10);
}

.trattler-webcams__media {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #f2f2f4;
}

.trattler-webcams__image-media {
	aspect-ratio: 16 / 9;
}

.trattler-webcams__image {
	display: block;
	width: 100%;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	object-position: center center;
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.trattler-webcams__iframe-media {
	height: var(--trattler-webcam-iframe-height, 480px);
	min-height: 180px;
	transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1), filter 260ms ease;
}

.trattler-webcams__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}

.trattler-webcams__card:hover .trattler-webcams__image,
.trattler-webcams__card:focus-within .trattler-webcams__image,
.trattler-webcams__card:hover .trattler-webcams__iframe-media,
.trattler-webcams__card:focus-within .trattler-webcams__iframe-media {
	transform: scale(1.012);
	filter: brightness(0.96);
}

.trattler-webcams__title-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	position: relative;
	z-index: 2;
}

.trattler-webcams__title {
	min-width: 0;
	color: #303058;
	line-height: 1.15;
}

.trattler-webcams__arrow {
	flex: 0 0 auto;
	font-size: 1.4em;
	line-height: 1;
	color: #c83f45;
	transition: transform 180ms ease;
}

.trattler-webcams__card:hover .trattler-webcams__arrow,
.trattler-webcams__card:focus-within .trattler-webcams__arrow {
	transform: translate(2px, -2px);
}

.trattler-webcams__lightbox-trigger {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: inherit;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #fff;
	cursor: zoom-in;
	appearance: none;
}

/* Prevent Elementor/theme button hover styles from painting the full webcam card. */
.trattler-webcams__lightbox-trigger:hover,
.trattler-webcams__lightbox-trigger:focus,
.trattler-webcams__lightbox-trigger:focus-visible,
.trattler-webcams__lightbox-trigger:active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
}

.trattler-webcams__lightbox-trigger::before {
	position: absolute;
	inset: 0;
	content: '';
	background: rgba(47, 47, 86, 0.20);
	opacity: 0;
	transition: opacity 220ms ease;
}

.trattler-webcams__lightbox-trigger:focus-visible {
	outline: 3px solid #c83f45;
	outline-offset: -3px;
}

.trattler-webcams__hover-icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 2px solid rgba(255, 255, 255, 0.92);
	border-radius: 50%;
	background: rgba(47, 47, 86, 0.42);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
	opacity: 0;
	transform: scale(0.88);
	transition: opacity 220ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), background 220ms ease;
}

.trattler-webcams__hover-icon svg {
	width: 20px;
	height: 20px;
}

.trattler-webcams__card:hover .trattler-webcams__lightbox-trigger::before,
.trattler-webcams__card:focus-within .trattler-webcams__lightbox-trigger::before {
	opacity: 1;
}

.trattler-webcams__card:hover .trattler-webcams__hover-icon,
.trattler-webcams__card:focus-within .trattler-webcams__hover-icon {
	opacity: 1;
	transform: scale(1);
}

.trattler-webcams__card:hover .trattler-webcams__hover-icon {
	background: rgba(47, 47, 86, 0.58);
}

.trattler-webcams-title-overlay .trattler-webcams__card {
	position: relative;
}

.trattler-webcams-title-overlay .trattler-webcams__item--link .trattler-webcams__title-wrap,
.trattler-webcams-title-overlay .trattler-webcams__item--image .trattler-webcams__title-wrap,
.trattler-webcams-title-overlay .trattler-webcams__item--iframe .trattler-webcams__title-wrap {
	position: absolute;
	inset: auto 0 0;
	z-index: 4;
	background: rgba(48, 48, 88, 0.88);
}

.trattler-webcams-title-overlay .trattler-webcams__title {
	color: #fff;
}

/* Global lightbox. It is appended to <body> by webcams.js to avoid clipping by Elementor containers. */
.trattler-webcam-lightbox {
	width: min(1180px, calc(100vw - 40px));
	max-width: 1180px;
	max-height: calc(100vh - 40px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #303058;
	overflow: visible;
}

.trattler-webcam-lightbox::backdrop {
	background: rgba(14, 14, 24, 0.86);
	backdrop-filter: blur(3px);
}

.trattler-webcam-lightbox__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	max-height: calc(100vh - 40px);
	background: #fff;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
	overflow: hidden;
}

.trattler-webcam-lightbox__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 14px 60px 14px 18px;
	background: #303058;
	color: #fff;
}

.trattler-webcam-lightbox__title {
	margin: 0;
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
	color: inherit;
}

.trattler-webcam-lightbox__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c83f45;
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.trattler-webcam-lightbox__close:hover,
.trattler-webcam-lightbox__close:focus-visible {
	background: #fff;
	color: #303058;
}

.trattler-webcam-lightbox__media {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: #111;
	overflow: auto;
}

.trattler-webcam-lightbox__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 150px);
	object-fit: contain;
}

.trattler-webcam-lightbox__iframe {
	display: block;
	width: min(1180px, 100%);
	height: min(76vh, 800px);
	border: 0;
	background: #fff;
}

.trattler-webcam-lightbox__footer {
	display: none;
	justify-content: flex-end;
	padding: 14px 18px;
	background: #fff;
}

.trattler-webcam-lightbox__external {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	background: #c83f45;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.trattler-webcam-lightbox__external:hover,
.trattler-webcam-lightbox__external:focus-visible {
	background: #303058;
	color: #fff;
}

@media (max-width: 767px) {
	.trattler-webcams__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.trattler-webcams__item--half,
	.trattler-webcams__item--full {
		grid-column: 1 / -1;
	}

	.trattler-webcams__iframe-media {
		height: min(var(--trattler-webcam-iframe-height, 480px), 70vh);
	}

	.trattler-webcams__title-wrap {
		gap: 12px;
		padding: 14px 16px;
	}

	.trattler-webcams__hover-icon {
		width: 46px;
		height: 46px;
		opacity: 1;
		transform: scale(1);
		background: rgba(48, 48, 88, 0.56);
	}

	.trattler-webcam-lightbox {
		width: calc(100vw - 20px);
		max-height: calc(100vh - 20px);
	}

	.trattler-webcam-lightbox__panel {
		max-height: calc(100vh - 20px);
	}

	.trattler-webcam-lightbox__header {
		padding: 15px 58px 15px 16px;
	}

	.trattler-webcam-lightbox__title {
		font-size: 1rem;
	}

	.trattler-webcam-lightbox__close {
		top: 7px;
		right: 7px;
		width: 44px;
		height: 44px;
	}

	.trattler-webcam-lightbox__image {
		max-height: calc(100vh - 125px);
	}

	.trattler-webcam-lightbox__iframe {
		height: 72vh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.trattler-webcams__card,
	.trattler-webcams__image,
	.trattler-webcams__iframe-media,
	.trattler-webcams__arrow,
	.trattler-webcams__lightbox-trigger::before,
	.trattler-webcams__hover-icon {
		transition: none;
	}

	.trattler-webcams__card:hover,
	.trattler-webcams__card:focus-within,
	.trattler-webcams__card:hover .trattler-webcams__image,
	.trattler-webcams__card:focus-within .trattler-webcams__image,
	.trattler-webcams__card:hover .trattler-webcams__iframe-media,
	.trattler-webcams__card:focus-within .trattler-webcams__iframe-media,
	.trattler-webcams__card:hover .trattler-webcams__arrow,
	.trattler-webcams__card:focus-within .trattler-webcams__arrow {
		transform: none;
	}
}


/* Accessibility utilities */
.trattler-sr-only {
	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;
	white-space: nowrap !important;
	border: 0 !important;
}


.trattler-webcams__lightbox-trigger,.trattler-webcam-lightbox__close,.trattler-webcam-lightbox__external{min-width:44px;min-height:44px;}
.trattler-webcams :is(.trattler-webcams__title,.trattler-webcam-lightbox__title){overflow-wrap:anywhere;}
.trattler-webcams__lightbox-trigger:focus-visible,.trattler-webcam-lightbox__close:focus-visible,.trattler-webcam-lightbox__external:focus-visible{outline:3px solid #fff!important;outline-offset:2px!important;box-shadow:0 0 0 5px #2f2f56!important;}
@media (forced-colors:active){.trattler-webcams__lightbox-trigger:focus-visible,.trattler-webcam-lightbox__close:focus-visible,.trattler-webcam-lightbox__external:focus-visible{outline:2px solid ButtonText!important;box-shadow:none!important;}}
