/**
This file holds some CSS to make the default elements look a little bit better. You will probably want to move these
rules to a scss file and delete this file. Also make sure to remove the enqueuing of this file. Search for dev.css in
the theme to find what you are looking for.
 */

#navbar--primary-menu .dropdown-menu .active .dropdown-item {
  font-weight: bold;
}

.echocrate-nav {
  list-style: none;
  padding: 0;
}

.echocrate-nav .nav-link {
  padding-left: 0;
}


/** Avoid margin collapsing **/
.ec-module-group:before,
.ec-module-group::after {
  content: ' ';
  display: table;
}

.container-fluid.ec-container-fluid--no-margin {
  padding-left: 0;
  padding-right: 0
}

.container-fluid.ec-container-fluid--no-margin .row {
  margin-left: 0;
  margin-right: 0;
}



.container-fluid.ec-container-fluid--no-margin div[class^='col']:first-of-type  {
  padding-left: 0;
}

.container-fluid.ec-container-fluid--no-margin div[class^='col']:last-of-type  {
  padding-right: 0;
}

.ec-m-link-group--vertical .ec-m-link__wrapper {
  display: block;
  margin-bottom: 12px;
}

.ec-m-link-group--vertical .ec-m-link__wrapper:last-of-type {
  margin-bottom: 0;
}

.ec-m-teasers__col {
  margin-bottom: 24px;
}

.ec-m-generic-teaser-1 {
  text-align: center;
}

.ec-m-generic-teaser-1--text-over-image {
  height: 100%;
}

.ec-m-generic-teaser-1--text-over-image .ec-m-generic-teaser-1__inner {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  height: 100%;
}

.ec-m-generic-teaser-1--text-over-image .ec-m-generic-teaser-1__inner > div {
  grid-column-start: 1;
  grid-row-start: 1;
}

.ec-m-generic-teaser-1--text-over-image .ec-m-generic-teaser-1__image-inner {
  height: 100%;
}

.ec-m-generic-teaser-1--text-over-image img,
.ec-m-generic-teaser-1--text-to-the-right img,
.ec-m-generic-teaser-1--text-to-the-left img {
  height: 100%;
  object-fit: cover;
}

.ec-m-generic-teaser-1--text-below-image .ec-m-generic-teaser-1__image {
  margin-bottom: 12px;
}

.ec-m-generic-teaser-1--text-over-image .ec-m-generic-teaser-1__content {
  position: relative;
  display: flex;''
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.ec-m-generic-teaser-1--text-to-the-left .ec-m-generic-teaser-1__image,
.ec-m-generic-teaser-1--text-to-the-right .ec-m-generic-teaser-1__image {
  height: 100%;
}

.ec-m-generic-teaser-1--text-to-the-left .ec-m-generic-teaser-1__image-inner,
.ec-m-generic-teaser-1--text-to-the-right .ec-m-generic-teaser-1__image-inner {
  height: 100%;
}

.ec-m-generic-teaser-1--text-to-the-left picture,
.ec-m-generic-teaser-1--text-to-the-right picture {
  height: 100%;
}

.ec-m-generic-teaser-1__content-inner {
  max-width: 580px;
  padding: 24px;
  margin: auto;
}

.ec-m-generic-teaser-1__text {
  margin: 12px 0;
}

.ec-m-wysiwyg p:last-of-type {
  margin-bottom: 0;
}

/**
Quote
 */
.ec-m-quote .ec-m-quote__text > div {
  font-size: 2rem;
}

.ec-m-quote blockquote {
  display: block;
  border-width: 2px 0;
  border-style: solid;
  border-color: #eee;
  padding: 0.5em 0;
  margin: 1.5em 0;
  position: relative;
}

.lazy-loaded-wrapper {
  padding-bottom: 0 !important;
  height: auto !important;
}

/* https://css-tricks.com/do-this-to-improve-image-loading-on-your-website/ */
.ec-img-full-width {
  width: 100%;
  max-width: none;
}

