/* Portfolio Block Styles */
.zolar-portfolio-block {
    position: relative !important;
    padding: 80px 0;
    background-color: #ffffff;
    
    /* Modern bulletproof full bleed for Elementor */
    width: 100vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
}

.zolar-portfolio-container {
    width: 100%;
}

.zolar-portfolio-header {
    text-align: center;
    margin-bottom: 50px;
}

.zolar-portfolio-eyebrow {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: #161616;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-family: 'DM Sans', sans-serif;
}

.zolar-portfolio-title {
    font-size: 48px;
    font-weight: 700;
    color: #161616;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

.zolar-portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 300px;
    gap: 30px;
    width: 100%;
}



.zolar-portfolio-item {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.5s ease;
}

/* Bento grid logic */
.zolar-portfolio-item--large {
    grid-column: 1 / 2;
    grid-row: span 2; /* Takes up two rows on the left */
}

.zolar-portfolio-item--small {
    grid-column: 2 / 3;
    grid-row: span 1; /* Normal height on the right */
}

.zolar-portfolio-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.zolar-portfolio-bg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s ease, filter 0.6s ease, -webkit-filter 0.6s ease !important;
    filter: grayscale(0%);
    -webkit-filter: grayscale(0%);
}

.zolar-portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    z-index: 2;
    transition: opacity 0.6s ease !important;
}

/* Content styling (bottom left, hidden initially) */
.zolar-portfolio-content {
    position: absolute;
    bottom: -20px; /* Start slightly lower */
    left: 30px;
    right: 30px;
    z-index: 3;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.zolar-portfolio-subtitle {
    display: block;
    font-size: 16px;
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 5px;
}

.zolar-portfolio-item-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

/* Arrow (Top right, hidden initially) */
.zolar-portfolio-arrow {
    position: absolute;
    top: -20px; /* Start slightly higher */
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--zolar-accent, #c8e86b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #161616;
    z-index: 3;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Hover effects */
.zolar-portfolio-item:hover .zolar-portfolio-bg img {
    transform: scale(1.05);
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.zolar-portfolio-item:hover .zolar-portfolio-overlay {
    opacity: 1;
}

.zolar-portfolio-item:hover .zolar-portfolio-content {
    bottom: 30px;
    opacity: 1;
}

.zolar-portfolio-item:hover .zolar-portfolio-arrow {
    top: 30px;
    opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .zolar-portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
    
    .zolar-portfolio-item--large,
    .zolar-portfolio-item--small {
        grid-column: 1 / 2;
        grid-row: span 1;
    }
    
    .zolar-portfolio-title {
        font-size: 36px;
    }
    
    .zolar-portfolio-item-title {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .zolar-portfolio-grid {
        grid-auto-rows: 300px;
    }
}
