/* Final responsive corrections found during the pre-publication audit. */

/* Smart Slider's layers overlap between its mobile and desktop layouts on tablets
 * and narrower laptops. Use the concise, accessible summary in that range. */
@media (min-width: 481px) and (max-width: 1600px) {
	[data-creator="Smart Slider 3"] {
		position: relative;
	}

	[data-creator="Smart Slider 3"] .n2-ss-slide .n2-ss-layer {
		visibility: hidden !important;
	}

	.zgk-slider-mobile-summary {
		position: absolute;
		z-index: 50;
		bottom: 42px;
		left: clamp(28px, 6vw, 72px);
		display: block;
		width: min(520px, calc(100% - 56px));
		padding: 24px 26px;
		border-radius: 16px;
		color: #fff;
		background: rgba(9, 46, 89, .94);
		box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
	}

	.zgk-slider-mobile-summary strong {
		display: block;
		font-size: clamp(23px, 3.3vw, 34px);
		line-height: 1.2;
	}

	.zgk-slider-mobile-summary p {
		margin: 10px 0 18px;
		font-size: 16px;
		line-height: 1.5;
	}

	.zgk-slider-mobile-summary div {
		display: flex;
		flex-wrap: wrap;
		gap: 10px;
	}

	.zgk-slider-mobile-summary a {
		display: inline-flex;
		min-height: 44px;
		align-items: center;
		padding: 10px 15px;
		border: 1px solid #8cd66f;
		border-radius: 8px;
		color: #fff;
		background: #4dbc2f;
		font-size: 14px;
		font-weight: 800;
		text-decoration: none;
	}
}

/* Two useful columns are more readable than four narrow cards on tablets. */
@media (min-width: 701px) and (max-width: 900px) {
	.entry-content .wp-block-uagb-container:has(> .quick-card) {
		flex-wrap: wrap !important;
	}

	.entry-content .wp-block-uagb-container > .quick-card {
		width: calc(50% - 10px) !important;
		max-width: calc(50% - 10px) !important;
		flex: 0 0 calc(50% - 10px) !important;
	}
}
