.show-more-content {
    position: relative;
}

.show-more-btn {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    margin-left: 5px;
    font-size: inherit;
    font-family: inherit;
    display: inline; 
}

.show-more-btn:hover {
    color: #005a87;
}

.show-more-btn:focus {
    outline: 1px dotted #0073aa;
    outline-offset: 2px;
}

.show-more-content .content-text {
    display: inline;
}

.show-more-content.expanded .content-text {
    display: inline;
}

/* Specific styling for metadata properties */
.show-more-metadata {
    line-height: 1.5;
}

.property .show-more-content {
    margin-bottom: 0.5em;
}

/* Property-specific styling */
.property-dcterms-description .show-more-btn,
.property-dcterms-abstract .show-more-btn {
    font-weight: normal;
    font-style: italic;
}

/* Ensure proper spacing in metadata context */
.metadata .property .value .show-more-content {
    display: block;
}

.metadata .property .value .show-more-content .content-text {
    display: inline;
}

/* Expand All/Collapse All Button Styling */
.show-more-expand-all-container {
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 8px 12px;
    width: 10%;
    margin: 0 auto;
}

.show-more-expand-all-btn {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    width: 100%;
}

.show-more-expand-all-btn:hover {
    background: #005a87;
}

.show-more-expand-all-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.show-more-expand-all-btn:active {
    background: #004570;
}

/* Hide the button initially */
.show-more-expand-all-container.hidden {
    display: none;
}

@media screen and (max-width: 950px) {
    .show-more-expand-all-container {
        width: 25%;
    }
}


@media screen and (max-width: 650px) {
    .show-more-expand-all-container {
        width: 30%;
    }
}
