.reef_root {
  position: relative;
  width: 100%;
  height: 0;
  margin: auto;
  height: 90vh;
}


/*
 * map
 */

.map_cont {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/*
 * sites_list
 */

.sites_list {
  position: absolute;
  top: 0px;
  left: 0px;
  z-index: 2;
  width: 20em;
  padding: 30px;
  font-size: 18px;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  /*background: linear-gradient(to right, rgba(0, 25, 37, 0.8) 0%, rgba(0, 25, 37, 0.4) 70%, rgba(0, 25, 37, 0) 100%);*/
  background: rgba(0,77.8,111,0.8);
  color: #fff;
  backdrop-filter: blur(5px);
}

@media (max-width: 1340px) {
  .sites_list {
    width: 100%;
    height: 300px;
  }
}

.sites_list {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: white transparent; /* Firefox */
}

/* For WebKit browsers (Chrome, Safari, and Opera) */
.sites_list::-webkit-scrollbar {
  width: 6px;
}

.sites_list::-webkit-scrollbar-track {
  background: transparent;
}

.sites_list::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 10px;
  border: 1px solid transparent;
}

.sites_list .site {
}

.sites_list .site .title {
  color: inherit;
  text-decoration: none;
  user-select: none;
  padding: 0.5em 0;
  display: inline-block;
}

.sites_list .site .title:hover {
  text-decoration: underline;
}

.sites_list .site .title.active {
  font-weight: bold;
  text-decoration: underline;
}

.sites_list .site .title.active:hover {
}

/*
 * site panel
 */

.site_panel {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 2;
  width: 50%;
  padding: 30px 30px 0;
  font-size: 18px;
  height: 100%;
  box-sizing: border-box;
  overflow-y: auto;
  background: rgba(0,77.8,111,0.8);
  color: #fff;
  backdrop-filter: blur(5px);
}

@media (max-width: 1340px) {
  .site_panel {
    left: 0;
    width: 100%;
  }
}

.site_panel {
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: white transparent; /* Firefox */
}

/* For WebKit browsers (Chrome, Safari, and Opera) */
.site_panel::-webkit-scrollbar {
  width: 6px;
}

.site_panel::-webkit-scrollbar-track {
  background: transparent;
}

.site_panel::-webkit-scrollbar-thumb {
  background-color: white;
  border-radius: 10px;
  border: 1px solid transparent;
}

.site_panel .close {
  cursor: pointer;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  display: block;
  background: url('./close_white.png') center/18px no-repeat;
  position: absolute;
  top: 20px;
  right: 20px;
}

.site_panel .title {
  font-size: 24px;
  margin-bottom: 0.5em;
}

.site_panel .site_detail {
  margin-bottom: 40px;
}

.site_panel .dive {
  margin-right: 10px;
  color: inherit;
  text-decoration: none;
  display: inline-block;
  user-select: none;
}

.site_panel .dive:hover {
  text-decoration: underline;
}

.site_panel .dive.active {
  font-weight: bold;
  text-decoration: underline;
}

.site_panel .dive.active:hover {
}

.site_panel .dive_detail {
  margin: 30px 0;
  padding: 30px;
  border: 1px solid #fff;
}

.site_panel .dive_detail .row:after {
  clear: both;
  display: block;
  height: 0;
  content: " ";
}

.site_panel .dive_detail .col {
  float: left;
  width: calc(33.33% - 2 * 30px / 3);
  margin-right: 30px;
  margin-bottom: 30px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .site_panel .dive_detail .col {
    width: auto;
    float: none;
    margin-right: 0;
  }
}

.site_panel .dive_detail .col:nth-of-type(3n) {
  margin-right: 0;
}

.site_panel .counts:after {
  clear: both;
  display: block;
  height: 0;
  content: " ";
}

.site_panel .counts {
  margin-top: 30px;
}

.site_panel .count {
  float: left;
  width: calc(33.33% - 2 * 30px / 3);
  margin-right: 30px;
  margin-bottom: 30px;
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  display: block;
  position: relative;
}

@media (max-width: 1200px) {
  .site_panel .count {
    width: auto;
    float: none;
    margin-right: 0;
  }
}

.site_panel .count:nth-of-type(3n) {
  margin-right: 0;
}

.site_panel .count:nth-of-type(3n+1) {
  clear: left;
}

.site_panel .count .image {
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  background: rgba(0,0,0,0.5) center/cover;
  margin-bottom: 20px;
}

.site_panel .count .no_image {
  position: absolute;
  top: 60px;
  left: 20px;
  width: calc(100% - 40px);
  font-size: 16px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

.site_panel .count .number {
  float: right;
  margin-left: 20px;
  font-weight: bold;
  font-size: 19px;
}

.site_panel .count .common_name {
  font-size: 19px;
}

.site_panel .count .date {
  float: right;
  margin-left: 20px;
  font-size: 15px;
  margin-top: 3px;
}

.site_panel .count .scientific_name {
  font-style: italic;
  font-size: 15px;
  margin-top: 3px;
}

.site_panel .dive_section.hidden {
  display: none;
}



/*
 * lightbox
 */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}

.lightbox .screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  cursor: pointer;
}

.lightbox .image {
  position: absolute;
  user-select: none;
}

.lightbox .image.wide {
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  width: calc(100% - 100px);
  height: auto;
}

.lightbox .image.tall {
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  height: calc(100% - 100px);
  width: auto;
}

.lightbox .close {
  position: absolute;
  top: 45px;
  right: 5px;
  width: 40px;
  height: 40px;
  background: url('/wp-content/themes/lol/reef/close_white.png') center/18px no-repeat;
  cursor: pointer;
}

.lightbox .prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(180deg);
  transform-origin: center;
  left: 5px;
  width: 40px;
  height: 40px;
  background: url('/wp-content/themes/lol/images/chevron_right_white.svg') center/33px no-repeat;
  cursor: pointer;
}

.lightbox .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 5px;
  width: 40px;
  height: 40px;
  background: url('/wp-content/themes/lol/images/chevron_right_white.svg') center/33px no-repeat;
  cursor: pointer;
}

.lightbox.hide_arrows .prev,
.lightbox.hide_arrows .next {
  display: none;
}

.lightbox .label {
  position: absolute;
  bottom: 30px;
  left: 20px;
  color: #fff;
  background: rgba(0,0,0,0.55);
  padding: 5px;
}

.lightbox .label .scientific_name {
  font-style: italic;
  font-size: 15px;
  margin-top: 3px;
}

.lightbox .label .common_name {
  font-size: 19px;
}
