/* 案例 */
.case-wrapper {
  background: rgba(0, 26, 96, 0.8);
  margin-bottom: 50px;
}

.case {
  display: flex;
}

.case-tab-wrapper {
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  padding-bottom: 50px;
  flex-shrink: 0;
}

.case-tab-title {
  margin: 60px 0;
}

.case-tab {
  display: flex;
  flex-direction: column;
  min-width: 22em;
  max-height: 500px;
  overflow-y: scroll;
}

/* /\* Hide scrollbar for Chrome, Safari and Opera *\/ */
/* .case-tab::-webkit-scrollbar { */
/*   display: none; */
/* } */

/* /\* Hide scrollbar for IE, Edge and Firefox *\/ */
/* .case-tab { */
/*   -ms-overflow-style: none;  /\* IE and Edge *\/ */
/*   scrollbar-width: none;  /\* Firefox *\/ */
/* } */

.case-tab .item {
  flex: 1;
  padding: 0.8em 1.5em;
  font-size: 18px;
  line-height: 30px;
  cursor: pointer;
  transition: 0.1s;
  border-left: 6px solid transparent;
}

.case-tab .item:hover {
  background: #fff;
  color: #333;
}

.case-tab .item.active {
  background: #fff;
  color: #333;
  border-left: 6px solid #ff7817;
}

.case-content {
  padding: 60px 0 0 90px;
  flex-grow: 1;
}

@media screen and (max-width: 1280px) {
  .case-tab .item {
    font-size: 16px;
    padding: .4em .75em;
    max-width: 23em;
  }

  .case-content {
    padding: 60px 20px 0 20px;
  }
}

.case-content-text {
  margin-left: 20px;
}

.case-content-gallery {
  display: flex;
  margin: 97px 0 50px 0;
}

.case-content-gallery > * {
  width: 33.33%;
  max-height: 400px;
}

.case-content-gallery > *:not(:last-of-type) {
  margin-right: 10px;
}

.case-content-nav {
  display: flex;
  flex-direction: row-reverse;
}

.case-content-nav > a:first-of-type {
  padding-left: 10px;
}

.mobile-case-imgs {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mobile-case-imgs img {
  display: block;
  margin: 0 2px;
  width: calc(33.33333333% - 4px);
}

.mobile-case-title {
  font-size: 1.3rem;
  text-align: center;
}

.pagination-dot {
  display: block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  margin: 0 14px;
  cursor: pointer;
}

.pagination-dot.active {
  background-color: #ff7817;
}

.mobile-case-pagination {
  display: flex;
  /* width: -webkit-max-content; */
  width: -moz-max-content;
  /* width: max-content; */
  margin: 2em auto;
  overflow: hidden;
}

@media screen and (min-width: 769px) {
  .mobile-case-wrapper {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  .case-tab-title {
    margin: 20px 0;
  }
}
