@charset "utf-8";
.erling_tm_modalbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 20;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.erling_tm_modalbox.opened {
  opacity: 1;
  visibility: visible;
}
.erling_tm_modalbox .box_inner {
  position: absolute;
  top: 70px;
  bottom: 70px;
  width: 968px;
  left: 50%;
  transform: translateX(-53%);
  background-color: #fff;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  transition-delay: 0.3s;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.erling_tm_modalbox.opened .box_inner {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%);
}
.erling_tm_modalbox .close {
  position: fixed;
  left: 100%;
  top: 0;
  margin-left: 30px;
  z-index: 10;
}
.erling_tm_modalbox .close a {
  display: block;
  width: 40px;
  height: 40px;
  text-decoration: none;
  color: #fff;
  border: 2px solid #fff;
  position: relative;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.erling_tm_modalbox .close a:hover {
  border-radius: 100%;
}
.erling_tm_modalbox .close a i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.erling_tm_modalbox .description_wrap {
  position: relative;
  width: 100%;
  height: 100%;
  float: left;
  overflow: hidden;
  padding: 50px;
  overflow-y: scroll;
}
.erling_tm_modalbox .description_wrap:before {
  position: fixed;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #fff;
  z-index: 5;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}
.erling_tm_modalbox .description_wrap:after {
  position: fixed;
  content: "";
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background-color: #fff;
  z-index: 5;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}
.erling_tm_modalbox .description_wrap::-webkit-scrollbar {
  width: 11px;
}
.erling_tm_modalbox .description_wrap {
  scrollbar-width: thin;
  scrollbar-color: #bbb #fff;
}
.erling_tm_modalbox .description_wrap:-webkit-scrollbar-track {
  background: #fff;
}
.erling_tm_modalbox .description_wrap::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 10px;
  border: 3px solid #fff;
}
.hidden_content_portfolio {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  z-index: -11;
}
.erling_tm_modalbox .hidden_content_portfolio {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  z-index: -11;
}
.erling_tm_modalbox .popup_details {
  width: 100%;
  height: auto;
  clear: both;
  float: left;
}
.erling_tm_modalbox .popup_details .top_image {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
}
.erling_tm_modalbox .popup_details .top_image img {
  position: relative;
  min-width: 100%;
  opacity: 0;
}
.erling_tm_modalbox .popup_details .top_image .main {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.erling_tm_modalbox .portfolio_main_title {
  width: 100%;
  float: left;
  margin-bottom: 20px;
}
.erling_tm_modalbox .portfolio_main_title .category a {
  display: inline-block;
  color: var(--main-color);
  margin-bottom: 7px;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.erling_tm_modalbox .portfolio_main_title .category a:hover {
  color: var(--yellow-color);
}
.erling_tm_modalbox .portfolio_main_title h3 {
  font-size: 20px;
}
.erling_tm_modalbox .main_details {
  width: 100%;
  height: auto;
  clear: both;
  display: flex;
  margin-bottom: 60px;
}
.erling_tm_modalbox .main_details .textbox {
  width: 70%;
  padding-right: 40px;
}
.erling_tm_modalbox .main_details .textbox p {
  margin-bottom: 10px;
  opacity: 0.8;
}
.erling_tm_modalbox .main_details .textbox p:last-child {
  margin-bottom: 0;
}
.erling_tm_modalbox .main_details .detailbox {
  width: 30%;
  padding-left: 40px;
}
.erling_tm_modalbox .main_details .detailbox > ul {
  margin: 0;
  list-style-type: none;
}
.erling_tm_modalbox .main_details .detailbox > ul > li {
  margin: 0 0 10px;
  width: 100%;
  float: left;
}
.erling_tm_modalbox .main_details .detailbox > ul > li:last-child {
  margin-bottom: 0;
}
.erling_tm_modalbox .main_details .detailbox .first {
  font-weight: 600;
  display: block;
}
.erling_tm_modalbox .main_details .detailbox span a {
  text-decoration: none;
  color: var(--main-color);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.erling_tm_modalbox .main_details .detailbox span a:hover {
  color: var(--yellow-color);
}
.erling_tm_modalbox .main_details .detailbox .share {
  margin: 0;
  list-style-type: none;
  position: relative;
  top: 7px;
}
.erling_tm_modalbox .main_details .detailbox .share li {
  margin: 0 13px 0 0;
  display: inline-block;
}
.erling_tm_modalbox .main_details .detailbox .share li:last-child {
  margin-right: 0;
}
.erling_tm_modalbox .main_details .detailbox .share li a {
  text-decoration: none;
  color: var(--main-color);
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.erling_tm_modalbox .main_details .detailbox .share li a:hover {
  color: var(--yellow-color);
}
.erling_tm_modalbox .additional_images {
  width: 100%;
  height: auto;
  clear: both;
  float: left;
  margin-top: -519px;
  background: ;
}
.erling_tm_modalbox .additional_images ul {
  margin: 0 0 0 -30px;
  list-style-type: none;
}
/* .erling_tm_modalbox .additional_images ul li {
  margin: 0 0 30px;
  float: left;
  width: 50%;
  padding-left: 30px;
} */
.erling_tm_modalbox .additional_images ul li:nth-child(3n-2) {
  width: 100%;
}
.erling_tm_modalbox .additional_images ul li .list_inner {
  width: 100%;
  height: auto;
  clear: both;
  float: left;
  position: relative;
}
.erling_tm_modalbox .additional_images ul li .my_image {
  position: relative;
}
.erling_tm_modalbox .additional_images ul li .my_image img {
  opacity: 0;
  min-width: 100%;
}
.erling_tm_modalbox .additional_images ul li .my_image .main {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  margin-bottom: 10px;
  border: 2px solid rgb(230, 230, 230);
  background-color: white;
}
.erling_tm_news .news_hidden_details {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  z-index: -11;
}
.erling_tm_modalbox .news_popup_informations {
  width: 100%;
  height: auto;
  clear: both;
  float: left;
}
.erling_tm_modalbox .news_popup_informations .image {
  position: relative;
  margin-bottom: 10px;
}
.erling_tm_modalbox .news_popup_informations .image img {
  position: relative;
  opacity: 0;
  min-width: 100%;
}
.erling_tm_modalbox .news_popup_informations .image .main {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.erling_tm_modalbox .news_popup_informations .image .date {
  position: absolute;
  z-index: 1;
  top: 20px;
  left: 20px;
  background-color: #fff;
  display: inline-block;
  padding: 5px 20px;
}
.erling_tm_modalbox .news_popup_informations .text {
  width: 100%;
  float: left;
}
.erling_tm_modalbox .news_popup_informations .text p {
  margin-bottom: 10px;
  opacity: 0.8;
}
.erling_tm_modalbox .news_popup_informations .text p:last-child {
  margin-bottom: 0;
}
.erling_tm_modalbox .details_news {
  width: 100%;
  background-color: #f5f5f5;
  margin-bottom: 30px;
}
.erling_tm_modalbox .details_news .meta {
  width: 100%;
  background-color: #eaeaea;
  padding: 15px 30px;
  display: flex;
  align-items: center;
}
.erling_tm_modalbox .details_news .meta span {
  position: relative;
  display: inline-block;
  padding-right: 15px;
  margin-right: 10px;
}
.erling_tm_modalbox .details_news .meta span:after {
  position: absolute;
  content: "";
  width: 6px;
  height: 6px;
  background-color: rgba(0, 0, 0, 0.15);
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 100%;
}
.erling_tm_modalbox .details_news .meta span:last-child {
  margin: 0;
  padding: 0;
}
.erling_tm_modalbox .details_news .meta span:last-child:after {
  display: none;
}
.erling_tm_modalbox .details_news .meta a {
  color: #000;
}
.erling_tm_modalbox .details_news .title {
  width: 100%;
  padding: 30px;
}
.erling_tm_modalbox .details_news .title h3 {
  font-size: 20px;
}
@media (max-width: 1600px) {
  .container {
    max-width: 1050px;
  }
  .erling_tm_modalbox .box_inner {
    width: 800px;
  }
  .erling_tm_modalbox .description_wrap {
    padding: 40px;
  }
  .erling_tm_modalbox .description_wrap:before {
    height: 40px;
  }
  .erling_tm_modalbox .description_wrap:after {
    height: 40px;
  }
  .erling_tm_modalbox .close {
    margin-left: 20px;
  }
}
@media (max-width: 1040px) {
  .erling_tm_modalbox .box_inner {
    width: 600px;
    top: 50px;
    bottom: 50px;
  }
  .erling_tm_modalbox .description_wrap {
    padding: 30px;
  }
  .erling_tm_modalbox .description_wrap:before {
    height: 30px;
  }
  .erling_tm_modalbox .description_wrap:after {
    height: 30px;
  }
  .erling_tm_modalbox .close a {
    width: 30px;
    height: 30px;
  }
  .erling_tm_modalbox .close {
    margin-left: 15px;
  }
  .erling_tm_modalbox .main_details {
    flex-direction: column;
  }
  .erling_tm_modalbox .main_details .textbox {
    width: 100%;
    padding-right: 0;
    margin-bottom: 30px;
  }
  .erling_tm_modalbox .main_details .detailbox {
    width: 100%;
    padding-left: 0;
  }
}
@media (max-width: 768px) {
  .erling_tm_modalbox .box_inner {
    width: 300px;
    top: 40px;
    bottom: 40px;
  }
  .erling_tm_modalbox .description_wrap {
    padding: 30px 25px 25px;
  }
  .erling_tm_modalbox .description_wrap:before {
    height: 30px;
  }
  .erling_tm_modalbox .description_wrap:after {
    height: 25px;
  }
  .erling_tm_modalbox .close {
    margin-left: auto;
    left: auto;
    right: 25px;
    top: 15px;
  }
  .erling_tm_modalbox .close a {
    color: #000;
    width: auto;
    height: auto;
    border: none;
    font-size: 20px;
  }
  .erling_tm_modalbox .portfolio_main_title h3 {
    font-size: 19px;
  }
  .erling_tm_modalbox .portfolio_main_title {
    margin-bottom: 15px;
  }
  .erling_tm_modalbox .additional_images ul {
    margin: 0;
  }
  .erling_tm_modalbox .additional_images ul li {
    width: 100% !important;
    padding-left: 0;
    margin-bottom: 20px;
  }
  .erling_tm_modalbox .news_popup_informations .title h3 {
    font-size: 19px;
  }
  .erling_tm_modalbox .news_popup_informations .title {
    margin-bottom: 15px;
  }
}
