body, .main-wrap, .fw-property-documents-wrap h3 span, .fw-property-details-wrap h3 span{
    
 background:#fff !important;   
}
/* FULL WIDTH */
.ap-container {
    width: 100vw;
    max-width: 100vw;
    padding: 0px 0px;
    background:#fff;
    font-family: "Open Sans",sans-serif;
    min-height:100vh;
}

/* HEADER */
.ap-header {
    text-align: center;
    max-width: 900px;
    margin: 0 14px 20px;
}

.ap-title {
    /*font-size: 72px;*/
    font-size: 25px;
    line-height: 35px;
    font-weight: 300;
    letter-spacing: 6px;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-align:left !important;
}

.ap-subtitle {
    font-size: 15px;
    letter-spacing: 3px;
    opacity: 0.6;
}

/* GRID */
.ap-grid {
    display: grid;
    column-gap: 90px;   /* horizontal spacing */
    row-gap: 120px;    /* vertical spacing (IMPORTANT) */
}

/* CARD (KEY DIFFERENCE) */
.ap-card {
    position: relative;
    overflow: hidden;
     aspect-ratio:16/9;   /* ✅ VM STUDIO MATCH */
    background: unset !important;
    display: block;
}

.post-type-archive .ap-grid{
   grid-template-columns: repeat(2, 1fr); 
}
.post-type-archive .ap-grid .ap-card{
   aspect-ratio: 4/5;
}
.post-type-archive .ap-grid{
   gap:0px !important;
}

.post-type-archive .tax-project_category{
   grid-template-columns: repeat(3, 1fr); 
}



/* IMAGE */
.ap-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.4s ease;
}

/* OVERLAY */
.ap-overlay {
    position: absolute;
    inset: 0;
    /*background: rgba(0,0,0,0.35);*/
    
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    
}

.ap-overlay-inner {
    text-align: center;
}

.ap-overlay h2 {
    font-size: 18px;
    line-height: 1.67em;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color:#fff;
    
}

.ap-count {
    font-size: 13px;
    letter-spacing: 2px;
    color:#fff;
}
.ap-count span{
  color:#fff !important;
}

/* HOVER (VERY SOFT) */
.ap-card:hover img {
    transform: scale(1.08);
}

.ap-card:hover .ap-overlay {
    opacity: 1;
    background: rgba(255,255,255,0.7);
    transition: opacity 0.6s ease;
}
.ap-card:hover .ap-overlay h2{
   color:#000;
}
.ap-card:hover .ap-overlay .ap-count{
   color:#000;
   opacity: 0.7;
}

/* FORCE GRID TO WORK (HOUZEZ FIX) */
.ap-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}

/* RESET ANCHOR BEHAVIOR */
.ap-grid > .ap-card {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    clear: none !important;
    display: block;
    box-sizing: border-box;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .ap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .ap-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 120px 24px;
    }
}



/* SINGLE PROJECT */
.ap-single {
    width: 100%;
}

/* HERO IMAGE */
.ap-hero img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

/* CONTENT AREA */
.ap-single-content {
    margin: 0 auto;
  padding: 45px 0px;
}

/* TEXT STYLE */
.ap-single-content h1,
.ap-single-content h2,
.ap-single-content h3 {
    font-weight: 300;
    letter-spacing: 2px;
}

.ap-single-content p {
    line-height: 1.8;
    max-width: 900px;
    margin-bottom: 40px;
}

/* IMAGES INSIDE CONTENT */
.ap-single-content img {
    width: 100%;
    height: auto;
    margin: 120px 0;
}

/* NEXT / PREVIOUS PROJECT NAV */
.ap-project-nav {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    max-width: 1400px;
    margin: 160px auto 200px;
    padding: 0 40px;
}

.ap-nav-item {
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.ap-nav-label {
    display: block;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 12px;
}

.ap-nav-item h3 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 3px;
    line-height: 1.2;
    margin: 0;
    transition: opacity 0.3s ease;
}

.ap-nav-item:hover h3 {
    opacity: 0.6;
}

/* ALIGNMENT */
.ap-prev {
    text-align: left;
}

.ap-next {
    text-align: right;
}

@media (max-width: 767px) {
    .ap-project-nav {
        flex-direction: column;
        gap: 80px;
        margin: 120px auto 160px;
    }

    .ap-next {
        text-align: left;
    }
}

/*.ap-overlay-inner{
  color:#000 !important;  
}
.ap-overlay-inner h2{
  color:#000 !important;  
}
.ap-overlay-inner span{
  color:#000 !important;  
}*/


.post-type-archive-project .ap-container .ap-grid a:nth-child(1) {
  order: 3;   /* First anchor goes last */
}

.post-type-archive-project .ap-container .ap-grid a:nth-child(2) {
  order: 2;   /* Second stays same */
}

.post-type-archive-project .ap-container .ap-grid a:nth-child(3) {
  order: 1;   /* Third comes first */
}

article.ap-single.development_ctws_proj {
    margin-top: -6%;
}
.term-114 .ap-overlay h2 {
    display:none;
}
.single-project .construction_ctws_proj_head{
    display:none !important;
}
.ap-project-nav{
    display:none !important;
}