:root {
  --bg-modal-color: rgba(90,90,90,0.9);
}

/*
 viewer stylesheets
 */
 body {
  margin: 0;
  padding: 0;
  border: 0;
 }

.viewer-container {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background-color: #EEE;
}

#zoomify-area {
    width: 100%;
    height: 100%;
    outline: none;
}

.openseadragon {
    width:      100%;
    height:     100%;
    /*border:     1px solid black;*/
    color:      #000;
    /*background-color: black;*/
}

.hideMaker {
  display: none;
}

.pointMaker {
  width: 20px;
  cursor: pointer;
}

.pointLabel {
  color: white;
  font-size: 1.25rem;
  margin-top: 0.8rem;
  padding: 0 5px;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 2px 2px 2px black;
}

.pointLabel-top {
    margin-top: 0 !important;
    margin-bottom: 0.8rem;
}

.figure {
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: center;
  text-align: center;
  margin: 0.5rem 0;
}

.figure img {
  width: 100%;
}

.figure .figure-caption {
  color: black;
  text-align: start;
}

/*********************************/
/* modal styles*/
.modal {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0;
    z-index: 1060;
}

.modal-dialog {
    position: relative;
    width: 75%;
    height: 100%;
    max-width: 1000px;
    pointer-events: none;
    margin: 0 auto;
}
@media only screen and (max-width: 576px) {
    .modal-dialog {
        width: 90%;
        min-width: 300px;
    }
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100% - 1rem);
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    outline: 0;
    color: #000;
    font-weight: 500;
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 1.25rem;
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: 1rem;
    overflow-y:auto;
    font-size: 1rem;
}

.modal-body .modal-media {
    text-align: center;
}

.modal-body .modal-media .modal-media-inner {
    max-width: 100%;
    display: inline-block;
}

.iframe-wrapper {
    padding: 56.25% 0 0 0;
    position: relative;
    width: 50vw;
    max-width: calc(850px - 2rem);
  }

@media only screen and (min-width: 1024px) {
  .modal-body .modal-media .modal-media-inner video {
    width: 100%;
    height: 100%;
  }
}

.modal-body .modal-media .modal-media-inner img {
    display: block;
    max-height: 50vh;
    height: 100%;
}

.modal-body .modal-media .modal-media-inner .caption {
    text-align: left;
    font-weight: bold;
}

.modal-footer {
    display: flex;
    flex-wrap: wrap;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
}

.modal-footer>* {
    margin: 0.25rem;
}

.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: .5;
}

[type=button]:not(:disabled), [type=reset]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) {
    cursor: pointer;
}

.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
#imgModal .arrow {
    display: flex;
    justify-content: center;
    margin: .5em 0;
}

#imgModal .arrow button {
    position: relative;
    margin: 0 10px;
    background: #ccc;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    width: 2em;
    height: 2em;
    display: flex;
    -ms-flex-pack: center;
    justify-content: center;
    align-items: center;
    opacity: .7;
    padding: 0;
    z-index: 1;
}

#imgModal .arrow button svg {
    fill: #000;
    width: 1.2em;
    height: 1.2em;
}

.label-hide {
    visibility: hidden !important;
}

@media only screen and (max-width: 1024px) {
    .sp-hide {
        visibility: hidden !important;
    }
}