/* For smaller, one-off styling needs that don't fit elsewhere */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-print-color-adjust:exact !important;
    print-color-adjust:exact !important;
}

.cursor-pointer {
    cursor: pointer;
}

details {
    padding-bottom: 1rem;
}

details summary {
    font-family: var(--wp--preset--font-family--bold), sans-serif;
    font-size: 1.1rem;
    padding-bottom: .5rem;
    cursor: pointer;
}

.overflow-hidden {
    overflow: hidden;
}

.overflow-clip{
    overflow: clip;
}

.text-shadow {
    text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.25);
}

.box-shadow {
    box-shadow: 0 3px 5px rgb(0 0 0 / 0.25);
}

.transition-all,
.transition-all * {
    transition: all 0.2s ease;
}

.post-divider{
    width:2px;
}

/* image treatment styles (global) */

.grayscale{
    filter: grayscale(1);
}

.grayscale-25.contrast{
    filter: contrast(88%) grayscale(0.25);
    opacity: 75%;
}

.grayscale.contrast {
    filter: contrast(88%) grayscale(1);
    opacity: 75%;
}

/* Resetting/ignoring image filters for 'full-color' images as set in the ACF block */
.full-color .grayscale,
.full-color .grayscale.contrast {
    filter: none;
    opacity: 1;
}
.full-color .opacity-60 {
    opacity: 0;
 }

.mix-blend-mode-overlay{
    mix-blend-mode: overlay;
 }

.publication-post-card img, 
.contributor-container img, 
.single-publication-news img,
.series-four-up img {
    filter: grayscale(1);
}

.background-image-container{
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.newsletter svg {
    width:150px;
    height:auto;
}

.newsletter input[type=text] {
    margin-bottom: 0.5rem;
}


/* series stickers and featured work stars */

.post-sticker:not(.featured-work) {
    padding: 0.5rem !important;
}

@media screen and (max-width: 576px) {
.post-sticker h4{
    font-size: 0.75rem !important;
    width: 100%;
}
}

.post-sticker h4{
    font-size: 0.9rem;
    width: 100%;
}


.post-sticker.featured-work.star{
    transform: translateY(-25%);
    max-width: 85px;
}

.publication-post-card .post-sticker,
.featured-post-card .post-sticker,
.post-carousel-card .post-sticker,
.post-carousel .post-sticker    {
    top: 0;
    right: 10px;
    transform: translateY(-15%);
    /* max-width: 100px; */
    min-height: 75px;
    text-align: center;
    position: absolute;
    
}

.single-post-template .post-header .post-sticker {
    top: 0;
    right: 10px; 
    transform: translateY(-10%); 
    margin-bottom: -50px;
    /* max-width: 120px; */
    min-height: 85px;
    text-align: center;
    position:absolute;
    
}

.series-posts .post-sticker{
    display:none !important;
}

@media screen and (min-width: 576px) {

.post-sticker.featured-work.star {
 transform: translateY(-15%) !important;
 max-width: 100px !important;

}

.single-post-template .post-header .post-sticker.featured-work.star{
transform: translateY(0%) !important;
max-width: 100px !important;
}
    

.publication-post-card .post-sticker,
.featured-post-card .post-sticker,
.post-carousel-card .post-sticker,
.post-carousel .post-sticker    {
    /* max-width: 120px; */
    min-height: 85px;   
}

.single-post-template .post-header .post-sticker {
    right: 20px; 
    max-width: 180px;
    min-height: 85px;
}

.single-post-template .post-header .post-sticker {
        top:auto !important;
        bottom: 0;
        left: 20px; 
    }

    body.single .featured-post .post-sticker{
        transform: translateY(-30%) scale(0.7);
        right: -5px;
    }
    

}

.spotlight-header-container .post-sticker{
    bottom: 0;
    left: var(--two-spacer);
    transform: translateY(25%);
    /* max-width: 120px; */
    min-height: 90px;
    text-align: center;
    position:absolute; 
}

.research-area img,
.research-area-card img,
.research-area-header img,
.spotlight-header-icon svg {
    width: 120px;
    height: 120px;
    object-fit: contain;
}


.research-area-card{
    padding-top:2rem !important;
    padding-bottom:2rem !important;
}

.research-area-header {
    width: 100%;
    height:auto;
}

div.research-area-header::before,
div.spotlight-header-container::before {
    z-index:-2;
    content: "";
    position: absolute;
    width: 100%;
    height:90%;
    top:0;
    left:0;
    bottom:0;
    right:0;
    border-bottom: 2px solid black;

}

body.standard-background,
header.standard-background {
    background-color:var(--wp--preset--color--off-white);
}

/* .dark-background page styling*/

.dark-background *:not(.has-background *) {
    color:var(--wp--preset--color--off-white);
}

.dark-background .sidebar-group img,
.dark-background #site-header button,
.dark-background *::before,
.dark-background *::after,
.dark-background .invert-image,
.dark-background .wp-block-separator.is-style-star-divider
{
   filter: invert(0.95);
}
    
 /* svgs take text color, except featured work sticker */
.dark-background svg:not(.featured-work), 
.dark-background svg:not(.featured-work) path {
    fill: currentColor;
}

.dark-background .post-divider{
    background-color: var(--wp--preset--color--off-white) !important;
}
   
/*spotlight banner on .dark-background */
.dark-background .spotlight-banner svg{
    border-radius: 100px;
    background-color: #222222;
    stroke:2px #222222 solid;
    }

.dark-background .spotlight-banner div * {
   color:initial;
 }

.spotlight-banner-card svg, .spotlight-icon svg {
    border: 2px solid;
    border-radius: 100px;
}

img.themed-single-row {
    padding: 3rem !important;
}

.dark-background .submenu {
    background-color: #222222 !important;
}


/* form styling global + newsletter card */

form {
    height: var(--three-spacer);
  }

  #mc_embed_signup .mc-field-group input {
    border-radius: 0;
    background-color:transparent;
    border: none !important;
    outline: none !important;
    border-bottom: 2px solid !important;
    margin-bottom: 1rem;
    padding-bottom: var(--one-spacer)!important;
    padding-right: var(--one-spacer) !important;
    padding-top: var(--one-half-spacer) !important;
  }

  #mc_embed_signup form {
    margin:0 !important;
  }

  .mc-field-group {
    padding: 0 !important;
    padding-right: var(--one-spacer) !important;
  }

 
  #mc_embed_signup .helper_text,
  #mc_embed_signup #mc-embedded-subscribe-form div.mce_inline_error {
    color: var(--wp--preset--color--black) !important;
    margin-top: 2px;
    display: inline-block;
    padding: 0 !important;
    background-color: transparent !important;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: normal;
  }

  #mc_embed_signup #mc-embedded-subscribe-form input.mce_inline_error {
    border: 1px solid var(--wp--preset--color--black);
  }

h4 input, #mc_embed_signup .button {
    color: var(--wp--preset--color--black) !important;
    background-color: transparent !important;
    border: none !important;
    font-family: var(--wp--preset--font-family--bold), sans-serif !important;
    text-transform: uppercase !important;
    font-weight: normal !important;
    line-height: 1 !important;
    padding: 0 !important;
}

::-webkit-input-placeholder, ::-moz-placeholder, ::-ms-placeholder, ::placeholder {
    font-family: var(--wp--preset--font-family--regular), sans-serif;

}

#mc_embed_signup div#mce-responses {
    margin: 0 !important;
    padding: 0 !important;
}

#mc_embed_signup div.response {
    padding: 1rem 0 !important;
    margin: 0 !important;
}



/*four-up image grid */

.four-up-images img {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 300px;
    object-fit: cover;
}


/*add to utlitity.css */

.background-position-center {
    background-position:center;
}

.research-area-header img, .research-area-header svg {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

/*author.php */

.twitter-link svg{
    height: 24px;
}

.twitter-link, .twitter-link:hover{
    text-decoration:none !important;
    border-bottom:none !important
}

/*taxonomy: series page */

.series-posts .featured-post-card:not(:last-child) {
    border-bottom: 2px solid;
    padding-bottom:var(--standard--content-spacer) !important;
}

/*search*/

.site-header.search svg{
    height: 50px;
}

/*carousel card */


@media screen and (min-width: 992px) {
.swiper-wrapper .swiper-slide:first-child {
    margin-left: var(--three-spacer);
}

}

/* opacity utility classes */

.opacity-10 {
    opacity: 10%;
  }

.opacity-30 {
    opacity: 30%;
  }
  
  .opacity-60 {
    opacity: 60%;
  }
  
  .opacity-80 {
    opacity: 80%;
  }

  .opacity-100 {
    opacity: 100%;
  }
    
    
  /* z-index utility classes */
  .z-index-1{
    z-index:1 !important;
  }
  
  .z-index-n1{
    z-index:-1 !important;
  }
  
  /*image styles in Gutenberg*/
  
  .wp-block-image.is-style-rounded img{
    border-radius: 12px !important;
  }
  
  .wp-block-image.is-style-grayscale img{
    border-radius: 12px !important;
    filter:grayscale(1);
  }
  
  /*quote styling*/
  
  
  .wp-block-quote {
    border-left: 2px solid !important;
  }
  
  /*pullquote styling*/
  
  .wp-block-pullquote {
    border:none !important;
    position: relative;
    left: 0;
    right: 0;
    width: var(--responsive--alignwide-width);
    margin-top:0;
    margin-bottom:0;
    padding:0;
  }
  
  .wp-block-pullquote p {
    font-family: var(--wp--preset--font-family--medium), sans-serif !important;
    font-size: 2rem;
    line-height: 125%;
    padding:2rem 0;
    position: relative;
    left: 0;
    text-align: left;
   }
  
  @media screen and (min-width: 992px) {
    .wp-block-pullquote {
      margin-left: calc(calc(calc(var(--responsive--alignwide-width) - 0rem) /12) * -1);
    }
  
    .wp-block-pullquote p {
      padding:2rem 0;
      font-size: 3rem;
      position: relative;
      left: 0;
      padding: 2rem;
      text-align: center;
     }
  
  }
   
figure.wp-block-embed.is-type-video iframe {
    width: 100% !important;
}

.taxonomy-label h4.new {
    padding: 0.125rem !important;
    position:relative;
    top: -0.125rem;
}

@media screen and (max-width: 576px) {
div.category-posts .publication-post-card:first-child {
    margin-top: 0rem !important;
}
}

.wp-block-image.has-custom-border img {
    border-style: solid;
}