/*
Theme Name: Attorny with swag
Author: Ninegravity
Description: A professional WordPress theme for law firms and attorneys, designed to showcase legal services with a modern and trustworthy aesthetic.
Version: 1.0
License: GPLv2 or later
Text Domain: attorny_with_swag
*/


/*---------------------------------------
    Overwrites to WordPress Default
 ---------------------------------------*/

/* Padding apply to Top & Bottom */
/* body:not(.single-post) .entry-content .wp-block-group,
body:not(.single-post) .entry-content .wp-block-columns:not(.wp-block-columns .wp-block-columns):not(.wp-block-group:not(.site-main) .wp-block-columns) {
    position: relative;
    padding-top: var(--space-100-30);
    padding-bottom: var(--space-100-30);
    margin: 0;
} */

/* Bottom Padding reduce if match the same class near the bottom */
/* body:not(.single-post) .entry-content .wp-block-group:not(.has-background):has(+ .wp-block-group:not(.has-background)),
body:not(.single-post) .entry-content .wp-block-group:not(.has-background):has(+ .wp-block-columns:not(.has-background)),
body:not(.single-post) .entry-content .wp-block-columns:not(.has-background):has(+ .wp-block-columns:not(.has-background)),
body:not(.single-post) .entry-content .wp-block-columns:not(.has-background):has(+ .wp-block-group:not(.has-background)) {
    padding-bottom: var(--space-50-30) !important;
} */

/* Top Padding reduce if match the same class near the bottom */
/* body:not(.single-post) .entry-content .wp-block-group:not(.has-background):has(+ .wp-block-group:not(.has-background))+.wp-block-group:not(.has-background),
body:not(.single-post) .entry-content .wp-block-group:not(.has-background):has(+ .wp-block-columns:not(.has-background))+.wp-block-columns:not(.has-background),
body:not(.single-post) .entry-content .wp-block-columns:not(.has-background):has(+ .wp-block-columns:not(.has-background))+.wp-block-columns:not(.has-background),
body:not(.single-post) .entry-content .wp-block-columns:not(.has-background):has(+ .wp-block-group:not(.has-background))+.wp-block-group:not(.has-background) {
    padding-top: var(--space-50-30) !important;
} */

/* Bottom Padding 0 if it self is the last element */
/* body:not(.single-post) .entry-content .wp-block-group:not(.has-background):last-child,
body:not(.single-post) .entry-content .wp-block-columns:not(.has-background):last-child {
    padding-bottom: 0 !important;
} */

body:not(.single-post) .entry-content> :is(.wp-block-group, .wp-block-columns) {
    position: relative;
    padding-block: var(--space-100-30);
    margin: 0;
}

body:not(.single-post) .entry-content> :is(.wp-block-group, .wp-block-columns):not(.has-background)+:is(.wp-block-group, .wp-block-columns):not(.has-background),
body:not(.single-post) .entry-content> :is(.wp-block-group, .wp-block-columns):not(.has-background)+:is(section):not(.has-background) {
    padding-top: var(--space-50-30);
}

body:not(.single-post) .entry-content> :is(.wp-block-group, .wp-block-columns):has(+:is(.wp-block-group, .wp-block-columns):not(.has-background)),
body:not(.single-post) .entry-content> :is(.wp-block-group, .wp-block-columns):has(+section:not(.has-background)):not(.has-background) {
    padding-bottom: var(--space-50-30);
}

body:not(.single-post) .entry-content>:is(.wp-block-group, .wp-block-columns):not(.has-background):last-child {
    padding-bottom: 0;
}


/* Bottom margin for list items */
body:not(.single-post) .entry-content .wp-block-list li:not(:last-child) {
    margin-bottom: 0.5rem;
}


.is-layout-constrained>section {
    max-width: 100%;
}

/* .wp-block-group.alignfull.has-background {
    padding-top: var(--space-100-30);
} */

body:not(.single-post) .entry-content :where(.is-layout-flex) {
    gap: 1.25rem;
}

body:not(.single-post) .entry-content :where(.wp-block-image),
body:not(.single-post) .entry-content :where(.wp-block-columns) {
    margin-bottom: 0;
}

body:not(.single-post) .entry-content :where(.wp-block-group.has-background),
body:not(.single-post) .entry-content :where(.wp-block-columns.has-background) {
    padding-left: 0;
    padding-right: 0;
}

.wp-element-button {
    all: unset !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 8px !important;
    text-transform: uppercase !important;
    border: 2px solid transparent !important;
    box-shadow: none !important;
    background: var(--color-primary) !important;
    color: var(--color-white) !important;
    transition: all 0.2s ease;
}

.wp-element-button[href] {
    cursor: pointer !important;
}

.wp-element-button:hover,
.wp-element-button:focus {
    color: var(--color-dark) !important;
    background:
        linear-gradient(var(--color-white), var(--color-white)) padding-box,
        var(--color-gradient) border-box !important;
    border: 2px solid transparent !important;
}


/***************************************************************/
/***************************************************************/
/*********\\ RESPONSIVE STYLES //*******************************/
/***************************************************************/
/***************************************************************/
@media (max-width: 991.98px) {
    body:not(.single-post) .entry-content> :is(.wp-block-group, .wp-block-columns) {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}