/* modal */

.modal {
  opacity: 0;
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  text-align: left;
  background: rgba(0,0,0, .7);
  z-index: 99999;
  overflow: auto;
  display: block !important;
}

.modal-state {
  display: none;
}

.modal-state:checked + .modal {
  opacity: 1;
  visibility: visible;
}

.layer {
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  position: absolute;
}

.layer .layer-content {
  display: table-cell;
  vertical-align: middle;
  position: relative;
  top: -100px;
  transition: top .25s ease;
  padding: 60px 15px;
  width: 100%;
}

.layer .blank {
  display: inline-block;
  width: 0;
  height: 100%;
  vertical-align: middle;
}

.modal-state:checked + .modal .layer-content {
  top: 0;
}

.modal-inner {
  position: relative;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  margin: auto;
  background: #fff;
  padding: 30px;
}

.modal-close, .gift-modal-close {
  position: absolute;
  right: 12px;
  top: 5px;
  width: 50px;
  height: 50px;
  cursor: pointer;
}

.modal-close:after, .modal-close:before, .gift-modal-close:after, .gift-modal-close:before {
  content: '';
  position: absolute;
  width: 1px;
  height: 30px;
  background: #aaa;
  display: block;
  transform: rotate(45deg);
  left: 50%;
  margin: 9px 0 0 0;
  top: 0;
}

.modal-close:hover:after, .modal-close:hover:before, .gift-modal-close:hover:after, .gift-modal-close:hover:before {
  background: #aaa;
}

.modal-close:before, .gift-modal-close:before {
  transform: rotate(-45deg);
}

.modal-content {
  width: 100%;
  display: inline-block;
  padding-top: 5px;
}

.modal-title {
  font-size: 22px;
  font-weight: 500;
  color: #262626;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .modal-inner {
    padding: 30px 20px 20px;
  }
}

@media (max-width: 767px) {
  .modal-title {
    font-size: 17px;
  }
}

/* modal-play */

.modal .embed-youtube {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 0;
  padding-bottom: 56.25%;
  margin: -5px 0 -7px;
}

.modal-inner.modal-play {
  padding: 0;
  background-color: transparent;
  width: 100%;
  max-width: 1000px;
}

.modal-play .modal-close {
  z-index: 9;
  top: 0;
  right: 0;
  background: #000;
  width: 40px;
  height: 40px;
}

.modal-play .modal-close:after, .modal-play .modal-close:before {
  background: #fff;
  height: 25px;
  top: -2px;
}

body {
  height: 100vh;
  width: 100%;
}

.modal-title h1 {
  font-size: 18px;
}

.modal-round {
  border-radius: 10px;
  font-size: 13px;
}

.modal-xs {
  width: 350px;
}

.modal-sm {
  max-width: 450px;
}

.modal-md {
  max-width: 650px;
}

.modal-lg {
  max-width: 750px;
}

.modal-xl {
  max-width: 900px;
}

.modal-350 {
  max-width: 350px;
}

.modal-400 {
  max-width: 400px;
}

.modal-450 {
  max-width: 450px;
}

.modal-500 {
  max-width: 500px;
}

.modal-550 {
  max-width: 550px;
}

.modal-600 {
  max-width: 600px;
}

.modal-650 {
  max-width: 650px;
}

.modal-700 {
  max-width: 700px;
}

.modal-750 {
  max-width: 750px;
}

.modal-800 {
  max-width: 800px;
}

.modal-850 {
  max-width: 850px;
}

.modal-900 {
  max-width: 900px;
}

