/*
Theme Name: Dr. Terrance Drew
Theme URI: https://drterrancedrew.dev
Description: Faithful WordPress replica of drterrancedrew.com. Classic custom theme, editable content via SCF/ACF-free fields and custom post types.
Version: 0.1.0
Text Domain: drterrancedrew
*/

/* Match the live site: body paragraphs are justified (skn.css sets this on `p`
   but a later rule overrides it, so re-assert it from the theme stylesheet,
   which loads last). */
.text-widget p,
.gallery-page .description {
	text-align: justify;
}

/* Scroll-to-top button: once the visitor is past the middle of the page it
   pulses gently to draw the eye, and goes still again on the way back up.
   The class is toggled from theme-init.js; the link itself is never touched,
   so clicking always jumps to the top. */
@keyframes dtd-scrolltop-pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.15);
	}
}

body a.scrollTop.is-pulsing {
	animation: dtd-scrolltop-pulse 1.6s ease-in-out infinite;
	transform-origin: center center;
	will-change: transform;
}

/* Hold still while the pointer is on it (or it has keyboard focus), so the
   target does not move under the cursor as it is being clicked. */
body a.scrollTop.is-pulsing:hover,
body a.scrollTop.is-pulsing:focus {
	animation-play-state: paused;
}

/* Visitors who ask for less motion get the button without the pulse. */
@media (prefers-reduced-motion: reduce) {
	body a.scrollTop.is-pulsing {
		animation: none;
	}
}
