/* Style organisation-status tag which is only single value and has no link */
/* Todo upstream: Add decent styling for tags without link */
.tags.organisation-status {
  font-size: .75rem;
  line-height: 1.5;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  height: 2em;
  padding-right: .75em;
  padding-left: .75em;
  white-space: nowrap;
  border-radius: 3px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;    
  border: gray 1px solid;
  margin-bottom: .5rem;
}

.h4c-inner-popup .h4c-image {
  margin-bottom: .5rem
}

.sidebar-first.column.is-2, .block-block-grouph4c-facets {
  overflow:visible !important;
}

/* Do not show menu item label in logo menu where we only want to show image */
.coo-header-logos .menu-item > a {
  display: none;
}

/* Unset margin-left when element is last but not the only of type, aka do not unset on first of multiple elements */
.navbar-menu nav.navbar-end:last-of-type:not(:only-of-type) {
  margin-left: unset;
}

/* Apply flex to menu-items-extra ul to display items next to each other */
.coo-header-logos ul {
  display: flex;
}

/* Give burger menu 100vw (bulma) to give logos enough space */
#js-navbar-menu {
  width: unset;
}

/* Remove hover effect for tags and show as block*/

.tags {
  align-items: center;
  display: block;
}

.node--type-organisation.node--view-mode-full .h4c-info > div:hover:not(.organisations) .label {
  font-weight: unset;
  position: unset;
  top: unset;
  display: inherit;
  padding:  unset;
  -webkit-transition: unset;
  -o-transition: unset;
  transition: unset;
  border-radius:  unset;
  background:  unset;
}

.node--type-organisation.node--view-mode-preview .info-group .label, .node--type-organisation.node--view-mode-full .h4c-info > div:not(.organisations) .label {
  display: block;
}
.node--type-organisation.node--view-mode-full .h4c-info > div:not(.organisations) .label:hover {
  opacity: 1;
}

/* Give topics different color */
a.topic, .tags.topics a {
  background-color: #96c8f0;
}

/* Remove margin because empty facets take up space */
.block-block-grouph4c-facets .views-exposed-form {
    margin-bottom: 0;
}

/* Increase popup width for /map */

.fixed-popup.map .leaflet-popup {
  width: 249px;
}
.fixed-popup.map .h4c-outer-popup {
  background-color: white;
  width: 249px;
}
/* Limit map popup for bigger screens */
/* The tricky part is that we give position:fixed to js-popup so that the children elements have another width than the parent elements, this gives us at least problems with closing button */
@media screen and (min-width: 550px) and (min-height: 550px) {
  .fixed-popup.map .leaflet-popup, .fixed-popup.h4c-campaigns .leaflet-popup-content {
    width: 400px;
  }
  .fixed-popup.map .h4c-outer-popup {
    width: 400px;
  }
}
.fixed-popup.map .image img {
    margin: 0 auto;
}

/* Make sure organisations list looks ok'ish  in IE11 */
.node--type-organisation.node--view-mode-media {
  min-height: 116px;
  width: 100%
}

/* Show menus with logos inline, atm: block-coo-header-logos #21 */
.block-menu-item-fields li {
    display: inline-block;
}
