/* Base Mosaic Styles */
.focus-project-mosaic {
    column-count: 3;
    column-gap: 20px;
    padding: 20px 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .focus-project-mosaic {
        column-count: 1;
    }
}

.focus-project-item {
    position: relative;
    break-inside: avoid;
    /* Prevent items from splitting across columns */
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    transform: translateZ(0);
    /* Hardware acceleration fix */
    aspect-ratio: 3/4;
    /* Enforce 3:4 ratio */
}

.focus-project-item:nth-child(odd) {
    aspect-ratio: 4/5;
    /* Slightly smaller height for odd items */
}

/* Image Handling */
.focus-project-image {
    width: 100%;
    height: 100%;
    /* Fill the container */
    object-fit: cover;
    /* Crop to fit */
    display: block;
    transition: transform 0.5s ease;
}

.focus-project-item:hover .focus-project-image {
    transform: scale(1.1);
}

/* Overlay Styles */
.focus-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Slight dark background initially */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-sizing: border-box;
    transition: background 0.4s ease;
}

/* Hover Effect: Solid Brand Color */
.focus-project-item:hover .focus-project-overlay {
    background: #EF3E3D;
    /* User requested solid #EF3E3D */
    opacity: 1;
    /* Ensure it's fully visible */
}

/* Content Styles */
.focus-project-content {
    width: 100%;
    color: #fff;
    /* No transform needed initially, flex-end handles positioning */
}

.focus-project-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.focus-project-excerpt {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.focus-project-more {
    display: none;
    /* Hide the button for this cleaner design */
}

/* Hover Animation: Animate Title Up, Show Excerpt */
.focus-project-item:hover .focus-project-excerpt {
    max-height: 15vh;
    /* Allow it to grow */
    opacity: 1;
    margin-top: 15px;
}

/* Optional: Add brand color logic if needed to override #EF3E3D via inline style */
/* If the user wants specific brand colors per project, we can use the variable, but the request said "apply solid #EF3E3D" specifically. 
   I will respect the hardcoded color request for now, but leave the var available if they revert. */
/* .focus-project-item:hover .focus-project-overlay { background: var(--brand-color, #EF3E3D); } */