main .heading {
  padding: 190px 0 0;
  margin-bottom: 70px;
  text-align: center;
  line-height: 1;
}

main .heading__inner {
  position: relative;
  display: inline-block;
  padding: 46px 0 0;
}

main .heading__deco {
  position: absolute;
  top: 0;
  left: -70px;
}

main .poster-list {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin: -60px -40px 0 0;
  overflow: hidden;
  max-height: 660px;
  height: 100%;
  transition: max-height 1s ease-in-out;

  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #f2f2e9);
  }

  &.is-expanded {
    max-height: 5000px;
    transition: max-height .25s ease;

    &::after {
      display: none;
    }
  }
}

main .poster-list__item {
  width: calc(25% - 40px);
  margin: 60px 40px 0 0;
}

main .show-more {
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.1em;
  background-color: #333;
  width: 300px;
  height: 60px;
  color: #fff;
  border-radius: 30px;
  margin: 50px auto 0;
  transition: transform .5s;

  &:hover {
    transform: scale(1.05);
  }

  &::before,
  &::after {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 30px;
    margin: auto;
    display: block;
    content: "";
    width: 11px;
    height: 1px;
    background-color: #fff;
  }

  &::after {
    transform: rotate(90deg);
  }
}

main .show-more.is-open {

  &::after {
    transform: rotate(0deg);
  }
}

main .poster {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

main .poster__image {
  position: relative;
}

main .poster__image .button {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 33px;
  height: 33px;
  background: #fff;
  transition: 0.3s;
}

main .poster__image .button::before,
main .poster__image .button::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
  width: 13px;
  height: 1px;
  background: #669ab4;
  content: '';
  transition: 0.3s;
}

main .poster__image .button::after {
  width: 1px;
  height: 13px;
}

main .poster:hover .button {
  background: #669ab4;
}

main .poster:hover .button::before,
main .poster:hover .button::after {
  background: #fff;
}

main .poster__image img {
  width: 100%;
  height: auto;
}

main .poster__title {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  line-height: 1.75;
}

.modal {
  display: none;
}

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

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(51, 51, 51, 0.8);
}

.modal .wrapper {
  width: 100%;
  height: 100%;
  overflow: auto;
}

.modal__container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 180px 0;
}

.modal__close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 74px;
  height: 74px;
  appearance: none;
  border: none;
  background: none;
  pointer-events: none;
}

.modal__close::before,
.modal__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 2px;
  background: #fff;
  content: '';
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.modal__content .title {
  text-align: center;
  margin-bottom: 50px;
  color: #fff;
  font-size: 3rem;
  font-weight: 500;
}

.modal__content .image img {
  width: 670px;
  height: auto;
}

@media screen and (max-width: 767px) {
  #wrapper main .inner {
    padding: 0 20px;
  }

  main .heading {
    padding: 100px 0 0;
    margin-bottom: 30px;
  }

  main .heading__inner {
    padding: 25px 0 0;
  }

  main .heading__deco {
    left: -39px;
  }

  #wrapper main .heading__deco img {
    width: auto;
    height: 31px;
  }

  #wrapper main .heading__main img {
    width: auto;
    height: 22px;
  }

  main .poster-list {
    margin: -50px -20px 0 0;
    max-height: 530px;

    &.is-expanded {
      max-height: 10000px;
    }
  }

  main .poster-list__item {
    width: calc(50% - 20px);
    margin: 50px 20px 0 0;
  }

  main .poster__image .button {
    right: -10px;
    bottom: -10px;
    width: 30px;
    height: 30px;
  }

  main .poster__image .button::before,
  main .poster__image .button::after {
    width: 12px;
  }

  main .poster__image .button::after {
    width: 1px;
    height: 12px;
  }

  main .poster__title {
    margin-top: 18px;
    font-size: 11px;
  }

  .modal__close {
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .modal__close::before,
  .modal__close::after {
    width: 84px;
    height: 1px;
  }

  .modal__container {
    padding: 110px 20px;
  }

  .modal__content .title {
    margin-bottom: 30px;
    font-size: 5.33vw;
    line-height: 1.7;
  }

  .modal__content .image img {
    width: 100%;
    height: auto;
  }
}

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

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

@keyframes mmslideIn {
  from {
    transform: translateY(50px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-20px);
  }
}

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

.modal[aria-hidden='false'] .modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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