/**
 * Theme Name: Prime
 * Template:   twentytwentyfive
 */

/*---------------------------------------Hover Reveal Cover--------------------------------------------------*/

/* Clip any overflowing content */
.hover-reveal-cover {
    overflow: hidden;
}

/* Smooth layout transition for the Group block as it expands */
.hover-reveal-cover .wp-block-group {
    transition: transform 0.35s ease;
}

/* Hide every block inside the Group that comes AFTER the heading */
.hover-reveal-cover .wp-block-group > :is(h1, h2, h3, h4, h5, h6) ~ * {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
    transform: translateY(15px);
    transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease;
}

/* Reveal everything after the heading on hover or keyboard focus */
.hover-reveal-cover:hover .wp-block-group > :is(h1, h2, h3, h4, h5, h6) ~ *,
.hover-reveal-cover:focus-within .wp-block-group > :is(h1, h2, h3, h4, h5, h6) ~ * {
    opacity: 1;
    max-height: 500px; /* Must be taller than your hidden content */
    transform: translateY(0);
    margin-top: revert;
    margin-bottom: revert;
}