#boxes #mask {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 9000;
  background-color: #26262c;
  display: none;
  width: 100%;
  color: white;
  height: 100%;
  opacity: 0.7;
}
#boxes .window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: auto;
  display: block;
  z-index: 9999;
  border-radius: 5px;
  text-align: center;
}

#boxes #dialog {
  display: none;
  width: 90%;
  max-width: 500px;
  background-color: #ffffff;
  margin-top: 0;
  transition: margin-top 1s;
}
#boxes #dialog.collapsed {
  margin-top: -2.5%;
}

.boxdiawrapper {
  width: 100%;
  height: 100%;
  position: relative;
  display: inline-block;
}

.boxdiawrapper .agree {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  color: #fff;
  background: #02751a;
  padding: 5px 10px;
}

.boxdiawrapper .boxcont {
  padding-top: 20px;
  display: inline-block;
  width: 100%;
  padding-bottom: 30px;
  padding-left: 30px;
  padding-right: 30px;
}

.boxdiawrapper .boxcont h2 {
  text-align: center;
}

.boxdiawrapper .boxcont #san {
  text-align: center;
}

#boxes img {
  overflow-clip-margin: content-box;
  overflow: clip;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  max-width: 100%;
  object-fit: cover;
}
