:root { 
    --accent-color: #f66; 
    --text-main: #333; 
    --text-muted: #666; 
}

body { 
    font-family: 'Inter', sans-serif; 
    color: var(--text-main); 
    line-height: 1.5; 
    background: #fff; 
    margin: 0; 
}

.main-wrap { 
    max-width: 950px; 
    margin: 0 auto; 
    padding: 20px 20px 60px 20px; 
}

/* Header & Spacing */
header.top-area { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 0px; 
}

h1.name { 
    font-family: 'Source Serif Pro', serif; 
    font-size: 2.6rem; 
    font-weight: 700; 
    margin: 0; 
}

.blurb { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
    margin: 0px 0 5px 0; 
}

.social-links { 
    font-size: 0.95rem; 
    font-weight: 500; 
}

.profile-thumb img { 
    width: 170px; 
    height: 200px; 
    object-fit: cover; 
    border-radius: 50% / 35%; 
    border: 1px solid #eee; 
}

/* Titles */
.section-title { 
    font-family: 'Source Serif Pro', serif; 
    font-size: 1.6rem; 
    border-bottom: 1px solid #eee; 
    padding-bottom: 6px; 
    margin: 30px 0 20px; 
}

/* Highlighted Publications - Deitke Style */
.pub-table { 
    width: 100%; 
    border-spacing: 0 40px; 
    border-collapse: separate; 
}

.pub-media-container { 
    position: relative; 
    width: 100%; 
    height: 200px; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); 
    background: #fff; 
}

.pub-media-container img { 
    width: 100%; 
    height: 100%; 
    display: block; 
    object-fit: cover; 
}

.pub-media-container video { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0; 
    transition: opacity 0.3s; 
    z-index: 10; 
}

.pub-media-container:hover video { 
    opacity: 1; 
}

.pub-media-container iframe { 
    width: 100%; 
    height: 100%; 
    border: 0; 
}

.papertitle { 
    font-family: 'Source Serif Pro', serif; 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: #222; 
    text-decoration: none; 
    display: block; 
    margin-bottom: 8px; 
    line-height: 1.3; 
}

.papertitle:hover { 
    color: #555; 
}

.authors { 
    font-size: 0.95rem; 
    color: #888; 
    line-height: 1.4; 
    margin-bottom: 6px; 
    font-weight: 400; 
}

.venue { 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: #444; 
    margin-bottom: 10px; 
    display: block; 
}

.award { 
    color: #d9534f; 
    font-weight: bold; 
    margin-left: 5px; 
    font-size: 0.9rem; 
}

.abstract-verbose { 
    font-size: 1rem; 
    color: #666; 
    margin-top: 10px; 
    line-height: 1.6; 
    font-weight: 400; 
}

/* Link icons - Deitke style */
.pub-links-highlight { 
    margin-top: 10px; 
}

.pub-links-highlight a { 
    display: inline-block; 
    padding: 4px 12px; 
    margin-right: 8px; 
    margin-top: 4px; 
    font-size: 0.85rem; 
    font-weight: 600; 
    text-decoration: none; 
    border-radius: 4px; 
    background: #f5f5f5; 
    color: #555; 
    transition: all 0.2s; 
}

.pub-links-highlight a:hover { 
    background: #e5e5e5; 
    color: #333; 
}

.pub-links-highlight a::before { 
    content: "📄 "; 
}

.pub-links-highlight a[href*="arxiv"]::before { 
    content: "📝 "; 
}

.pub-links-highlight a[href*="github"]::before { 
    content: "💻 "; 
}

.pub-links-highlight a[href*="youtube"]::before, 
.pub-links-highlight a[href*="youtu.be"]::before { 
    content: "▶️ "; 
}

/* Publication List */
.pub-list { 
    list-style: none; 
    padding: 0; 
    margin: 20px 0; 
}

.pub-year-header { 
    font-family: 'Source Serif Pro', serif; 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: #444; 
    margin: 25px 0 12px 0; 
    border-bottom: 1px solid #e5e7eb; 
    padding-bottom: 4px; 
}

.pub-list li { 
    margin-bottom: 12px; 
    line-height: 1.6; 
}

.pub-list .pub-title { 
    font-weight: 600; 
    color: #222; 
    font-size: 0.92rem; 
}

.pub-list .pub-authors { 
    font-size: 0.88rem; 
    color: #666; 
    display: block; 
    margin-top: 2px; 
}

.pub-list .pub-venue { 
    color: #2563eb; 
    font-weight: 600; 
    font-size: 0.9rem; 
    display: block; 
    margin-top: 2px; 
}

.pub-list .award-marker { 
    color: #d9534f; 
    font-weight: bold; 
    font-size: 0.82rem; 
    margin-left: 6px; 
}

.pub-list .pub-links { 
    display: inline; 
    margin-left: 8px; 
}

.pub-list .pub-link { 
    display: inline-block; 
    padding: 2px 6px; 
    margin-left: 4px; 
    font-size: 0.7rem; 
    font-weight: 600; 
    text-decoration: none; 
    border-radius: 3px; 
    background: #f3f4f6; 
    color: #4b5563; 
}

.pub-list .pub-link:hover { 
    background: #e5e7eb; 
}

.pub-list .pub-link.arxiv, 
.pub-list .pub-link.pdf { 
    background: #dc2626; 
    color: white; 
}

.pub-list .pub-link.project { 
    background: #2563eb; 
    color: white; 
}

/* Patent List */
.patent-list { 
    list-style: none; 
    padding: 0; 
    margin: 20px 0; 
}

.patent-list li { 
    margin-bottom: 12px; 
    line-height: 1.6; 
}

.patent-year-header { 
    font-family: 'Source Serif Pro', serif; 
    font-size: 1.2rem; 
    font-weight: 700; 
    color: #444; 
    margin: 25px 0 12px 0; 
    border-bottom: 1px solid #e5e7eb; 
    padding-bottom: 4px; 
}

.patent-list .patent-title { 
    font-weight: 600; 
    color: #222; 
    font-size: 0.92rem; 
}

.patent-list .patent-authors { 
    font-size: 0.88rem; 
    color: #666; 
    display: block; 
    margin-top: 2px; 
}

.patent-list .patent-number { 
    color: #2563eb; 
    font-weight: 600; 
    font-size: 0.9rem; 
    display: block; 
    margin-top: 2px; 
}

/* Talks Table */
.talk-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin-top: 10px; 
}

.talk-table td { 
    padding: 15px 0; 
    border-bottom: 1px solid #f5f5f5; 
    vertical-align: middle; 
}

.uni-logo { 
    width: 60px; 
    opacity: 0.8; 
    display: block; 
    margin: 0 auto; 
}

/* Gallery Collage */
.gallery-collage { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
    margin-top: 20px; 
}

.collage-item { 
    position: relative; 
    border-radius: 4px; 
    overflow: hidden; 
    cursor: pointer; 
}

.collage-item img { 
    width: 100%; 
    height: 130px; 
    object-fit: cover; 
    transition: transform 0.3s; 
}

.collage-item:hover img { 
    transform: scale(1.1); 
}

.collage-cap { 
    position: absolute; 
    bottom: 0; 
    width: 100%; 
    background: rgba(0,0,0,0.7); 
    color: #fff; 
    font-size: 9px; 
    padding: 4px; 
    text-align: center; 
    opacity: 0; 
    transition: 0.2s; 
}

.collage-item:hover .collage-cap { 
    opacity: 1; 
}

/* Lightbox Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
}

.modal-content img,
.modal-content video {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.modal-caption {
    color: #fff;
    text-align: left;
    padding: 20px 30px;
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.modal-close:hover {
    color: #bbb;
}

/* Make publication media containers maintain aspect ratio */
.pub-media-container {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    background: #fff;
    cursor: pointer;
}

.pub-media-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.pub-media-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
    background: #000;
}

.pub-media-container .hover-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.pub-media-container:hover .hover-gif {
    opacity: 1;
}
