@charset "UTF-8";

@media print, screen and (min-width: 641px) {
  .movie__wrap {
    padding-top: 128px;
    padding-bottom: 140px;
    max-width: calc( 100% - 20px );
    padding-left: 10px;
    padding-right: 10px;
    width: 1044px;
    margin-right: auto;
    margin-left: auto;
  }

  .movie__section:not(:last-of-type) {
    margin-bottom: 128px;
  }

  .movie__title {
    margin-bottom: 48px;
  }

  .movie__title-image {
    display: block;
    width: 100%;
    height: auto;
  }

  .movie__thumbnail {
    position: relative;
    display: block;
    width: 980px;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    overflow: hidden;
    cursor: pointer;
  }

  .movie__image {
    display: block;
    max-width: 100%;
    height: auto;
    transition-property: scale;
    transition-duration: 400ms;
  }

  .movie__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .movie__overlay::before {
    content: "";
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-image: url("../movie/img/icon_play.jpg");
    background-size: 100%;
    transition-property: scale;
    transition-duration: 400ms;
  }

  .movie__caption {
    margin-top: 20px;
    font-size: 1.6rem;
    font-weight: 400;
    text-align: center;
  }
}

@media (hover: hover) {
  .movie__thumbnail:hover .movie__image {
    scale: 1.02;
  }
  .movie__thumbnail:hover .movie__overlay::before {
    scale: 0.8;
  }
}

@media print, screen and (max-width: 640px) {
  .movie__wrap {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 80px;
    padding-left: 10px;
    padding-right: 10px;
    max-width: 100%;
  }

  .movie__section:not(:last-of-type) {
    margin-bottom: 54px;
  }

  .movie__title {
    margin-bottom: 10px;
  }

  .movie__title-image {
    display: block;
    width: 100%;
    height: auto;
  }

  .movie__thumbnail {
    position: relative;
    display: block;
  }

  .movie__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .movie__overlay::before {
    content: "";
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-image: url("../movie/img/icon_play.jpg");
    background-size: 100%;
  }

  .movie__caption {
    margin-top: 16px;
    font-size: 1.4rem;
    font-weight: 400;
    text-align: center;
  }
}