/* ---------- 區塊標題＆切換按鈕 ---------- */
.content-title-container {
    display: flex;
    justify-content: space-between;
}
.content-title-container > div:first-child {
    display: flex;
}
.content-title-container > div:last-child {
    margin-top: -15px;
}
.content-title {
    font-size: 21px;
    font-weight: 500;
    font-family: ZenAntiqueSoft-Regular;
    padding: 15px 20px 5px;
    margin-bottom: 15px;
    color: var(--dark-text-main-color);
}
.content-title > div:first-child {
    margin-bottom: 10px;
}
.page-back {
    font-size: 14px;
    font-family: palatinolinotype-bold;
    color: var(--dark-text-fourth-color);
    display: flex;
    align-items: center;
    gap: 13px;
}
.page-back img {
    width: 21px;
}
.page-change {
    display: flex;
    justify-content: center;
    gap: 15px;
}
#back-btn.no-drop, #next-btn.no-drop {
    cursor: no-drop;
}
.page-change img{
    width: 17px;
    opacity: 0.8;
}
.page-change-title {
    font-size: 8px;
    color: var(--dark-text-fourth-color);
    margin-bottom: 10px;
    min-width: 7em;
    min-height: 1.5em;
    line-height: 1em;
    display: flex;
    justify-content: center;
}


/* ---------- 區塊 ---------- */
.content-box {
    display: flex;
    flex-direction: row;
}


/* ---------- 區塊左邊 ---------- */
.content-left {
    width: 375px;
    padding: 0px 50px 15px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}
.content-left .content-left-title {
    gap: 3px;
    margin-bottom: 20px;
}
.content-left .content-left-title > div:first-child {
    font-size: 30px;
    font-weight: 500;
    font-family: ZenAntiqueSoft-Regular;
    color: var(--dark-text-main-color);
    letter-spacing: 5px;
}
.content-left .content-left-title > div:last-child {
    font-size: 7px;
    font-family: palatinolinotype-bold;
    color: var(--dark-text-third-color);
    letter-spacing: 1.3px;
}
.content-left .content-item {
    line-height: 1.2em;
    margin-bottom: 20px;
}
.content-left .content-item > div:nth-of-type(1) {
    font-size: 12px;
    font-weight: 500;
    font-family: ZenAntiqueSoft-Regular;
    color: var(--dark-text-third-color);
}
.content-left .content-item > div:nth-of-type(2) {
    font-size: 12px;
    font-weight: 400;
    font-family: ZenAntiqueSoft-Regular;
    color: var(--dark-text-fourth-color);
}

/* ---------- 區塊右邊 ---------- */
.content-right {
    position: relative;
    width: 100%;
    height: max-content;
    margin-top: -35px;
    padding-left: 20px;
    border-left: 1px solid var(--dark-text-second-color);
}
.content-right-contorl {
    display: flex;
    justify-content: space-between;
    font-family: palatinolinotype-bold;
    margin-top: -47px;
}
.content-right-contorl > div:first-child {
    align-self: flex-end;
    padding-bottom: 5px;
}
/* 輪播圖 */
.image-carousel-caption {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 15% - 7%);
    box-sizing: border-box;
}
.image-carousel {
    aspect-ratio: 911 / 400;
    width: 100%;
    height: auto;
    overflow: hidden;
    position: relative;
}
.image-carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.image-carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.image-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.image-carousel-controls {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.image-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgb(236, 236, 236, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.image-carousel-dot.active {
    background-color: #ececec;
}
.image-carousel-prev,
.image-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
}
.image-carousel-prev img,
.image-carousel-next img {
    width: 100%;
}
.image-carousel-prev {
  left: 25px;
}
.image-carousel-next {
  right: 25px;
}
/* 圖片容器 */
.img-wrapper {
    margin: 1.5em 0;
    width: 100%;
}
/* 橫向圖片：滿版 */
.image-carousel-slide img.landscape {
    width: 100%;
    object-fit: cover;
}
/* 直向圖片：靠左 */
.image-carousel-slide img.portrait {
    width: auto;
    max-width: 50%;
    margin-left: auto;
    object-fit: contain;
}


@media screen and (max-width:992px) {
    /* ---------- 區塊標題＆切換按鈕 ---------- */
    .content-title-container > div:last-child {
        margin-top: 0px;
    }
    .content-title {
        font-size: 14px;
        padding: 15px 0px 0;
        margin-bottom: 0px;
        display: none;
    }
    .page-back {
        font-size: 10px;
    }
    .page-back img {
        width: 28px;
    }
    .page-change {
        margin-top: 15px;
        gap: 8px;
        left: 50%;
        transform: translateX(0%);
    }
    .page-change img{
        width: 9.6px;
    }
    .page-change-title {
        font-size: 8px;
        margin-bottom: 0px;
    }

    /* ---------- 區塊 ---------- */
    .content-container {
        margin-top: 0%;
    }
    .content-box {
        display: flex;
        flex-direction: column;
    }

    /* ---------- 區塊左邊 ---------- */
    .content-left {
        order: 1;
        width: auto;
        padding: 15px 0px;
        max-height: unset;
    }
    .content-left .content-left-title {
        font-size: 24px;
        display: block;
        margin-bottom: 25px;
    }
    .content-left .content-left-title > div:first-child {
        font-size: 28px;
    }
    .content-left > div {
        display: flex;
        flex-wrap: wrap;
    }
    .content-left .content-item > div:nth-of-type(1) {
        font-size: 12.5px;
        font-weight: 500;
    }
    .content-left .content-item > div:nth-of-type(2) {
        font-size: 10px;
        font-weight: 350;
        max-width: 90%;
    }
    .content-left .content-item:not(:last-child) {
        width: 50%;
    }
    .content-left .content-item:last-child {
        width: 100%;
    }
    /* ---------- 區塊右邊 ---------- */
    .content-right {
        margin-top: -20px;
        padding-left: 0;
        border-left: none;
    }
    .content-right-contorl {
        margin-top: 0;
        margin-bottom: 2px;
    }
    /* 輪播圖 */
    .image-carousel {
        aspect-ratio: 258 / 149;
    }
    .image-carousel-prev,
    .image-carousel-next {
        transform: translateY(-6px);
        width: 14px;
        height: 14px;
        opacity: 0.8;
    }
    .image-carousel-prev {
        left: 10px;
    }
    .image-carousel-next {
        right: 10px;
    }
    .image-carousel-dot {
        width: 6px;
        height: 6px;
    }
}