.box-side-img {
    display: none;
}

.theo-wrapper {
    font-size:16px;
    line-height: 1.7;
    color: #222;
    background: #fafafa;
    --space:40px;
    --radius:10px;
}

.theo-wrapper img {
  height: auto;
  max-width: 100%;
  object-fit:contain;
  vertical-align: bottom;
}

.theo-main {
    padding: 0px var(--space) var(--space);
}

.theo-top p {
    margin: var(--space) var(--space);
    word-break: auto-phrase;
}

*:is(.theo-profile, .theo-case-wrapper) h2 {
    font-size: 1.8rem;
    color: #333;
    border-bottom: 3px solid #c49a45;
    padding-bottom: 15px;
    margin: 80px 0 30px;
    line-height: 1.6;
    font-weight: bold;
    display: flex;
    gap: 30px;
}

.theo-wrapper *:is(.theo-profile, .theo-case-wrapper) h2 img {
    height:39px;
    width: auto;
    filter: contrast(0.7);
}

.theo-wrapper h3 {
    font-size: 2rem;
    color: #c49a45;
    margin: 0px 0 .5em;
    line-height: 1.4;
}

.theo-wrapper h3 span {
    font-size:.7em;
}

.theo-profile > div  {
    overflow: hidden;
}

.theo-profile > div + div {
    margin-top:2em;
}

.theo-profile  > div > div:first-child {
    float: right;
    margin: 15px 0 20px 20px;
    width: 40%;
}

.theo-case dl {
    display: flex;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.theo-case dl dt:after {
    content: ':';
    display: inline-block;
    width: 20px;
    text-align: center;
}

.theo-case dt {
    font-weight: bold;
    color: #c49a45;
}

.theo-case dt + dd {
    margin-right: 28px;
}

.theo-case-img {
    display: grid;
    gap: 20px;
    flex-wrap: wrap;
    grid-template-columns: repeat(2, 1fr);
}

.theo-case-img img {
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.theo-comment {
    display: grid;
    margin: var(--space) 0;
    grid-template-columns: max-content 1fr;
    column-gap: 22px;
}

.theo-comment img {
    width: 103px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.theo-comment p {
    flex: 1;
    background: #f0f0f0;
    padding: 25px;
    border-radius: var(--radius);
    position: relative;
}

.theo-movie {
    position: relative;
    aspect-ratio:16/9;
    margin: var(--space) 0;
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.theo-movie iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}

.theo-before-after {
    display: flex;
    gap: 15px 30px;
    margin: var(--space) 0;
    flex-wrap: wrap;
}

.theo-before-after > div {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.theo-before-after img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.theo-before-after p {
    margin-top: 10px;
    font-weight: bold;
    font-size: 1.1rem;
    color: #c49a45;
}

.theo-last-comment {
    padding: var(--space);
    background: #111;
    color: #eee;
    border-radius: var(--radius);
    margin-top: 60px;
}

.theo-last-comment small {
    display: block;
    margin-top: 20px;
    opacity: 0.7;
    text-align: right;
}

.theo-last-comment small a {
    color:white;
    display: inline;
}

@media (max-width: 800px) {
    .theo-wrapper {
        font-size:14px;
        --space:20px;
        --radius:7px;
    }

    *:is(.theo-profile, .theo-case-wrapper) h2 {
        gap: 20px;
        align-items: center;
        margin: 50px 0 20px;
        border-bottom: 2px solid #c49a45;
        padding-bottom: 8px;
    }

    .theo-wrapper *:is(.theo-profile, .theo-case-wrapper) h2 img {
        height: 21px;
    }

    .theo-wrapper h3 {
        line-height: 0.5;
        margin-bottom: 1em;
    }

    .theo-wrapper h3 span {
        display: block;
        line-height: 1.4;
    }

    .theo-profile > div > div:first-child {
        float: none;
        width: 100%;
        margin: 0 0 1.1em 0;
    }



    .theo-profile > div + div {
        margin-top: 3em;
    }

    .theo-case dl {
        display: grid;
        grid-template-columns: max-content 1fr;
        margin-bottom: 20px;
    }

    .theo-case dl dt:after {
        position: absolute;
        right: -1.5em;
    }

    .theo-case dt {
        position: relative;
    }

    .theo-case dd {
        padding-left: 1.7em;
    }

    .theo-comment img {
        width: 75px;
    }
    .theo-case-img {
    grid-template-columns: repeat(1, 1fr);
}

.theo-before-after > div {
    display: grid;
}

.theo-before-after p {
    order: -1;
    margin:  0 0 10px;
    font-size: 1.4rem;
}

.theo-comment {
    column-gap: 12px;
}

.theo-comment p {
    padding: 17px;
}
}