/*
* SP2-2 Theme Styling of Core & Custom Blocks & Block Patterns
 */


/* --------------------------------------------------------------
Buttons - core and bootstrap in menu
.wp-block-button__link is core button block
.btn-primary is bootstrap and in menu
.give-button is custom amount button for donation
.form_button_submit is external inquiry form
-------------------------------------------------------------- */
.form_button_submit,
.btn-primary,
.wp-block-button__link {
    border-radius: var(--wp--custom--button--radius);
    text-transform: uppercase;
    font-family: var(--wp--custom--typography--fontfamilyboldcondensed);
    font-size: var(--wp--custom--button--font-size);
    border: none;
    letter-spacing: var(--wp--custom--button--letter-spacing);
    padding: .25rem 1.25rem;
    min-width: 150px;
}
/* navigation button */
.btn-primary:hover {
    background-color: var(--wp--custom--button--hover--background);
    color: var(--wp--custom--button--hover--text);
}
/* other body buttons */
.wp-block-button__link:hover {
    /*NO CHANGE IN COLOR, RELY ON UNDERLINE OF LINK FOR HOVER*/
}
.wp-block-button__link:active, .wp-block-button__link:focus, .wp-block-button__link:hover, .wp-block-button__link:visited {
    color: var(--wp--custom--button--color--text);
}
.btn-primary {
    background-color: var(--wp--custom--navbar--button--background);
    color: var(--wp--custom--navbar--button--text);
}
.wp-block-button__link {
    background-color: var(--wp--custom--button--color--background);
    color: var(--wp--custom--button--color--text);
}
.red a.btn.btn-primary {
    background-color: var(--wp--preset--color--red);
    color: var(--wp--preset--color--white);
}
.wp-block-buttons.give-button a.wp-block-button__link {
    width: 200px;
}
.wp-block-buttons > .wp-block-button {
    margin-bottom: 0;
}

/* --------------------------------------------------------------
Callout-well  (this is a carryover from their old site)
-------------------------------------------------------------- */


/* --------------------------------------------------------------
Captions - core
-------------------------------------------------------------- */
.wp-block-video figcaption,
.wp-block-embed figcaption,
.wp-block-image figcaption {
    /*color: var(--wp--preset--color--gray);*/
    color: inherit;
    font-size: var(--wp--preset--font-size--normal);
    text-align: center;
    font-style: italic;
}



/* --------------------------------------------------------------
Cover Block - Hero Block Patterns
can't target the img and the inner-container with tailwind
-------------------------------------------------------------- */
.wp-block-cover .wp-block-cover__inner-container {
    max-width: var(--wp--custom--layout--maxsize);
}

/*.wp-block-cover.t1-hero-a,*/
.wp-block-cover.t1-hero-b {
    padding: 0;
}

/* T1 HERO B */
.wp-block-cover.t3-hero-b {
    align-items: baseline;
}
.wp-block-cover.t3-hero-b .wp-block-cover__inner-container {
    width: 90%;
    max-width: var(--wp--custom--layout--maxsize);
}

/* T1 HERO util (replaces t1-hero-a) */
.wp-block-cover.t1-hero-util::before,
.t1-hero-util span {  /* added for V5.9 */
    margin-right: 40%;
}
.wp-block-cover.t1-hero-util .wp-block-cover__inner-container {
    margin-right: 40%;
    padding: 10rem;
    max-width: var(--wp--custom--layout--maxsize);
}
@media (max-width: 992px) {
    .wp-block-cover.t1-hero-util::before,
    .wp-block-cover.t1-hero-util .wp-block-cover__inner-container {
        margin-right: 0;
    }
}
@media (max-width: 1200px) {
    .wp-block-cover.t1-hero-util .wp-block-cover__inner-container {
        padding: 5rem;
    }
}
@media (max-width: 599px) {
    .wp-block-cover.t1-hero-util .wp-block-cover__inner-container {
        padding: 2rem;
    }
}

/* T1 HERO c */
.wp-block-cover.t1-hero-c::before,
.t1-hero-c span {  /* added for V5.9 */
    margin-left: 40%;
}
.wp-block-cover.t1-hero-c .wp-block-cover__inner-container {
    margin-left: 40%;
    padding: 10rem;
    max-width: var(--wp--custom--layout--maxsize);
}
@media (max-width: 992px) {
    .wp-block-cover.t1-hero-c::before,
    .wp-block-cover.t1-hero-c .wp-block-cover__inner-container {
        margin-left: 0;
    }
}
@media (max-width: 1200px) {
    .wp-block-cover.t1-hero-c .wp-block-cover__inner-container {
        padding: 5rem;
    }
}
@media (max-width: 599px) {
    .wp-block-cover.t1-hero-c .wp-block-cover__inner-container {
        padding: 2rem;
    }
}

/* T3 HERO b - research area landing */
@media (max-width: 992px) {
    .t3-hero-b .wp-block-column.divider-right-col {
        margin-left: 0;
    }
}


/* --------------------------------------------------------------
Download Button
-------------------------------------------------------------- */

.wp-block-file .wp-block-file__button {
    color: transparent;
    background: none;
    margin-left: 0;
    font-size: 1em;
    padding: 0;
}
.wp-block-file .wp-block-file__button:before {
    content: " >";
    color: var(--wp--custom--typography--color)

}
.wp-block-file a.wp-block-file__button:active,
.wp-block-file a.wp-block-file__button:focus,
.wp-block-file a.wp-block-file__button:hover,
.wp-block-file a.wp-block-file__button:visited {
    color: transparent;
}



/* --------------------------------------------------------------
Global Custom Classes
-------------------------------------------------------------- */
/* For adding space inbetween text heavy paragraphs */
.p-space p {
    padding-bottom: .6em;
}

/* For Borders */
.border-blue-left {
    border-left: 1px solid var(--wp--preset--color--blue);
}
.border-blue-right {
    border-right: 1px solid var(--wp--preset--color--blue);
}

/* For applying opacity only to the background of the group div and not the group with cascading text within  */
.blue-background-blur {
    /*background: rgba(138, 180, 214, 0.85);  ORIGINAL LIGHT BLUE*/
    background: rgba(95, 152, 198, 0.85);
}
.white-background-blur {
    background: rgba(252, 252, 252, 0.85);
}
.darkblue-background-blur {
    background: rgba(1, 31, 91, 0.85);
}


/* For hiding elements */
.hide {
    visibility: hidden;
}
@media (max-width: 599px) {
    .none-mobile {
        display:none;
    }
}
.no-title a {
    display: none;
}

/* use on the hero pages with a vertical line divider */
@media (min-width: 992px) {
    .divider-right-col {
        padding: 0 0 0 40px;
        border-left: 1px solid;
    }
    .divider-left-col {
        padding: 0 40px 0 0px;
    }
    /* need to add mobile mod for divider */
}

/* made for adding a left divider line on a group block - color is set in editor */
@media (min-width: 992px) {
    .group-left-line {
        padding: 0 0 0 40px;
        /*border-left: 1px solid var(--wp--preset--color--blue);*/
        border-left: 1px solid;
    }

    @media(max-width: 781px) {
        .group-left-line {
            margin-top: 1.25rem;
            padding-top: 1.25rem;
            border-top: 1px solid;
        }
    }    /* most places this is used, the columns break on tablet, but adding this in case there is an exception. */
}

/* For adding a vertical line on a spacer block - used for title on directory and home page - color is set in editor */
.vertical-line {
    border-left: 3px solid;
    width: 50%;
    margin-left: 50%;
}
/* For adding a vertical line on a spacer block - used for title on events page - color is set in editor */
.vertical-line-left {
    border-left: 3px solid;
}


/* for forcing a break of columns on tablet */
@media(max-width: 992px) {
    .break-flex-tablet {
        display: block;
    }

    .break-flex-tablet .wp-block-column:nth-child(2n),
    .break-flex-tablet .wp-block-column:not(:first-child) {
        margin-left: 0;
    }
    /*.break-flex-tablet .group-left-line-blue,
    .break-flex-tablet .group-left-line-white,*/
    .break-flex-tablet .group-left-line {
        margin-top: 1.25rem;
        padding-top: 1.25rem;
        border-top: 1px solid;
    }
}


/* --------------------------------------------------------------
 Images - core
-------------------------------------------------------------- */
.wp-block-image .alignright {
    margin: 0;
}

.alignright.wp-block-post-featured-image img {
    margin-right: 0;
    margin-left: auto;
}


/* --------------------------------------------------------------
 Media Text 3 Column Block Pattern - column padding controlled by gap - custom pattern
 using tailwind on wp-block-columns: media-text-3 tw-gap-y-9 lg:tw-gap-5
-------------------------------------------------------------- */

/* when the 3rd column breaks off have it span the entire container */
@media (min-width: 600px) and (max-width: 781px) {
    .media-text-3 .wp-block-column:not(:only-child) {
        flex-grow: 1;
    }
}


/* --------------------------------------------------------------
Overlap Content Cards Block Pattern - Revision for small photo
- Columns - core and custom
-------------------------------------------------------------- */

.wp-block-columns.spotlight-small-photo {
    width: 80%;
}

@media (max-width: 1050px) {
    .wp-block-columns.spotlight-small-photo {
        display: block;
    }
}

/* --------------------------------------------------------------
Overlap Content Cards Block Pattern - Revision for small photo - Double Cards
- Columns - core and custom
-------------------------------------------------------------- */
@media (max-width: 781px) {
    .wp-block-columns.people-profile-columns .wp-block-column {
        flex-grow: 1;
        min-width: 0;
        word-break: break-word;
        overflow-wrap: break-word;
        flex-basis: inherit !important;
        margin-left: 0;
    }

    .wp-block-columns.people-profile-columns .wp-block-column .wp-block-image .alignright {
        float: none;
    }

    .wp-block-columns.people-profile-columns .wp-block-column .wp-block-column:nth-child(2n) {
       /* margin-left: 0;*/
    }
    .people-profile-columns .wp-block-column:nth-child(2n) .wp-block-columns {
        margin-top: 40px;
    }
 }


/* --------------------------------------------------------------
Overlap Content Cards Block Pattern - 1 - Columns - core and custom
first version was .single-overlap-card-left and .single-overlap-card-right with columns
current version is modeled after a media text block and class is right-overlap or left-overlap
-------------------------------------------------------------- */
.right-overlap .wp-block-image,
.left-overlap .wp-block-image {
    margin-bottom: 0;
}

.single-overlap-card-left {
    margin-left: 40px;
    align-self: center;
}
.single-overlap-card-right {
    margin-left: -15%;
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .wp-block-columns.single-overlap-card {
        display: block;
    }
    .single-overlap-card-left {
        margin-left: 20%;
        margin-bottom: -40px;
    }
}
@media (max-width: 992px) {
    .single-overlap-card-right {
        margin-left: 0;
    }
}
.wp-block-columns.single-overlap-card {
    max-width: 1920px;
}

/* --------------------------------------------------------------
Overlap Content Cards - 2 - Columns - core and custom
-------------------------------------------------------------- */

/* override the flex break from 599 to 992*/
@media (max-width: 1050px) {
    .wp-block-columns.overlap-cards {
        display: block;
    }
}

/* OVERLAPPING CONTENT CARD - Override the WP no first child block column setting */
.tw-w-5\/6-84  {
    width: 84%;
}

/*@media (min-width: 992px) {*/
@media (min-width: 1051px) {
    .overlap.wp-block-column:not(:first-child),
    .wp-block-columns:not(.is-not-stacked-on-mobile)>.overlap.wp-block-column:not(:first-child) {
        margin-left: -18%;
    }
}
@media (min-width: 1200px) {
    .overlap.wp-block-column:not(:first-child),
    .wp-block-columns:not(.is-not-stacked-on-mobile)>.overlap.wp-block-column:not(:first-child) {
        margin-left: -15%;
    }
}

/* OVERLAPPING CONTENT CARD - On mobile, place the text box below the image */
/*@media (max-width: 992px) {*/
@media (max-width: 1050px) {
    .wp-block-column.overlap {
        display: flex;
        flex-direction: column-reverse;
    }
}
/*@media (max-width: 992px) {
    .wp-block-column .wp-block-group.overlap-card-left-text {
        margin-bottom: 40px;
    }
}*/
/* @media (max-width: 992px) { */
@media (max-width: 1050px) {
    .wp-block-column .wp-block-group.blue-background-blur,
    .wp-block-column .wp-block-group.white-background-blur{
        margin-top: -5%;
    }
}

/* apply the padding on text block with background*/
.wp-block-group.has-background.overlap-card-text {
    padding: 1.75em 2.375em;
}


.wp-block-columns.overlap-cards {
    max-width: 1600px;  /* the images will stop increasing in size and pull apart*/
}


/* --------------------------------------------------------------
Paragraph - core -
-------------------------------------------------------------- */
/* there is a class 'no-space', that is in polyfill.css that is meant to make it easy for content
manager to remove the default spacing on a paragraph.  Tailwind classes can also be used in the
advanced css for the block.
 */

/* --------------------------------------------------------------
Search - core
-------------------------------------------------------------- */

/* search form needs a label for accessibility, the label should be enabled, this will hide it */
.wp-block-search__label {
    border: 0;
    clip: rect(1px 1px 1px 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    color: var(--wp--preset--color--white);
}

.wp-block-search .wp-block-search__inside-wrapper {
    border-bottom: 1px solid var(--wp--preset--color--white);
}
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper,
.wp-block-search .wp-block-search__input {
    border: none;
    /*border-bottom: 1px solid var(--wp--preset--color--white);*/
    color: var(--wp--preset--color--white);  /* color of text that is inputted */
    padding: 0 !important;
}
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input,
.wp-block-search .wp-block-search__input {
    background-color: var(--wp--preset--color--darkblue);
    font-size: var(--wp--preset--font-size--xs);
}
.wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input,
.wp-block-search .wp-block-search__input {
    background-color: transparent;
}
.wp-block-search .wp-block-search__button {
    background: none;
    border: none;
    margin-left: 0;
    padding: 0 !important;
}
.wp-block-search .wp-block-search__button svg {
    fill: white;
}

@media (max-width: 991px) {
    .wp-block-search .wp-block-search__inside-wrapper {
        /*max-width: 50%;*/
        margin-bottom: 40px;
    }
}

@media (max-width: 991px) {
    .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper .wp-block-search__input,
    .wp-block-search .wp-block-search__input {
        background-color: var(--wp--preset--color--darkblue);
        font-size: 20px;
    }
}

/* --------------------------------------------------------------
Separator - core
-------------------------------------------------------------- */

.wp-block-separator,
.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
    max-width: var(--wp--custom--layout--maxsize);
    width: var(--wp--custom--layout--contentsize);
    border-bottom: 1px solid;
    opacity: 1;
}


/* --------------------------------------------------------------
Social Media Links
-------------------------------------------------------------- */

/* remove left padding from the first social media icon */
/*.wp-block-social-links.is-style-logos-only li:first-child.wp-social-link,
.wp-block-social-links.is-style-logos-only li:first-child.wp-social-link a{
    padding: 4px 4px 4px 0 !important;
}*/
/* return styling to pre v5.9 */
.wp-block-social-links .wp-social-link.wp-social-link.wp-social-link {
    margin: 4px 18px 4px 0;
}
.wp-block-social-links.is-style-logos-only .wp-social-link svg {
    width: 1em;
    height: 1em;
}

/* --------------------------------------------------------------
Spacer Block Patterns
-------------------------------------------------------------- */
@media (max-width: 991px) {
    .wp-block-spacer.section-top-bottom-padding {
        height: 60px;
    }
}
@media (max-width: 991px) {
    .wp-block-spacer.inner-container-padding {
        height: 30px;
    }
}



