/* ==========================================================================
   Remodal's default mobile first theme
   ========================================================================== */

/* Default theme styles for the background */

.remodal-bg.remodal-is-opening,
.remodal-bg.remodal-is-opened {
  filter: blur(3px);
}

/* Default theme styles of the overlay */

.remodal-overlay {
  background: #fff;
}

.remodal-overlay.remodal-is-opening,
.remodal-overlay.remodal-is-closing {
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
}

.remodal-overlay.remodal-is-opening {
  animation-name: remodal-overlay-opening-keyframes;
}

.remodal-overlay.remodal-is-closing {
  animation-name: remodal-overlay-closing-keyframes;
}

/* Default theme styles of the wrapper */

.remodal-wrapper {
  /*padding: 10px 10px 0;*/
}

/* Default theme styles of the modal dialog */

.remodal {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100%;

  transform: translate3d(0, 0, 0);

  color: #2b2e38;
  background: #fff;
}

.remodal.remodal-is-opening,
.remodal.remodal-is-closing {
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
}

.remodal.remodal-is-opening {
  animation-name: remodal-opening-keyframes;
}

.remodal.remodal-is-closing {
  animation-name: remodal-closing-keyframes;
}

/* Vertical align of the modal dialog */

.remodal,
.remodal-wrapper:after {
  vertical-align: middle;
}

.remodal .remodal-inner {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  margin: 0 auto;
  padding: 4.166%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;

  opacity: 0;
  transition: opacity 0.6s ease;
}

/*.remodal:before {
    content: "";
    position: absolute;
	top: 50%;
	left: 50%;
	width: 32px;
	height: 32px;
	transform: translate(-50%, -50%);
	transition-duration: .2s;
	transition-property: opacity;
	animation: rotate .3s infinite linear;
	opacity: 1;
	border-top: 1px solid #000;
	border-right: 1px solid rgba(255, 255, 255, 0);
	border-bottom: 1px solid rgba(255, 255, 255, 0);
	border-left: 1px solid rgba(255, 255, 255, 0);
	border-radius: 100%;
}*/

.remodal .remodal-inner .remodal-slider {
    overflow: hidden;
    margin-top: 15%;
}
.remodal .remodal-inner .remodal-slider li {
    position: relative;
}
.remodal .remodal-inner .remodal-slider li > img {
	width: 100%;
	height: auto;
}

.remodal-caption {
    text-align: left;
    margin-top: 1.5em;
}
.remodal-caption dt {
    font-size: 14px;
}
.remodal-caption dd {
    margin-top: 0.5em;
    line-height: 1.8;
    font-size: 12px;
}

/* Arrows */
.remodal-prev,
.remodal-next
{
    font-size: 0;
    line-height: 0;

    width: 80px;
    height: 80px;
    padding: 0;

    cursor: pointer;

    color: transparent;
    border: none;
    outline: none;
    background: transparent;

    opacity: 0.5;

    background-repeat: no-repeat;
    -webkit-background-size: 20px 50px;
    background-size: 20px 50px;

    transition: opacity 0.3s ease;
}

.remodal-prev:hover,
.remodal-next:hover
{
    opacity: 1;
    transition: opacity 0.3s ease;
}

.remodal-prev
{
    position: absolute;
    left: 0;
    top: 0;
    background-image: url("../png/sp_left-2.png");
    background-position: center center;
}
.remodal-next
{
    position: absolute;
    right: 0;
    top: 0;
    background-image: url("../png/sp_right-2.png");
    background-position: center center;
}

/* Close button */

.remodal-close {

  display: block;
  overflow: visible;

  width: 80px;
  height: 80px;
  margin: 0 auto;
  padding: 0;

  cursor: pointer;
  text-decoration: none;

  border: 0;
  outline: 0;
  background: transparent;

  background-image: url("../png/sp_close-2.png");
  background-repeat: no-repeat;
  background-position: center center;
  -webkit-background-size: 40px;
  background-size: 40px;

  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.remodal-close:hover {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* Dialog buttons */

.remodal-confirm,
.remodal-cancel {
  font: inherit;

  display: inline-block;
  overflow: visible;

  min-width: 110px;
  margin: 0;
  padding: 12px 0;

  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;

  border: 0;
  outline: 0;
}

.remodal-confirm {
  color: #fff;
  background: #81c784;
}

.remodal-confirm:hover,
.remodal-confirm:focus {
  background: #66bb6a;
}

.remodal-cancel {
  color: #fff;
  background: #e57373;
}

.remodal-cancel:hover,
.remodal-cancel:focus {
  background: #ef5350;
}

/* Remove inner padding and border in Firefox 4+ for the button tag. */

.remodal-confirm::-moz-focus-inner,
.remodal-cancel::-moz-focus-inner,
.remodal-close::-moz-focus-inner {
  padding: 0;

  border: 0;
}


.remodal-ctrl {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.remodal-ctrl > div {
    display: table-cell;
    vertical-align: middle;
}

.remodal-ctrl > button {
    display: none !important;
}

.remodal-ctrl > .ctrl-next {
    text-align: right;
    padding-right: 4.166%;
}
.remodal-ctrl > .ctrl-prev {
    text-align: left;
    padding-left: 4.166%;
}


/* Keyframes
   ========================================================================== */

@keyframes remodal-opening-keyframes {
  from {
    transform: scale(1.05);

    opacity: 0;
  }
  to {
    transform: none;

    opacity: 1;
  }
}

@keyframes remodal-closing-keyframes {
  from {
    transform: scale(1);

    opacity: 1;
  }
  to {
    transform: scale(0.95);

    opacity: 0;
  }
}

@keyframes remodal-overlay-opening-keyframes {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes remodal-overlay-closing-keyframes {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes rotate {
    0% {
    	-webkit-transform: rotate(0deg);
    	transform: rotate(0deg);
    }
    100% {
    	-webkit-transform: rotate(359deg);
    	transform: rotate(359deg);
    }
}

/* Media queries
   ========================================================================== */

@media screen and (min-width: 769px) {
  .remodal {
    /*max-width: 700px;*/
  }
  .remodal .remodal-inner {
    max-width: 640px;
    padding: 0;
  }
  .remodal .remodal-inner .remodal-slider {
      margin-top: 0;
  }
  .remodal-close {
    position: absolute;
    top: 40px;
    right: 40px;

    width: 60px;
    height: 60px;
    background-image: url("../png/pc_close-2.png");
    -webkit-background-size: 60px;
    background-size: 60px;
    }

    /* Arrows */
    .remodal-prev,
    .remodal-next
    {
        width: 100px;
        height: 100px;

        -webkit-background-size: 43px 100px;
        background-size: 43px 100px;
    }

    .remodal-prev:hover,
    .remodal-next:hover
    {
        opacity: 1;
        transition: opacity 0.3s ease;
    }

    .remodal-prev
    {
        left: 10%;
        top: 50%;
        transform: translateY(-50%);
        background-image: url("../png/pc_left-2.png");
    }
    .remodal-next
    {
        right: 10%;
        top: 50%;
        transform: translateY(-50%);
        background-image: url("../png/pc_right-2.png");
    }
}

/* IE8
   ========================================================================== */

.lt-ie9 .remodal-overlay {
  background: #2b2e38;
}

.lt-ie9 .remodal {
  width: 700px;
}
