.imageviewer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(8, 14, 19, 0.94);
  backdrop-filter: blur(8px);
  color: #fff;
}
.imageviewer[hidden] {
  display: none;
}
.imageviewerbar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 18px;
  background: #101a22;
  border-bottom: 3px solid #ef7617;
}
.imageviewertitle {
  min-width: 0;
  flex: 1;
}
.imageviewertitle strong,
.imageviewertitle span {
  display: block;
}
.imageviewertitle strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.imageviewertitle span {
  margin-top: 3px;
  color: #b8c2c7;
  font-size: 14px;
}
.imageviewerclose,
.imageviewernav {
  border: 1px solid #68747d;
  background: #172630;
  color: #fff;
  cursor: pointer;
}
.imageviewerclose {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  font-size: 25px;
  line-height: 1;
}
.imageviewerstage {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 20px 82px;
  overflow: hidden;
}
.imageviewerimage {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: calc(100vw - 164px);
  max-height: calc(100dvh - 146px);
  object-fit: contain;
  object-position: center;
  box-shadow: 0 18px 60px #0008;
  user-select: none;
  -webkit-user-drag: none;
}
.imageviewernav {
  position: absolute;
  top: 50%;
  width: 50px;
  height: 62px;
  transform: translateY(-50%);
  font-size: 31px;
}
.imageviewerprev {
  left: 18px;
}
.imageviewernext {
  right: 18px;
}
.imageviewernav[hidden] {
  display: none;
}
.imageviewerhelp {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  background: #101a22;
  color: #b8c2c7;
  font-size: 14px;
  text-align: center;
}
.imageviewertrigger {
  cursor: zoom-in;
}
.imageviewertrigger:focus-visible {
  outline: 3px solid #ef7617;
  outline-offset: 2px;
}
@media (max-width: 680px) {
  .imageviewerbar {
    min-height: 58px;
    padding: 8px 11px;
  }
  .imageviewerstage {
    padding: 12px 48px;
  }
  .imageviewerimage {
    max-width: calc(100vw - 96px);
    max-height: calc(100dvh - 124px);
  }
  .imageviewernav {
    width: 40px;
    height: 54px;
    font-size: 25px;
  }
  .imageviewerprev {
    left: 4px;
  }
  .imageviewernext {
    right: 4px;
  }
  .imageviewerhelp {
    font-size: 14px;
  }
}
