/* 熙樂 Ciel｜聊天須知 V7：四幅獨立水彩繪本插畫，僅作用於預覽版聊天須知。 */
#view-notices .notices-four-frame {
  color: #704b35;
  font-family: var(--ciel-body-family);
}

#view-notices .notices-storybook-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.4rem, 3.6vw, 2.8rem);
  width: min(96%, 970px);
  margin: 1.25rem auto 2rem;
}

#view-notices .notices-storybook-section {
  display: block;
  width: 100%;
  min-width: 0;
}

#view-notices .notices-storybook-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

#view-notices .notices-storybook-figure {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(168, 124, 82, .22);
  border-radius: 20px;
  background: #fbf0db;
  box-shadow: 0 10px 22px rgba(95, 65, 38, .075);
}

#view-notices .notices-storybook-open-image {
  display: block;
  width: 100%;
  line-height: 0;
  outline-offset: 4px;
}
#view-notices .notices-storybook-open-image:focus-visible {
  outline: 3px solid #8a614a;
}
#view-notices .notices-storybook-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: #fbf0db;
}

#view-notices .notices-storybook-readable {
  display: block;
  width: min(100%, 910px);
  margin: .72rem auto 0;
  padding: .2rem .55rem;
  color: #704b35;
  background: rgba(255, 249, 239, .89);
  border: 1px solid rgba(166, 124, 89, .34);
  border-radius: 15px;
}

#view-notices .notices-storybook-readable summary {
  cursor: pointer;
  padding: .72rem 1.05rem;
  color: #75523c;
  font: 500 clamp(1rem, 1vw + .76rem, 1.18rem)/1.6 var(--ciel-title-family);
}
#view-notices .notices-storybook-readable summary:focus-visible {
  outline: 3px solid #896a50;
  outline-offset: 3px;
}
#view-notices .notices-storybook-readable-hint {
  margin: 0 1rem .8rem;
  font: 400 .98rem/1.75 var(--ciel-body-family);
  color: #76604d;
}

#view-notices .notices-storybook-readable-copy {
  display: block;
  width: 100% !important;
  min-width: 0;
  max-width: 100% !important;
  margin: .35rem auto 1.1rem;
  padding: .35rem .55rem;
  overflow: visible;
  border-radius: 15px;
}
#view-notices .notices-storybook-readable-copy,
#view-notices .notices-storybook-readable-copy * {
  box-sizing: border-box;
  min-width: 0 !important;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal !important;
}
#view-notices .notices-storybook-readable-copy > div:last-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
}
#view-notices .notices-storybook-readable-copy > div:last-child > div {
  width: 100% !important;
  min-width: 0 !important;
}
#view-notices .notices-storybook-source-hidden {
  display: none !important;
}
#view-notices .notices-storybook-next {
  margin: 1.2rem auto 1.55rem;
  text-align: center;
}
#view-notices .notices-storybook-footer {
  width: 100%;
  overflow: hidden;
}

@media (max-width: 767px) {
  #view-notices .notices-storybook-gallery {
    width: 100%;
    margin: .7rem auto 1.2rem;
    gap: 1.25rem;
  }
  #view-notices .notices-storybook-figure {
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(95, 65, 38, .06);
  }
  #view-notices .notices-storybook-readable {
    width: 100%;
    margin-top: .45rem;
    padding: .12rem .2rem;
  }
  #view-notices .notices-storybook-readable summary {
    padding: .72rem .8rem;
  }
  #view-notices .notices-storybook-readable-copy {
    padding: .3rem .4rem;
  }
}
