/* open sea dragon */

.gigapan-seadragon-image #openseadragon1 {
  height: 500px;
  width: 100%;
  background: #eee;
  padding: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  position : relative;
}

#openseadragon1 .tool-menu {
  background: white !important;
}
#openseadragon1 .tool-menu img {
  padding: 2px;
  cursor: pointer;
}
#openseadragon1 .tool-menu img:hover {
  background: #efefef !important;
}

.custom-gigapan-el-circle-marker {
  width: 20px;
  height: 20px;
  background: rgba(255,255,255,1);
  border-radius: 50%;
  line-height: 20px;
  text-align: center;
  /* border: thin #333 solid; */
  box-shadow: 1px 1px 3px #333;
}
.custom-gigapan-el-circle-marker:hover {
  background: #efefef;
  cursor: pointer;
}

.custom-gigapan-el-point {
    width: 15px;
    height: 15px;
    background : #fbb063;
    border-radius : 50%;
    border : 1px solid #fff;
}

.custom-gigapan-el-line {
    border-top : 1px solid rgb(83, 216, 222);
}

.custom-gigapan-el-close-popup {
  line-height: 10px;
  cursor: pointer;
  float: right;
  margin-top: -10px;
  margin-right: -15px;
  background: white;
  padding: 3px 5px;
  border-radius: 50%;
  border: thin #333 solid;
  text-transform: lowercase;
}

.custom-gigapan-el-osd-overlay {
    position: relative;
    font-family: Helvetica, sans-serif;
    background: white;
    color: #333;
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px #333;
    font-size: 12px;
    max-width: 350px;
    margin-top: -15px;
}

.custom-gigapan-el-osd-overlay.TOP_RIGHT, .custom-gigapan-el-osd-overlay.BOTTOM_RIGHT, .custom-gigapan-el-osd-overlay.RIGHT {
    margin-left : -15px;
}
.custom-gigapan-el-osd-overlay.TOP_LEFT, .custom-gigapan-el-osd-overlay.BOTTOM_LEFT, .custom-gigapan-el-osd-overlay.LEFT, .custom-gigapan-el-osd-overlay.CENTER {
    margin-left : 15px;
}
.custom-gigapan-el-osd-overlay.TOP {
    margin-top : 15px;
}
.custom-gigapan-el-osd-overlay.BOTTOM {
    margin-top : -15px;
}

.custom-gigapan-el-osd-overlay:after {
    /*top: 100%;
    left: 50%;
    border: solid transparent;
    content: " ";
    height: 0;
    width: 0;
    position: absolute;
    pointer-events: none;
    border-color: #FFF; 
    border-top-color: #FFF;
    border-width: 10px;
    margin-left: -10px;
    */
}
.high-res-angle-measurer {
    position : absolute;
    bottom : 20px;
    right : 23px;
    z-index : 1;
    font-family: Helvetica, sans-serif;
}

.high-res-angle-measurer button {
    background: #fff;
    font-size: 18px;
    border: none;
    padding: 6px 10px;
    border-radius: 2px;
    cursor: pointer;
    font-family: Helvetica, sans-serif;
    font-size : 14px;
}

.high-res-angle-measurer span {
    display: block;
    margin-top: 2px;
    border-radius: 2px;
    text-align: right;
    color: #fff;
    font-size: 24px;
    width: 100%;
    font-weight: bold;
    text-shadow: 1px 1px #505050;
}

#openseadragon1 .toggle {
    flex-direction: column;
    font-family: Helvetica, sans-serif;
    position: absolute;
    background: white;
    padding: 10px;
    text-align: right;
    z-index: 10000;
    text-transform: capitalize;
    display: none;
    right : 10px;
}

#openseadragon1 div[title="Zoom in"] {
    margin-top: 8px !important;
    margin-right: 4px !important;
    margin-left: 8px !important;
}
#openseadragon1 div[title="Zoom out"] {
    margin-right: 4px !important;
}
#openseadragon1 div[title="Go home"] {
    margin-right: 8px !important;
}
#openseadragon1 div[title="Toggle full page"] {
    margin-right: 8px !important;
}

/* Zoom slider style */ 

.gigapan-custom-slider {
    position : absolute;
    bottom : 20px;
    z-index : 10;
    left : 20px;
    display : flex;
}

.gigapan-custom-slider .slider-bar {
   display : flex; 
   width : 100%;
   height: 10px;
}

.gigapan-custom-slider .scale-unit {
    position : absolute;
    right: -58px;
    top: -11px;
    font-size:  17px;
    color: #ffff;
    text-shadow: 1px 1px #505050;
    font-weight : bold;
}

.gigapan-custom-slider .slider-bar #first-chunk {
   flex-grow : 1; 
   background : #000;
   position : relative;
   border-top-left-radius : 2px;
   border-bottom-left-radius : 2px;
}

.gigapan-custom-slider .slider-bar #second-chunk {
   flex-grow : 1; 
   background : #fff;
   position : relative;
   border-top-right-radius : 2px;
   border-bottom-right-radius : 2px;
}

.gigapan-custom-slider .slider-bar #first-chunk .scale-val,
.gigapan-custom-slider .slider-bar #second-chunk .scale-val { 
    position : absolute;
    top: -29px;
    font-size: 20px;
    color: #fff;
    font-weight: bold;
    text-shadow: 1px 1px #505050;
}

.gigapan-custom-slider .slider-bar #first-chunk .scale-val#eighth {
    right : -20px;
}

.gigapan-custom-slider .slider-bar #second-chunk .scale-val#quarter {
    right : 0px;
}


/* map pages */
.type-project .et_pb_column_1_3 h4, .type-project .et_pb_column_1_4 h4 {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.4px;
    opacity: 0.4;
}

.type-project .et_pb_text_inner img {
    margin-bottom : 40px;
}

.select2-container {
  margin-bottom: 10px;
}

#map {
    position: absolute;
    height: 500px;
}

#mineral-legend {
  font-size: 14px;
  position: absolute;
  width: 240px;
  top: 0;
  right: 0;
  padding: 10px;
  margin-right: 10px;
  margin-top: 56px;
  border-radius: 4px;
  box-shadow: 0 0 10px 2px rgba(0,0,0,.1);
  color: rgba(0, 0, 0, 0.75) !important;
  background-color: white;
  overflow-y: auto;
}
#menu-content {
  margin-bottom: 10px;
}
#upward-arrow {
  display: none;
}
@media only screen and (max-width: 768px) {
  #mineral-legend {
    margin-top: 66px;
  }
  .mapboxgl-ctrl-geocoder--input {
    padding: 6px 45px !important;
  }
  #upward-arrow {
    display: block;
    /* margin-top: 10px; */
    text-align: center;
    border: thin solid #000;
  }
}

#mineral-legend ul {
  padding: 0 !important;
  margin: 0;
  margin-top: 10px;
}
#mineral-legend li {
  list-style-type: none;
}
#mineral-legend li img {
  border-radius: 10px;
  padding: 4px;
  border: thin #ccc solid;
  vertical-align:middle;
  margin-right: 5px;
  margin-bottom: 0px;
}
#mineral-legend li input {
  float: right;
  vertical-align:middle;
}

#mineral-legend #show-hide-geology-layer img {
  width: 9px;
  margin-left: 5px;
}

.mapboxgl-popup-content hr {
  margin: 10px 0px;
}
.mapboxgl-popup {
  min-width: 240px;
}

.clustered-popup ol {
    margin: 0;
}

.clustered-popup {
    /* overflow-y: auto; */
    min-width: 200px;
    /* height: 250px; */
    font-size: 16px;
}

.unclustered-popup {
    font-size: 18px;
    text-align: center;
    font-weight: bold;
}
.slick-dots {
  position : relative;
  bottom: 0;
  padding: 0 !important;
}
.slick-dots li button:before {
  font-size: 36px;
}
.slick-dotted.slick-slider {
  margin-bottom: 0px;
}

/* GEOCODER */

/* Basics */
.mapboxgl-ctrl-geocoder,
.mapboxgl-ctrl-geocoder *,
.mapboxgl-ctrl-geocoder *:after,
.mapboxgl-ctrl-geocoder *:before {
  box-sizing: border-box;
}

.mapboxgl-ctrl-geocoder {
  font-size: 18px;
  line-height: 24px !important;
  font-family: "Open Sans", "Helvetica Neue", Arial, Helvetica, sans-serif;
  position: relative;
  background-color: #fff;
  width: 100%;
  min-width: 240px;
  z-index: 1;
  border-radius: 4px;
  transition: width .25s, min-width .25s;
}

.mapboxgl-ctrl-geocoder--input {
  font: inherit;
  width: 100%;
  border: 0 !important;
  background-color: transparent !important;
  margin: 0;
  height: 50px;
  color: #404040; /* fallback */
  color: rgba(0, 0, 0, 0.75) !important;
  padding: 6px 45px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.mapboxgl-ctrl-geocoder--input::-ms-clear {
  display: none; /* hide input clear button in IE */
}

.mapboxgl-ctrl-geocoder--input:focus {
  color: #404040; /* fallback */
  color: rgba(0, 0, 0, 0.75);
  outline: 0;
  box-shadow: none;
  outline: thin dotted\8;
}

.mapboxgl-ctrl-geocoder .mapboxgl-ctrl-geocoder--pin-right > * {
  z-index: 2;
  position: absolute;
  right: 8px;
  top: 7px;
  display: none;
}

.mapboxgl-ctrl-geocoder,
.mapboxgl-ctrl-geocoder .suggestions {
  box-shadow: 0 0 10px 2px rgba(0,0,0,.1);
}

/* Collapsed */
.mapboxgl-ctrl-geocoder.mapboxgl-ctrl-geocoder--collapsed {
  width: 50px;
  min-width: 50px;
  transition: width .25s, min-width .25s;
}

/* Suggestions */
.mapboxgl-ctrl-geocoder .suggestions {
  background-color: #fff;
  border-radius: 4px;
  left: 0;
  list-style: none !important;
  margin: 0;
  padding: 0 !important;
  position: absolute;
  width: 100%;
  top: 110%; /* fallback */
  top: calc(100% + 6px);
  z-index: 1000;
  overflow: hidden;
  font-size: 15px;
}

.mapboxgl-ctrl-bottom-left .suggestions,
.mapboxgl-ctrl-bottom-right .suggestions {
  top: auto;
  bottom: 100%;
}

.mapboxgl-ctrl-geocoder .suggestions > li > a {
  cursor: default;
  display: block;
  padding: 6px 12px;
  color: #404040;
}

.mapboxgl-ctrl-geocoder .suggestions > .active > a,
.mapboxgl-ctrl-geocoder .suggestions > li > a:hover {
  color: #404040;
  background-color: #f3f3f3;
  text-decoration: none;
  cursor: pointer;
}

.mapboxgl-ctrl-geocoder--suggestion-title {
  font-weight: bold;
}

.mapboxgl-ctrl-geocoder--suggestion-title,
.mapboxgl-ctrl-geocoder--suggestion-address {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Icons */
.mapboxgl-ctrl-geocoder--icon {
  display: inline-block;
  vertical-align: middle;
  speak: none;
  fill: #757575;
  top: 15px;
}

.mapboxgl-ctrl-geocoder--icon-search {
  position: absolute;
  top: 13px;
  left: 12px;
  width: 23px;
  height: 23px;
}

.mapboxgl-ctrl-geocoder--button {
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  background: #fff;
  line-height: 1;
}

.mapboxgl-ctrl-geocoder--icon-close {
  width: 20px;
  height: 20px;
  margin-top: 8px;
  margin-right: 3px;
}

.mapboxgl-ctrl-geocoder--button:hover .mapboxgl-ctrl-geocoder--icon-close {
  fill: #909090;
}

.mapboxgl-ctrl-geocoder--icon-loading {
  width: 26px;
  height: 26px;
  margin-top: 5px;
  margin-right: 0px;
  -moz-animation: rotate 0.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
  -webkit-animation: rotate 0.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
  animation: rotate 0.8s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Animation */
@-webkit-keyframes rotate {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotate {
  from {
    -webkit-transform: rotate(0);
    transform: rotate(0);
  }
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Media queries*/
@media screen and (min-width: 640px) {

  .mapboxgl-ctrl-geocoder.mapboxgl-ctrl-geocoder--collapsed {
    width: 36px;
    min-width: 36px;
  }

  .mapboxgl-ctrl-geocoder {
    width: 33.3333%;
    font-size: 15px;
    line-height: 20px;
    max-width: 360px;
  }
  .mapboxgl-ctrl-geocoder .suggestions {
    font-size: 13px;
  }

  .mapboxgl-ctrl-geocoder--icon {
    top: 8px;
  }

  .mapboxgl-ctrl-geocoder--icon-close {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    margin-right: 0;
  }

  .mapboxgl-ctrl-geocoder--icon-search {
    left: 7px;
    width: 20px;
    height: 20px;
  }

  .mapboxgl-ctrl-geocoder--input {
    height: 36px;
    padding: 6px 35px !important;
  }

  .mapboxgl-ctrl-geocoder--icon-loading {
    width: 26px;
    height: 26px;
    margin-top: -2px;
    margin-right: -5px;
  }

  .mapbox-gl-geocoder--error{
    color:#909090;
    padding: 6px 12px;
    font-size: 16px;
    text-align: center
  }

}

/* High Res Template */

.high-res-page-container {
    padding : 2em 0.5em;
}
.high-res-page-container .high-res-header {
    display : flex;
    justify-content : space-between;
    padding : 2em 1.5em 0;
}
.high-res-page-container .high-res-header .title-container {
    display : flex;
    flex-direction : column;
    max-width : 50%;
    align-items : flex-end;
}
.high-res-page-container .high-res-header .title-container .entry-title {
    margin-top : 15px !important;
    text-transform : uppercase;
    text-align : right;
}
.high-res-page-container .high-res-header .title-container .location-id {
    font-size : 24px;
    text-transform : uppercase;
    margin-top : 26px;
    color : #333;
}
.high-res-page-container .high-res-content-wrap {
    display : flex;
    margin : 20px 0px;
}
.high-res-page-container .gigapan-seadragon-image {
    min-width : 70%;
    flex-grow : 1;
    margin-right : 2%;
}
.high-res-page-container .high-res-right-chunk {
    margin-top : 20px;
}
.high-res-page-container .high-res-right-chunk .info-item .orientation-img-placeholder {
    position : relative;
    width : 300px;
    height : 300px;
    display : inline-block;
    margin : -30px 0px;
}
.high-res-page-container .high-res-right-chunk .info-item .orientation-img-placeholder img {
    position : absolute;
    left : 0px;
}
.high-res-page-container .high-res-right-chunk .info-item .orientation-img-placeholder img.compass-inner {
    top : 37px;
    left : 41px;
    height : 215px;
    width : 216px;
}
.high-res-page-container .high-res-right-chunk .info-item .orientation-img-placeholder img.compass-outer {
    position : absolute;
}

.high-res-page-container h3 {
    margin-bottom : 30px;
}
.high-res-page-container .high-res-right-chunk .info-item {
    margin-bottom : 25px;
}
.high-res-page-container .high-res-right-chunk .info-bit {
    margin-top : 15px;
    font-size : 17px;
}
.high-res-page-container .high-res-bottom-details {
    padding : 3em 1em 0;
    width : 100%;
    display : flex;
}
.high-res-page-container .high-res-bottom-details .info-item:first-child {
    flex-grow : 1;
    max-width : 66%;
    margin-right : 5%;
}
.high-res-page-container .high-res-bottom-details .info-item:nth-child(2) {
    flex-grow : 1;
}
.high-res-page-container .high-res-bottom-details .info-item:nth-child(2) ul {
    list-style : initial;
}

@media only screen and (max-width: 768px) {
    .high-res-page-container {
        padding : 2em;
    }
    .high-res-page-container .high-res-header {
        flex-direction : column;
    }
    .high-res-page-container .high-res-header .title-container {
        max-width : 100%;
        align-items : flex-start;
    }
    .high-res-page-container .high-res-header .title-container .entry-title {
        line-height : 40px !important;
        text-align : left;
    }
    .high-res-page-container .high-res-content-wrap {
        flex-direction: column;
    }
    .high-res-page-container .high-res-content-wrap .gigapan-seadragon-image {
        max-width : 100%;
        margin-right : auto;
    }
    .high-res-page-container .high-res-bottom-details {
        flex-direction : column;
    }
    .high-res-page-container .high-res-bottom-details .info-item {
        max-width : 100%;
        margin-right : auto;
        margin-bottom : 40px;
    }
    .gigapan-custom-slider {
        bottom : 20px;
        top : auto;
    }
    .gigapan-custom-slider .slider-bar #second-chunk {
       background : #000;
    }
    .gigapan-custom-slider .slider-bar #first-chunk .scale-val,
    .gigapan-custom-slider .slider-bar #second-chunk .scale-val { 
       font-size : 16px;
    }
    .gigapan-custom-slider .slider-bar #first-chunk .scale-val#eighth {
        display : none;
    }
}
