/*案例選擇*/
.ansZone {
  margin: 3rem 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-column-gap: 2em;
  grid-row-gap: 2em;
}

.ansBox input[type="checkbox"] {
  opacity: 0
}

.ansBox input[type="checkbox"]:focus+label {
  outline: 3px dotted var(--sub-color) !important;
  outline-offset: 3px;
}

.ansBox {
  text-align: center;
  font-size: 1.1rem;
  cursor: pointer;
}

.ansBox label {
  border: 1px solid rgb(148 163 185 / 50%);
  display: block;
  padding: 25px 0;
  line-height: 50px;
  position: relative;
  cursor: pointer;
}

.ansBox label .circle {
  width: 30px;
  height: 30px;
  border: 1px solid rgb(148 163 185 / 50%);
  display: inline-block;
  border-radius: 100%;
  position: absolute;
  top: -10px;
  right: -10px;
  background: #fff;
}

.searchForm {
  margin: 1rem;
}

.ansBox input[type="checkbox"]:checked+label {
  border: 3px solid var(--sub-color)
}

.ansBox input[type="checkbox"]:checked+label .circle {
  background: var(--sub-color)
}

.ansBox input[type="checkbox"]:checked+label .circle:before {
  content: '\F633';
  font-family: bootstrap-icons !important;
  color: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media (max-width: 600px) {
  .ansZone {
    grid-template-columns: repeat(2, 1fr)
  }
}

.display-none {
  display: none;
}

/*案例精選*/

.galleryZone {
  padding-top: 5rem;
}

.article-p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/*.galleryInfo .infoBtm {  margin-top: auto;}*/
.submitBox .btnStyle {
  color: black;
  -webkit-appearance: none;
}

/*案例精選-大圖模式*/

.green {
  background-color: #12B840;
}

.red {
  background: #F74A4A;
}

/*切換上下頁*/
.tabChangeBox {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 3rem;
}

.tabChangeBtn {
  background: inherit;
  border: none;
  font-size: 2rem
}

@media (max-width: 600px) {
  .tabChangeBox button {
    font-size: 0.9rem;
  }
}

/*案例分享*/

@media(max-width: 600px) {
  .flexBox {
    position: relative;
  }

  .gridChange:not(.gridChange--search) {
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 15%;
  }

  .infoBtm .btnStyle--sm {
    width: 40%;
    padding: 3px;
    font-size: 1rem;
    margin-bottom: 0;
  }

  /*.gridZone--end .galleryBox .galleryBox__inner .infoBtm a{margin-left: 10%}*/
}

/*案例分享-底層*/
.eventBox__info {
  margin-top: 3rem;
}

.other {
  display: flex;
}

.caseName {
  font-size: 2.5rem;
  font-weight: 600;
}

.caseTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.otherBtn {
  background: inherit;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 20px;
}

.otherBtn i {
  font-size: 1.5rem
}

.bigPic {
  position: relative;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  border-bottom: 1px solid rgb(123 137 159 / 10%);
}

.bigPic figure {
  max-width: 200vh;
  max-height: 80vh;
  overflow: hidden;
}

.bigPic figure img {
  width: 99.9%;
  height: 100%;
  object-fit: cover;
}

.caseIntro {
  width: 100%;
  position: absolute;
  bottom: 0;
  bottom: 0;
  padding: 30px;
  background: rgb(255 255 255 / 80%);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: flex;
}

.caseLeft {
  width: 75%;
  padding-right: 50px;
}

.caseRight {
  width: 25%;
}

.bigTxt {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem
}

.caseIntro .txt {
  line-height: 2;
  margin-bottom: 1rem;
}

.caseRight .caseList {
  list-style: none;
  padding-left: 0;
}

.caseRight .caseList li+li {
  border-top: 1px solid rgb(123 137 159 / 30%);
  padding-top: .5rem;
  margin-bottom: .5rem;
}

.caseList li {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis
}

.topPic figure {
  width: 50%;
  height: 100%;
}

.topPic figure img {
  object-fit: cover;
  object-position: center;
}

.topPic figure:first-child img {
  border-radius: 24px 0 0 24px
}

.topPic figure:last-child img {
  border-radius: 0 24px 24px 0
}

.caseContent__inner .txt img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.otherZone {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgb(123 137 159 / 50%);
}

[role="tabpanel"].is-hidden {
  display: none;
}

@media (max-width: 600px) {
  .caseTop {
    flex-direction: column
  }

  .caseName {
    font-size: 2rem
  }

  .other {
    margin-top: 5%
  }

  .caseIntro {
    padding: 10px;
  }

  .caseLeft {
    padding-right: 10px;
    width: 60%;
  }

  .caseRight {
    width: 40%;
  }

  .caseIntro .bigTxt {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  .caseIntro .txt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    width: 100%;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .caseList li {
    width: 100%;
    font-size: 0.8rem;
  }

  .caseLeft .tags {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topPic {
    flex-direction: column;
  }

  .topPic figure {
    width: 100%;
  }

  .topPic figure:first-child img {
    border-radius: 24px;
  }

  .topPic figure:last-child img {
    border-radius: 24px;
  }
}

/*分享按鈕*/
.share-icons {
  display: none;
  position: absolute;
  width: 160px;
  text-align: center;
  padding: 3px;
  background-color: #f1f1f1;
  border-radius: 8px;
}

.share:hover,
.download:hover,
.print:hover {
  opacity: 0.5;
}

.share-icon-image {
  width: 30px;
  object-fit: cover;
}

.x-twitter {
  border-radius: 50%;
}

/*tab切換*/
.caseTabList {
  list-style: none;
  padding-left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.caseTab__item {
  display: inline-block;
  cursor: pointer;
  text-align: center;
  height: 50px;
  line-height: 50px;
  border: none;
  padding: 0px 20px;
  border: 1px solid rgb(61 68 79 / 20%);
  margin-left: -1px;
  font-weight: 600;
}

.caseTabList li:first-child .caseTab__item {
  border-radius: 24px 0px 0px 24px
}

.caseTabList li:last-child .caseTab__item {
  border-radius: 0px 24px 24px 0px;
}

.caseTab__item[aria-selected="true"] {
  background: var(--main-color)
}

.caseTabContent .txt {
  max-width: 650px;
  margin: 0 auto;
}

.caseTabContent .txt figure {
  overflow: hidden
}

.caseTabContent .txt figure img {
  border-radius: 24px;
  border: 1px solid rgb(148 163 185 / 50%);
  overflow: hidden;
  padding: 10px;
  cursor: pointer;
  transition: all .5s;
}

.caseTabContent .txt figure:hover img {
  box-shadow: 0px 0px 10px rgb(0 0 0 / 20%)
}

figcaption {
  margin-top: .5rem;
  text-align: center;
}

/*查無搜尋結果*/
.no-result {
  width: 100%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (max-width: 600px) {
  .caseTab__item {
    font-size: 1rem;
    white-space: nowrap;
    padding: 0px 5px;
  }
}

/*複製成功的alert*/
#notification {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  background-color: rgba(128, 128, 128, 0.2);
  padding: 16px;
  border-radius: 24px;
  z-index: 9999;
  opacity: 0;
}
