.portfolio-detail {
    --font-primary: 'Source Sans Pro', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    --font-size-base: 16px;
    --font-size-title: 50px;
    --font-size-subtitle: 45px;
    --font-size-content: 16px;
    --font-size-section-title: 34px;

    --line-height-title: 60px;
    --line-height-subtitle: 55px;
    --line-height-content: 26px;
    --line-height-section-title: 44px;
    --font-weight-400: 400;
    --letter-spacing: 0.02em;

    --color-primary: #8C714C;
    --color-secondary: #222;
    --color-background: #fff;
    --color-white: #fff;
    --color-section-title: #8C714C;
    --color-text: #4C545D;
    --color-link: #000;
    --color-hover: #97D700;
    --color-border: #4C545D;
    --color-line: #97D700;

    --max-width: 1320px;
}
@media screen and (max-width: 767.98px) {
    .portfolio-detail {
        --font-size-title: 30px;
        --font-size-subtitle: 25px;
        --font-size-content: 16px;
        --font-size-section-title: 22px;

        --line-height-title: 40px;
        --line-height-subtitle: 35px;
        --line-height-content: 26px;
        --line-height-section-title: 32px;
        --font-weight-400: 400;

        --padding-title: 0px;
        --padding-page: 60px 44px;
        --spacing-gap-container: 80px;
        --spacing-section: 40px;
        --spacing-inner-section: 40px;
        --spacing-inner: 40px;

        --max-width: 100%;

    }

}
.portfolio-detail * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.portfolio-detail {
    position: relative;
    font-size: var(--font-size-base);
    font-family: var(--font-primary);
}
.portfolio-detail {
    display: flex;
    flex-direction: column;
    gap: 160px;
    padding-top: 165px;
    justify-content: center;
    align-items: center;
}
.portfolio-detail-inner {
    width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;

}
.portfolio-detail-inner .portfolio-title {
    color: var(--color-primary);
    font-size: var(--font-size-section-title);
    line-height: var(--line-height-section-title);
    font-weight: var(--font-weight-400);
    letter-spacing: var(--letter-spacing);
    text-align: center;

}
.portfolio-detail .section-gallery li.item {
    overflow: hidden;
}
.portfolio-detail .section-gallery li.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.section-gallery ul li span.item-hover {
    transition: all 0.1s ease;
}
.portfolio-detail .section-gallery li.item:hover img {
    transform: scale(1.2);
}
.portfolio-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* Nút Previous */
.nav-button.nav-prev, .nav-button.nav-next {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 40px;
    height: 40px;
    border: 1px solid #8C714C;
    border-radius: 3px;
    opacity: 0.4;
}
.nav-button.nav-home {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    padding: 0;
    border: none;
    opacity: 1;
}
.nav-button.nav-home:hover {
    opacity: 1;
}
.nav-button.nav-prev:hover,
.nav-button.nav-next:hover {
    background-color: #8C714C;
}
.nav-button.nav-next:hover svg path, .nav-button.nav-prev:hover svg path {
    stroke: #fff;
}
/* Nút Home */
.nav-button.nav-home {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
    padding: 0;
    border: none;
    opacity: 0.8;
}
.nav-button.nav-home svg {
    width: 24px;
    height: 24px;
}
/* Ẩn nút nhưng vẫn giữ không gian */
.nav-button.hidden {
    opacity: 0;
    pointer-events: none;
}
.portfolio-custom-field {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    justify-content: center;
    align-items: start;
}
.portfolio-custom-field .custom-field-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
    justify-content: center;
    text-align: center;
}
.portfolio-custom-field .custom-field-item * {
    max-width: 250px;
    margin: auto;
}
.portfolio-custom-field .custom-field-title {
    color: var(--color-primary);
}
.single-portfolio .pp_pic_holder.pp_default {
    z-index: 100000;
}
.single-portfolio .pp_overlay {
    z-index: 99999;
}
.single-portfolio .pp_content_container *, .pp_bottom * {
    background: none !important;
}
.single-portfolio div.pp_default .pp_top .pp_middle {
    background: none;
}
.single-portfolio div.pp_default .pp_top .pp_left {
    background: none;
    display: none;
}
.single-portfolio div.pp_default .pp_top .pp_right {
    background: none;
}
.single-portfolio div.pp_default .pp_content_container .pp_left {
    background: none;
}
.single-portfolio .pp_content_container * {
    background: none !important;
}
.single-portfolio a.pp_play {
    display: none;
}
.single-portfolio div.pp_default .pp_nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}
.single-portfolio div.pp_default .pp_nav a.pp_arrow_previous, .single-portfolio div.pp_default .pp_nav a.pp_arrow_next {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.single-portfolio div.pp_default .pp_nav .currentTextHolder {
    position: inherit;
    left: 0;
    top: 0;
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 28px;
    color: #fff;
    font-style: normal;
    font-weight: var(--font-weight-400);
    letter-spacing: 0.02em;

}
.single-portfolio .pp_pic_holder.pp_default {
    position: fixed;
    /* top: 50% !important;
    transform: translateY(-50%) !important; */
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    z-index: 100000;
}
/* div.pp_default a.pp_arrow_previous{
    width: 24px;
    height: 24px;
    background: url(../images/arrow-left-white.png) center no-repeat !important;
    background-size: 5px 10px!important;
}

div.pp_default a.pp_arrow_next {
    width: 24px;
    height: 24px;
    background: url(../images/arrow-right-white.png) center no-repeat !important;
    background-size: 5px 10px!important;
} */

.single-portfolio div.pp_default a.pp_arrow_previous {
    width: 24px;
    height: 24px;
    background: url(../images/arrow-left-white.png) center no-repeat !important;
    background-size: 5px 10px !important;
}
.single-portfolio div.pp_default a.pp_arrow_next {
    width: 24px;
    height: 24px;
    background: url(../images/arrow-right-white.png) center no-repeat !important;
    background-size: 5px 10px !important;
}
.single-portfolio div.pp_default a.pp_arrow_previous:hover, .single-portfolio div.pp_default a.pp_arrow_next:hover {
    cursor: pointer;
}
.single-portfolio div.pp_default .pp_content_container .pp_close {
    display: none;
}
.single-portfolio div.pp_default .pp_content_container .pp_close:hover {
    cursor: pointer;
}
.single-portfolio .site-footer .container {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 1184px;
    padding-left: 44px;
    padding-right: 44px;
}
.pp-info {
    display: none;
}
.single-portfolio .pp_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px 0 10px;
    margin-bottom: 16px;
    color: white;
    gap: 10px;
}
.single-portfolio .pp_close_btn {
    position: relative;
    width: 40px;
    height: 40px;
}
.single-portfolio div.pp_default .pp_info .pp_close {
    opacity: 0;
    width: 100%;
    height: 100%;
    border: 1px solid #fff;
    border-radius: 3px;
    background: url(../images/close.png) center no-repeat;
    animation: showClose 1s ease-out 1s forwards;
}
.single-portfolio .pp_image_title {
    position: relative;
    flex: 1;
}
@keyframes showClose {
    to {
        opacity: 1;
    }
}
@media screen and (min-width: 1440px) {
    .portfolio-detail .section-gallery {
        margin-bottom: 15px;
    }
    .portfolio-detail .section-gallery ul {
        padding: 0;
    }
    .portfolio-detail .section-gallery ul li {
        width: calc(25% - 18px);
        aspect-ratio: 1;
    }
}
@media screen and (min-width: 768px) and (max-width: 1439.98px) {
    .portfolio-detail {
        width: 100%;
        padding-top: 80px;
    }
    .portfolio-detail-inner {
        width: 100%;
        padding: 30px 22px;

    }
    .portfolio-detail .section-gallery ul {
        padding: 0;
    }
    .portfolio-detail .section-gallery ul li {
        width: calc(33.3333333% - 16px);
        aspect-ratio: 1;
    }
}
@media screen and (max-width: 767.98px) {
    .portfolio-detail {
        gap: 0;
        padding-top: 0px;
    }
    .portfolio-detail-inner {
        padding: 60px 44px;
        gap: 20px;

    }
    .portfolio-custom-field {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        margin-bottom: 20px;
    }
    .section-gallery ul {
        gap: 20px;
        margin-bottom: 57px;
    }
    .section-gallery ul li img {
        aspect-ratio: 302/226;
    }
    .portfolio-custom-field .custom-field-item {
        gap: 10px;
    }
    .single-portfolio .pp_pic_holder.pp_default {
        width: 100% !important;
        /* left: 0 !important; */
    }
    .single-portfolio div.pp_default .pp_content {
        width: 100% !important;;
    }
    .single-portfolio img#fullResImage {
        width: 100% !important;;
        height: auto !important;;
    }
    .single-portfolio div.pp_default .pp_content_container .pp_details {
        width: 100% !important;;
    }
    .projects-page .header-title {
        padding: 0;
    }
}

.jsw-mobile .section-gallery ul {
    gap: 0;
}

.jsw-mobile .section-gallery ul > * {
    margin-top: 20px;
}

.jsw-mobile .section-gallery ul > :first-child {
    margin-top: 0;
}

.portfolio-detail .item {
    opacity: 0 !important;
    transform: translate3d(0px, 2rem, 0px) scale3d(1, 1, 1);
    transform-style: preserve-3d;
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.portfolio-detail .item.aos-animate {
    opacity: 1 !important;
    transform: translate3d(0px, 0rem, 0px) scale3d(1, 1, 1);
}
/*CUSTOMIZE*/
.projects-page .splide__slide {
    display: flex;
    align-items: center;
}
.projects-page .porfolio-desc p {
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    letter-spacing: 0.02em;
    font-style: italic;
}
main.projects-page {
    max-width: 100%;
}
.projects-page .header-content, .projects-page .section-content {
    font-family: var(--font-primary);
}
.projects-page .section-title {
    font-family: var(--font-primary);
}
.projects-page .testimonials-slide.project-section {
    gap: 40px;
}
.projects-page .splide__slide img {
    width: auto;
    height: auto;
    object-fit: contain;
}
.projects-page .splide__slide img {
    max-height: 60px !important;
    max-width: 180px !important;
    margin: auto;
}
.projects-page .reccommend-img {
    max-width: 120px !important;
}
.about-banner .main-banner .scroll-down svg, .project-banner .main-banner .scroll-down svg {
    opacity: 0;
}
.portfolio-item-overlay {
    height: calc(100% - 38px)
}
main.tag-page {
    max-width: 100%;
}
main.tag-page .tag-content article .button-tag:hover {
    background-color: #97D700;
    border: 1px solid #97D700;
}
.testimonials-slide blockquote.testi-item {
    gap: 0;
}
.testimonials-slide blockquote.testi-item p {
    margin-bottom: 30px;
}
main.about-page .about-sections {
    padding-bottom: 160px;
}
@media (max-width: 767.98px) {
    .about-page .about-hero {
        padding-bottom: 80px;
    }
    .projects-page .max-1096 {
        margin-bottom: 0;
    }
    .projects-page .header-title {
        padding: 0;
    }
    .projects-page .testimonials-slide.project-section {
        gap: 20px;
    }
    .single-portfolio .pp_pic_holder.pp_default {
        position: fixed;
        width: 100% !important;
        /* left: 0 !important; */
        top: 50% !important;
        transform: translateY(-50%);
}
    .project-banner li.splide__slide {
        height: 100% !important;;
    }
    main.about-page .about-sections {
        padding-bottom: 60px;
    }
}
@media (min-width: 768px) and (max-width: 1439.98px) {
    /*.projects-page .testimonials-slide, .projects-page.trusted-slide, .projects-page .recommend-list {*/
        /*margin-left: 30px;*/
        /*margin-right: 30px;*/
    /*}*/
    .projects-page .trusted-slide ul.splide__list {
        display: flex;
        gap: 60px;
    }
    .projects-page .trusted-slide .splide__slide {
        width: 33%;
        height: 60px;
    }
    .projects-page .trusted-slide .splide__slide img{
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    main.about-page {
        margin-bottom: 0;
    }
}
@media screen and (min-width: 768px) and (max-width: 1339.98px) {
    main.tag-page {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
    main.tag-page .site-main {
        max-width: 872px;
    }
}
@media (min-width: 768px) {
    .about-page .about-section .section-image img {
        min-height: 490px;
    }
}
@media (min-width: 992px) {
    .max-1096.flex-column.project-mobile {
        margin-bottom: 0;
    }
    /* section#portfolio-list {
        padding-top: 180px;
    } */
}
@media (min-width: 1024px) {
    .trusted-slide .splide__track {
        max-width: 875px;
        margin: auto;
    }
    .single-portfolio footer#colophon {
        width: 100%;
    }
    .testimonials-slide cite.author {
        height: 26px;
    }
    .projects-page .trusted-slide ul.splide__list {
        display: flex;
        gap: 60px;
    }
    .projects-page .trusted-slide .splide__slide {
        width: 33%;
        height: 60px;
    }
    .projects-page .trusted-slide .splide__slide img{
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.portfolio-item-overlay.no-partner {
    height: 100% !important;
}

@media (max-width: 767.98px) {
    .projects-page .trusted-slide .splide__slide {
        width: 100%;
    }
}

/* --fix-bug: U009 */
/* @media (max-width: 767.98px) { */
/* Likely mobile: coarse pointer, no hover (touch screen) */
@media (pointer: coarse) and (hover: none) {
    .portfolio-custom-field {
        margin-bottom: 60px;
    }
}

/* Style for tablet */
.jsw-mobile .pp_gallery {
    display: none !important;
}
/* --end-fix-bug: U009 */