@charset "utf-8";
/* CSS Document */

/*--------------------------------
modal
--------------------------------*/
#ModalArea {
	position:fixed;
	top:0;
	left:0;
	width:100%;
	height:100%;
	z-index:1000;
	display:none;
}

#ModalMain {
	position:absolute;
	top:50%;
	left:50%;
 transform: translate(-50%,-50%);
	margin:0;
	width:auto;
	height:auto;
	z-index:2;
	padding:0;
	background:#FFFFFF;
}

#ModalMain .ModalInner {
	padding:0;
	margin:0 0;
	height:auto;
}

/* Iframe */
#ModalMain iframe {
 display: block;
	width:800px;
	/*height:600px;*/
 /*height: 640px;*/
 /*
 min-height: 50vh;
 max-height: 85vh;
 */
	border:none;
	overflow:auto;
	padding:0;
	margin:0;
 /*overflow-x: hidden;*/
}

@media screen and (min-width: 800px),print {
 #ModalMain iframe.registry{
  min-height: 80vh;
  max-height: calc(100vh - 40px);
  overflow: hidden;
	 border-radius: 6px;
 }
 
 #ModalMain iframe.slideshow {
  max-height: 756px;
  height: 756px !important;
  overflow: hidden;
 }
}

@media screen and (max-width: 799px) and (orientation:portrait) {
 #ModalMain {
  width: 96%;
  top:calc(50% + 25px);
 }
 #ModalMain iframe {
  display: block;
  width:100%;
  /*height:600px;*/
  /*height:auto;*/
  /*
 min-height: 40vh;
 max-height: 70vh;
  */
  /*
  min-height: 30vh;
  max-height: 70vh;
  */
  /*max-height: calc(100vh - 200px);*/
  min-height: 70vh;
  max-height: calc(100vh - 60px);
  border:none;
  overflow:hidden;
  padding:0;
  margin:0;
 }
}

@media screen and (max-width: 799px) and (orientation:landscape) {
 #ModalMain {
  width: 96%;
  top:calc(50% + 20px);
 }
 #ModalMain iframe {
  display: block;
  width:100%;
  max-height: calc(100vh - 120px);
  border:none;
  overflow:hidden;
  padding:0;
  margin:0;
 }
}

#ModalMain .ModalClose-wrapper {
	padding:0;
	margin:0;
 position: absolute;
 top: 16px;
 right: 50px;
}

#ModalMain .ModalClose-wrapper .ModalBtnClose {
	text-indent: -9999px;
	overflow: visible;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
    display: block;
    outline: none;
    padding: 0;
    z-index: 1046;
    box-shadow: none;
    touch-action: manipulation;
}

#ModalMain .ModalClose-wrapper .ModalBtnClose:hover {
	/*background-color:#aaa;*/
}

#ModalMain .ModalClose-wrapper .ModalBtnClose::before,#ModalMain .ModalClose-wrapper .ModalBtnClose::after{
	content: "";
    display: block;
    width: 25px;
    height: 2px;
    border-radius: 2px;
    background: #4a515f;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
}

#ModalMain .ModalClose-wrapper .ModalBtnClose::before{
	transform: rotate(45deg);
}

#ModalMain .ModalClose-wrapper .ModalBtnClose::after{
	transform: rotate(-45deg);
}

#ModalBackground {
	position:fixed !important;
	position:absolute;
	z-index:1;
	top:0px;
	right:0px;
	bottom:0px;
	left:0px;
	background: rgba(74, 81, 95, .6);
	opacity: 0.7;
	filter: alpha(opacity=50);
}
@media only screen and (max-width: 767px){
	#ModalMain .ModalClose-wrapper {
	top: 12px;
	right: 50px;
}
}

/*-----------*/
