body {
    font-family: Verdana, sans-serif;
    font-size: 13px;
    line-height: 1.1;
    color: #333;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background-color: #f9f9f9;
    --trigger-color: #93871e;
    --trigger-bg: #e0d78e;
}

.work-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header {
    font: Lithograph, serif;
    border-top: 4px solid #eee;
    border-bottom: 4px solid #eee;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 30px;
    text-align: center;
}

.title {
    font-size: 2.5rem;
    color: #827717;
}

.author {
    font-size: 1.2rem;
    color: #555;
    margin-top: 5px;}

.annotator {
    font-size: 1rem;
    color: #777;
    margin-top: 5px;
}

.text-container {
    color: #444;
    font-size: 1.1rem;
}

.annotation-link {
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0 4px;
    margin: 0 -2px;
    font-weight: 500;
    color: inherit;
}

.annotation-link:hover, .annotation-link.active {
    color: var(--trigger-color);
    filter: brightness(0.9);
}

.annotation-container {
    --bg-color: var(--trigger-bg);
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                opacity 0.3s ease-out, 
                padding 0.4s ease,
                margin 0.4s ease;
    max-height: 0;
    opacity: 0;
    background-color: var(--bg-color);
    margin: 0;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 0.7rem;
    box-sizing: border-box;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02);
    display: none; /* Hidden by default */
}

.annotation-container.open {
    display: block; /* Show as block to take up full width when active */
    opacity: 1;
    margin: 10px 0 25px 0;
}

.annotation-content {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Media handling */
.float-left {
    float: left;
    max-width: 40%;
    margin: 0 20px 15px 0;
}

.float-right {
    float: right;
    max-width: 40%;
    margin: 0 0 15px 20px;
}

.video-container {
    margin-top: 15px;
    background: #000;
}

.video-container.float-left {
    float: left;
    width: 300px;
    margin: 0 20px 15px 0;
}

.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
