/*
Theme Name: Eventure
Theme URI: https://themeshaper.com/eventure/
Author: Automattic
Author URI: https://automattic.com
Description: Eventure is a sleek, modern theme designed for events. It emphasizes participants, speakers, and stories, helping you create an engaging event hub where people and the environment take center stage.
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eventure
Tags: blog, block-patterns, block-styles, editor-style, featured-images, full-site-editing, rtl-language-support, style-variations, threaded-comments, translation-ready, wide-blocks
*/

/* =========================================================
   TYPOGRAPHY — Progressive Enhancement
   Reduce widows and orphans:
   https://github.com/WordPress/gutenberg/issues/55190
*/

h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
	text-wrap: pretty;
}

/* =========================================================
   LINKS
 */

/* Default link underline refinement
   https://github.com/WordPress/gutenberg/issues/42319 */
a {
	text-decoration-thickness: 0.05em !important;
	text-underline-offset: 0.15em;
}

/* =========================================================
   POST / QUERY LOOP — Featured Image Hover Effect
   Duotone disabled on hover (single image approach)
 */

/* Ensure a stable stacking context for hover effects */
.wp-block-post > .wp-block-group {
	position: relative;
}

/* Base featured image transitions */
.wp-block-post .wp-block-post-featured-image img {
	display: block;
	transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover interaction:
   - Remove any duotone filter
   - Apply subtle scale for depth */
.wp-block-post:hover .wp-block-post-featured-image img {
	filter: none !important;
	transform: scale(1.05);
}

/* Motion-aware refinement:
   Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
	.wp-block-post:hover .wp-block-post-featured-image img {
		transform: none;
	}
}

/* =========================================================
   IMAGE BLOCK — Featured Hover Utility
   Opt-in duotone removal + scale on hover
 */

/* Base transition */
.wp-block-image.is-featured-hover img {
	display: block;
	transition: transform 0.2s ease, filter 0.2s ease;
}

/* Hover interaction */
.wp-block-image.is-featured-hover:hover img {
	filter: none !important;
	transform: scale(1.05);
}

/* Motion-aware refinement */
@media (prefers-reduced-motion: reduce) {
	.wp-block-image.is-featured-hover:hover img {
		transform: none;
	}
}

/* =========================================================
   LAYOUT AND SPACING
 */

/* Remove default spacing around Header and Footer */
header.wp-block-template-part,
footer.wp-block-template-part {
	margin: 0;
}

/* =========================================================
   UTILITIES AND EFFECTS
 */

/* Enable elements to overlap nearby sections */
.is-overlapping {
  position: relative;
  z-index: 1;
}

/* Allow overlapping content inside Cover blocks */
.wp-block-cover {
	overflow: visible;
}

/* Utility: show underline only on interaction */
.no-underline a {
	text-decoration: none;
}

.no-underline a:hover,
.no-underline a:focus-visible {
	text-decoration: underline;
}