.pe-container-ab00ebca {
    font-family: 'Afacad', sans-serif;
    padding: 80px 60px;
    background-color: #E5DDD3;
    box-sizing: border-box;
}

/* Header Styling */
.pe-header-ab00ebca {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 40px;
}

.pe-header-left-ab00ebca {
    flex: 1;
    min-width: 300px;
}

.pe-header-right-ab00ebca {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: flex-end;
}

.pe-main-title-ab00ebca {
    margin: 0;
    line-height: 0.9;
    display: flex;
    flex-direction: column;
}

.pe-title-1-ab00ebca {
    font-family: 'Afacad', sans-serif;
    font-size: 72px;
    font-weight: 600;
    color: #4A0E17;
    text-transform: none;
    letter-spacing: -2px;
}

.pe-title-2-ab00ebca {
    font-family: 'Playfair Display', serif;
    font-size: 86px;
    font-style: italic;
    font-weight: 700;
    color: #4A0E17;
    margin-top: -10px;
    margin-left: 5px;
    letter-spacing: -3px;
}

.pe-header-desc-ab00ebca {
    font-family: 'Afacad', sans-serif;
    font-size: 22px;
    line-height: 1.3;
    color: #4A0E17;
    max-width: 420px;
    margin: 0;
    text-align: right;
}

/* Projects Grid */
.pe-grid-ab00ebca {
    display: flex;
    gap: 30px;
    width: 100%;
    align-items: flex-start; /* Ensures items don't stretch vertically unexpectedly */
}

/* Project Item */
.pe-item-ab00ebca {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Link Overlay */
.pe-item-link-overlay-ab00ebca {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    cursor: pointer;
}

/* Image Wrapping & Expansion */
.pe-image-wrap-ab00ebca {
    width: 100%;
    aspect-ratio: 1 / 1; /* Strict square format */
    overflow: hidden;
    margin-bottom: 24px;
    position: relative;
    /* Use a stable height based on the container width to prevent jumping during flex transition */
    height: auto;
}

.pe-image-ab00ebca {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Content elements */
.pe-content-wrap-ab00ebca {
    display: flex;
    flex-direction: column;
    /* Removed height: 100% and flex-grow: 1 so it adapts to text height */
    height: auto; 
}

.pe-item-title-ab00ebca {
    font-family: 'Afacad', sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #4A0E17;
    margin: 0 0 12px 0; /* Reduced margin */
    line-height: 1.2;
}

.pe-item-desc-ab00ebca {
    font-family: 'Afacad', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: #4A0E17;
    opacity: 0.9;
    margin: 0 0 16px 0; /* Reduced margin */
    /* Removed flex-grow: 1 */
}

.pe-item-footer-ab00ebca {
    font-family: 'Afacad', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #4A0E17;
    margin-top: 8px; /* Small margin above footer */
}

/* Hover interaction - Lateral expansion */
@media (min-width: 1025px) {
    .pe-grid-ab00ebca:hover .pe-item-ab00ebca {
        flex: 0.85;
    }
    
    .pe-grid-ab00ebca .pe-item-ab00ebca:hover {
        flex: 1.35;
    }
    
    /* Optional subtle scale on image */
    .pe-item-ab00ebca:hover .pe-image-ab00ebca {
        transform: scale(1.02);
    }
}

/* Responsiveness */
@media (max-width: 1024px) {
    .pe-container-ab00ebca {
        padding: 60px 30px;
    }
    .pe-title-1-ab00ebca {
        font-size: 56px;
    }
    .pe-title-2-ab00ebca {
        font-size: 68px;
    }
    .pe-header-desc-ab00ebca {
        text-align: left;
        font-size: 18px;
    }
    .pe-header-right-ab00ebca {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .pe-grid-ab00ebca {
        flex-direction: column;
        gap: 40px;
    }
    .pe-container-ab00ebca {
        padding: 40px 20px;
    }
}
