/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* ---------- Black and white photos and video (QBL-247) ----------
 * Page images, featured images and cover backgrounds. Embeds (Spotify, Google) are iframes and stay in color.
 * Add the class "qw-color" to a block to keep it in color.
 */
.entry-content img,
.entry-content video,
.ct-media-container img,
.wp-block-cover__image-background,
.wp-block-cover__video-background {
	filter: grayscale(1);
}

.qw-color img,
.qw-color video,
img.qw-color {
	filter: none;
}

/* Hero video: respect reduced-motion settings (the overlay color stays). */
@media (prefers-reduced-motion: reduce) {
	.wp-block-cover__video-background {
		display: none;
	}
}

/* ---------- External links: Lucide "external-link" icon (ISC license, lucide.dev) ---------- */
a.qw-external::after {
	content: "";
	display: inline-block;
	width: 0.8em;
	height: 0.8em;
	margin-inline-start: 0.3em;
	vertical-align: -0.05em;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Booking: embedded calendar on desktop, a button on phones ---------- */
@media (max-width: 781px) {
	.qw-desktop-only {
		display: none !important;
	}
}

@media (min-width: 782px) {
	.qw-mobile-only {
		display: none !important;
	}
}

.qw-booking-embed iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 12px;
}

/* ---------- Price tables: prices never wrap ---------- */
.qw-price-table th:last-child,
.qw-price-table td:last-child {
	white-space: nowrap;
	width: 1%;
	font-weight: 600;
}

.qw-price-table th:first-child,
.qw-price-table td:first-child {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

/* ---------- Footer: logo, links, hours, legal ---------- */
#footer [data-row] > div {
	--container-spacing: 0px;
}

#footer [data-row="top"] > div {
	padding-top: 3.5rem;
	padding-bottom: 1.75rem;
}

#footer [data-row="middle"] > div {
	padding-top: 0;
	padding-bottom: 3.5rem;
}

#footer .ct-footer-copyright p {
	margin: 0;
}

#footer .qw-footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.75rem;
	font-weight: 600;
	margin-bottom: 1.25rem !important;
}

#footer .qw-footer-links a {
	color: var(--theme-palette-color-8);
	text-decoration: none;
}

#footer .qw-footer-links a:hover {
	text-decoration: underline;
}

#footer .qw-footer-hours {
	margin-bottom: 0.5rem !important;
}

#footer .qw-footer-legal {
	font-size: 0.875rem;
	opacity: 0.75;
}

#footer .site-logo-container img {
	height: 40px;
	width: auto;
	max-height: none;
}

/* Services jump links: wrap between items, never inside one ("Add-ons"). */
.qw-jump a {
	white-space: nowrap;
}

/* Keep hyphenated terms together ("15-minute", "24-bit/192 kHz"). */
.qw-nowrap {
	white-space: nowrap;
}

#footer [data-row="top"] .site-branding {
	margin-bottom: 1.5rem;
}

/* White button on the purple CTA band: visible hover state. */
.wp-block-button__link.has-palette-color-8-background-color:hover,
.wp-block-button__link.has-palette-color-8-background-color:focus-visible {
	background-color: var(--theme-palette-color-5) !important;
}

/* Auto-hide header: invisible once fully slid away, so iOS Safari doesn't tint the
 * status bar white from it (see assets/js/header-autohide.js). */
#header [data-sticky].qw-header-hidden {
	visibility: hidden;
}
