.toonz-creators-collage {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.toonz-collage-row {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    align-items: stretch;
}

.toonz-collage-col-content {
    flex: 0 0 50%;
    /*padding: 100px 5% 100px 8%;*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Prevents button from stretching full width */
    z-index: 2;
}

/* Headline Styling */
.toonz-collage-headline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(48px, 6vw, 84px);
    /* Dynamic sizing */
    font-weight: 800;
    line-height: 1.05;
    color: #0A0A0A;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

.toonz-collage-headline .dot {
    color: #E87722;
}

/* Divider */
.toonz-collage-divider {
    width: 40px;
    height: 2px;
    background-color: #E87722;
    margin-bottom: 30px;
}

/* Supporting Text */
.toonz-collage-supporting {
    font-size: 18px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 40px;
    max-width: 400px;
}

/* Button Styling */
.toonz-collage-btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    /* Pushes arrow to the right */
    gap: 20px;
    border-style: solid;
    border-width: 1px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.toonz-collage-btn .btn-arrow {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.toonz-collage-btn:hover .btn-arrow {
    transform: translateX(8px);
}

.toonz-collage-col-visual {
    flex: 1;
    /* Take all remaining space */
    position: relative;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
    z-index: 1;
}

/* Image Collage Grid - Screenshot Design Type */
.collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1.2fr 1fr;
    gap: 10px;
    height: 100%;
    width: 100%;
}

.collage-item {
    position: relative;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0;
    animation: collageFadeIn 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Hover Effects (Desktop Only) */
@media (hover: hover) {
    .collage-item:hover img {
        transform: scale(1.03) translate(2px, 2px);
        /* Subtle Scale & Micro-Parallax */
    }
}

@keyframes collageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Specific Layout for 3 Items Matching Screenshot - Fixed Pixel Slants for Perfect 5px Gap */
.collage-item:first-child:nth-last-child(3) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
    /* Bottom slant: 60px total. Cut half of 5px gap (2.5px) */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 62.5px), 0 calc(100% - 2.5px));
    z-index: 2;
}

.collage-item:nth-child(2):nth-last-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    margin-top: -60px;
    /* Exact overlap */
    height: calc(100% + 60px);
    /* Left half of 60px slant: 60px down to 30px. Add 2.5px gap */
    clip-path: polygon(0 62.5px, 100% 32.5px, 100% 100%, 0 100%);
}

.collage-item:nth-child(3):nth-last-child(1) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    margin-top: -60px;
    /* Exact overlap */
    height: calc(100% + 60px);
    /* Right half of 60px slant: 30px down to 0px. Add 2.5px gap */
    clip-path: polygon(0 32.5px, 100% 2.5px, 100% 100%, 0 100%);
}

/* General Pattern for 4+ items */
.collage-item:nth-child(6n+1) {
    grid-column: span 3;
    grid-row: span 2;
}

.collage-item:nth-child(6n+2) {
    grid-column: span 3;
    grid-row: span 1;
}

.collage-item:nth-child(6n+3) {
    grid-column: span 2;
    grid-row: span 2;
}

.collage-item:nth-child(6n+4) {
    grid-column: span 1;
    grid-row: span 1;
}

.collage-item:nth-child(6n+5) {
    grid-column: span 3;
    grid-row: span 1;
}

.collage-item:nth-child(6n+6) {
    grid-column: span 3;
    grid-row: span 2;
}

/* Mobile fallback */
@media (max-width: 768px) {
    .collage-grid {
        position: relative;
        height: auto;
        min-height: 500px;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
}

@keyframes collageFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .toonz-collage-headline {
        font-size: 48px;
    }

    .toonz-collage-row {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .toonz-creators-collage {
        background: #fff;
    }

    .toonz-collage-row {
        flex-direction: column;
        min-height: auto;
    }

    .toonz-collage-col-content {
        flex: 0 0 100%;
        text-align: center;
        padding: 60px 20px;
    }

    .toonz-collage-col-visual {
        flex: 0 0 100%;
        height: 500px;
        margin-left: 0;
        clip-path: none;
    }

    .toonz-collage-divider {
        margin: 0 auto 30px;
    }

    .toonz-collage-supporting {
        margin: 0 auto 40px;
    }

    .item-1 {
        height: 60%;
    }

    .item-2-wrap {
        height: 40%;
    }
}