/* [Object] mymodalbox
 * =============================== */
.mymodalbox {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: left;
  background: rgba(0,0,0, .9);
  transition: opacity .25s ease;
}

.mymodalbox__bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: pointer;
}

.mymodalbox-state {
  display: none;
}

.mymodalbox-state:checked + .mymodalbox {
  opacity: 1;
  visibility: visible;
}

.mymodalbox-state:checked + .mymodalbox .mymodalbox__inner {
  /* top: 0; */
}

.mymodalbox__inner {
  transition: top .25s ease;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  margin: auto;
  overflow: auto;
  background: #fff;
  border-radius: 5px;
  padding: 1em 2em;
  height: 60%;
}

.mymodalbox__close {
  position: absolute;
  right: 1em;
  top: 1em;
  width: 1.1em;
  height: 1.1em;
  cursor: pointer;
}

.mymodalbox__close:after,
.mymodalbox__close:before {
  content: '';
  position: absolute;
  width: 2px;
  height: 1.5em;
  background: #ccc;
  display: block;
  transform: rotate(45deg);
  left: 50%;
  margin: -3px 0 0 -1px;
  top: 0;
}

.mymodalbox__close:hover:after,
.mymodalbox__close:hover:before {
  background: #aaa;
}

.mymodalbox__close:before {
  transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .mymodalbox__inner { 
    top:100px;
    width: 90%;
    height: 80%;
    box-sizing: border-box; 
  }
}


/* Other
 * =============================== */
bodyxxx {
  padding: 1%;
  font: 1/1.5em sans-serif;
  text-align: center;
}

pxxx img {
  max-width: 200px;
  height: auto;
  float: left;
  margin: 0 1em 1em 0;
}