li {list-style: none;}

.thumbList__item:first-child {
  width: 100%;
  padding: 0 0 90px;
}
.thumbList__item:first-child .thumbList__title {
  padding: 10px 0 60px;
}
.thumbList__item:first-child .thumbList__img img {
  max-width: 926px;
  width: 100%;
}
.thumbList__item:first-child .thumbList__img {
  position: relative;
  max-width: 926px;
  width: 100%;
  margin: 0 auto;
}
.thumbList__item:first-child .thumbList__img::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  background: url(../img/frame.png) no-repeat;
  background-size: contain;
  background-position: center;
  width: 105%;
  height: 110%;
}

.thumbList {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.thumbList__title {
  text-align: center;
  font-size: 20px;
  padding: 0 0 20px;
}
.thumbList__item-inner {
  pointer-events: none;
}
.thumbList__img img {
  width: 100%;
}

.thumbList__item:nth-child(n + 2) {
  width: 46.4%;
  box-sizing: border-box;
  border: 4px solid #e4d2a1;
  border-radius: 10px;
  padding: 30px 0;
  position: relative;
  cursor: pointer;
}
.thumbList__item:nth-child(n + 2)::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: url(../img/icon-plus.svg) center / contain no-repeat;
  width: 40px;
  height: 40px;
}
.thumbList__item:nth-child(n + 2)[data-modal]:hover::after {
  animation: plusHover 1.0s ease infinite;
}
.thumbList__item:nth-child(n + 2)[data-modal]:focus::after {
  animation: plusHover 1.0s ease infinite;
}
.thumbList__item:nth-child(n + 4) {
  margin-top: 60px;
}

.m-modal {
  /* display: flex; */
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(251, 236, 247, 0.95);
  padding: 15px 30px;
  z-index: 1002;
  box-sizing: border-box;
  display: none;
}
.m-modal.is-active {
  display: flex;
  animation: modalOpen 0.35s ease forwards;
}
.m-modal__wrap {
  display: block;
  min-width: 700px;
  width: 60%;
  background-color: #fff;
  padding: 30px 100px;
  border-radius: 20px;
  text-align: center;
  box-sizing: border-box;
  position: relative;
}
.m-modal__wrap img {
  width: 100%;
}
.m-modal__close {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  background-color: #FF90BD;
  position: absolute;
  top: -22px;
  right: -22px;
  cursor: pointer;
}
.m-modal__close::before, .m-modal__close::after {
  content: "";
  display: block;
  width: 3px;
  height: 22px;
  background-color: #fff;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
  transform: rotate(45deg);
}
.m-modal__close::after {
  transform: rotate(-45deg);
}

@media screen and (max-width: 768px) {
  .thumbList__item:first-child {
    padding: 0 0 30px;
  }
  .thumbList__item:first-child .thumbList__title {
    padding: 0 0 20px;
  }
  .thumbList__item:first-child .thumbList__img::before {
    width: 103%;
    height: 103%;
  }
  .thumbList {
    padding: 0 0 60px
  }
  .thumbList__title {
    font-size: 12px;
    padding: 0 0 15px;
  }
  .thumbList__item:nth-child(n + 2) {
    width: calc(50% - 12px);
    border: 2px solid #e4d2a1;
    padding: 20px 0;
  }
  .thumbList__item:nth-child(n + 2)::after {
    width: 20px;
    height: 20px;
    bottom: -10px;
    right: -10px;
  }
  .thumbList__item:nth-child(n + 4) {
    margin-top: 30px;
  }

  .m-modal__wrap {
    min-width: auto;
    width: 100%;
    padding: 30px 10px;
  }
  .m-modal__close {
    width: 30px;
    height: 30px;
    top: -15px;
    right: -15px;
  }
  .m-modal__close::before, .m-modal__close::after {
    height: 15px;
  }
}

@keyframes plusHover {
  0% {
    transform: scale(1.4);
  }
  35% {
    transform: scale(1.7);
  }
  50% {
    transform: scale(1.5);
  }
  65% {
    transform: scale(1.7);
  }
  100% {
    transform: scale(1.4);
  }
}
@keyframes modalOpen {
  0% {
    display: none;
    opacity: 0;
    border-radius: 100vw;
    transform: scaleX(0);
  }
  1% {
    display: flex;
    opacity: 0;
    border-radius: 100vw;
    transform: scaleX(0);
  }
  100% {
    display: flex;
    opacity: 1;
    border-radius: 0;
    transform: scaleX(1);
  }
}
