/* =====================================================
   PORTFOLIO PAGE: HERO BANNER
   ===================================================== */
.portfolio-hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.portfolio-hero-banner {
    position: relative;
    width: 100%;
    height: 80vh;
    /* Responsive height based on viewport */
    min-height: 550px;
    background-color: #eaeae5;
    display: flex;
    align-items: flex-end;
    /* Align elements to the bottom */
}

.portfolio-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    /* Show more of the living room space */
    display: block;
    z-index: 1;
}

.portfolio-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
    pointer-events: none;
}

.portfolio-hero-ctnr {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-bottom: 60px;
    /* Position at the bottom */
    text-align: center;
}

.portfolio-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.portfolio-hero-title {
    font-size: clamp(28px, 4.5vw, 36px);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0 0 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    line-height: 1.1;
}

.portfolio-hero-subtitle {
    font-size: clamp(10px, 1.1vw, 12px);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #ffffff;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 4px;
    transition: opacity 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.portfolio-hero-subtitle:hover {
    opacity: 1;
    border-color: #ffffff;
    color: #ffffff;
}

/* ── Responsive breakpoints ── */
@media (max-width: 768px) {
    .portfolio-hero-banner {
        height: 65vh;
        min-height: 450px;
    }

    .portfolio-hero-ctnr {
        padding-bottom: 50px;
    }

    .portfolio-hero-title {
        letter-spacing: 5px;
    }

    .portfolio-hero-subtitle {
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .portfolio-hero-banner {
        height: 30vh;
        min-height: 300px;
    }

    .portfolio-hero-ctnr {
        padding-bottom: 40px;
    }

    .portfolio-hero-title {
        letter-spacing: 3px;
    }

    .portfolio-hero-subtitle {
        letter-spacing: 1.5px;
    }
}

/* =====================================================
   PORTFOLIO CONTENT SECTION (PROJECT CARDS)
   ===================================================== */
.portfolio-content-section {
    background-color: #ffffff;
    padding: 90px 0;
    width: 100%;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 60px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.portfolio-card-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.portfolio-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card-img {
    transform: scale(1.03);
}

.portfolio-card-body {
    background-color: #f2f2eb;
    /* Warm light cream background for text block */
    padding: 45px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.portfolio-card-title {
    font-size: clamp(22px, 2vw, 26px);
    font-weight: 400;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.portfolio-card-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    ;
}

/* ── Responsive breakpoints ── */
@media (max-width: 991px) {
    .portfolio-content-section {
        padding: 70px 0;
    }

    .portfolio-grid {
        gap: 30px;
    }

    .portfolio-card-body {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .portfolio-content-section {
        padding: 50px 0;
    }

    .portfolio-card-body {
        padding: 35px 22px;
    }

    .portfolio-card-title {
        margin-bottom: 16px;
    }
}

/* =====================================================
   GALLERY PHOTO GRID SECTION (ACCEPTS FANCYBOX)
   ===================================================== */
.gallery-grid-section {
    background-color: #ffffff;
    padding: 60px 0 60px;
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.gallery-item {
    display: block;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.gallery-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hover overlay wash */
.gallery-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.88);
    /* Soft white wash */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

/* Gold/bronze circle button */
.gallery-plus-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-3);
    /* Theme gold/bronze color */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(142, 126, 100, 0.3);
}

/* Hover states */
.gallery-item:hover .gallery-img {
    transform: scale(1.04);
}

.gallery-item:hover .gallery-hover-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-plus-icon {
    transform: scale(1);
}

/* ── Responsive breakpoints ── */
@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .gallery-grid-section {
        padding: 40px 0 70px;
    }
}

@media (max-width: 575px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-grid-section {
        padding: 30px 0 30px;
    }

    .gallery-plus-icon {
        width: 44px;
        height: 44px;
    }
}

.gallery-grid-banner {
    background-color: #F2F2EB;
    padding: 80px 0;
    text-align: center;
}

.gallery-grid-banner h1 {
    font-size: 26px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .gallery-grid-banner {
        padding: 50px 0;
    }

    .gallery-grid-banner h1 {
        font-size: 22px;
    }
}