
/* ==============================
   SYNIMA PROJECT CARDS
============================== */

.synima-project-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    background: #11021e;
    padding-bottom: 5rem;
}

/* Individual project */
.synima-project-card {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
}

/* Featured image */
.synima-project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out, opacity 0.3s;
}

/* Video */
.synima-project-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Image zoom */
.synima-project-card:hover .synima-project-image {
    transform: scale(1.1);
}

/* Show video on hover */
.synima-project-card.has-video.is-video-playing .synima-project-image {
    opacity: 0;
}

.synima-project-card.has-video.is-video-playing .synima-project-video {
    opacity: 1;
}

/* Gradient overlay */
.synima-project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(
        to top,
        #10021e,
        rgba(0, 0, 0, 0)
    );
    pointer-events: none;
}

/* Text container */
.synima-project-content {
    position: absolute;
    left: 60px;
    right: 40px;
    bottom: 60px;
    z-index: 2;
}

/* Project name */
.synima-project-details h3 {
    display: inline-block;
    color: #fefb07;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin: 0;
}

/* Subtitle */
.synima-project-subtitle {
    display: inline;
    color: #efede9;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    margin-left: 1rem;
}

/* View project */
.synima-project-view {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 1rem;
    color: #eeede9;
    font-size: 1.2rem;
    font-weight: 500;
}

.synima-project-view img {
    width: 48px;
    height: auto;
}

/* Tablet */
@media (max-width: 1199px) {
    .synima-project-content {
        left: 20px;
        right: 20px;
        bottom: 40px;
    }

    .synima-project-view {
        display: none;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .synima-project-cards {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 0;
    }

    .synima-project-card {
        aspect-ratio: 4 / 3;
        min-height: 0;
    }

    .synima-project-content {
        left: 16px;
        right: 16px;
        bottom: 20px;
    }

    .synima-project-details h3 {
        font-size: 18px;
        line-height: 1.2;
    }

    .synima-project-subtitle {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        font-size: 16px;
        line-height: 1.3;
    }

    .synima-project-view {
        display: none;
    }
}
@media (max-width: 767px) {
    .elementor-widget-synima_project_cards > .elementor-widget-container {
        display: flow-root;
    }

}

/* Mobile: ensure the Elementor container reserves space for project cards */
/* @media (max-width: 767px) {

    .elementor-element-3c7918b {
        min-height: calc(100vw * 3 + 5rem) !important;
        flex-shrink: 0 !important;
    }

    .elementor-element-a0ecb6e {
        min-height: calc(100vw * 3 + 5rem) !important;
        flex-shrink: 0 !important;
    }

} */