/*
 *  Remodal - v1.1.1
 *  Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
 *  http://vodkabears.github.io/remodal/
 *
 *  Made by Ilya Makarov
 *  Under MIT License
 */

/* ==========================================================================
   Remodal's default mobile first theme
   ========================================================================== */

/* Default theme styles of the overlay */

.remodal-overlay {
  background: rgba(0, 0, 0, 0.8);
}

.remodal-overlay.remodal-is-opening,
.remodal-overlay.remodal-is-closing {
  animation-duration: 0.5s;
  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 {
}

/* Default theme styles of the modal dialog */

.remodal {
  box-sizing: border-box;
  width: 100%;

  transform: translate3d(0, 0, 0);

  background: #fff;
}

.remodal.remodal-is-opening,
.remodal.remodal-is-closing {
  animation-duration: 0.5s;
  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;
}


/* Keyframes
   ========================================================================== */

@keyframes remodal-opening-keyframes {
  from {
    transform: scale(1.05);

    opacity: 0;
  }
  to {
    transform: none;

    opacity: 1;

    filter: blur(0);
  }
}

@keyframes remodal-closing-keyframes {
  from {
    transform: scale(1);

    opacity: 1;
  }
  to {
    transform: scale(0.95);

    opacity: 0;

    filter: blur(0);
  }
}

@keyframes remodal-overlay-opening-keyframes {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes remodal-overlay-closing-keyframes {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Media queries
   ========================================================================== */

@media only screen and (min-width: 641px) {
  .remodal {
    max-width: 800px;
  }
}

/* IE8
   ========================================================================== */

.lt-ie9 .remodal-overlay {
  background: #2b2e38;
}

.lt-ie9 .remodal {
  width: 700px;
}

/* customize */
.remodal {
}
.modal-inner {
  position: relative;
  padding: 0 0 40px;
  text-align: left;
}
.modal-ttl {
  margin: 0 0 30px;
  padding: 15px 40px;
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  background: #2AB16A;
}
.modal-icon-saving,
.modal-icon-safe {
  position: absolute;
  top: 13px;
  right: 80px;
  line-height: 1.5;
  padding: 0 0 0 52px;
  color: #fff;
  font-size: 14px;
}
.modal-icon-saving:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 43px;
  height: 43px;
  background: url(../img/suggestion/aquaculture_14.png) no-repeat 0 0 / 100% 100%;
  transform: translateY(-50%);
}
.modal-icon-safe:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 43px;
  height: 43px;
  background: url(../img/suggestion/aquaculture_15.png) no-repeat 0 0 / 100% 100%;
  transform: translateY(-50%);
}
.modal-txt {
  margin: 0 40px 30px
}
.modal-img {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 0 40px 30px;
}
.modal-img figure {
  margin: 0;
}
.modal-img img {
  max-width: 550px;
  max-height: 300px;
}
.modal-img:has(figure:nth-child(3)) img {
  max-width: 230px;
}
.modal-img figcaption {
  margin: 5px 0 0;
  font-size: 14px;
}
.modal-btn {
  text-align: center;
}
.modal-btn a {
  vertical-align: top;
}
.remodal-close {
  position: absolute;
  top: 23px;
  right: 30px;
  width: 25px;
  height: 25px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 1;
}
.remodal-close:before,
.remodal-close:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 3px;
  background: #fff;
}
.remodal-close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.remodal-close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media screen and (max-width: 767px) {
  .remodal {
    max-width: calc(100vw - 30px);
  }
  .modal-inner {
    max-height: 80vh;
    overflow: auto;
    padding: 0 0 15px;
  }
  .modal-ttl {
    margin: 0 0 20px;
    padding: 15px;
    font-size: 18px;
  }
  .modal-icon-saving,
  .modal-icon-safe {
    top: 14px;
    right: 15px;
    padding: 0 0 0 38px;
    font-size: 12px;
  }
  .modal-icon-saving:before,
  .modal-icon-safe:before {
    width: 30px;
    height: 30px;
  }
  .modal-txt {
    margin: 0 15px 20px
  }
  .modal-img {
    flex-wrap: wrap;
    margin: 0 15px 20px;
  }
  .modal-img:has(figure:nth-child(2)) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .modal-img img {
    max-width: 100%;
    max-height: 170px;
  }
  .modal-img:has(figure:nth-child(3)) img {
    max-width: 100%;
  }
  .modal-img figcaption {
    font-size: 12px;
  }
  .modal-btn {
    margin: 0 15px;
  }
  .remodal-close {
    top: -30px;
    right: 0;
  }
}