.content-bottom a {
  font-weight: normal;
}

.form-filter-tags {
  padding: 0 0 15px 0;
}

.form-filter-tags label {
  font-size: .9em;
  color: #666;
}

input#filter-tags {
  height: 28px;
  font-size: .9em;
  padding: 4px 8px;
}

.reset {
  margin: 0;
}

.results {
  position: relative;
}

.data {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #ccc;
  /*display: flex;
  flex-wrap: wrap;*/
}

#loading {
  width: 100%;
  height: 100%;
  display: none;
  z-index: 1000;
  position: absolute;
  background: url("../images/loader.gif") 50% 60px rgba(255, 255, 255, 0.8) no-repeat;
}

.anno-group-tags {
  display: inline-block;
  vertical-align: top;
  margin-left: 20px;
  padding: 15px;
  background-color: #f5f5f5;
  float: right;
}

.anno-group-tags h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #666;
  font-size: 1.1em;
}

.tags ul,
.anno-group-tags ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  text-indent: 0;
}

.anno-group-tags .btn-tag.selected {
  cursor: default;
  opacity: .7;
}

.tags ul {
  -moz-column-count: 10;
  -moz-column-width: 100px;
  column-count: 10;
  column-width: 100px;
}

.tags li,
.anno-group-tags li {
  display: block;
}

.tags li {
  font-size: .9em;
}

.anno-group-tags li {
  margin-bottom: 6px;
}

.btn-tag {
  padding: 2px 4px;
}

.tags .btn-tag {
  background: none;
  color: #333;
}

.anno-group-tag .btn-tag {
  background-color: #e55252;
  color: #fff;
}

.btn-tag.selected {
  background-color: #e55252;
  color: #fff;
}

.toc-title {
  font-size: 1.3em;
  margin-top: 10px;
}

.toc {
  padding: 15px;
  background-color: #f5f5f5;
  list-style-position: inside;
}

.toc-tablist {
  padding: 0;
  margin: 0;
  background: none;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  color: #e55252;
}

.toc a:hover, 
.tab-content a:hover {
  color: #e55252;
  opacity: 1;
}

.toc .toc-tab {
  display: inline-block;
  padding: 4px 0;
  font-size: 1.1em;
  margin-right: 8px;
}

.toc .toc-tab > a {
  padding: 6px 12px;
  font-weight: bold;
}

.toc .toc-tab.active > a {
  background-color: #f5f5f5;
  color: #e55252;
}

.toc li p {
  display: inline;
}

.tab-content {
  background-color: #f5f5f5;
  display: inline-block;
  /*max-width: 65%;*/
  width: 100%;
}

.tab-content ul {
  /* padding-left: 0; */
  /* list-style: none; */
  list-style-type: disc;
  margin: 20px;
  max-width: 65%;
}

.tab-content li {
  margin-bottom: 3px;
  font-size: .9em;
}

.tab-content li a {
  text-decoration: none;
}

.anno-group {
  margin-top: 30px;
  clear: both;
}

.anno-group:first-child {
  margin-top: 15px;
  border-top: 1px dotted #ccc;
}

.legend {
  font-size: 2em;
  padding-top: 15px;
  font-family: "Source Serif Pro",Georgia,Times,serif;
  font-weight: 600;
  margin: 0 0 15px 0;
  line-height: 1.2;
  position: relative;
  transition: opacity linear .2s;
}

.to-top {
  /*display: none;*/
  opacity: 0; /* opacite plutot que display, pour pouvoir animer */
  position: absolute;
  left: -32px;
  top: 14px;
  width: 32px;
  height: 100%;
}

.to-top i {
  font-size: .8em;
}

.legend a.to-top:hover {
  color: #e55252;
}

.legend:target,
.tab-content a:target {
  color: #e55252;
}

.legend:target .to-top,
.legend:hover .to-top {
  /*display: block;*/
  opacity: 1; /* opacite plutot que display, pour pouvoir animer */
  color: #aaa;
}

.anno-group .row {
  /*display: flex;
  flex-wrap: nowrap;*/
  display: inline-block;
  position: relative;
}

.row-anno-group {
  /*display: inline-block;*/
  display: block;
  width: 50%;
  margin: 0 auto;
  text-align: center;
  position: relative;
  transition: box-shadow linear .2s;
  border: 1px solid #bbb;
  padding: 4px;
}

.row-anno-group:hover {
  box-shadow: 0 0 7px 0 #777;
}

.anno {
  float: none;
  display: inline-block;
  /*align-items: flex-end;*/
  /*display: flex;
  /*flex-direction: column;*/
  /*flex: 1 0 auto;
  padding: .5em;
  height: auto;
  position: relative;*/
}

.mirador-btn {
  /*align-self: flex-end;*/
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: all .2s linear;
  text-align: center;
}

.mirador-btn .btn {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}

.mirador-btn:hover {
  /*align-self: flex-end;*/
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 1;
}

.mirador-btn:hover .btn {
  display: block;
  z-index: 999;
  opacity: 1;
}

.anno-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  display: none;
  transition: .5s ease;
  background-color: rgba(0, 0, 0, 0.5);  
}

.anno-overlay .text {
  /*background-color: #fff;*/
  color: #fff;
  font-size: 1.1em;
  /*padding: 16px;*/
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
}


.anno .anno-content {
  padding: 8px 0 4px 0;
}

.anno-body.thumbnail {
  /*border: 1px solid #bbb;
  transition: box-shadow linear .2s;
  padding: 6px;*/
  margin: 0;
}

/*.anno-body.thumbnail:hover {
  box-shadow: 0 0 7px 0 #777;
}*/

.anno-body.thumbnail:hover .mirador-btn {
  opacity: 1;
}

.anno-body .cover {
  background-color: #eee;
  text-align: center;
}

.anno-body,
.anno-content {
  /*flex-direction: column;
  display: flex;
  flex: 1 0 auto;
  height: auto;
  position: relative;*/
}

.anno-img {
  /*max-height: 420px;
  max-width: 400px;*/
  object-fit: contain;
}
.anno-text {
  flex-grow: 1;
  font-size: 0.9em;
  color: #444C5A;
}
.anno-text p {
  margin-bottom: 0;
}
.anno-body-raw {
  padding: 5px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  margin-bottom: 10px;
}
.anno-body-raw p {
  margin-bottom: 0;
}
.anno-text .anno-context {
  font-size: .9em;
  color: #6c7074;
}
.mf-label {
  /*font-weight: bold;*/
  margin-bottom: 0;
}
.mf-attribution {
  display: block;
  font-weight: normal;
}
.fa-tag {
  font-size: 1em;
}
.tag {
  color: #6c7074;
  font-weight: bold;
  font-size: .9em;
}
.anno-content .mirador-btn {
  margin: 0;
  padding: 0;
  opacity: .6;
  transition: opacity linear .2s;
}
.anno-id {
  display: none;
}
/*.anno-img {
  text-align: center;
  padding-bottom: 6px;
}
.anno-img img {
  max-width: 250px;
}*/

.anno h3 {
  margin-top: 0;
  /*color: #732922;*/
}

.modal-header h3 {
  margin-top: 0;
}