* {
  box-sizing: border-box;
}

.h {
  margin-top: 0;
}
.button {
	cursor:pointer;
  display: inline-block;
  margin: 0;
    color: red;
  text-align: center;
  font-size: 18px;
  font-weight:bold;
    -webkit-transition: 1s all ease-in-out;
  transition: 0.3s all ease-in-out;
  position:absolute;
  top:2px;
  right:3px;
}
.button:hover {
  
 
}
label {background:none;}
.herowraper {
    background: #f3cd33;
    padding: 5em;
		
}
.hero {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.4);
  -webkit-transform: translate3d(-50%, -50%, 0);
          transform: translate3d(-50%, -50%, 0);
}
.state {
  position: absolute;
  top: 0;
  left: -100vw;
}
.state:checked ~ .content {
  -webkit-transform: none;
          transform: none;
}
.state:checked ~ .backdrop {
  bottom: 0;
  opacity: 1;
  z-index: 1;
  -webkit-transition: 1s opacity ease-in-out;
  transition: 1s opacity ease-in-out;
}
.lightbox {
  position: absolute;
  top: 25px;
  right: 0;
  left: -10px;
  height: 0;
  padding: 0 20px;
  z-index:200;
}
.lightbox .content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
   overflow-x: hidden;
  overflow-y: scroll;
  position: absolute;
  z-index: 2;
  width: 636px;
  height: 750px;
  margin: 20px auto;
  padding: 10px 20px 20px 20px;
  background: #fff;
  -webkit-transform: translateY(-200%);
          transform: translateY(-200%);
  -webkit-transition: 1s -webkit-transform ease-in-out;
  transition: 1s -webkit-transform ease-in-out;
  transition: 1s transform ease-in-out;
  transition: 1s transform ease-in-out, 1s -webkit-transform ease-in-out;
  border: 15px solid white;
  box-shadow:3px 3px 3px #888888;
  border-radius: 25px;
}

.lightbox .header .h {
  margin: 0;
}
.lightbox .header .button:not(:first-child) {
  margin-left: auto;
}
.lightbox .header {
  padding:0 20px 0 0;
  width:595px;
  margin-bottom:5px;
  text-align:right;
  height:100px;
}
.lightbox .main {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}
.lightbox .backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 100%;
  left: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3);
  -webkit-transition: 1s opacity ease-in-out, bottom 1s 1s;
  transition: 1s opacity ease-in-out, bottom 1s 1s;
}
