/* Adds a bit of spacing to "Responsive Grid Row" blocks. */
.crx-grid {
  padding-top: 40px;
  padding-bottom: 40px;
}
.crx-grid .crx-grid {
  padding-top: 0;
  padding-bottom: 0;
}

/* My custom stuff */
body {
  padding: 15px;
  font-size: 19px;
  font-family: 'Alegreya', serif;
}

.navbar-brand {
  display: inline-block;
  padding-top: 0;
  padding-bottom: 0;
  margin-right: 0;
  line-height: inherit;
  white-space: nowrap;
}

.navbar {
  border-width: 0;
  border-style: solid;
}

.search-icon {
  background-color:transparent;
  background-image:none;
  border:none;
  color: lightgray
}

/* empty class to identify links and forms that should be excluded by UnPoly */
.upexclude { }

/* styles applicable for smaller screens only */
@media (max-width: 978px) {
  #navbar {
    max-height: 500px;
    overflow-y: auto !important;
  }

  .dropdown-menu {
    max-height: 200px;
    overflow-y: auto !important;
  }
}

/* styles applicable for standard screens only */
@media (min-width: 979px) {
  /* fixes closing on slow mouse transition */
  .dropdown-menu {
    margin-top: 0;
  }

  .dropdown:hover > .dropdown-menu {
    display: block;
  }

  /* Without this, clicking will make it sticky */
  .dropdown > .dropdown-toggle:active {
    pointer-events: none;
  }

  /* Remove drop down arrow */
  /*
  .dropdown-toggle::after {
    display:none;
  }
  */

  .richtext-image.left{
    float:left;
    margin-right:16px
  }

  .richtext-image.right{
    float:right;
    margin-left:16px
  }

  /* Change the default width of search form in nav bar */
  #id_s.form-control {
    width: 180px;
  }

  .search-icon {
    position: absolute;
    right: 10px;
  }
}
