/* Limit visual lines, not characters. With JavaScript disabled the full text remains readable. */
.hds-gallery-description { min-width: 0; }
.hds-gallery-description > .hds-gallery-description-text { overflow-wrap: anywhere; }
.hds-gallery-description.is-collapsed > .hds-gallery-description-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 10;
    overflow: hidden;
    max-height: 10lh;
}
.hds-gallery-description.has-overflow:not(.hds-gallery-description--section) { margin-bottom: 14px; }
.hds-gallery-description.has-overflow > p.hds-gallery-description-text { margin-bottom: 3px; }
.hds-gallery-description > .hds-gallery-description-toggle {
    display: inline-block;
    width: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    font-size: .9em;
    font-weight: 600;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.hds-gallery-description > .hds-gallery-description-toggle:hover,
.hds-gallery-description > .hds-gallery-description-toggle:focus-visible { background: transparent; color: inherit; text-decoration: underline; }
.hds-gallery-description > .hds-gallery-description-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.hds-gallery-description > .hds-gallery-description-toggle[hidden] { display: none !important; }
