
/*
Theme Name:   CG26
Theme URI:    http://crossgeared.com
Description:  Twenty Twenty Three Child Theme
Author:       David Filcoff
Author URI:   http://david.fil.coffee
Template:     twentytwentythree
Version:      1.4.6
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, accessibility-ready, blog, portfolio, news
Text Domain:  twentytwentythreechild
*/

/* No overflow */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.wp-site-blocks {
    padding-bottom: 0;
}

/* Override background gradient */
header.wp-block-template-part {
    background-image: linear-gradient(
        rgb(27, 16, 49) 0%,
        rgb(85, 28, 94) 30%,
        rgb(85, 28, 94) 70%,
        rgb(27, 16, 49) 100%
    ) !important;
}


/* Remove Gradient bg from the header */
header.wp-block-template-part {
    background-image: none !important;
}


/* Header background exposed
header.wp-block-template-part {
    padding-top: 40px;
}*/

header.wp-block-template-part {
    padding-top: 0;  /* remove the gap */
    padding-left: 2rem;
    padding-right: 2rem;
}

header.wp-block-template-part .cg-logo {
    margin-top: 0px;  /* push the logo down inside the coloured header */
}


/* Header left/right padding */
header.wp-block-template-part {
    padding-left: 2rem;
    padding-right: 2rem;
    /* padding-top: 40px; */
}

header.wp-block-template-part .wp-block-image.size-full {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: auto;
}


/* cg logo size */
/* add class cg-logo to image in theme editor */
.cg-logo img {
    width: 100%;
    height: auto;
}




/* Force the post template grid to full width */
.wp-block-post-template.is-flex-container {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Ensure each post item fills its grid cell */
.wp-block-post-template.is-flex-container li {
    width: 100% !important;
    max-width: 100% !important;
}






/* Do not crop featured image on homepage */
.wp-block-post-featured-image {
    display: flex;
    justify-content: center;  /* centre the narrowed image if desired */
}

.wp-block-post-featured-image img {
    width: auto !important;
    height: clamp(15vw, 30vh, 400px) !important;  /* keeps the theme's original height */
    object-fit: contain !important;
    max-width: 100%;
}



/* Sticky post */
.sticky .wp-block-post-date {
    display: none;
}

.sticky .wp-block-post-terms {
    display: none;
}


/* HR separator colours */
.wp-block-separator:not(.is-style-dots) {
    border: none !important;
    height: 2px !important;
    background: linear-gradient(90deg, rgb(255, 0, 153), rgb(255, 116, 109)) !important;
    opacity: 1 !important;
}

/* Restore dots separator */
.wp-block-separator.is-style-dots {
    background: none !important;
    border: none !important;
    height: auto !important;
    opacity: 1 !important;
}

/* Match footer dropdowns to search input, add  cg-footer-dd class to in the editor*/
.cg-footer-dd select {
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.045), 0.9rem);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-width: 1px;
    border-style: solid;
    border-color: currentColor;
    background-color: transparent;
    color: inherit;
    font-family: inherit;
    padding: 0.375em 0.625em;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
}

.wp-block-cg-footer-dd-dropdown select:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Match the SEARCH label style */
.cg-footer-dd label {
    display: block;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.045), 0.9rem);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}


/* Match the SEARCH label gap above the input */
.cg-footer-dd label {
    display: block;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.045), 0.9rem);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1em;  /* matches default <p> bottom margin */
}


/* Clean up the search box */
.cg-footer-dd.wp-block-search .wp-block-search__input,
.cg-footer-dd.wp-block-search .wp-block-search__button {
    padding-top: 0.375em;
    padding-bottom: 0.375em;
    font-size: clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.045), 0.9rem);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-width: 1px;
    border-style: solid;
    border-color: currentColor;
    box-sizing: border-box;
}


/* Footer Image... */
.cg-footer-logo img {
    max-width: 50%;
    height: auto;
    margin-bottom: 1em;
   /*  margin-right: 1em; */
}






/* Tag Cloud — uses [cg_tag_cloud max_tags="20" highlight="#FF0099"] shortcode */

.cg-tag-cloud {
    position: relative;
    text-align: center;
    padding: 2em 3em;
    line-height: 2.4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    margin-left: auto;
    margin-right: auto;
}

.cg-tag-cloud__row {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

.cg-tag-cloud a {
    display: inline-block;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cg-tag-cloud a:hover {
    transform: scale(1.3);
    text-decoration: underline;
}


/* Tag Cloud mobile device mods */
@media (max-width: 768px) {
    .cg-tag-cloud {
        padding: 1.5em 1em;
        line-height: 2;
    }
}

@media (max-width: 480px) {
    .cg-tag-cloud {
        padding: 1em 0.5em;
        line-height: 1.8;
    }
}

@media (max-width: 768px) {
    .cg-tag-cloud {
        padding: 1.5em 0.5em;
        line-height: 2;
        overflow: hidden;
    }

    .cg-tag-cloud__row {
        padding: 0 !important;
    }
}

/*
@media (max-width: 768px) {
    .cg-tag-cloud {
        padding: 1.5em 1em;
        line-height: 2;
    }

    .cg-tag-cloud a {
        font-size: 0.7em !important;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .cg-tag-cloud a {
        font-size: 0.55em !important;
        letter-spacing: 0.3px;
    }
}
*/


/*.cg-tag-cloud {
    text-align: center;
    padding: 1em 0;
    line-height: 2.4;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin-left: 0;
    margin-right: 0;
}

.cg-tag-cloud__row {
    display: block;
    text-align: center;
    box-sizing: border-box;
    width: 100%;
}

.cg-tag-cloud a {
    display: inline;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.cg-tag-cloud a:hover {
    opacity: 0.7;
    text-decoration: underline;
}*/