/*
 * Redirection Popup. Matches the globaltravelcollection.com popup: black box,
 * white text, 60% black backdrop, close cross in the top right corner.
 * Selectors start with dialog.gtc-rn so theme and Elementor button, heading and
 * paragraph styles do not leak in.
 */

html.gtc-rn-open {
	overflow: hidden;
}

dialog.gtc-rn {
	box-sizing: border-box;
	width: 96vw;
	max-width: 64rem;
	max-height: 100%;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #000;
	color: #fff;
	overflow: auto;
	font-family: inherit;
	box-shadow: none;
}

dialog.gtc-rn:focus {
	outline: none;
}

dialog.gtc-rn::backdrop {
	background: rgba(0, 0, 0, 0.6);
}

/* Browsers without <dialog>: fixed and centred over a plain backdrop. */
dialog.gtc-rn.gtc-rn--fallback {
	position: fixed;
	inset: 0;
	z-index: 100000;
	height: fit-content;
	box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6);
}

dialog.gtc-rn .gtc-rn__box {
	position: relative;
	padding: 0.75rem;
}

dialog.gtc-rn .gtc-rn__body {
	margin-right: 1rem;
	text-align: center;
}

dialog.gtc-rn .gtc-rn__title {
	margin: 0 0 2rem;
	padding: 0;
	color: #fff;
	font-family: inherit;
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.75rem;
	letter-spacing: normal;
	text-transform: none;
}

dialog.gtc-rn .gtc-rn__text {
	margin: 1rem 0 0;
	padding: 0;
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5rem;
}

dialog.gtc-rn .gtc-rn__close,
dialog.gtc-rn .gtc-rn__close:hover,
dialog.gtc-rn .gtc-rn__close:focus {
	position: absolute;
	top: 0;
	right: 0;
	width: 3rem;
	height: 3rem;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 9999px;
	background: transparent;
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 1.875rem;
	font-weight: 400;
	line-height: 1.75rem;
	text-align: center;
	cursor: pointer;
}

dialog.gtc-rn .gtc-rn__close {
	opacity: 0.7;
	transition: opacity 0.15s ease;
}

dialog.gtc-rn .gtc-rn__close:hover,
dialog.gtc-rn .gtc-rn__close:focus-visible {
	opacity: 1;
}

dialog.gtc-rn .gtc-rn__close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}

@media (min-width: 640px) {
	dialog.gtc-rn .gtc-rn__box {
		padding: 2rem;
	}
}

@media (min-width: 768px) {
	dialog.gtc-rn .gtc-rn__body {
		text-align: left;
	}

	dialog.gtc-rn .gtc-rn__title {
		font-size: 1.25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	dialog.gtc-rn .gtc-rn__close {
		transition: none;
	}
}
