.block-project-case-study {
}

.block-project-case-study .acf-innerblocks-container .content-section:first-of-type {
    width: 100vw;
    margin-left: calc((-90vw + var(--wp--style--global--content-size)) / 2);
    display: flex;
    justify-content: flex-end;

}
.block-project-case-study .acf-innerblocks-container .content-section:first-of-type .content-layout{
    display: flex;
    justify-content: flex-end;
}
.block-project-case-study .acf-innerblocks-container .content-section:first-of-type .section-content{
    width: calc(var(--wp--style--global--content-size) / 2);
}
.block-project-case-study .acf-innerblocks-container .content-section:first-of-type .section-image{
    width: 45vw;
}
/* Hero Section */
.block-project-case-study .hero-section {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-right: -5vw;
    justify-content: space-between;
    width: 100vw;
}

.block-project-case-study .hero-content {
    flex: 1;
    max-width: 508px;
}

.block-project-case-study .hero-title {
    font-size: 50px;
    line-height: 60px;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.block-project-case-study .section-featured-image,
.block-project-case-study .section-image-cover{
    width: 100%;
    height: 100%;
}
.block-project-case-study .section-featured-image img{
    height: 100%;
}
.block-project-case-study .hero-description {
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 40px;
    max-width: 484px;
}

.block-project-case-study .tags {
    display: flex;
    gap: 17px;
    flex-wrap: wrap;
}

.block-project-case-study .tag {
    background: #afafbb;
    color: black;
    padding: 13px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 18px;
}

.block-project-case-study .hero-image {
    flex: 1;
    height: 721px;
    background: #6e6e6e;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.block-project-case-study .section-content{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.block-project-case-study .image-icon {
    width: 200px;
    height: 176px;
    fill: #D1FF61;
}

/* Content Sections */
.block-project-case-study .content-section {

}

.block-project-case-study .content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.block-project-case-study .content-layout.reverse {

}

.block-project-case-study .content-layout.reverse > * {
    direction: ltr;
}

.block-project-case-study .section-content h2 {
    font-size: 24px;
    font-weight: bold;
    line-height: 28px;
    margin-bottom: 20px;
}

.block-project-case-study .section-content p {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 16px;
}

.block-project-case-study .section-image {
    background: #6e6e6e;
    border-radius: 12px;
    width: 100%;
    height: 633px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.block-project-case-study .section-image .image-icon {
    width: 150px;
    height: 130px;
}

/* Image Gallery */
.block-project-case-study .image-gallery {
    padding: 60px 0;
    margin-bottom: 60px;
}

.block-project-case-study .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}

.block-project-case-study .gallery-item {
    background: #6e6e6e;
    border-radius: 18px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.block-project-case-study .gallery-item img{
    height: 100%;
    width: 100%;
    object-fit: cover;

}
.block-project-case-study .section-image .wp-block-video{
    width: 100%;
    height: 100%;
}
.block-project-case-study .section-image .wp-block-video video{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.block-project-case-study .gallery-item .image-icon {
    width: 112px;
    height: 99px;
}

.block-project-case-study .execution-section {
    padding: 60px 0px;
}

.block-project-case-study .execution-content {
    max-width: 600px;
}

.block-project-case-study .execution-content h2 {
    font-size: 24px;
    font-weight: bold;
    line-height: 28px;
    margin-bottom: 20px;
}

.block-project-case-study .execution-list p {
    font-size: 20px;
    line-height: 28px;
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    /* (empty for now, but scoped if needed later) */
}

@media (max-width: 800px) {
    .block-project-case-study {
        margin-top: 130px;
    }
    .block-project-case-study .hero-section {
        flex-direction: column-reverse;
        gap: 40px;
        margin-right: 0;
    }
    .block-project-case-study .hero-image {
        max-width: 100%;
        height: auto;
    }
    .block-project-case-study .hero-title {
        font-size: 36px;
        line-height: 42px;
    }

    .block-project-case-study .content-layout {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
    .block-project-case-study .content-layout.reverse{
        flex-direction: column-reverse;
    }
    .block-project-case-study .gallery-grid,
    .block-project-case-study .studies-grid {
        grid-template-columns: 1fr;
    }
    .block-project-case-study .tag{
        margin-bottom: 10px;
    }
    .block-project-case-study .tags{
        margin-bottom: 50px
    }
    .block-project-case-study .section-image{
        flex-direction: column;
    }
    .block-project-case-study .section-image{
        width: 100%;
    }
    .block-project-case-study .execution-section {
        padding: 0;
        margin-bottom: 30px;
    }
    .block-project-case-study .image-gallery{
        margin-bottom: 0;
    }


}

@media (max-width: 480px) {
    .block-project-case-study .tags {
        flex-direction: column;
        align-items: flex-start;
    }
}
