@charset "utf-8";

.modal {
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal__container {
  width: 90%;
  height: 100vh;
  padding: 15vh 0 10vh;
  overflow-y: auto;
  position: relative;
  background: transparent;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.modal__container::-webkit-scrollbar {
  display: none;
}

.news-modal {
  height: auto;
  padding: 2em 2em 2em 1em;
  color: #212121;
  background: white;
  overflow-y: auto;
  text-align: left;
  font-size: clamp(0.7rem, 0.471rem + 1.14vw, 0.9rem);
  line-height: 1.2;
}

.news-modal-head {
  border-bottom: 1px solid #a1a25a;
  margin: 0 auto 1em;
}

.news-modal-news {
  font-size: clamp(1.25rem, 0.536rem + 3.57vw, 1.875rem);
  font-weight: bold;
  color: #a1a25a;
  position: relative;
  margin: 0 auto 1em;
  text-align: center;
}

.news-modal-title {
  font-size: clamp(0.875rem, 0.518rem + 1.79vw, 1.188rem);
  color: #a1a25a;
  position: relative;
  margin: 0 auto 1em;
  font-weight: bold;
}

.news-modal-date {
  font-size: clamp(0.75rem, 0.536rem + 1.07vw, 0.938rem);
  color: #a1a25a;
  position: relative;
  text-align: right;
  margin: 0 auto 1em;
}

.news-modal-close {
  position: relative;
  margin: 2em auto 0;
  text-align: center;
}

.modal__btn {
  position: relative;
  margin: 0 auto;
  display: inline-block;
  background: #a1a25a;
  color: white;
  font-size: clamp(0.875rem, 0.589rem + 1.43vw, 1.125rem);
  font-weight: bold;
  padding: 0.3em 1em;
  border-radius: 4px;
}

@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

@media screen and (min-width: 601px) {
  .modal__container {
    width: 80%;
    height: 100vh;
    padding: 10vh 0 10vh;
  }

  .news-modal {
    padding: 5%;
  }
}

@media screen and (min-width: 1281px) {
  .modal__container {
    width: 60%;
    max-width: 720px;
    padding: 10vh 0 10vh;
  }
}
