/*-------------------------------------------------------------
- Global Accesibility
-------------------------------------------------------------*/
body a:focus-visible,
body button:focus-visible {
    border: 2px solid;
}
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 1em;
    background-color: #fff;
    color: #000;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}
/*-------------------------------------------------------------
- Team List
-------------------------------------------------------------*/
.wpb_wrapper:has(.team_list_wrapper) {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.team_list_wrapper.cpt_cc_framework_wrapper.vc_col-sm-4 {
    float: none;
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
    padding: 0 15px;
    box-sizing: border-box;
}

.team_list_wrapper .team_list_featured_image {
    flex-shrink: 0;
}

.team_list_wrapper .team_list_content {
    flex-grow: 1;
}

.team_list_wrapper .team_list_content h2 {
    margin-top: 10px;
    margin-bottom: 0;
}
/*-------------------------------------------------------------
- Team Detail
-------------------------------------------------------------*/
.team_detail_wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.team_detail_header {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.team_detail_featured_image {
    flex: 0 0 400px;
    max-width: 400px;
    float: left;
    margin-right:40px;
    margin-bottom: 20px;
}

.team_detail_featured_image img {
    width: 100%;
    height: auto;
    display: block;
}

.team_detail_info {
    flex: 1;
    min-width: 280px;
}

.team_detail_info h2 {
    margin-top: 0;
    margin-bottom: 15px;
}

.team_detail_info .team_member_department {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.team_detail_info .team_fun_fact {
    font-size: 1rem;
    color: #888;
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-left: 3px solid var(--color-charcole, #333);
}

.team_detail_content {
    position:relative;
}

/* Responsive for Team Detail */
@media (max-width: 768px) {
    .team_detail_header {
        flex-direction: column;
        gap: 20px;
    }
    
    .team_detail_featured_image {
        max-width: 350px;
        float: left;
        margin-right: 40px;
        margin-bottom: 40px;
        aspect-ratio: 3 / 4;
        object-fit: cover;
    }
    
    .team_detail_info {
        min-width: 100%;
    }
}

/*-------------------------------------------------------------
- Blog List
-------------------------------------------------------------*/
.blog_list_wrapper.cpt_cc_framework_wrapper {
    overflow: auto;
    margin-bottom: 40px;
}

.blog_list_wrapper {
    transition: all 0.3s ease;
    overflow: hidden;
}




/* Image container with aspect ratio */
.blog_image_link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 landscape aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.blog_featured_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.blog_featured_image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}


/*-------------------------------------------------------------
- Featured Projects Section
-------------------------------------------------------------*/
.featured_projects_section {
    margin-bottom: 40px;
    display: flex !important;
    flex-direction: row;
    gap: 40px;
    height: auto !important;
    position: static !important;
}

.featured_project_item {
    width: 50%;
    margin-bottom: 0;
    flex: 1 1 0%;
    min-width: 0; /* Prevent flex item overflow */
    float: none !important;
    position: static !important;
    left: auto !important;
    top: auto !important;
}
/* Background colors for each project */
.featured_project_1 {
    position:relative; 
}

.featured_project_2 {
    position:relative; 
}

.featured_project_container {
    max-width: 1400px;
    margin: 0 auto;
    display: block;
    padding: 0;
    position: relative;
}

/* Header section with meta and title */
.featured_project_header {
    color: var(--color-linen);
    padding: 20px;
    text-align: left;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 55%);
    width: calc(100% - 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Content area - no longer used but keeping for compatibility */
.featured_project_content {
    flex: 1;
    color: #fff;
    padding: 20px;
    display:none;
}

.featured_project_1 .featured_project_content,
.featured_project_2 .featured_project_content {
    padding-right: 20px;
}

/* Full width image */
.featured_project_image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    width: 100%;
}

/* Aspect ratio container - 16:9 landscape */
.featured_project_image::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 9/16 = 0.5625 = 56.25% for 16:9 aspect ratio */
}

.featured_project_image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Footer section with button */
.featured_project_footer {
    padding: 20px 0 0 0;
    text-align: left;
}

.featured_label {
    float: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    display: none;
}

.featured_project_meta {
    float: right;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.featured_project_meta .separator {
    margin: 0 15px;
}

.featured_project_title {
    float: left;
    clear: both;
    font-size: 40px;
    line-height: 1.1;
    margin: 0;
    color: #fff;
    font-weight: 300;
    font-family: Georgia, serif;
}

.featured_view_btn {
    display: inline-block;
    padding: 14px 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.featured_view_btn:hover {
    background: #fff;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1200px) {
    .featured_project_container {
        min-height: 350px;
    }
}

@media (max-width: 991px) {
    .featured_project_container {
        min-height: 350px;
    }
    
    .featured_project_title {
        font-size: 36px;
    }
}
@media (max-width: 959px) {
    .featured_projects_section {
        flex-direction: column;
    }
    .featured_project_item {
        width: 100%;
    }
}
@media (max-width: 767px) {
    .featured_projects_section {
       
    }
    .featured_project_image {
        position: unset;
    }
    
    .featured_project_item {
        width: 100%;
    }
    
    .featured_project_container {
        padding: 40px 20px;
        align-items: center;
    }
    
    .featured_project_header {
        text-align: center;
        padding: 0 0 30px 0;
    }
    
    .featured_project_title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .featured_view_btn {
        padding: 12px 30px;
    }
    
    .featured_project_footer {
        text-align: center;
        padding: 20px 0 0 0;
    }
    .featured_project_header {
        padding: 20px !important;
    }
    .featured_project_title {
        margin-bottom: 0px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .featured_projects_section {
        height: fit-content!important;
    }
    .featured_project_item {
        position: relative !important;
        top: unset !important;
    }
    .featured_project_title {
        font-size: 1.5rem!important;
    }
    #Our-Work-Filterer .full-width-section {
        margin-bottom: 100px;
    }
}

/*-------------------------------------------------------------
- CPT List
-------------------------------------------------------------*/
/* Projects Grid Layout */
.projects_isotope_wrapper {
    display: block;
    margin: 0 -15px;
    clear: both;
}

.projects_isotope_wrapper:after {
    content: '';
    display: table;
    clear: both;
}

.projects_list_wrapper {
    float: left;
    padding: 0 15px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.projects_list_wrapper.vc_col-sm-4 {
    width: 33.333%;
}

.project_content_container {
    position:relative;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    overflow: hidden;
}

.project_content_container:hover {
    /* box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-2px); */
}

.project_list_location {
    display: none;
}

/* Image container with aspect ratio */
.project_image_link {
    display: block;
    text-decoration: none;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 landscape aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.projects_featured_image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.projects_featured_image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.project_content_container:hover .projects_featured_image img {
    transform: scale(1.05);
}

/* Content area */
.projects_content {
    position: absolute;
    width:100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 55%) !important;
    z-index: 99999;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.project_list_title {
    font-size: 18px;
    margin: 0 0 5px 0;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0px !important;
    padding:15px;
}

.project_list_title a {
    text-decoration: none !important;
    color: var(--color-linen)  !important;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

.projects_content a.button.color-1.large.regular-button {
    font-size: .75rem !important;
    padding: 10px 18px 9px 18px !important;
    margin: unset;
    border-width: 1px !important;
    text-wrap: nowrap;
    margin: 15px;
}

.project_list_title a:hover {
    color: var(--color-linen);
}

.project_list_location p {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-style: italic;
}

/* Filter buttons */
.custom_isotope_button_wrapper {
    margin-bottom: 30px;
    text-align: center;
}

.projects_filter_button {
    display: inline-block;
    margin: 5px;
    padding: 8px 20px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.projects_filter_button:hover,
.projects_filter_button.is-checked {
    background: #333;
    color: #fff;
    border-color: #333;
}

a.projects_filter_button.button.regular-button.on-white.is-checked {
    color: var(--color-linen) !important;
    background: var(--color-charcole);
}

a.project_image_link:hover {
    opacity: 1 !important;
}

#content a.mobile_facet_trigger.mobile_facet_side_button {
    text-decoration: none !important;
    color: white;
}
a.mobile_facet_trigger.mobile_facet_side_button:hover {
    color: var(--color-linen) !important;
}

/* Responsive adjustments */

/* Desktop - 3 columns max */
@media (min-width: 1250px) {
    .projects_list_wrapper.vc_col-sm-4 {
        width: 33.333%;
    }
    
    .projects_isotope_wrapper {
        margin: 0 -20px;
    }
    
    .projects_list_wrapper {
        padding: 0 20px;
        margin-bottom: 40px;
    }
}

/* Tablet Landscape - 3 columns */
@media (min-width: 768px) and (max-width: 991px) {
    .projects_list_wrapper.vc_col-sm-4 {
        width: 50%;
    }
    
    .projects_isotope_wrapper {
        margin: 0 -10px;
    }
    
    .projects_list_wrapper {
        padding: 0 10px;
    }
    
    .project_list_title {
        font-size: 18px;
    }
    
    .project_list_location p {
        font-size: 15px;
    }
}

/* Tablet Portrait - 2 columns */
@media (min-width: 576px) and (max-width: 767px) {
    .projects_list_wrapper.vc_col-sm-4 {
        width: 100%;
    }
    
    .projects_isotope_wrapper {
        margin: 0 -8px;
    }
    
    .projects_list_wrapper {
        padding: 0 8px;
        margin-bottom: 16px;
    }
    
    
    .project_list_title {
        font-size: 17px;
    }
    
    .project_list_location p {
        font-size: 14px;
    }
}

/* Large Mobile - 2 columns */
@media (min-width: 480px) and (max-width: 575px) {
    .projects_list_wrapper.vc_col-sm-4 {
        width: 100%;
    }
    
    .projects_isotope_wrapper {
        margin: 0 -6px;
    }
    
    .projects_list_wrapper {
        padding: 0 6px;
        margin-bottom: 12px;
    }
    
    .project_list_title {
        font-size: 15px;
    }
    
    .project_list_location p {
        font-size: 12px;
    }
}

/* Small Mobile - 1 column */
@media (max-width: 479px) {
    .projects_isotope_wrapper {
        margin: 0 -5px;
    }
    
    .projects_list_wrapper {
        padding: 0 5px;
        margin-bottom: 10px;
    }
    
    .projects_list_wrapper.vc_col-sm-4 {
        width: 100%;
    }
    
    .project_list_title {
        font-size: 16px;
    }
    
    .project_list_location p {
        font-size: 13px;
    }
}
/*-------------------------------------------------------------
- Facet Search & Autocomplete
-------------------------------------------------------------*/
.search-wrapper #placeholder_search {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-wrapper #placeholder_suggestions {
    position: absolute;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.selected-items-display {
    margin-bottom: 15px;
    display: none;
}

.selected-items-display > div:first-child {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

#placeholder_list {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 13px;
    line-height: 1.4;
}

.reset-selection {
    text-align: center;
    margin-top: 10px;
}

.reset-selection button {
    font-size: 12px;
    padding: 5px 10px;
}

.autocomplete-suggestion {
    padding: 8px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.autocomplete-suggestion:hover {
    background-color: #f5f5f5;
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

/*-------------------------------------------------------------
- Facet Slider Styles
-------------------------------------------------------------*/
.range-display,
.value-display {
    text-align: center;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
}

#placeholder_range_slider,
#placeholder_slider {
    margin: 20px 0;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 10px;
}

.slider-reset {
    text-align: center;
    margin-top: 15px;
}

.slider-reset button {
    font-size: 12px;
    padding: 5px 10px;
}

/*-------------------------------------------------------------
- Blog CPT List
-------------------------------------------------------------*/
.blog_list_wrapper h2 {
    margin-bottom: 0px;
}
.blog_list_wrapper .blog_meta {
    text-align: left;
    margin-bottom: 10px;
}

/*-------------------------------------------------------------
- Blog CPT Detail
-------------------------------------------------------------*/
/* Blog Detail Page Styles */

.blog_content .standard-section .span_12 {
   /* padding-left: 40px;
    padding-right: 40px; */
}

.blog_content .standard-section .span_12 .vc_col-sm-12 {
    padding: 0;
    @media only screen and (min-width: 960px) and (max-width: 1199px) {
        max-width:unset;
    }
    @media only screen and (min-width: 768px) and (max-width: 959px) {
        max-width:unset;
    }
    @media only screen and (min-width: 480px) and (max-width: 767px) {
        max-width:unset;
    }
    @media only screen and (max-width: 767px) {
        max-width:unset;
    }
    @media only screen and (max-width: 479px) {
        max-width:unset;
    }
}

.blog_content .standard-section .span_12 {
    @media only screen and (min-width: 768px) and (max-width: 959px) {
        max-width: unset !important;   
    }
    @media only screen and (min-width: 480px) and (max-width: 767px) {
        max-width: unset !important;
    }
    @media only screen and (max-width: 479px) {
        max-width:unset !important;
    }
}

.blog_detail_hero_image{
    padding: 40px 40px 0 40px;
    margin-top: 100px;
    background: linear-gradient(to bottom, #f8f6f3 50%, #68624b 50%);
    position: relative;
    z-index: 2;
}

.blog_detail_hero_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: linear-gradient(to bottom, #f8f6f3 50%, #68624b 50%);
    padding-bottom: 40px;
    max-height: 600px;
}

.blog_detail_wrapper .blog_header,
.blog_detail_wrapper .blog_navigation,
.blog_detail_wrapper .blog_before_after {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 40px 20px;
}

.blog_detail_wrapper .blog_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;
}

.blog_detail_wrapper .blog_title {
    font-size: 2.5rem;
    margin: 0;
    flex: 1;
}

.blog_detail_wrapper .blog_meta {
    text-align: right;
    flex-shrink: 0;
    margin-top: 20px;
}

.blog_detail_wrapper video{
    width: 100%;
}

body.single-blog-cpt .blog_content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 40px 20px;

}

body.single-blog-cpt .blog_content h2 {
    font-size: 29px;
    font-family: 'Ratch-Regular' !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
}

body.single-blog-cpt .blog_content img {
    margin-bottom: 40px !important;
    max-width: 800px;
    margin: auto;
    display: block;
    margin-top: 40px !important;
}


body.single-blog-cpt .blog_content .testimonial-img img {
    margin-top: unset !important;
}

body.single-blog-cpt .blog_content .testimonial-img {
    width: 75px;
    height: 75px;
}
body.single-blog-cpt .blog-double-image img {
    width: 100%;
}

body.single-blog-cpt .blog_content h3 {
    margin-top: 20px;
}


@media only screen and (min-width: 960px) and (max-width: 1199px) {
    body.single-blog-cpt .blog_content .col.span_12 {
        max-width: unset !important;
    }
}

/*-------------------------------------------------------------
- Projects CPT Detail
-------------------------------------------------------------*/
/* Projects Detail Page Styles */
body .projects_detail_wrapper.cpt_cc_framework_wrapper {
    background-image: url(/wp-content/uploads/2025/12/wood-texture-2b.svg);
    background-size: 60%;
    background-repeat: repeat-x;
    background-color: #ffffff;
}
body.single-projects-cpt #page-wrap .project_categories > a{
    color: white;
}
.projects_detail_hero_image {
    margin-top: 100px;
    /* background: linear-gradient(to bottom, #f8f6f3 50%, #68624b 50%); 
    padding: 40px 40px 0 40px; */
    position: relative;
    z-index: 2;
}

.projects_detail_hero_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: linear-gradient(to bottom, #f8f6f3 50%, #68624b 50%);
}

.project_header,
.project_overview,
.project_navigation,
.project_meta,
.project_before_after {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.project_overview {
    position: relative;
    padding-bottom: 0px !important;
    margin-bottom: 60px;
    padding-top: 0px;
}

.project-content-container {
    background: var(--color-linen);
    color: var(--color-charcole);
    padding-top: 20px;
    background-image: url(/wp-content/uploads/2025/12/wood-texture-2b.svg);
    background-size: 60%;
}

.project-content-container a {
    color: var(--color-charcole) !important;
}

a.back-to-all {
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: .9rem;
    letter-spacing: .5px;
    position:relative;
    padding-left: 30px;
}
a.back-to-all:hover {
    text-decoration: underline !important;
}
a.back-to-all:before {
    content: '';
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--color-charcole);
    border-left: 1px solid var(--color-charcole);
    position: absolute;
    left: 10px;
    transform: rotate(-45deg);
    top: 6px;
}
a.back-to-all:after {
    content: '';
    width: 15px;
    height: 1px;
    background-color: var(--color-charcole);
    position: absolute;
    left: 10px;
    top: 9.5px;
}

.project_header {
    display: flex;
    padding-bottom: 20px;
    padding-top: 20px;
}

.project_title {
    color: var(--color-charcole);
    font-size: 50px;
    margin: 0;
    flex: 1;
}

.project_meta {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding-block: 5px;
}

.project-content-container .overview_section p:last-of-type {
    margin-bottom: 0px;
    padding-bottom: 40px;
}

.projects_detail_wrapper .project-content-container {
    padding-bottom: 200px;
}

.projects_detail_wrapper .gallery-section {
    margin-top: -240px;
}

.project_location p {
    margin: 0 10px 0 0;
    color: var(--color-charcole);
    padding-right: 10px;
    border-right: 1px solid var(--color-linen);
}

.project_categories {
    position:relative
}

.project-content-container a.category-filter-btn {
    background: transparent;
    text-transform: capitalize;
    text-decoration: none !important;
    /* border: 1px solid var(--color-charcole);
    padding: 5px 10px; */
}

.project-content-container a.category-filter-btn:hover {
    background: var(--color-charcole);
    color: var(--color-linen) !important;
    opacity:1 !important;
}

/* Project Gallery - Isotope Masonry */
.project_gallery_section {
    margin-bottom: 60px;
    max-width: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.project_gallery_grid {
    position: relative;
    margin: 0 auto;
}

.project_gallery_grid:after {
    content: '';
    display: block;
    clear: both;
}

/* Grid sizer for isotope */
.grid-sizer,
.gallery_item {
  width: calc(50% - 20px)!important; 
}

.gallery_item {
    margin-bottom: 40px;
}

.gallery_item--width2 {
    width: 100%;
}

.gallery_link {
    display: block;
    position: relative;
    overflow: hidden;
    background: #f8f8f8;
}

.gallery_item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.gallery_link:hover img {
    opacity: 0.8;
}

/* Isotope item transitions */
.gallery_item {
    transition: all 0.3s ease;
}

/* Before/After Section */
.before_after_section {
    margin-bottom: 60px;
}

.before_after_flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.before_after_description {
    flex: 0 0 30%;
    min-width: 250px;
}

.before_after_images_column {
    flex: 1;
}

.before-after-slider-container {
    max-width: 800px;
}
/* Featured Projects Filters */
body.page-id-21 {
    & .custom_isotope_button_wrapper a.projects_filter_button.button.large {
        font-weight: normal;
        &.is-checked {
            background: unset!important;
            color: var(--color-charcole)!important;
        }
        &:not(.is-checked){
            border: unset!important;
        }
    }
}
/* Image Comparison Slider Customization */
img-comparison-slider {
    --divider-width: 4px;
    --divider-color: #fff;
    --default-handle-opacity: 1;
    --default-handle-width: 100px;
}

/* Previous/Next Navigation */
.project_navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
    clear:both;
}

.nav_item {
    max-width: 45%;
}



.nav_item a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
    display: flex;
    text-decoration: none !important;
}

.nav_next a {
    flex-direction: row-reverse;
}

.nav_item a:hover {
    transform: translateX(5px);
}

.nav_prev a:hover {
    transform: translateX(-5px);
}

.nav_label {
    display: block;
    line-height: .5;
    font-size: 3.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-revisionred);
    font-family: 'Sherika-Regular';
    margin-inline: 5px;
}

.nav_title {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.nav_prev {
    text-align: left;
}

.nav_next {
    text-align: right;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    /* .projects_detail_hero_image {
        height: 300px;
    } */
    
    .project_header {
        position: relative;
        flex-direction: column-reverse;
    }
    
    .project_title {
        font-size: 40px;
        margin-bottom: 15px;
    }
    
    .project_meta {
        display: flex;
        flex-shrink: 0;
        padding-bottom: 15px;
        align-items: flex-start;
    }
    
    .project_categories {
        justify-content: flex-start;
    }
    
    .before_after_flex {
        flex-direction: column;
    }
    
    .before_after_description {
        flex: 1;
        min-width: 100%;
        margin-bottom: 20px;
    }
    
    /* Isotope gallery responsive */
    .gallery_item {
        width: 100% !important;
    }
    
    .gallery_item--width2 {
        width: 66.666%;
    }
}

@media (max-width: 480px) {
    /* Reset all parent containers on mobile */
    .on-mobile #page-wrap {
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .on-mobile #page-wrap .container {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .on-mobile #content {
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    .project_title {
        font-size: 35px;
    }
    
    /* Full width content wrapper with equal padding */
    .project_header,
    .project_overview,
    .project_navigation{
        padding: 20px 15px;
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Hero image stays full viewport width */
    .projects_detail_hero_image {
        margin-left: 0;
        margin-right: 0;
        padding: 35px 20px;
    }
    
    /* Gallery full width */
    .grid-sizer,
    .gallery_item,
    .gallery_item--width2 {
        width: 100%;
        padding: 0 0 3px 0;
    }
    
    .project_gallery_grid {
        margin: 0;
    }
    .single-projects-cpt .projects_detail_wrapper .project_gallery_section {
        padding-top: 40px;
    }
}
@media (max-width: 400px) {
    body.single-projects-cpt .project_meta > * {
        font-size: 0.8rem;
    }
}


/*-------------------------------------------------------------
- Projects CPT Detail Video Styles
-------------------------------------------------------------*/
.project_video_section {
    margin-bottom: 60px;
    padding: 0 40px;
}

.project_video_container {
    max-width: 1200px;
    margin: 0 auto;
}

.project_video_embed {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

/* oEmbed iframe (YouTube, Vimeo, etc.) */
.project_video_embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Add 16:9 aspect ratio for oEmbed videos */
.project_video_embed:has(iframe) {
    padding-bottom: 56.25%; /* 16:9 */
}

/* Self-hosted video styles */
.project_video_embed video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
}

/* Video controls customization */
.project_video_embed video::-webkit-media-controls {
    opacity: 1;
}

.project_video_embed video::-webkit-media-controls-panel {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
}

/* Responsive video styles */
@media (max-width: 768px) {
    .project_video_section {
        padding: 0 20px;
    }
    
    .project_video_embed video {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .project_video_section {
        padding: 0 15px;
    }
    
    .project_video_embed video {
        max-height: 50vh;
    }
}

/*-------------------------------------------------------------
- PrettyPhoto Modal Fix - All Screen Sizes
-------------------------------------------------------------*/
/* Fix prettyPhoto modal positioning and centering */
div.pp_pic_holder {
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    position: fixed !important;
    width: auto !important;
}

/* Reset any conflicting styles */
div.pp_default {
    width: auto !important;
}

/* Ensure the content fits and centers properly */
.pp_content {
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
}

.pp_content_container {
    text-align: center !important;
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Center the fade container */
.pp_fade {
    width: auto !important;
    margin: 0 auto !important;
}

/* Make images responsive and centered in modal */
#pp_full_res {
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#pp_full_res img {
    max-width: 90vw !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Fix navigation arrows positioning - below image */
.pp_nav {
    position: absolute !important;
    width: 100% !important;
    bottom: -50px !important;
    top: auto !important;
    transform: none !important;
    margin: 0 !important;
    height: 40px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

a.pp_arrow_previous,
a.pp_arrow_next {
    position: relative !important;
    top: 0 !important;
    transform: none !important;
    z-index: 20001 !important;
    margin: 0 10px !important;
}

a.pp_arrow_previous {
    left: auto !important;
    width: 40px !important;
    height: 40px !important;
}

a.pp_arrow_next {
    right: auto !important;
    width: 40px !important;
    height: 40px !important;
}

/* Reset table display that might cause issues */
.pp_pic_holder,
.pp_content,
.pp_content_container {
    display: block !important;
}

/* Specific override for the holder */
.pp_pic_holder .pp_content {
    display: block !important;
    margin: 0 auto !important;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    #pp_full_res img {
        max-height: 70vh !important;
    }
    
    a.pp_arrow_previous {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        z-index: 20001 !important;
    }
    
    a.pp_arrow_next {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 40px !important;
        height: 40px !important;
        z-index: 20001 !important;
    }
    
    /* Ensure nav container is visible and positioned correctly on mobile */
    .pp_nav {
        display: flex !important;
        visibility: visible !important;
        bottom: -50px !important;
    }
}

/*-------------------------------------------------------------
- Modal
-------------------------------------------------------------*/
/* .custom_modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4); 
    justify-content: center;
    align-items: center;
}
.custom_modal_content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}
.custom_modal_close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.custom_modal_close:hover,
.custom_modal_close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
} */

/*-------------------------------------------------------------
- Mobile Facet
-------------------------------------------------------------*/
.responsive_facet_wrapper.mobile_facet_menu{
    display: block!important;
    position: fixed;
    z-index: 9999999;
    box-shadow: 0 0 4px rgba(0,0,0,.3);
    background: #fff;
    left: 110%;
    padding-top: 65px;
    top: 0px;
    width: 75%;
    height: 100% !important;
    transition: left .2s ease-out,top .2s ease-out,width .2s ease-out,height .2s ease-out;
}
.responsive_facet_wrapper.mobile_facet_menu.open{
    top: 100px;
    left:25%;
}
.responsive_facet_wrapper.mobile_facet_menu.closed{
    left:110%;
    transition: left .2s ease-out,top .2s ease-out,width .2s ease-out,height .2s ease-out;
}
.responsive_facet_wrapper.closed a.mobile_facet_side_button,
a.mobile_facet_trigger.mobile_facet_bottom_button.closed{
    display: none;
}
body .projects-filter-container {
    margin-bottom: 10px !important;
}

body .mobile_facet_bottom_buttom_wrapper {
    text-align: center;
}
a.mobile_facet_bottom_button{
    z-index: 9999999;
    background: transparent;
    display: inline-block;
    padding: 5px 20px;
    color: var(--color-charcole);
    text-decoration: none !important;
    border: 2px solid var(--color-charcole);
    margin-top: 20px;
}

a.mobile_facet_trigger.mobile_facet_bottom_button:hover {
    background: transparent;
    color: var(--color-charcole);
    opacity: 1 !important;
}

a.mobile_facet_side_button {
    position: absolute;
    top: 260px;
    display: inline-block;
    padding: 10px;
    left: -45px;
    background: #B2482c;
    color: #fff;
    transform: rotate(270deg);
    transform-origin: left top 0;
    font-size: 20px;
}
a.mobile_facet_bottom_button:hover,
a.mobile_facet_side_button:hover{
    color:var(--color-linen);   
    background: var(--color-charcole);
}

/*-------------------------------------------------------------
- Media Query
-------------------------------------------------------------*/
@media only screen and (max-width: 767px) {
    a.mobile_facet_trigger.mobile_facet_bottom_button.closed{
        display: inline-block;
    }
    .filter_trigger{
        display: none;
    }
    #Our-Work-Filterer.margins-fullwidth .col.span_12 {
        max-width: unset !important;
    }
}
@media only screen and (min-width: 768px) {
    body.page-id-21 .mobile_facet_side_button {
        display: none;
    }
}