/**
 * Frontend styles for the theme
 *
 * Enqueued in the frontend and the WordPress editor.
 */
@layer utilities;

/* Add padding to elements with background color */
.has-background:not(.wp-element-button):not(.wp-block-sowmedia-icon),
[class*="is-style-section-"] {
    padding: var(--wp--custom--spacing--padding--background);
    border-radius: var(--wp--preset--border-radius--md);
}

/* Add simple hover effect to text links */
p>a,
li>a {
    transition: opacity 0.3s ease;

    &:hover {
        opacity: 0.8;
    }
}

.has-primary-background-color .has-primary-background-color,
.has-primary-background-color .is-style-section-primary,
.has-base-to-primary-linear-half-gradient-background .has-primary-background-color,
.has-base-to-primary-linear-half-gradient-background .is-style-section-primary,
.is-style-section-primary .is-style-section-primary,
.is-style-section-primary .has-primary-background-color{
    background-color: color-mix(in srgb, var(--wp--preset--color--primary) 80%, var(--wp--preset--color--base) 25%);
}

.alignfull + .alignfull {
    margin-top: 0;
}

* {
    box-sizing: border-box;
}