.framed-image {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    align-items: center;
    gap: 32px;

    p, li, h1, h2, h3, h4 {
        color: var(--text-color);
    }

    & > * {
        grid-column: span 8;
    }

    & > h1,
    & > h2,
    & > h3 {
        grid-column: 1 / -1;
        margin: 0;
    }

    .text {
        border: 4px solid var(--footer-purple);
        background: rgba(54, 28, 74, 0.45);
        border-radius: 8px;
        padding: 16px;
    }

    .images {
        --frame-offset: -4px;
        grid-row: 2;

        .frame {
            position: relative;

            img {
                border-radius: 8px;
                position: relative;
                z-index: 1;
                border: 1px solid var(--frame-color);
            }

            &::after {
                border-radius: 10px;
                content: "";
                position: absolute;
                width: 100%;
                height: 100%;
                bottom: calc(var(--frame-offset) - 1px);
                right: var(--frame-offset);
                border: 1px solid var(--frame-color);
                z-index: 0;

            }


        }
    }

    @media (min-width: 768px) {
        grid-template-columns: repeat(16, 1fr);
        gap: 32px;

        .text {
            padding: 32px;
        }

        .images {
            grid-row: auto;
        }
    }
}