/*案例選擇*/
.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;
}

.listName {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  height: 3.75rem;
}

.infoBtm {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tags a {
  color: #6868AC;
  margin-right: 0.5rem;
  pointer-events: none;
  cursor: default;
}

/*.infoBtm .tags{display: -webkit-box;white-space: normal;-webkit-line-clamp: 1;-webkit-box-orient: vertical;height: 1.1rem;overflow: hidden;margin-right: 10px;}*/
.infoBtm .tags {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 10px;
}

.infoBtm .btnStyle {
  width: auto;
  text-align: center;
  font-size: 0.9rem;
}

.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;
  }
}

/*案例分享*/
.relevantZone {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgb(123 137 159 / 50%);
}

.searchResult {
  margin-top: 2rem;
  border-top: 1px solid rgb(123 137 159 / 50%);
  padding-top: 2rem;
  position: relative;
}

.gridChange {
  display: flex;
  font-size: 1.85rem;
}

.gridChange button {
  color: black;
  -webkit-appearance: none;
}

.changeBox {
  cursor: pointer;
  width: 70px;
  text-align: center;
  height: 50px;
  line-height: 50px;
  border: 1px solid rgb(61 68 79 / 20%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.changeBox:first-child {
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
}

.changeBox:last-child {
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
}

.changeBox:not(:last-child) {
  /* border-left:1px solid rgb(61 68 79 / 20%); */
  border-right: 1px solid rgb(61 68 79 / 20%);
}

.changeBox.active {
  background: var(--main-color)
}

.gridChange--search {
  position: relative;
  justify-content: center;
  max-width: 360px;
  margin: 0 auto;
  margin-top: 2rem;
}

.gridChange--search .changeBox {
  width: auto;
  font-size: 1.2rem;
  padding: 0px 25px;
}

@media(max-width: 600px) {
  .infoBtm .btnStyle--sm {
    width: 40%;
    padding: 3px;
    font-size: 1rem;
    margin-bottom: 0;
  }

  .tags a {
    font-size: 0.8rem;
  }

}

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

.other {
  display: flex;
}

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

.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%;
}

.topPic figure img {
  object-fit: cover;
  object-position: center;
  height: 65vh;
  width: 100%
}

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

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

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

/*避免tinyMCE 的圖片跟 文字超出頁面*/
.txt {
  font-size: 1rem;
}

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

/*.txt p{ margin-block-start: 1em;  margin-block-end: 1em;  margin-inline-start: 0px;  margin-inline-end: 0px;}*/

[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;
}

@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;
}
