@charset "utf-8";
/* ---------------------------------- **
		Modal Window
** ---------------------------------- */
#popup {
  display: none;
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  place-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.8s ease,
    visibility 0s linear 0.8s;
}

.popup.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition:
    opacity 1.8s ease,
    visibility 0s;
}

.popup__bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.popup__box {
  position: relative;
  width: min(90vw, 520px);
  max-height: 90dvh;
  overflow: auto;
  background: #fff;
  padding: 50px 30px 20px 30px;
  z-index: 1;
  overflow: hidden;
  text-align: center;
}

.popup__title {
  font-size: 18px;
  font-weight: 600;
}

.popup__date {
  margin-bottom: 16px;
  color: #777;
}

.popup__text {
  line-height: 1.8;
}

.popup__image {
  margin: 16px auto;
  max-width: 300px;
}

.popup__image img {
  width: 100%;
  height: auto;
  display: block;
}

.popup__more {
  display: inline-block;
  margin-bottom: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  padding: 2px 5px;
  position: relative;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.popup__more::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  height: 1px;
  width: 100%;
  background: #222;

  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1);
}


.popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
}

.popup__close::before,
.popup__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1px;
  background: #fff;
}

.popup__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.popup__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 768px){
.popup__image{  width: 75%;}
.popup__more{ margin: 20px auto; }
.popup__text { width: 80%; margin: 0 auto;}
}

@media (hover: hover) {
  .popup__more:hover {
    transform: translateY(-2px);
    opacity: 0.8;
  }
  .popup__more:hover::after {
    transform: translateX(-50%) scaleX(1);
  }
}

@media (max-width: 768px){
.popup__more::after {
  transform: translateX(-50%) scaleX(1);
}

}