/*
 Theme Name: Astra Child
 Description: Child theme for Astra
 Author: Viztech
 Template: astra
 Version: 1.0.0
*/


/* GLOBAL WRAPPER */
.portfolio-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #222;
}



/* CONTENT CONTAINER */
.portfolio-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* HEADER AREA */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    padding-bottom: 40px;
    /*border-bottom: 1px solid #e0e0e0;*/
}

.portfolio-title-wrapper {
    max-width: 60%;
}

.project-number {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #777;
    margin-bottom: 15px;
}

.project-location {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.1;
    margin: 0;
}

/* META */
.portfolio-meta {
    display: flex;
    gap: 50px;
}

.meta-item .label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 8px;
}

.meta-item .value {
    font-size: 16px;
    font-weight: 500;
}

/* DESCRIPTION */
.portfolio-description {
    max-width: 800px;
    margin: 0 auto 80px auto;
    font-size: 18px;
    line-height: 1.8;
    color: #555;
    text-align: center;
}

/* --- THE FIX: 3-COLUMN GALLERY USING FLEXBOX --- */
.portfolio-gallery{
    column-count:3;
    column-gap:30px;
    margin:120px 10%;
}

.gallery-item{
    break-inside:avoid;
    margin-bottom:30px;
}

.gallery-item img{
    width:100%;
    height:auto;
    display:block;
    transition:transform .35s ease, opacity .35s ease;
}

/* Hover effect */
.gallery-item:hover img{
    transform:scale(1.03);
    opacity:.9;
}


/* NAV */
.portfolio-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 100px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.portfolio-nav a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-nav a:hover {
    color: #888;
}

.portfolio-gallery{
	margin-left: 10%;
	margin-right:10%;
}
/* --- THE FIX: RESPONSIVE FLEXBOX FOR MOBILE --- */
@media (max-width: 992px) {
    .portfolio-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }
    
    .portfolio-title-wrapper {
        max-width: 100%;
    }

    /* Tablet: 2 columns */
    .gallery-item {
        width: 48%; 
    }
    
    .portfolio-gallery{
        column-count:2;
    }


}

@media (max-width: 768px) {
    .portfolio-hero img {
        height: 50vh; 
    }

    .project-location {
        font-size: 36px;
    }

    /* Mobile: 1 column */
    .gallery-item {
        width: 100%; 
    }
    
    .portfolio-description {
        text-align: left;
    }
    
    .portfolio-gallery{
        column-count:1;
    }
}


/* Header for commerical */
/* --- PROJECT HEADER --- */
.portfolio-header {
    background: #ffffff;
    padding: 100px 20px 60px 20px;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* Top Row: Thumbnail & Title */
.header-top {
    display: flex;
    align-items: center;
    gap: 30px; /* Space between image and title */
    margin-bottom: 60px; /* Space between title and designer text below */
}

.project-thumb img {
    width: 150px;
    height: 95px;
    object-fit: cover;
    display: block;
}

.project-title {
    font-size: 48px;
    font-weight: 300;
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #222;
}

/* Bottom Row: Designer & Company */
.header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    /* Pushes the left text in by 180px (150px image + 30px gap) to align perfectly with the title */
    padding-left: 180px; 
}

.designer-info {
    font-size: 16px;
    color: #222;
}

.company-info {
    text-align: right;
}

.company-name {
    font-size: 18px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 300;
}

.company-location {
    font-size: 14px;
    color: #999;
    font-style: italic;
}


/* --- PROJECT PLAN --- */
.project-plan-section {
    max-width: 1000px; /* Matches the header width */
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.plan-wrapper {
    text-align: center;
}

.plan-wrapper img {
    width: 100%;
    max-width: 800px; /* Adjust this if you want the plan smaller/larger */
    height: auto;
    display: block;
    margin: 0 auto 40px auto; /* Centers the image and adds space below */
    background: #e8e8e8; /* Optional: adds a slight background if the plan has transparent edges */
}

.plan-title {
    font-size: 32px;
    font-weight: 300;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #222;
    text-transform: uppercase;
    margin: 0;
    padding-left: 10%; /* Adjust this to align the word 'PLAN' with the left edge of the image */
}


/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .header-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 0; /* Removes the indent on mobile */
        gap: 30px;
    }
    
    .company-info {
        text-align: left;
    }
    
    .plan-title {
        padding-left: 0;
    }
}

/* WRAPPER */
.portfolio-wrapper{
    max-width:100%;
    margin:auto;
    background-color: white;
    padding:80px 20px;
    font-family: Helvetica, Arial, sans-serif;
    color:#222;
}


/* HEADER */
.portfolio-header{
    margin-bottom:120px;
}

.header-top{
    display:flex;
    align-items:center;
}

.project-thumb{
    display:flex;
    align-items:center;
    gap:20px;
}

.project-thumb img{
    width:60px;
    height:60px;
    object-fit:cover;
}

.project-title{
    font-size:48px;
    font-weight:300;
    letter-spacing:1px;
}

/* HEADER BOTTOM */
.header-bottom{
    display:flex;
    justify-content:space-between;
    margin-top:30px;
}

.designer-info{
    font-size:14px;
    color:#555;
}

.company-info{
    text-align:right;
}

.company-name{
    font-size:16px;
    font-weight:500;
}

.company-location{
    font-size:14px;
    color:#777;
}

/* PLAN IMAGE */
.project-plan-section{
    text-align:center;
    margin-bottom:120px;
}

.plan-wrapper img{
    max-width:700px;
    width:100%;
}

.plan-title{
    margin-top:20px;
    font-size:18px;
    letter-spacing:3px;
}

/* DESCRIPTION */
.portfolio-description{
    max-width:700px;
    margin:0 auto 120px auto;
    font-size:16px;
    line-height:1.7;
}

/* GALLERY GRID */
.portfolio-gallery{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:30px;
    margin-bottom:120px;
}

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

/* NAVIGATION */
.portfolio-nav{
    display:flex;
    justify-content:space-between;
    font-size:14px;
}

.portfolio-nav a{
    text-decoration:none;
    color:#000;
}

/* RESPONSIVE */
@media(max-width:900px){

.project-title{
    font-size:32px;
}

.portfolio-gallery{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:600px){

.portfolio-gallery{
    grid-template-columns:1fr;
}

.header-bottom{
    flex-direction:column;
    gap:10px;
}

.company-info{
    text-align:left;
}

}


@media (max-width: 992px){

.portfolio-gallery{
    column-count:2;
}

}

@media (max-width: 600px){

.portfolio-gallery{
    column-count:1;
}

}