/**
 * @file
 * Optional site styling and customization examples for ESUNT.
 */

/*
 * Set Theme customization > Custom CSS file to this file to enable active rules.
 * To retain customizations after updates, copy it outside the theme and select
 * the copy instead. Image URLs must then be adjusted to the new location.
 *
 * Optional examples are commented out. Custom color fields left blank use the
 * theme palette defaults. Use light-dark(light-color, dark-color) where needed.
 * Footer social and page icons follow Footer links and Footer links hover
 * colors; global icon colors apply outside the footer.
 */

/* APPEARANCE AND BRANDING */

/* Developer branding below the page. Remove or comment out to hide it. */
#brand {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  border-radius: 100%;
  /*background: #f4f6f7 url(../../../0/logo/logo-197x150.png) center no-repeat;*/
  background: #f4f6f7 url(lotus.svg) center no-repeat;
  background-size: 48px 32px;
}


/* FIELDS, MEDIA AND SHARING */

/* Blog Post media */
.node--type-blog-post .node__content > .field--name-field-media {
  float: left;
  margin: 0 1.25rem 1rem 0;
}

/* EU COOKIE COMPLIANCE */

/* EU Cookie Compliance presentation, using the active ESUNT palette. */
body div#sliding-popup,
body div#sliding-popup .eu-cookie-withdraw-banner,
body div#sliding-popup .eu-cookie-withdraw-tab {
  color: #fff;
  background: light-dark(#333, #111);
}
/* Keep the withdrawal wrapper transparent around the visible banner. */
body div#sliding-popup.eu-cookie-withdraw-wrapper {
  background: transparent;
}
#sliding-popup .eu-cookie-compliance-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 85em;
  padding: 0.75rem;
  text-align: start;
  gap: 0.75rem 1.5rem;
}
#sliding-popup .eu-cookie-compliance-message {
  float: none;
  flex: 1 1 25em;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
#sliding-popup .eu-cookie-compliance-message :is(h1, h2, h3, p),
#sliding-popup .eu-cookie-compliance-category label,
#sliding-popup .eu-cookie-compliance-category-description {
  color: #fff;
  font-family: inherit;
  line-height: 1.4;
}
#sliding-popup .eu-cookie-compliance-message :is(h1, h2, h3) {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}
#sliding-popup .eu-cookie-compliance-message p {
  display: block;
  font-size: 0.875rem;
  font-weight: normal;
}
#sliding-popup .eu-cookie-compliance-buttons,
#sliding-popup .eu-cookie-compliance-categories-buttons {
  display: flex;
  float: none;
  flex-wrap: wrap;
  max-width: 100%;
  margin: 0;
  gap: 0.5rem;
}
#sliding-popup .eu-cookie-compliance-categories {
  flex-basis: 100%;
  padding-top: 0;
}
#sliding-popup .eu-cookie-compliance-categories-buttons {
  margin-top: 0.75rem;
}
#sliding-popup .eu-cookie-compliance-buttons button,
#sliding-popup .eu-cookie-compliance-save-preferences-button,
#sliding-popup .eu-cookie-withdraw-tab {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  white-space: normal;
  text-decoration: none;
  color: var(--heading, #102f46);
  border: 1px solid var(--border, #ccdde9);
  border-radius: 0;
  background: var(--surface, #f1f6fa);
  box-shadow: none;
  text-shadow: none;
  font: inherit;
  font-size: 0.875rem;
  font-weight: bold;
  line-height: 1.4;
}
.rnd #sliding-popup .eu-cookie-compliance-buttons button,
.rnd #sliding-popup .eu-cookie-compliance-save-preferences-button,
.rnd #sliding-popup .eu-cookie-withdraw-tab {
  border-radius: 0.3125rem;
}
#sliding-popup .eu-cookie-compliance-buttons button:hover,
#sliding-popup .eu-cookie-compliance-save-preferences-button:hover,
#sliding-popup .eu-cookie-withdraw-tab:hover {
  color: var(--heading, #102f46);
  background: light-dark(#fff, #303438);
}
#sliding-popup a,
#sliding-popup .eu-cookie-compliance-message button {
  text-decoration: underline;
  color: #fff;
}
#sliding-popup :is(button, a, input):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/*** BZZ ***/

/* ESUNT content images */
.eleft, .ecenter, .eright {
  max-width: 100%;
  margin-bottom: 1em;
}

.eleft {
  float: left;
  margin-right: 1.5em;
}

.eright {
  float: right;
  margin-left: 1.5em;
}

.ecenter {
  display: table;
  margin-left: auto;
  margin-right: auto;
  clear: both;
}

.eleft img, .ecenter img, .eright img {
  display: block;
  max-width: 100%;
  height: auto;
}


/*** MEDIA SCREENS (35.5, 48 & 64em) ***/
@media screen and (width < 48em) {
  /* Keep short slideshow images at least 12rem tall on phones.
     This may crop the image or exceed a lower Maximum slide height setting. */
  #slider .slide-image {
    min-height: 12rem;
    object-fit: cover;
  }

  #sliding-popup .eu-cookie-compliance-content {
    justify-content: center;
    text-align: center;
  }

  #sliding-popup .eu-cookie-compliance-message {
    flex-basis: 100%;
    text-align: center;
  }

  #sliding-popup .eu-cookie-compliance-buttons,
  #sliding-popup .eu-cookie-compliance-categories-buttons {
    justify-content: center;
    width: 100%;
  }
  /*** BZZ ***/
  .eleft, .eright {
    float: none;
    display: table;
    margin-left: auto;
    margin-right: auto;
  }
}

