.aligncenter {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.grap--figure,
.colonel--figure,
.wp-caption {
    margin: 0 0px 25px;
    position: relative;
    max-width: 100%;
    line-height: 1;

    @media (max-width: 820px) {
        margin: 0 0 20px;
        margin-left: -3.5%;
        margin-right: -3.5%;
        max-width: calc(100% + 7%);
    }

    img {
        border-radius: 4px;

        @media (max-width: 820px) {
            border-radius: 0;
        }
    }

    .imageCaption,
    .wp-caption-text {
        font-size: 12px;
        text-align: center;
        position: absolute;
        bottom: 12px;
        right: 12px;
        color: #fff;
        background-color: rgba(18, 18, 18, 0.8);
        border-radius: 999rem;
        padding: 8px 15px;
    }
}

.gallery {
    display: grid;
    grid-gap: 10px;
    margin-bottom: 25px;
    .gallery-item {
        margin: 0;
        .gallery-caption {
            text-align: center;
            font-size: 12px;
            color: var(--hera-text-light);
        }
    }

    &-columns-2,
    &-columns-4,
    &-columns-5,
    &-columns-7,
    &-columns-8 {
        grid-template-columns: repeat(2, 1fr);
    }

    &-columns-3,
    &-columns-6,
    &-columns-9 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.comment-form {
    padding-bottom: 30px;

    label {
        display: block;
        margin-bottom: 0.5rem;
        font-size: 14px;
        cursor: pointer;
        line-height: 1.4;

        .required {
            color: var(--hera-warning-color);
        }
    }

    input,
    textarea {
        width: 100%;
        resize: none;
        border-radius: 5px;
        box-sizing: border-box;
        border: 1px solid var(--hera-border-color);
        padding: 8px 15px;
        font-size: 14px;
        transition: border-color 0.3s;

        &:focus {
            border-color: var(--hera-main-color);
        }
    }

    .submit {
        background-color: #000;
        color: #fff;
        border: 0;
        font-size: 14px;
        cursor: pointer;
        padding: 8px 30px;
        border-radius: var(--hera-border-radius);
        width: auto;
        place-self: center;
        place-content: center;
        color: var(--hera-color-white);
        text-align: center;

        &:hover {
            background-color: var(--hera-hover-color);
        }
    }

    p {
        margin-bottom: 15px;
        &:last-of-type {
            margin-bottom: 0;
        }
    }

    .comment-notes,
    .logged-in-as {
        font-size: 12px;
        color: var(--hera-text-gray);
    }
}

.comment-reply-link {
    font-size: 12px;
}

.comment-respond {
    padding-top: 30px;
}

.comment-reply-title {
    font-weight: bold;
    font-size: 18px;
    display: flex;
    align-items: center;

    small {
        margin-left: auto;
        font-weight: normal;
        font-size: 14px;
        color: var(--hera-warning-color);
    }
}

.comment-form-cookies-consent {
    #wp-comment-cookies-consent {
        display: none;
    }

    label {
        font-size: 14px;
        color: var(--hera-text-gray);
        display: flex;
        align-items: center;
        position: relative;

        &::before {
            background-color: var(--hera-background-white);
            border: 1px solid var(--hera-border-color);
            border-radius: 100%;
            height: 16px;
            margin-right: 6px;
            vertical-align: middle;
            width: 16px;
            content: '';
            flex: 0 0 auto;
        }
    }

    input:checked + label {
        &::after {
            background-color: var(--hera-hover-color);
            border-radius: 100%;
            content: '';
            position: absolute;
            left: 1px;
            height: 12px;
            margin: 2px;
            width: 12px;
            flex: 0 0 auto;
        }
    }
}
