:root {
    --main-accent: #bc8856;
}

/* ================== Logo ================== */
.logo-img {
    height: auto;
    width: auto;
    max-height:45px;
    margin-bottom: 0px;
    display: inline-block;
    vertical-align: middle;
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    -webkit-transform: translate3d(0, 0, 0);
}

/* ================== Navbar ================== */
#to_home.navbar-brand {
    margin-left: 0 !important;
}

.navbar .nav-link {
    color: rgba(0, 0, 0, 0.6);
    font-size: 17px !important;
    font-weight: normal;
}

.NewButton {
    background-color: #f4bb1f !important;
    border-color: #f4bb1f !important;
    font-size: 17px !important;
    padding: 6px 12px !important;
}

.avatar {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.navbar-light .nav-item:hover .nav-link:not(.disabled) {
    color: #45aaf4 !important;
}

.navbar-light .nav-item {
    border: none !important;
}

.nav-link:hover {
    color: var(--main-accent) !important;
}

/* ========= Navbar 手機展開 RWD ========= */
@media (max-width: 768px) {
    #navbarResponsive .navbar-nav {
        margin-top: 80px;
    }
}

/* ================== 作品資訊區塊 ================== */
.info-section {
    margin-top: 40px;
}

.info-3col {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
}

.info-3col>div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-title {
    font-size: 1.25rem;
    letter-spacing: 2px;
    color: #232323;
    margin-bottom: 4px;
}

.info-value {
    font-size: 2.7rem;
    font-weight: bold;
    margin-top: 8px;
    letter-spacing: 2px;
    font-family: "Noto Sans TC", sans-serif;
}

.info-divider {
    width: 1px;
    background: #bebebe;
    height: 60px;
    margin: 0 32px;
    align-self: center;
}

/* ================== 設計師資訊區塊 ================== */
.designer-section {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-top: 56px;
    gap: 48px;
    flex-wrap: wrap;
}

.designer-info {
    display: flex;
    align-items: center;
    gap: 28px;
}

.designer-logo {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: #d9d9c7;
    object-fit: cover;
    border: 1px solid #eaeaea;
}

.designer-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 6px;
}

.designer-studio {
    color: var(--main-accent);
    font-weight: bold;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.designer-contact {
    font-size: 2.1rem;
    font-weight: bold;
    color: var(--main-accent);
    display: flex;
    align-items: center;
    gap: 12px;
}

.designer-contact i {
    font-size: 2.5rem;
}

/* ================== 手機 (max-width: 768px) ================== */
@media (max-width: 768px) {

    /* -- 作品資訊區塊縮排縮字 -- */
    .info-3col {
        gap: 12px;
    }

    .info-title,
    .info-value {
        font-size: 1rem;
    }

    .info-divider {
        height: 40px;
        margin: 0 8px;
    }

    /* -- 設計師 info 橫排 & 縮小 -- */
    .designer-section {
        flex-direction: row !important;
        align-items: center;
        gap: 16px;
        flex-wrap: nowrap;
        /* zoom: 0.7; */
        /* Firefox 可啟用以下，確保縮放源點及效果一致 */
        /* -moz-transform: scale(0.7);
           -moz-transform-origin: left center; */
    }

    .designer-info {
        flex-direction: row !important;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .designer-logo {
        width: 60px;
        height: 60px;
    }

    .designer-name {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .designer-studio,
    .designer-contact {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .designer-contact i {
        font-size: 1.2rem;
    }
}

/* ================== 作品標題與標籤 ================== */
.case-header {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 24px 0;
    width: 100%;
    flex-wrap: wrap;
}

.case-title .main-title {
    font-size: 2rem;
    font-weight: bold;
    color: #101010;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-right: 10px;
}

.case-tags {
    display: flex;
    gap: 10px;
}

.tag-outline {
    display: inline-block;
    padding: 4px 15px;
    font-size: 1rem;
    border: 1px solid #808080;
    border-radius: 8px;
    background: #fff;
    letter-spacing: 2px;
    transition: border 0.2s;
}

@media (max-width: 768px) {
    .case-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 12px 0;
    }

    .case-title .main-title {
        font-size: 1.5rem;
    }

    .case-tags {
        gap: 12px;
    }

    .tag-outline {
        font-size: 1.1rem;
        padding: 6px 18px;
    }
}

/* ================== 社群按鈕 ================== */
.btn-social {
    color: #c2c2c2;
}

.btn-line:hover {
    color: #4cc764;
}

.btn-fb:hover {
    color: #1877f2;
}

.btn-ig:hover {
    color: #e4405f;
}

/* ================== 手機專用：強制文字與 Flex 置中 ================== */
@media (max-width: 768px) {
    .designer-center-on-mobile {
        text-align: center !important;
        justify-content: center !important;
        /* 若父層為 flex 可用此居中 */
    }
}


.album-thumb-lg2 {
    width: 100%;
    height: 235px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .album-thumb-lg2 {
        height: 315px;
    }
}

@media (min-width: 992px) {
    .album-thumb-lg2 {
        height: 375px;
    }
}

.album-thumb {
    width: 100%;
    height: 115px;
    object-fit: cover;
}

/* 平板以上：變高 */
@media (min-width: 768px) {
    .album-thumb {
        height: 150px;
    }
}

@media (min-width: 992px) {
    .album-thumb {
        height: 180px;
    }
}

.album-thumb-sm {
    width: 100%;
    height: 65px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .album-thumb-sm {
        height: 100px;
    }
}

@media (min-width: 992px) {
    .album-thumb-sm {
        height: 150px;
    }
}

.designer-link {
    color: inherit !important;
    text-decoration: none !important;
}

.designer-link:hover,
.designer-link:focus {
    color: inherit !important;
    text-decoration: none !important;
}

.embla {
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: auto;
}

.embla__container {
    display: flex;
}

.embla__slide {
    flex: 0 0 50%;
    /* 讓每個 slide 佔 1/3 */
    /* padding: 10px; */
    padding: 10px 10px 10px 0px;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .embla__slide {
        flex: 0 0 25%;
    }
}

.embla__slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.embla__button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 20px;
    padding: 12px 16px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    z-index: 10;
}

.embla__button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.embla__button--prev {
    left: 10px;
}

.embla__button--next {
    right: 10px;
}

.grid {
    column-count: 2;
    column-gap: 20px;
}

.grid-item {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
}

.sticky-top {
    position: fixed;
    top: 80px;
    height: 45px;
    width: 100%;
    background-color: #f4bb1f;
    display: flex;
    text-align: center;
    justify-content: center;
    /* 水平置中 */
    align-items: center;
    /* 垂直置中 */
    padding-left: 10px;
    padding-right: 10px;
}

.lg-thumb-item {
    width: 80px !important;
    height: 80px !important;
    margin-right: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lg-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-primary {
    background-color: #f4bb1f !important;
    border-color: #f4bb1f !important;
    font-size: 17px !important;
    padding: 6px 12px !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #e7b11b !important;
    border-color: #e7b11b !important;
    /* color: inherit !important; */
    box-shadow: none !important;
    filter: none !important;
    text-decoration: none !important;
}

.btn-website-site {
    background-color: #cc8652 !important;
    color: #fff !important;
    font-size: 17px;
    padding: 6px 12px;
}

.btn-website-site:hover,
.btn-website-site:focus {
    background-color: #b97a48 !important;
    color: #fff !important;
}