/* Nav bar */
.navbar{
  background-color: #333;
  padding-top: 15px;
  padding-bottom: 15px;
}

.navbar a.nav-link.active{
  color: #acf;
}
.navbar a.nav-link.active:hover{
  color: #fff;
}
.navbar a.navbar-brand{
  /*color: #faa;*/
  color: #faf;
}

/*
.navbar-toggler-icon i{
  color: #acf;
  font-size: 1.5em;
  margin: 0 -0.5em 0 0;
}
*/

.m-image-item{
  padding: 15px 0;
}
.m-image-item DIV{
  padding: 10px;
}
.m-image-item-thumbnail img{
}

.m-items{
  margin: 0; padding: 0;
  text-align: center;
}
.m-item{
  list-style-type: none;
}
.m-item-wid120{
  /* shinsou */
  display: inline-grid;
  max-width: 120px; max-height: 120px;
  margin: 10px 15px; padding: 0;
  text-align: center;
}
.m-item-wid160{
  display: inline-grid;
  max-width: 160px; max-height: 160px;
  margin: 10px 15px; padding: 0;
  text-align: center;
}
.m-item-wid240{
  display: inline-grid;
  max-width: 240px; max-height: 240px;
  margin: 10px 15px; padding: 0;
  text-align: center;
}
.m-item-wid320{
  display: inline-grid;
  max-width: 320px; max-height: 320px;
  margin: 10px 15px; padding: 0;
  text-align: center;
}
.m-item-wid640{
  /* shinsou */
  display: inline-grid;
  max-width: 640px; max-height: 640px;
  margin: 10px 15px; padding: 0;
  text-align: center;
}
/*
.m-item-thumbnail img,
.m-item-snapimage img{
  border: 1px solid #ddd;
  max-width: 160px; max-height: 160px;
}*/
.m-item-thumbnail img{
  /* shinsou */
  border: 1px solid #ddd;
  max-width: 120px; max-height: 120px;
}
.m-annote-thumbnail img{
  /* shinsou */
  border: 1px solid #ddd;
  max-width: 240px; max-height: 240px;
}
.m-item-snapimage img{
  /* shinsou */
  border: 1px solid #ddd;
  max-width: 640px; max-height: 640px;
}
.m-item p{
  margin-top: 0.25rem;
  font-size: 1rem;
}
.m-item span{
  display: block;
  font-size: 0.9rem;
}
.m-item dt{
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
}
.m-item dd{
  display: block;
  font-size: 0.8rem;
}
.m-item-header{
  background-color: #cdf;
}

/* Let side menu */
.m-leftside{
}
.m-collection li{
  font-weight: bold;
}

/* Content */
.m-content{
  position: relative;
}
.m-resource-block{
  position: relative;
  width: 100%;
  margin: 0em; padding: 2em 0;
  border-style: solid;
  border-color: #ddd;
  border-width: 0 0 1px 0;
}
.m-resource-item{
  position: relative;
  width: 92%;
  margin: 1em auto 1em 0; padding: 2em 0;
}
.m-resource-block:last-child{
  border-style: none;
}
.m-page-section{
  position: relative;
  display: block;
  margin: 1em 1em 2em 1em; padding: 2em;
  border-style: solid;
  border-color: #ddd;
  border-width: 1px;
  border-radius: 5px;
}
.m-page-section h2,
.m-resource-block h2,
.m-resource-item h2{
  font-size: 1.75em;
}
.m-page-section p,
.m-resource-block p,
.m-resource-item p{
  margin: 1em 0;
  font-size: 1em;
  text-indent: 0em;
}
.m-page-section p.m-p-indent{
  text-indent: 1em;
}
.m-page-section div.m-div-text{
  margin: 2em 0;
}
.m-page-section div.m-div-info{
  border-style: solid;
  border-color: #ddd;
  border-width: 1px 0 0 0;
  font-size: 0.8em;
  padding: 0.25em 2em;
  color: #999;
}

.m-resource-block table,
.m-resource-item table{
  margin: 1em;
  font-size: 1em;
}
.m-resource-block td,
.m-resource-item td{
  padding: 0.25em 0.5em;
  border-style: solid;
  border-color: #ddd;
  border-width: 1px;
  border-collapse: separate;
}
.m-resource-block td.m-label,
.m-resource-item td.m-label{
  width: 33.3%;
  font-weight: bold;
}


/* Image */
.m-image{
  position: relative;
}
/* Manifest link */
.m-manifest-link{
  position: absolute;
  right: 0; bottom: 0;
  width: 32px; height: 32px;
  background-color: rgba(255,255,255,1);
  font-weight: bold;
}
i.fa{
  padding: 0 0.25em;
}
/* Viewer link */
span.m-viewer-link{
  display: inline-block;
  width: 32px; height: 32px;
  background-color: rgba(255,255,255,0.8);
  border: #333 solid 1px;
  margin: 0 5px;
}
span.m-viewer-link-dark{
  background-color: rgba(0,0,0,0.6);
}


/* search */
.m-search-box{

}
.m-search-box input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: searchfield-cancel-button !important;
}
.m-search-box label{
  margin-right: 1rem;
  margin-top: 0.5rem;
}
.m-result-line{
  margin: 0.5rem 0;
}

/* svg */
svg{
  position: absolute;
  left: 50%; top: 0;
}
