nav ul {
  border-bottom-color: #d0d0d0;
}

nav ul li a {
  border-radius: 1em 1em 0 0;
}

nav ul li.active {
  border-bottom-width: 0;
}

nav.eb-tabs ul li.active a {
  background-color: #d6d6d6;
}

.view .views-exposed-form {
  padding: 1.5em;
  background-color: #efefef;
}

.view .views-exposed-form .form--inline .form-item,
.view .views-exposed-form .form--inline .form-actions {
  margin-top: 0;
  margin-bottom: 0;
  display: inline-block;
}

.view .view-content {
  margin: 2em 0;
}

.view .views-col {
  position: relative;
  width: 100%;
}

.view .views-col img {
  border: 2px solid #cccccc;
  max-width: 95%;
  max-height: 100%;
  height: auto;
}

.view .views-col.selected img {
  border: 2px solid #37802f;
}

.view .views-col.selected::before {
  content: " ";
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  position: absolute;
  background: transparent url(../images/check.svg) no-repeat center center;
  background-size: 40%;
  -webkit-transition: all 0.2s;
  transition: all 0.2s;
  display: block;
  z-index: 10;
}

.view .views-col .field--name-name {
  display: none;
  position: absolute;
  bottom: 8px;
  width: 95%;
  box-sizing: border-box;
  z-index: 4;
  background-color: rgba(0,0,0,.8);
  padding: 5px;
  margin: 0 2px;
  color: #fff;
  font-size: 9px;
  word-wrap: break-word;
}

.view .views-col:hover {
  cursor: pointer;
}

.view .views-col:hover .field--name-name {
  display: block;
}

.view .views-col .js-form-item {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px);
  overflow: hidden;
  height: 1px;
  width: 1px;
  word-wrap: normal;
}

body #edit-selected.entities-list {
  background: #efefef;
  padding: 5px;
  margin: 5px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  clear: both;
}

body #edit-selected.entities-list .item-container {
  display: inline-block !important;
  position: relative;
  text-align: center;
  width: 150px !important;
  height: 110px !important;
  background: #000;
}

body #edit-selected.entities-list .item-container .contextual-region {
  position: initial;
}

body #edit-selected.entities-list .item-container .field--name-name {
  display: none;
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  padding: 0.5em;
  margin: 0;
  background: #000;
  opacity: 1;
  font-size: 9px;
  color: #fff;
  word-break: break-all;
  overflow: hidden;
  max-width: 75ch;
}

body #edit-selected.entities-list .item-container:hover .field--name-name,
body #edit-selected.entities-list .item-container:hover input,
body #edit-selected.entities-list .item-container:hover button {
  display: block;
}

body #edit-selected.entities-list .item-container input,
body #edit-selected.entities-list .item-container button {
  position: absolute;
  top: 0;
  display: none;
  font-size: 0;
  border: 0;
  padding: 0;
  border: 0;
  width: 30px;
  height: 30px;
  margin: 5px;
  background: transparent;
  background-color: transparent;
  cursor: pointer;
  opacity: 1;
}

body #edit-selected.entities-list .item-container img.image-style-field-preview {
  overflow: auto;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}
