@charset "UTF-8";

/*
========================================

	modal.css
    
========================================
*/

.works_item {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 2px;
    margin: 0 auto;
    /*background-color: #fff;*/
    padding: 0;
}
.works_modal_open {
    height: fit-content;
    text-align: right;
    background-color: #fff;
    padding-bottom: 2px;
}
.works_image_mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.2);
    -webkit-transition: all 0.6s ease;
    transition: all 0.6s ease;
    cursor: pointer;
    width: 100%;
}
.mask_text {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    color: #fff;
    line-height: 1;
    height: 1rem;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    margin: auto;
}
.works_modal_content {
    text-align: center;
}
.works_image:hover .works_image_mask {
    opacity: 1;
}

/* ------works_modal------ */

.works_modal_wrapper {
    position: fixed;
    display: flex;
    align-items: center;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: none;
    opacity: 0;
    z-index: -1;
}
.works_modal_window {
    width: 90vw;
    max-width: 960px;
    height:auto;
    max-height: 90vh;
    margin: auto;
    padding: 48px 0;
    background: #fff;
    z-index: 1;
    overflow-y: auto;
}
.works_modal_content {
    margin: auto;
    width: 96%;
    height: 96%;
    max-width: 720px;
}
.works_modal_mask {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}
.works_modal_close {
    z-index: 300;
    position: absolute;
    top: -8px;
    right: 16px;
    color: #808080;
    font-size: 3rem;
    cursor: pointer;
}
.works_modal_close:hover {
    color: #000;
    transition: all .5s;
}
html.is_open, body.is_open {
    overflow: hidden;
}
.works_modal_wrapper.is_open {
    animation: works_modal_wrapper_open .5s ease forwards;
}
.works_modal_wrapper.is_open .works_modal_window {
    animation: works_modal_window_open .5s ease forwards;
}
.works_modal_wrapper.is_close {
    animation: works_modal_wrapper_close .5s ease forwards;
}
.works_modal_wrapper.is_close .works_modal_window {
    animation: works_modal_window_close .5s ease forwards;
}

@keyframes works_modal_wrapper_open {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
      z-index: 300;
    }
  }
  @keyframes works_modal_window_open {
    0% {
      opacity: 0;
      transform: translateY(-30px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  @keyframes works_modal_wrapper_close {
    0% {
      z-index: 300;
      opacity: 1;
    }
    100% {
      opacity: 0;
    }
  }
  @keyframes works_modal_window_close {
    0% {
      opacity: 1;
      transform: translateY(0);
    }
    100% {
      transform: translateY(-30px);
      opacity: 0;
    }
  }