#cuny-gc-logo {
    height: 20px;
    width: auto;
    fill: currentColor;
}

#site-header.inverted svg * {
    fill: currentColor !important;
}

#site-header.inverted svg line {
    stroke: currentColor !important;
}

#site-header.inverted * {
    color: currentColor;
}

.main-logo svg {
    fill: currentColor;
}

.main-logo-summer {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 60px;
    width: 60px;
    transform: translate(-50%, -50%);
}

.main-logo-spring {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 60px;
    width: 60px;
    transform: translate(-50%, -50%);
}

.main-logo-fall {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 60px;
    width: 60px;
    transform: translate(-50%, -50%);
}

.main-logo-winter {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 60px;
    width: 60px;
    transform: translate(-50%, -50%);
}

.text-logo {
    pointer-events: auto; /* Ensure pointer events are enabled */
}

.gc-logo {
    margin-left: -1px;
}

.text-logo-wrapper {
    margin-left: -3px;
}


.logo-wrapper {
    position: relative;
    height: 71px;
    width: 71px;
}

#site-header .menu-item {
    white-space: nowrap;
    font-weight: 700;
    margin-right: var(--four-spacer);
}

#site-header ul.menu-wrapper li.menu-item:last-child {
    margin-right: 0px;
}

#site-header ul.menu-wrapper li.menu-item:nth-last-child(2) {
    margin-right: 0px;
}

#menu-toggle {
    position: relative;
}

#menu-toggle svg {
    position: absolute;
    top: 1px;
    left: -25px;
}

body.menu-open #primary-menu-list .sub-menu {
    margin-top: 0px;
    margin-left: var(--one-spacer);
}

body.menu-open #primary-menu-list .sub-menu li {
    margin-top: 0px;
    padding-top: var(--one-spacer);
    padding-bottom: var(--one-spacer);
}

body.menu-open #primary-menu-list li.menu-item {
    opacity: 1 !important;
}

#site-header .menu-item .sub-menu .menu-item {
    margin-right: 0px;
}

#site-header .menu-item .sub-menu:hover .menu-item {
    opacity: .5 !important;
}

#site-header .menu-item .sub-menu .menu-item:hover {
    opacity: 1 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

header {
    z-index: 1;
}

body:not(.home) #header-main .menu-wrapper .menu-item {
    opacity: .5;
}

body:not(.home) #header-main .menu-wrapper .current-menu-ancestor.menu-item {
    opacity: 1;
}

body:not(.home) #header-main .menu-wrapper .menu-item:hover {
    opacity: 1;
}

body:not(.home) #header-main .menu-wrapper .current-menu-ancestor.menu-item .sub-menu:hover .menu-item {
    opacity: .5;
}

body:not(.home) #header-main .menu-wrapper .current-menu-item.menu-item {
    opacity: 1;
}

body:not(.home) #header-main .sub-menu .current-menu-item.menu-item {
    opacity: 1;
}

#site-header .menu-wrapper:hover .menu-item {
    opacity: .5;
}

#site-header .menu-wrapper .menu-item:hover {
    opacity: 1;
}


#header-main {
    position: relative;
}

#site-header .long-title {
    min-width: 140px;
    max-width: 140px;
}

#site-header .short-title {
    min-width: 108px;
    max-width: 108px;
    white-space: wrap !important;
}

#site-header .menu-item * {
    line-height: 1.2 !important;
}

#site-header .sub-menu .menu-item {
    font-weight: 500;
    margin-top: var(--one-spacer);
    white-space: break-spaces;
}

.cfth-search label {
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

input[type="search"]::-webkit-search-cancel-button {

    /* Remove default */
    -webkit-appearance: none;
  
    /* Now your own custom styles */
    height: 30px;
    width: 25px;
    background-size: contain;
    background: transparent;
    display: none;
    padding-right: 0px;
    cursor: none;
  }

.inverted .toc-links h6 a {
    color: var(--color-white);
}

/* .cfth-search label::before {
    position: absolute;
    content: ' ';
    height: 20px;
    width: 20px;
    background-color: blue;
    top: 0px;
    left: -25px;
} */


.cfth-search input {
    font-weight: 700;
}

::-webkit-input-placeholder {
    color: currentColor;
    opacity: .5;
}

::-moz-placeholder {
    opacity: .5;
    color: currentColor;
}

::-ms-placeholder {
    opacity: .5;
    color: currentColor;
}

::placeholder {
    opacity: .5;
    color: currentColor;
}

@media screen and (min-width: 992px) {
    body:not(.home) #header-main .sub-menu .menu-item {
        opacity: 0;
        transition: all 0.2s linear;
    }
    body:not(.home) #header-main .current-menu-parent .sub-menu .menu-item {
        opacity: .1;
        transition: all 0.2s linear;
    }
    body:not(.home) #header-main .current-menu-parent .sub-menu .current-menu-item.menu-item {
        opacity: 1;
        transition: all 0.2s linear;
    }
    body:not(.home) #header-main .current-page-ancestor.menu-ite, body:not(.home) #header-main .current-project-ancestor.menu-item {
        opacity: 1;
        transition: all 0.2s linear;
    }
    body:not(.home) #header-main .current-page-ancestor .sub-menu .current-page-ancestor.menu-item, body:not(.home) #header-main .current-project-ancestor .sub-menu .current-project-ancestor.menu-item {
        opacity: 1;
        transition: all 0.2s linear;
    }
    body:not(.home) #header-main .current-menu-item .sub-menu .menu-item {
        opacity: 1;
        transition: all 0.2s linear;
    }
}

body:not(.home) #header-main:hover .sub-menu .menu-item {
    opacity: 1;
}

#site-header .menu-item a {
    text-decoration: none;
    color: inherit;
}

.search #header-main .menu-item {
    visibility: hidden !important;
    transition: all 0s linear !important;
}

.search.search-results #header-main .menu-item {
    visibility: visible !important;
    transition: all 0s linear !important;
}

#site-header .menu-item a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.menu-flex-direction-change {
    flex-direction: row;
}

@media screen and (min-width: 1024px) {
    #site-header #menu-toggle {
        display: none;
    }
}

@media screen and (max-width: 1170px) {

#site-header .menu-item {
    margin-right: 25px;
}

}


@media screen and (max-width: 1023px) {
    
    #site-header #primary-menu-list {
        display: none !important;
    }

    #site-header #primary-menu-list.active {
        display: block !important;
    }

    #site-header .menu-item {
        padding: 1rem 0;
    }

    /* Hiding site content on header open (mobile) */
    #page-wrapper.hidden,
    #site-footer.hidden {
        opacity: 0;
    }

}

#primary-menu-list {
    font-family: "Martina Plantijn", serif;
    font-weight: 700;
    font-style: normal;
}

#primary-menu-list .sub-menu {
    font-family: "Martina Plantijn", serif;
  font-weight: 700;
  font-style: normal;
}

#primary-menu-list > .current-menu-item,
#primary-menu-list > .current-page-ancestor,
#primary-menu-list > .current-project-ancestor,
#primary-menu-list > .current-menu-ancestor {
    position: relative;
}

@media screen and (min-width: 992px) {
    #primary-menu-list > .current-menu-item::before,
    #primary-menu-list > .current-page-ancestor::before,
    #primary-menu-list > .current-project-ancestor::before,
    #primary-menu-list > .current-menu-ancestor::before {
        content: '';
        position: absolute;
        left: 0;
        top: -15px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: currentColor;
    }
}

#page-title h1 p {
    width: 100%;
    font-size: 7.5rem;
    line-height: 0.85;
}

.cfth-search {
    display: flex;
    align-items: baseline;
    width: fit-content;
    height: fit-content;
}

#search-modal {
    width: calc(100% - 326px) !important;
    position: absolute;
    left: 314px;
}

.search-button {
    cursor: pointer;
    position: absolute;
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    border-radius: 0;
    background: transparent;
    outline: none;
    border: 0;
    width: 50px;
    height: 23px;
    margin-left: 40px;
    right: 20px;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
    text-align: right;
}

.search-button svg {
    left: -23px;
    position: absolute;
    top: 3px;
}

.search-button.open {
    left: -20px;
}

.search-button.open svg {
    left: -12px;
    top: 2px;
}

.hidden {
    visibility: hidden !important;
}

.cfth-search input {
    border-radius: 0;
    background: transparent;
    outline: none;
    border: 0;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

#site-header.search .cfth-search input {
    width: 100%; /* Or another value that makes it visible */
    min-width: 90%;
    height: auto;
    pointer-events: all;
}

#search-modal {
    display: none !important;
    position: absolute;
    top: -170px;
    width: 100%;
    z-index: 9998;
}

#search-modal.active {
    display: block !important;
}
  
@media not all and (min-resolution:.001dpcm) {
    .input-group-btn {
        padding: 15px 8px 15px 15px;
    }
}

#site-header .cfth-search input {
    width: 0;
    height: 0;
    pointer-events: none;
    overflow: hidden;
}

.cfth-search button {
    cursor: pointer;
}

.search-form {
    width: 100%;
    display: flex;
}

.search-form .input-group {
    width: 100%;
}

.search-form input {
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    border-radius: 0;
    background: transparent;
    outline: none;
    border: 0;
    width: 100%;
    height: 50px;
    border-bottom: 1px solid currentColor;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.search-form button {
    font-size: inherit;
    font-family: inherit;
    font-weight: 700;
    border-radius: 0;
    background: transparent;
    outline: none;
    border: 0;
    width: 50px;
    height: 50px;
    color: inherit;
    appearance: none;
    -webkit-appearance: none;
}

#site-header.search .cfth-search label {
    display: none;
}
#site-header.search .cfth-search input {
    width: 100%;
    min-width: 90%;
    height: fit-content;
    pointer-events: all;
}

#site-header.search .cfth-search button {
    width: 50px;
    min-width: 20px;
    height: fit-content;
    pointer-events: all;
}

#site-header.search .cfth-search input {
    border-bottom: 1px solid;
    margin-right: var(--one-spacer);
}


.is-style-visible-toc {
    height: calc(100vh + 1px);
    margin-top: -225px !important;
    background-color: var(--header-custom-bg-color);
    color: var(--header-custom-text-color);
    z-index: 0;
    min-height: 700px;
}

@media screen and (max-width: 1024px) {

    .is-style-visible-toc {
        height: calc(115vh + 1px);
        margin-top: -225px !important;
        background-color: var(--header-custom-bg-color);
        color: var(--header-custom-text-color);
        z-index: 0;
        min-height: 700px;
    }

}

.is-style-hero {
    height: calc(100vh + 1px);
    margin-top: -225px !important;
    background-color: var(--header-custom-bg-color);
    color: var(--header-custom-text-color);
    z-index: 0;
    min-height: 700px;
}

.is-style-full {
    height: auto;
    margin-top: -225px !important;
    background-color: inherit;
    color: var(--header-custom-text-color);
    z-index: 0;
}

.wp-block-cover.is-style-default {
    margin-top: 0px !important;
}

.wp-block-cover.is-style-default {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
}

.series-header {
    background-color: var(--header-custom-bg-color);
    color: var(--header-custom-text-color);
}

.wp-block-cover.is-style-visible-toc .has-background-dim:not([class*=-background-color]) {
    background-color: var(--header-custom-bg-color);
}

.wp-block-cover.is-style-full .has-background-dim:not([class*=-background-color]) {
    background-color: inherit;
}

body.logged-in .toc-links {
    margin-top: -100px !important;
    z-index: 3;
}

.toc-links {
    background-color: var(--color-nav-bg);
    color: var(--header-custom-text-color);
    margin-top: -70px !important;
    z-index: 3;
}


.toc-links.transparent {
    background-color: transparent;
}

.transparent-header {
    background-color: transparent !important;
}

body.home .is-style-full {
    height: 100vh;
    max-height: 100%;
    margin-top: -225px !important;
}

body.home .is-style-full .single-hero {
    padding-top: 225px;
}

@media screen and (max-width: 991px) {
    body:not(.menu-open) .is-style-visible-toc {
        height: 100vh;
        max-height: 650px;
    }

    body.home .is-style-visible-toc {
        height: 100vh;
        max-height: 100%;
        margin-top: 0px !important;
    }

    body:not(.menu-open) .is-style-full {
        height: 100vh;
        max-height: 650px;
    }

    body.home .is-style-full {
        padding-top: 100px;
        height: 100%;
        max-height: 100%;
        margin-top: 0px !important;
    }

    .hero-image {
        height: auto;
        width: 100%;
    }

    .transparent-header {
        background-color: var(--header-custom-bg-color) !important;
        color: var(--header-custom-text-color) !important;
    }

    #site-header.menu-active {
        background-color: var(--header-custom-bg-color) !important;
        color: var(--header-custom-text-color) !important;
    }

    body.not-home .transparent-header {
        background-color: transparent !important;
    }

    body.not-home .transparent-header.menu-active {
        background-color: var(--header-custom-bg-color) !important;
    }
}

@media screen and (max-width: 1023px) {

    body.home .is-style-full {
        height: 100%;
        max-height: 100%;
        margin-top: -225px !important;
    }

    body.home .is-style-full .single-hero {
        padding-top: 200px;
    }

    body:not(.menu-open) .is-style-hero {
        height: 100vh;
        max-height: 650px;
    }


    .menu-flex-direction-change {
        flex-direction: column;
    }

    #search-modal {
        width: calc(100% - 30px) !important;
        position: absolute;
        top: -10px;
        left: 20px;
    }

    .search-button {
        position: absolute;
        top: 100px !important;
        right: 20px !important;
        float: right;
        z-index: 999;
    }

    .search .cfth-search {
        right: 30px;
    }

    #menu-toggle {
        position: absolute;
        top: 20px;
        font-size: 1rem;
        right: 20px;
        z-index: 999;
        font-family: "Martina Plantijn", serif;
        font-weight: 700;
        cursor: pointer;
        color: currentColor;
    }
}
