/* ... (keep the existing styles) ... */
/* ... (keep the existing styles) ... */

.publication-media {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 1rem auto;
    overflow: hidden; /* This ensures the content doesn't spill out */
}

.publication-poster,
.publication-gif,
.publication-image {
    width: 100%;
    height: auto;
    display: block;
}

.publication-gif {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.publication-media:hover .publication-gif {
    opacity: 1;
}

/* ... (rest of the existing styles) ... */

.publication-video {
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-top: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ... (rest of the existing styles) ... */

body {
    font-family: Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem 0;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 1rem;
}

nav ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #3498db;
}

main {
    padding: 2rem 0;
}

h1, h2, h3 {
    color: #2c3e50;
}

.profile-photo-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto 40px;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.publications-list {
    list-style-type: none;
    padding: 0;
}

.publication-item {
    margin-bottom: 2rem;
    border-bottom: 1px solid #bdc3c7;
    padding-bottom: 1rem;
}

.publication-image {
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
}

footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.media-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.media-logo {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.media-logo:hover {
    transform: scale(1.1);
}

.outreach-item {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.outreach-item:last-child {
    border-bottom: none;
}

.outreach-item h3 {
    margin-top: 30px;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
}

/* Responsive adjustments */
@media screen and (max-width: 800px) {
    .container {
        padding: 0 10px;
    }
    
    .profile-photo-container {
        max-width: 800px;
    }
    
    .publication-media {
        max-width: 100%;
    }
}

/* Ensure all images are responsive */
img {
    max-width: 100%;
    height: auto;
}
