/* Styles that only apply to projects.html */

body, body * {
    font-family: 'Noto Serif TC', serif !important;
}

/* ── QUOTE FIX ───────────────────────────────────────────────────── */
.project-row.project-grid {
    row-gap: 60px;              /* breathing room between ALL grid rows */
}

.project-grid-item--quote {
    display: flex;
    align-items: center;
    min-height: 320px;
    padding-top: 60px !important;
}

@media (max-width: 767px) {
    .project-grid-item--quote {
        min-height: auto;
        padding-top: 20px !important;
    }
}

/* ── QUOTE MARK SPACING FIX ──────────────────────────────────────── */
.project-grid-item--quote .quote blockquote {
    position: relative;
}

.project-grid-item--quote .quote blockquote::before {
    position: absolute;
    top: -30px;
    left: -5px;
}

.project-grid-item--quote blockquote p {
    padding-top: 8px;
    padding-left: 10px;
}
/* ─────────────────────────────────────────────────────────────────── */

/* Project card titles – slightly smaller */
.our_work_block .project .title h3 {
    font-size: 17px !important;
    line-height: 22px !important;
}

/* Quote – match index.html 絲質般柔滑的氛圍 style */
.project-grid-item--quote blockquote p {
    font-family: "Noto Serif TC", "Playfair Display", serif !important;
    font-weight: 600 !important;
    font-size: 18px !important;
    letter-spacing: 0.05em !important;
    line-height: 1.8 !important;
}

/* ── TABLET ── */
@media (max-width: 1199px) {
    .project-grid-item--quote {
        z-index: 10 !important;
        background: transparent !important;
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }
    .project-grid-item--quote .quote-outer {
        padding-left: 10px !important;
        padding-right: 20px !important;
    }
    .project-grid-item--quote blockquote p {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }
    .project-grid-item--quote blockquote span {
        white-space: normal !important;
    }
}

/* ── MOBILE: photo expand-from-center transition ── */
@media (max-width: 767px) {
    .project-grid-item .project[data-aos="fade-up"] {
        transform: scale(0.6) !important;
        opacity: 0 !important;
        transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.8s ease !important;
    }
    .project-grid-item .project[data-aos="fade-up"].aos-animate {
        transform: scale(1) !important;
        opacity: 1 !important;
    }
}

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 767px) {
    .our_work_block .project .title h3 {
        font-size: 14px !important;
        line-height: 20px !important;
    }
    .project-grid-item--quote {
        display: none !important;
    }
    .project-grid-item--quote-mobile {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        left: 0 !important;
    }
    .project-grid-item--quote-mobile .quote-outer {
        padding: 0 10px 0 20px !important;
        text-align: left !important;
    }
    .project-grid-item--quote-mobile .quote blockquote,
    .project-grid-item--quote-mobile .quote blockquote p,
    .project-grid-item--quote-mobile .quote {
        font-size: 18px !important;
        font-weight: 600 !important;
        letter-spacing: 0.05em !important;
        line-height: 1.8 !important;
    }
    .project-grid-item--quote-mobile .quote blockquote {
        padding: 0 !important;
        margin: 0 !important;
    }
    .project-grid-item--quote-mobile .quote blockquote::before,
    .project-grid-item--quote-mobile .quote blockquote::after {
        display: none !important;
    }
    .project-grid-item--quote-mobile blockquote p:first-of-type:before {
        position: static !important;
        display: inline !important;
        margin-right: 5px !important;
    }
    .project-grid-item--quote-mobile blockquote p:last-of-type:after {
        display: inline !important;
        position: static !important;
    }
    .project-grid-item--quote-mobile {
        padding-top: 10px !important;
        padding-bottom: 50px !important;
        margin-top: 0 !important;
    }
    .project-grid-item--quote-mobile .quote blockquote p {
        padding: 0 !important;
        display: inline !important;
    }
    .project-grid-item--quote-mobile .quote br,
    .project-grid-item--quote-mobile blockquote br {
        display: block !important;
    }
    .project-row.project-grid {
        row-gap: 30px;
    }
}

#footer p, #footer a, #footer i { color: #c0b7b0 !important; }
#footer .social a i { color: #c0b7b0 !important; }
#footer { border-top: 1px solid #c0b7b0 !important; }
#footer img { filter: brightness(0) saturate(100%) invert(78%) sepia(9%) saturate(210%) hue-rotate(353deg) brightness(95%) contrast(86%); }

/* Footer 3-column layout overrides */
#footer .social { justify-content: flex-end !important; }
#footer .footer-icon { display: flex; justify-content: center; }
@media (max-width: 767px) {
    #footer .social { justify-content: center !important; margin-top: 15px !important; }
    #footer .text-end { text-align: center !important; }
    #footer .footer-content-outer { justify-content: center; }
}

#footer .social a,
#footer .social-icon a {
    border-color: #c0b7b0 !important;
}
#footer .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}
