.caseName {
  min-width: 0;
  word-break: break-word;
}

.otherBtn {
  -webkit-appearance: none;
  /* 取消 iOS 上的預設外觀 */
  -webkit-tap-highlight-color: transparent;
  /* 取消點擊時的高亮顏色 */
  color: black !important;
}

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

.case-cover-image,
.case-comparison-image {
  object-fit: cover;
}

.caseIntro {
  background: rgb(255 255 255 / 80%);
}

.case-comparison-image {
  object-position: center;
}

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

/*避免tinyMCE 的圖片跟 文字超出頁面*/
.txt {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

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

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

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

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

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

.share-icon-button {
  cursor: pointer;
}

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

/*tab切換*/
.caseTab__item {
  -webkit-appearance: none;
  /* 取消 iOS 上的預設外觀 */
  -webkit-tap-highlight-color: transparent;
  /* 取消點擊時的高亮顏色 */
  color: black !important;
  cursor: pointer;
  height: 50px;
  line-height: 50px;
  border: 1px solid rgb(61 68 79 / 20%);
  margin-left: -1px;
}

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

/*複製結果通知*/
.case-copy-fallback {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.case-notification-region {
  pointer-events: none;
  position: fixed;
  top: clamp(5rem, 20vh, 10rem);
  left: 50%;
  max-width: calc(100vw - 2rem);
  transform: translateX(-50%);
  z-index: 9999;
  text-align: center;
}

.case-notification {
  max-width: calc(100vw - 2rem);
  background-color: rgb(61 68 79 / 95%);
  color: #fff;
  padding: 16px;
  border-radius: 24px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
  animation: notification-visibility 3.4s ease both;
}

.case-notification--error {
  background-color: rgb(179 38 30 / 95%);
}

@keyframes notification-visibility {
  0%,
  100% {
    transform: translateY(-0.75rem);
    opacity: 0;
  }

  6%,
  94% {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-notification {
    transform: none;
    opacity: 1;
    animation: none;
  }
}

/*附件區*/
.attachment {
  position: relative
}

.attachment:before {
  content: '';
  width: 100%;
  height: 1px;
  background: rgb(123 137 159 / 50%);
  position: absolute;
  top: -10px;
}

.attachment ul li {
  border-left: 10px solid rgb(123 137 159 / 50%);
  padding: 15px;
  list-style-type: none;
  font-size: 1.2rem;
  background: rgb(255 229 0 / 20%);
  width: 90%
}

.attachment ul li a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment ul li:hover {
  background: rgb(255 229 0 / 40%);
}

.txt p {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
  font-size: 1rem;
  line-height: 24px;
}

.txt ul li {
  margin-top: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.txt li {
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  font-size: 1rem;
  line-height: 24px;
}
