/*
 * Spectra blocks that keep their saved HTML after Spectra is deactivated.
 * Loaded only on pages that have one. Converting the blocks in the editor
 * makes this unnecessary; the theme styles the core blocks they become.
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 * SPDX-FileCopyrightText: 2026 Marcus Quinn
 * Additional terms (GPL-3.0 section 7(b)): SEOPROSTACK-ATTRIBUTION.txt
 * Provenance: wpas-5149fc42f5cbc37c. Copies, even of part, keep these lines.
 */

/* Image */
.wp-block-uagb-image {
	margin-bottom: 1.5em;
}

.wp-block-uagb-image__figure {
	margin: 0;
}

.wp-block-uagb-image img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.wp-block-uagb-image--align-center {
	text-align: center;
}

.wp-block-uagb-image--align-right {
	text-align: right;
}

.wp-block-uagb-image figcaption {
	margin-top: 0.5em;
	font-size: 0.875em;
	text-align: center;
}

/* Heading */
.wp-block-uagb-advanced-heading .uagb-desc-text {
	margin: 0.5em 0 0;
}

/* Buttons: the links carry core's wp-block-button__link class, which themes style. */
.wp-block-uagb-buttons .uagb-buttons__wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75em;
}

.wp-block-uagb-buttons-child .uagb-buttons-repeater {
	display: inline-block;
	text-decoration: none;
}

.wp-block-uagb-buttons-child .uagb-button__link {
	display: inline;
}

/* Testimonials: shown side by side instead of as a carousel. */
.wp-block-uagb-testimonial .uagb-tm__items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: 1.5em;
	margin-bottom: 1.5em;
}

.wp-block-uagb-testimonial .uagb-testimonial__wrap {
	padding: 1.5em;
	/* Translucent so it suits light and dark palettes. */
	border: 1px solid rgba(127, 127, 127, 0.3);
	border-radius: 3px;
}

.wp-block-uagb-testimonial .uagb-tm__overlay {
	display: none;
}

.wp-block-uagb-testimonial .uagb-tm__desc {
	margin-bottom: 1em;
}

.wp-block-uagb-testimonial .uagb-tm__author-name {
	display: block;
	font-weight: 600;
}

.wp-block-uagb-testimonial .uagb-tm__company {
	display: block;
	font-size: 0.875em;
	opacity: 0.8;
}

.wp-block-uagb-testimonial .uagb-tm__image img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}

/* Spectra's per-device visibility. */
@media (min-width: 1025px) {
	.uag-hide-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.uag-hide-tab {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.uag-hide-mob {
		display: none !important;
	}
}
