/**
 * Quick Recipe Roundup Automator - Frontend Styles
 * 
 * Basic layout, spacing, and structural containment for recipe roundup items.
 * Leaves all typography, link styling, hover behavior, and color rules to the active theme.
 */

.recipe-roundup-container {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.recipe-roundup-intro {
    margin-bottom: 3rem;
    font-size: 1.15rem;
    line-height: 1.6;
}

.recipe-roundup-item {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.recipe-roundup-item:last-child {
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
}

.recipe-roundup-item .recipe-roundup-number {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.recipe-roundup-item .wp-block-image {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.recipe-roundup-item .wp-block-image img {
    height: auto;
    max-width: 100%;
    border-radius: 4px;
}

/* Responsiveness */
@media (max-width: 768px) {
    .recipe-roundup-item {
        margin-bottom: 3rem;
        padding-bottom: 2rem;
    }
}

/* Prevent any theme hover-shrinking/scaling/transition animations on links and images */
.recipe-roundup-item a,
.recipe-roundup-item a:hover,
.recipe-roundup-item a:active,
.recipe-roundup-item a:focus {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    text-transform: inherit !important;
    letter-spacing: inherit !important;
    transform: none !important;
    scale: none !important;
    box-shadow: none !important;
    transition: none !important;
}

.recipe-roundup-item .wp-block-heading a,
.recipe-roundup-item .wp-block-heading a:hover,
.recipe-roundup-item .wp-block-heading a:active,
.recipe-roundup-item .wp-block-heading a:focus,
.recipe-roundup-item h2 a,
.recipe-roundup-item h2 a:hover,
.recipe-roundup-item h2 a:active,
.recipe-roundup-item h2 a:focus {
    display: inline !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    transform: none !important;
    scale: none !important;
    transition: none !important;
}

.recipe-roundup-item .wp-block-image a,
.recipe-roundup-item .wp-block-image a:hover,
.recipe-roundup-item .wp-block-image a img,
.recipe-roundup-item .wp-block-image a img:hover {
    display: block !important;
    transform: none !important;
    scale: none !important;
    box-shadow: none !important;
    transition: none !important;
}

/* Hide theme featured image container/block on single roundup posts */
.qrr-hide-featured-image .wp-post-image,
.qrr-hide-featured-image .attachment-post-thumbnail,
.qrr-hide-featured-image .post-thumbnail,
.qrr-hide-featured-image .featured-media,
.qrr-hide-featured-image .featured-image,
.qrr-hide-featured-image .entry-featured-image,
.qrr-hide-featured-image .single-post-image,
.qrr-hide-featured-image .wp-block-post-featured-image {
    display: none !important;
}
