.ce-v6-comment-content {
    grid-column: 2 / 3;
    position: relative;
    z-index: 1;
    margin-top: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ce-text-primary);
    word-wrap: break-word;
}
.ce-v6-comment-content p { margin: 0; }

.ce-v6-comment-body {
    grid-column: 2 / 3;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(8px, 2vw, 14px);
}

.ce-v6-comment-body.ce-v6-body-has-image {
    display: grid;
    grid-template-columns: clamp(72px, 22vw, 120px) 1fr;
    align-items: flex-start;
    gap: clamp(var(--ce-space-xs), 2.2vw, var(--ce-space-sm));
}

.ce-v6-comment-body.ce-v6-body-has-image .ce-v6-comment-content {
    margin-top: 0;
    min-width: 0;
}

.ce-v6-comment-body.ce-v6-body-has-image .ce-v6-comment-media {
    margin: 0;
    width: 100%;
    max-width: clamp(72px, 22vw, 140px);
    max-height: clamp(72px, 28vw, 180px);
    border-radius: var(--ce-radius-md);
    overflow: hidden;
}

.ce-v6-comment-body.ce-v6-body-has-image .ce-v6-comment-media img,
.ce-v6-comment-body.ce-v6-body-has-image .ce-v6-comment-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ce-v6-comment-body.ce-v6-body-has-image .ce-v6-comment-media audio {
    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    .ce-v6-comment-body.ce-v6-body-has-image {
        grid-template-columns: clamp(64px, 26vw, 110px) 1fr;
        gap: clamp(4px, 2.8vw, 10px);
    }

    .ce-v6-comment-body.ce-v6-body-has-image .ce-v6-comment-media {
        max-width: clamp(64px, 26vw, 120px);
        max-height: clamp(64px, 32vw, 150px);
    }
}

@media (max-width: 420px) {
    .ce-v6-comment-body.ce-v6-body-has-image {
        grid-template-columns: clamp(56px, 36vw, 92px) 1fr;
    }
}

.ce-v6-comment-media {
    position: relative;
    z-index: 1;
    margin-top: var(--ce-space-sm);
    align-self: stretch;
    width: 100%;
    max-width: 100%;
    border-radius: var(--ce-radius-lg);
    overflow: hidden;
    background: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: none;
    transition: none;
}
.ce-v6-comment-media:hover {
    transform: none;
    box-shadow: none;
}
.ce-v6-comment-media img,
.ce-v6-comment-media video {
    display: block;
    width: 100%;
    border-radius: 0; /* Remove radius from media itself */
    background: transparent;
    cursor: pointer;
}
.ce-v6-comment-media img {
    height: auto;
    max-height: 350px; /* Increased max-height */
    object-fit: cover;
}
.ce-v6-comment-media video {
    height: 100%;
    max-height: 350px;
    object-fit: cover;
}
.ce-v6-comment-media audio {
    width: 100%;
}

.ce-v6-comment-body.ce-v6-body-has-image .ce-v6-comment-media img {
    height: 100%;
    max-height: none;
}

.ce-v6-comment-body.ce-v6-body-has-image .ce-v6-comment-media video {
    height: 100%;
    max-height: none;
}

