/* Hide comment titles and replace form title */
.field--name-comment-node-library-item h3.card-title {
    display: none;
}

.comment-form__title {
    display: none; /* Hides the original text */
}

.comment-form__title::after {
    content: "Lend or Return"; /* Replaces the text */
    display: block;
}

/* Adjust action and time font sizes */
.field--name-comment-node-library-item .field--name-field-library-action .field__item {
    font-size: 50px;
}

.field--name-comment-node-library-item span.comment__time {
    font-size: 35px;
}

/* Comment container styling */
.field.field--name-comment-node-library-item.field--type-comment {
    padding: 50px;
    background: darkgrey;
    border-radius: 10px;
}

/* Username styling */
.field--name-comment-node-library-item a.username {
    font-size: 35px;
    color: black;
}

/* Ensure images are responsive */
.field--name-comment-node-library-item .field--name-field-return-inspection-image img,
.field--name-comment-node-library-item img {
    max-width: 100%;
    height: auto;
}

/* Additional tweaks for images on larger screens */
@media (min-width: 560px) {
    .field--name-comment-node-library-item .field--type-image {
        float: none;
        margin: 0 1em 0 0;
    }

    img.image-style-content-width {
        max-width: 100%;
        height: auto;
    }

    .field-group-fieldset, 
    .node--type-library-item #comment-form {
        min-width: 100%;
    }
}

/* General reset for comment wrapper */
.comment-wrapper {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Flexbox layout for desktop comments */
.comment {
    margin-bottom: 19px;
    vertical-align: top;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Author Meta Section */
.comment__meta {
    flex: 1 1 25%;
    padding: 1rem;
    background-color: #f9f9f9;
    border-right: 1px solid #ddd;
    text-align: center;
}

.comment__meta .comment__author {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.comment__meta img {
    max-width: 80px;
    border-radius: 50%;
}

/* Content Section */
.comment__content {
    flex: 3 1 75%;
    padding: 1rem;
}

.card-body {
    margin-bottom: 0.5rem;
}

.comment__content h3.card-title {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.comment__content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Nav links */
.comment__content nav .nav-link {
    margin-right: 0.5rem;
    display: inline-block;
    font-size: 0.9rem;
}

/* Time and Permalink */
.comment__time,
.comment__permalink {
    font-size: 0.85rem;
    color: #777;
}

/* Mobile: Remove flexbox for natural flow */
@media (max-width: 768px) {
    .comment {
        display: block; /* Disable flexbox */
        margin-bottom: 19px;
    }

    .comment__meta {
        border-right: none;
        border-bottom: 1px solid #ddd;
        text-align: left;
        padding: 0.75rem;
    }

    .comment__meta img {
        max-width: 60px;
    }

    .comment__content {
        padding: 0.75rem;
    }

    .comment__content h3.card-title {
        font-size: 0.9rem;
    }
}

/* Final small padding adjustment */
.field.field--name-comment-node-library-item.field--type-comment {
    padding: 5px;
}

fieldset#group-requirement {
    min-width: 100%;
}

img.image-style-content-width {
    width: 100%;
    height: auto;
}

.node--type-library-item #comment-form
{
    min-width: 100%;
}