.triptych {
    display: flex;
    gap: 6px;
    height: 100%;
    min-height: 340px;
}

.triptych .slice {
    flex: 1;
    border-radius: 0.5rem;
    overflow: hidden;
    transform: skewX(-6deg);
}

.triptych .slice > div {
    transform: skewX(6deg) scale(1.25);
    height: 100%;
    width: 100%;
}

.triptych-glow {
    position: relative;
}

.triptych-glow::before {
    content: "";
    position: absolute;
    inset: -12%;
    z-index: 0;
    background:
        radial-gradient(
            circle at 30% 35%,
            rgba(16, 185, 129, 0.35),
            transparent 55%
        ),
        radial-gradient(
            circle at 70% 40%,
            rgba(245, 158, 12, 0.3),
            transparent 55%
        ),
        radial-gradient(
            circle at 50% 75%,
            rgba(244, 63, 94, 0.28),
            transparent 55%
        );
    filter: blur(48px);
    opacity: 0.85;
    pointer-events: none;
    animation: triptych-glow-drift 8s ease-in-out infinite alternate;
}

.triptych {
    position: relative;
    z-index: 1;
    /* paints above the glow regardless of internal stacking */
}

@keyframes triptych-glow-drift {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.06);
    }
}

@media (prefers-reduced-motion: reduce) {
    .triptych-glow::before {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .triptych-glow::before {
        filter: blur(32px);
        opacity: 0.7;
    }
}
