/*
 Theme Name:   CGLMC
 Description:  Custom theme
 Author:       Carnoustie Creative
 Author URI:   https://www.carnoustiecreative.co.uk
 Template:     baseline
 Version:      1.1.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  baseline-child

.aleo-<uniquifier> {
  font-family: "Aleo", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

.inter-<uniquifier> {
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

*/

:root {
    --cg-bluewood: #283C50;
    --cg-concrete: #F4F1EF;
    --cg-chicago-grey: #5C5855;
    --cg-vesuvius: #9B3E00;
    --cg-radius: 2rem;
}

.baseline {
    --baseline-aos-distance: 20px;
    --baseline-aos-distance-negative: -20px;
}

body.baseline {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    font-size: clamp(1.5rem, 1.9vw, 1.8rem);
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.baseline h1,
.baseline h2,
.baseline h3,
.baseline h4 {
    font-family: "Aleo", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.baseline h1:last-child,
.baseline h2:last-child,
.baseline h3:last-child,
.baseline h4:last-child {
    margin-bottom: 0;
}

.baseline h1 {
    font-size: clamp(3.2rem, 4vw, 4.2rem);
    color: var(--cg-bluewood);
}

.baseline h2 {
    font-size: clamp(2.6rem, 3vw, 3.2rem);
    margin-bottom: 3rem;
    color: var(--cg-bluewood);
}

.baseline ol.large-numbers > li:before {
    border-bottom-color: rgba(255, 255, 255, 0.3);    
}

.header-wrap .container,
#footer-bottom-container.container,
.wide-container.container,
.baseline footer {
    max-width: 96%;
    width: 96%;
}

.baseline footer {
    margin: auto;
    border-radius: var(--cg-radius);
    margin-bottom: 2vw;
}

@media ( min-width: 800px ) {

    .baseline .container:not(.wide-container) {
        width: 92%;
    }

}

.remove-screen.cde-wide-text.has-bgimage .wrapper:before {
    background: linear-gradient(260.74deg, rgba(0, 0, 0, 0) 21.39%, rgba(0, 0, 0, 0.5) 99.51%);    
}

.remove-screen.cde-wide-text.has-bgimage {
    overflow: hidden;
    border-radius: var(--cg-radius); 
}

.flex-elm.remove-screen .inner {
    padding: 3vw;
    width: 45%;
}

.cde-wide-text.has-bgimage .wrapper,
.cde-wide-text.has-bgcolor {
    border-radius: var(--cg-radius);
}

.baseline header .custom-logo {
    width: auto !important;
    height: clamp(6rem, 4vw, 8rem);
}

.baseline .header-wrap {
    position: relative;
}

.baseline header .logotitle.row {
    padding: 3rem 0;
}

@keyframes hero-zoom { 
    to { transform: scale(1); } 
}


.baseline header .second {
    top: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.baseline header .second .menu {
    padding-left: 4vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

@media ( max-width: 720px ) {

    .baseline header .second .menu {
        display: none;
    }

    .cde-wide-text.cde-wide-text.has-bgimage {
        height: 40vh;
    }

    .cde-wide-text.cde-wide-text.has-bgimage .wrapper {
        margin-top: 0;
    }

    #main.main {
        margin-top: 1rem;
    }

}

.mobile-nav.above {
    background-color: var(--cg-bluewood);
}

.baseline .menu-bar {
    padding: 0.7rem 0.7rem 0.7rem 0.7rem;
    box-sizing: border-box;
}

.baseline .mobile-nav .custom-logo {
    max-width: 14rem !important;
    height: 4rem;
}

.baseline .header-wrap:after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 10rem;
    background-color: var(--cg-bluewood);
    z-index: 0;
}

.link-boxes .cde-grid-item-inner a,
.link-boxes .cde-grid-item-inner {
    height: 100%;
}

.link-boxes .cde-grid-item-inner a {
    display: block;
    padding: clamp(2rem, 2.5vw, 4rem);
    border-radius: var(--cg-radius);
    background-color: var(--cg-chicago-grey);
    height: 100%;
    box-sizing: border-box;
    min-height: 22rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition-duration: 0.3s;
}    

@media ( max-width: 720px ) {

    .link-boxes .cde-grid-item-inner a {
        min-height: 16rem;
    }

}

.link-boxes .cde-grid-item-inner a:hover {
    transform: scale(1.05);
}

.link-boxes .item-label {
    position: relative;
    font-size: clamp(2.2rem, 2.3vw, 2.7rem);
    font-family: "Aleo", serif;
    color: #fff;
    font-weight: 500;
    padding-right: 2rem;
}

.link-boxes .item-label:after {
    content: "\e7f9";
    font-family: "Font Awesome 7 Pro";
    font-weight: 300;
    color: var(--cg-bluewood);
    position: absolute;
    font-size: 3.5rem;
    right: 0;
    top: 0;
}

.link-boxes .col-none .cde-grid-item-inner p,
.col-white.link-boxes .col-none .cde-grid-item-inner p {
    color: #fff;    
    background-color: transparent;    
    font-size: clamp(1.3rem, 1.7vw, 1.5rem);
    margin-bottom: 0;
}

.link-boxes .item-content {
    padding-top: 1.5rem;
    margin-top: auto;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.2);
}

.baseline footer .widget-area {
    padding: 2rem;
    box-sizing: border-box;
}

footer .widget-area.footer-bottom {
    margin-bottom: 0.8rem;
    padding: 0;
}

.baseline header .widget_nav_menu .current-menu-item a,
.baseline  header .widget_nav_menu .current_page_item a {
    font-weight: 700;
}

footer .logo-repeat {
    text-align: center;    
}

footer .logo-repeat img {
    max-width: 17rem;
}

footer .divider {
    padding-top: 3rem;
    border-top: 0.1rem solid rgba(255, 255, 255, 0.15);
    width: 20%;
    margin: 1rem auto;
}

.footer-top .menu {
    width: 80%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.flex-elm.hero-overlap .right-col {
    position: relative;
    z-index: 3;
    margin-top: -16rem !important;
}

@media ( max-width: 720px ) {

    .footer-top .menu {
        width: 90%;
        display: block;
    }

    .baseline footer .widget-area .menu li {
        display: block;
        margin: 1rem 0;
    }

    .flex-elm.hero-overlap .right-col {
        margin-top: 0 !important;
    }

}

/* Projects shortcode grid */
.cg-projects-showcase {
    position: relative;
    width: 100%;
}

.cg-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
}

.cg-projects-card {
    box-sizing: border-box;
    border: 0.8rem solid var(--cg-bluewood);
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.7;
    border-radius: var(--cg-radius, 1.6rem);
    overflow: hidden;
    background-color: var(--cg-concrete);
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease, transform 0.35s ease;
}

@media ( max-width: 600px ) {

    .cg-projects-card {
        aspect-ratio: 1 / 0.8;
    }

}

.inner a.cg-projects-card,
.inner a.cg-projects-card:hover {
    border-bottom: 0.8rem solid var(--cg-bluewood);
}

.cg-projects-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.55) 100%);
    opacity: 1;
    transition: opacity 0.35s ease;
}

.baseline #hamburger {
    border-radius: 0.3rem;
}

.cg-projects-title {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.5rem;
    color: #fff;
    font-family: "Aleo", serif;
    font-size: clamp(1.6rem, 2vw, 2rem);
    line-height: 1.2;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: 2;
}

.cg-projects-card:hover::after {
    opacity: 0.9;
}

.cg-projects-card:hover .cg-projects-title {
    transform: translateY(-0.2rem);
}

.cg-projects-card.is-fading {
    opacity: 0;
    transform: scale(0.98);
}

@media ( max-width: 720px ) {

    .main .content {
        padding-top: 1rem;
    }

}

@media (max-width: 640px) {
    .cg-projects-grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 1.5rem;
    }
}

.post-type-cg-projects.box-menu-item.per-line-3 {
    width: 31%;
    margin-bottom: 2vw;
}

@media ( max-width: 1100px ) {

    .post-type-cg-projects.box-menu-item.per-line-3 {
        width: 48%;
        margin-bottom: 2vw;
    }

}

@media ( max-width: 600px ) {

    .post-type-cg-projects.box-menu-item.per-line-3 {
        width: 100%;
        margin-bottom: 2vw;
    }

}

.post-type-cg-projects a {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    box-sizing: border-box;
    border-radius: var(--cg-radius);
    padding: 0.8rem;
    background-color: var(--cg-bluewood);        
    pointer-events: none;
}

.post-type-cg-projects .option h2 {
    color: #fff;
    padding: 1.5rem;
    font-size: clamp(1.8rem, 2.4vw, 2.2rem);
    overflow: visible !important;
    white-space: normal !important;
}

.post-type-cg-projects p {
    color: #fff;
    padding: 1.5rem;
    line-height: 1.4;
    font-size: 1.4rem;
}

.post-type-cg-projects .img {
    margin-top: auto;
}

.post-type-cg-projects .img::before {
    border-bottom-left-radius: calc(var(--cg-radius) - 0.6rem);
    border-bottom-right-radius: calc(var(--cg-radius) - 0.6rem);
}

.baseline .items-per-row-3 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* auto gaps */
    padding: 0;
    list-style: none;
}

.single-cg-projects .meta-below {
    display: none;
}

.content.container {
    border-top-left-radius: var(--cg-radius);
    border-top-right-radius: var(--cg-radius);
}

.single .hero .image {
    position: relative;
    margin-top: 1vw;
    height: 100%;
    border-radius: var(--cg-radius);    
}

.baseline .hero.tall {
    width: 100%;
    aspect-ratio: 1/0.6;
    height: unset;
}

@media ( max-width: 720px ) {

    .baseline .hero.tall, 
    .baseline .hero.tall .image {
        height: 28rem;
    }

}

.single .hero .image:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(260.74deg, rgba(0, 0, 0, 0) 21.39%, rgba(0, 0, 0, 0.5) 99.51%);
    border-radius: var(--cg-radius);
}

.single .hero h1 {
    color: #fff;
}

.single .meta-below {
    text-align: center;
}

.single .hero .center {
    bottom: 10%;
    top: unset;
}

.single .widget-area > h1.center {
    text-align: center;
    background-color: #fff;
    padding: 4rem;
    border-radius: var(--cg-radius);
}

.single .content.container {
    padding-bottom: 0;
}

.single .cde-flex-content {
    max-width: 85rem;
    margin-left: auto;
    margin-right: auto;
}

.single .entry-content {
    margin-top: 3rem;
}

.single .project-menu-item a {
    font-weight: 700;
}

.flex-elm .img.right,
.flex-elm .img.left {
    border-radius: var(--cg-radius);
}

.baseline .flex-elm.first {
    margin-top: 2rem;
}

.baseline hr {
    opacity: 0.3;
}

.baseline .widget .col-chicago-grey a {
    color: #fff;
}

.cde-grid-list .before {
    margin-bottom: 6rem;
}

.baseline .trustees .cde-grid-item  {
    background-color: var(--cg-bluewood);
    color: #fff;
    padding: 2rem;
    border-radius: var(--cg-radius);
    margin-bottom: 0;
}

.baseline .trustees .before {
    padding-top: 1rem;
    padding-right: 3rem;
    margin-bottom: 0;
}

@media ( max-width: 600px ) {

    .baseline .trustees .before {
        margin-bottom: 3rem;
        padding-right: 0;
    }

    .baseline .trustees .before h3 {
        text-align: center !important;
    }

    .cde-wide-text.flex-elm .wrapper {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .baseline .cde-two-cols .inner {
        grid-gap: 3rem;
    }

}

.baseline .trustees .grid-list {
    grid-auto-rows: min-content;
}

.trustees .item-subtitle {
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-size: 1.4rem;
    opacity: 0.7;
}

.flex-elm.trustees {
    margin-top: 3rem !important;    
}

.trustees .inner {
    padding-top: 3rem;
    border-top: 0.3rem solid #fff;    
    display: grid;
    grid-template-columns: 30rem 1fr;
    grid-column-gap: 8rem;
}

@media ( max-width: 800px ) {

    .trustees .inner {
        grid-template-columns: 1fr;     
    }

}

.blog .four.columns.sidebar.right {
    display: none;
}

.blog .eight.columns.left {
    width: 100%;
    margin: 0;
}

.narrow .inner {
    max-width: 65ch;
    margin: 0 auto;
}

header li.button {
    padding: unset;
}

header li.button a {
    padding: 1.1rem 2.2rem;
}

.baseline .cde-box-menu .box-menu-item .img {
    margin-bottom: 0;
}

.baseline.archive .left article, 
.baseline.blog #main-content article {
    grid-column: span 3;
}

.baseline th,
.baseline td {
    padding-left: 12px;
    padding-right: 12px;
    font-size: 1.5rem;
}

article a {
    background-color: #fff;
    padding: 3rem;
    display: grid;
    grid-template-columns: 15rem 1fr;
    grid-column-gap: 4rem;
    text-decoration: none;
    color: #000;
    border-radius: var(--cg-radius);
    box-sizing: border-box;
    transition-duration: .3s;
    height: 100%;
}

.baseline.archive .main .left, 
.baseline.blog #main-content {
    grid-gap: 6rem;
}

p.post-summary-wrap {
    margin-top: 1.5rem;
    font-size: clamp(1.3rem, 1.7vw, 1.5rem);
    margin-bottom: 0;
}

article a:hover {
    color: #000;
    transform: scale(1.05);
}

.article_hero {
    width: 100%;
    aspect-ratio: 1/1;
}

.article_hero.article_image_thumbnail img {
    height: 100%;
    object-fit: cover;
    border-radius: var(--cg-radius);
}

.article_hero.article_attached_files,
.article_hero.article_default {
    background-color: var(--cg-bluewood);
    border-radius: var(--cg-radius);
    overflow: hidden;
    position: relative;
}

.article_hero.article_default {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.article_hero.article_attached_files img {
    position: absolute;
    right: -2rem;
    bottom: -2rem;
}

.baseline article h1,
.baseline.blog #main-content:nth-child(1) article h1,
.baseline.blog #main-content:nth-child(2) article h1,
.baseline.blog #main-content article h1 {
    margin-top: 0;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 0.1rem solid var(--cg-vesuvius);
    color: var(--cg-bluewood);
    font-size: clamp(1.9rem, 2vw, 2.5rem);
}

.trustee-login {
    margin-top: 5rem;
    text-align: center;
}

.trustee-login i {
    opacity: 0.5;
}

#shared-latest-posts .post-summary-wrap {
    display: none;
}

.article_right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.article_right .post-date {
    font-weight: 500;
}

.baseline .items-per-row-2 {
    grid-gap: 6rem;
}

@media ( max-width: 720px ) {

    .baseline .items-per-row-2 {
        grid-gap: 4rem;
        grid-template-columns: 1fr;
    }

}

.ccsf-docs {
    width: 85rem;
    padding: 3rem;
    background-color: var(--cg-bluewood);
    margin: 0 auto 4rem auto;
    border-radius: var(--cg-radius);
    text-align: center;
}

.ccsf-docs h3 {
    margin-top: 0;
    color: var(--cg-concrete);
    margin-bottom: 2rem;
    display: inline-block;
    position: relative;
    border-bottom: 0.1rem solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.ccsf-docs a {
    color: #fff;
    display: inline-block;
    text-decoration: none;
}

.ccsf-docs ul {
    list-style: none;
    margin-left: 0;
}

.ccsf-docs a:before {
    margin-right: 0.7rem;
    content: '\f15b';
    display: inline-block;
    font-family: "Font Awesome 7 Pro";
    font-weight: 300;
    color: var(--cg-concrete);
    opacity: 0.5;
}
