#box_author p,
#box_tags p {
  margin: 0;
}

#box_container {
  margin-top: 110px;
  margin-bottom: 40px;
  width: 792px;
  min-height: 900px;
}

#box_title {
  margin-bottom: 32px;
}

#box_title h2 {
  word-wrap: break-word;
  white-space: normal;
}

#box_author {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

#box_author #note_author {
  font-size: 16px;
}

#box_author #note_time {
  font-size: 14px;
  color: var(--color-greyMedium);
}

#box_tags {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

#box_tags .tag {
  flex-shrink: 0;
}

#box_tags .tags-token {
  line-height: 100%;
  display: flex;
  flex-wrap: wrap;
  row-gap: 8px;
}

#box_tags .tags-token .tag-token {
  height: 24px;
  margin-right: -4px;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  background-color: var(--color-white);
}

#box_tags .tags-other {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#box_tags .tags-other h6 {
  height: 24px;
  line-height: 24px;
  display: block;
  background-color: var(--color-greyLight);
  font-size: 12px;
  padding: 0px 12px;
  border-radius: 100px;
}

#box_content {
  position: relative;
}

#box_content #hint_unlock {
  position: absolute;
  z-index: 99;
  top: 220px;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#box_content #hint_unlock img {
  width: 80px;
  height: 80px;
}

#box_content #hint_unlock .box_loyalty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#box_content #hint_unlock .box_loyalty h6 {
  font-size: 16px;
  line-height: 100%;
}

#box_content #hint_unlock .box_loyalty img {
  width: 22px;
  height: 22px;
}

#box_content #hint_unlock .btn-unlock {
  height: 50px;
  padding: 0px 20px;
  border: 0px;
  border-radius: 10px;
  color: var(--color-white);
  background-color: var(--color-primary);
}

#box_content #hint_unlock button:hover {
  background-color: var(--color-primaryDark);
}

#box_content #carousel_note_img .carousel-inner {
  background-color: var(--color-greyLight);
  border-radius: 12px;
  margin-bottom: 16px;
}

#box_content #carousel_note_img .carousel-inner img {
  width: 100%;
  height: 440px;
  object-fit: contain;
  cursor: zoom-in;
}

#box_content #carousel_note_img .carousel-inner .img-blur {
  filter: blur(10px);
  pointer-events: none;
}

#box_content .carousel-control-prev,
#box_content .carousel-control-next {
  width: 36px;
  height: 36px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
  opacity: 1;
  margin: 0 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#box_content .carousel-control-prev:hover,
#box_content .carousel-control-next:hover {
  background: var(--color-white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.carousel-ctrl-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
.carousel-ctrl-prev {
  transform: rotate(90deg);
}
.carousel-ctrl-next {
  transform: rotate(270deg);
}

#box_content .carousel-indicators {
  position: relative;
  margin-bottom: 0px;
  margin-bottom: 32px;
  gap: 8px;
}

#box_content .carousel-indicators button {
  width: 20px;
  height: 6px;
  margin: 0px;
  background-color: var(--color-greyLightMedium);
  border-radius: 100px;
  border: 0px;
}

#box_content .carousel-indicators button.active {
  background-color: var(--color-black);
}

#box_content #box_text {
  word-wrap: break-word;
  white-space: normal;
  line-height: 1.8;
  font-size: 16px;
  color: var(--color-greyDark);
}

/* Typography inside rendered HTML content */
#box_text h1,
#box_text h2,
#box_text h3,
#box_text h4,
#box_text h5,
#box_text h6 {
  color: var(--color-black);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.4;
}
#box_text h1 {
  font-size: 28px;
}
#box_text h2 {
  font-size: 22px;
}
#box_text h3 {
  font-size: 18px;
}
#box_text h4 {
  font-size: 16px;
}
#box_text p {
  margin-bottom: 16px;
}
#box_text ul,
#box_text ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
#box_text li {
  margin-bottom: 6px;
}
#box_text blockquote {
  border-left: 3px solid var(--color-greyLight);
  padding: 8px 16px;
  margin: 16px 0;
  color: var(--color-greyMedium);
  font-style: italic;
}
#box_text code {
  background: var(--color-greyLight);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 14px;
  font-family: monospace;
}
#box_text pre {
  background: var(--color-greyLight);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 16px;
  font-size: 14px;
  font-family: monospace;
  line-height: 1.6;
}
#box_text pre code {
  background: none;
  padding: 0;
}
#box_text a {
  color: var(--color-primary);
  text-decoration: underline;
}
#box_text img {
  border-radius: 8px;
  margin: 8px 0;
}
#box_text hr {
  border: none;
  border-top: 1px solid var(--color-greyLight);
  margin: 24px 0;
}
#box_text table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
#box_text th,
#box_text td {
  border: 1px solid var(--color-greyLight);
  padding: 8px 12px;
  text-align: left;
}
#box_text th {
  background: var(--color-greyLight);
  font-weight: 600;
}

#box_content img {
  width: 36%;
}

#fullscreenPreview {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

#fullscreenPreview img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

@media (max-width: 1300px) {
  #box_container {
    margin-top: 30px;
  }

  #box_title {
    margin-bottom: 24px;
  }

  #box_title h2 {
    font-size: 32px;
  }
}
@media (max-width: 768px) {
  #box_title {
    margin-bottom: 16px;
  }

  #box_title h2 {
    font-size: 24px;
  }

  #box_author {
    gap: 8px;
  }

  #box_author #note_author {
    font-size: 14px;
  }

  #box_author #note_time {
    font-size: 12px;
  }
}
