/*
 * The pieces of accessibility that every page needs, whether or not it
 * carries the booking widget: a way past the menu for a keyboard, and a way
 * to say something to a screen reader without showing it on screen.
 */

/* Read by a screen reader, invisible to everyone else. */
.db-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* The first stop for a keyboard: a way past the menu. It stays out of the
   way until it is focused, and then it is unmissable. */
.db-skip-link {
	position: absolute;
	inset-inline-start: 1rem;
	top: -4rem;
	z-index: 100000;
	padding: 0.75rem 1.25rem;
	background: #00306a;
	color: #fff;
	font: inherit;
	text-decoration: none;
	border-radius: 0 0 8px 8px;
	transition: top 0.15s ease-in-out;
}

.db-skip-link:focus {
	top: 0;
	color: #fff;
	outline: 3px solid #e3b23c;
	outline-offset: 2px;
}

/* The button that holds a moving gallery or video still. It keeps to the
   corner, quiet enough not to be part of the design and plain enough to be
   understood at a glance. The class is doubled so the theme's own button
   colours, which load after this file, cannot reach it. */
.db-pause.db-pause {
	position: absolute;
	inset-block-end: 10px;
	inset-inline-end: 10px;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 0;
	padding: 0;
	margin: 0;
	background: rgba(20, 20, 20, 0.42);
	color: #fff;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	opacity: 0.7;
	cursor: pointer;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.db-pause.db-pause:hover,
.db-pause.db-pause:focus,
.db-pause.db-pause:active {
	background: rgba(20, 20, 20, 0.66);
	color: #fff;
	opacity: 1;
	box-shadow: none;
}

.db-pause.db-pause:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.db-pause.db-pause svg {
	display: block;
	width: 11px;
	height: 11px;
	fill: currentColor;
}

/* A button that had to leave its widget — the arch around the video cuts and
   covers whatever sits inside it — is held over the picture from outside,
   above the decoration drawn around the arch. */
.db-pause.db-pause--over {
	inset-block-end: auto;
	z-index: 30;
}
