/* .panel-popup-contain {
  position: relative;
  margin-bottom: -315px;
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
  height: 372px;
  cursor: pointer;
} */

.panel-popup-contain {
  position: relative;
  margin: 0 auto -315px auto;
  display: flex;
  flex-flow: row nowrap;
  width: 100%;
  height: 372px;
  cursor: pointer;
  max-width: 1300px;
  background: #fff7f4;
}

.panel-popup-contain a, .mobile-popup-contain a {
  font-weight: bold;
  font-size: 16px;
}

.popup-over-video {
  background: none !important;
}

.mobile-popup-contain {
  display: none;
  width: 100%;
  cursor: pointer;
}

.popup {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: white;
  flex: 1 1 33%;
  box-sizing: border-box;
  margin-left: 4px;
  width: calc(94%/3);
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  transition: all 0.5s ease;
}

.popup p {
  font-size: 16px;
  padding: 13px 0 5px 0;
}

.popup .header {
  background-color: #504a47;
  border-radius: 15px 15px 0 0;
  text-align: center;
  height: 57px;
}

.popup .subtext {
  background-color: #ebe9e0;
  height: 315px;
  color: #504a47;
  padding-bottom: 25px;
  overflow-y: scroll;
}

.popup .subtext .row {
  padding-bottom: 15px;
}

.popup .subtext p {
  margin: 0;
}

.popup .subtext ul {
  padding-top: 20px;
}

.popup ul li {
  padding-bottom: 10px;
  font-size: 16px;
}

.popup-subtext-bold {
  font-weight: 800;
  padding-top: 20px;
}

.moved-up{
  transform: translate(0, -315px);
}

.popup .subtext img {
  display: block;
  margin: 0 auto;
  padding: 20px;
}

@media all and (max-width: 1024px){
  .panel-popup-contain {
    display: none;
  }
  .mobile-popup-contain {
    display: block;
  }
  .mobile-popup-contain > .popup > .subtext > .row > .columns {
    padding: 10px 80px;
  }
  .popup {
    margin: 0;
    width: 100%;
  }
  .popup .header {
  border-radius: 0;
  }
  .popup .subtext {
    height: 0px;
    padding-bottom: 1px;
  }
}

@media all and (max-width: 639px){
  .mobile-popup-contain > .popup > .subtext > .row > .columns {
    padding: 10px 40px;
  }
}