/* CSS Reset: http://meyerweb.com/eric/tools/css/reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/**************************************************/

#body{
  font-family: 'Asap', roboto, sans-serif;
  font-size: 1em;
  line-height: 1.5em;
  color: #150c21;
  /* background-image: url('images/zuckerman.webp');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed; */
}

#main {
  width: 54em;
  margin: 0px auto;
  position: relative;
  min-height: 100vh;
  /* background-color: rgba(255, 255, 255, 0.95); */
}

#top-banner {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    overflow: hidden;
    border-radius: 15px;
}

#top-banner img {
    width: 100%;
    height: auto;
    display: block;
}

#banner {
    width: 100%;
    max-height: 120px;
    overflow: hidden;
    margin: 0;
    margin-bottom: -5%;
    padding: 0;
    display: flex; /* Add this */
    align-items: center; /* Add this - centers vertically */
    justify-content: center; /* Add this - centers horizontally */
}

#banner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center; /* Add this - ensures image centers when cropped */
    display: block;
}

/* Make banner responsive */
@media screen and (max-width: 600px) {
    #banner {
        max-height: 150px;
    }
}

a {
  text-decoration: none;
  color: rgb(20, 110, 190);
}

a:hover {
  text-decoration: none;
  border-bottom: 1px solid rgb(20, 110, 190);
}

i {
  font-style: italic;
}

b {
  font-weight: 700;
}

h1 {
  font-size: 2.4em;
  line-height: 2.4em;
  font-weight: 500;
}

/**************************************************/
/* Profile image and description. */

#intro {
  padding-top: 5em;
  display: flex;
}

#intro-text {
  width: 40em;
  float: left;
}

#intro-image {
  margin: 9em 0 0 2em;
  width: 12em;
  height: 12em;
  float: left;
  overflow: hidden;
  border-radius: 1em;
}

#intro-image img {
  width: 12em;
}

/**************************************************/
/* Section buttons. */

#menu {
  display: flex;
}

.menu-item {
  float: left;
  margin-right: 2em;
}

h2 {
  font-size: 1.6em;
  line-height: 2.4em;
  margin-top: 0.5em;
  color: #a0a8b0;
}

.selected h2 {
  color: #150c21;
}

.button {
  display: inline-block;
  cursor: pointer;
  border: none;
  background: none;
  color: #a0a8b0;
  font-size: 1.6em;
  line-height: 2.4em;
  margin-top: 0.5em;
  margin-right: 1em;
  float: left;
  padding: 0;
}

.button:hover {
  color: #150c21;
}

.button:active,
.button.is-checked {
  color: #150c21;
}

.button-group:after {
  content: '';
  display: block;
  clear: both;
}

/**************************************************/
/* Isotope grid list of items. */

.grid {
  padding-bottom: 6em;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.description {
  margin-bottom: 1em;
  padding-bottom: 0.5em;
}

.list-item {
  width: 100%;
  line-height: 1em;
  margin-top: 1em;
}

.list-item p.date {
  display: inline-block;
  width: 3em;
  color: #a0a8b0;
}

/**************************************************/
/* Gallery of 3 preview videos. */

.previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  grid-auto-rows: minmax(100px, auto);
  height: 12.5em;
}

.previews video {
  border-radius: 5px;
}

.previews a:hover {
  border: none;
}

.preview1 {
  grid-column: 1;
  width: 100%;
}
.preview2 {
  grid-column: 2;
  width: 100%;
}
.preview3 {
  grid-column: 3;
  width: 100%;
}

/**************************************************/
/* Buttons for showing more or less highlights. */

.toggle-button {
  margin-top: 1em;
}

.toggle-button a {
  color: #a0a8b0;
}

.toggle-button a:hover {
  color: rgb(20, 110, 190);
}

/**************************************************/
/* Publication details (thumbnail media, title, and description). */

.thumbnail {
/*  width: 21%;*/
  width: 18%;
  float: left;
  margin-right: 2%;
}

.thumbnail:hover {
  border-bottom: none;
}

.thumbnail img {
  margin-top: 0.4em;
  border-radius: 5px;
  width: 100%;
  height: 100%;
}

.thumbnail video {
  margin-top: 0.4em;
  border-radius: 5px;
  width: 100%;
  height: 100%;
}

h3 {
  font-size: 1em;
  line-height: 1.5em;
}

h3 a {
  color: #150c21;
}

h3 a:hover {
  color: rgb(20, 110, 190);
}

.publication {
  margin-bottom: 0.5em;
}

.publication p {
  font-size: 1em;
  line-height: 1.5em;
  color: #a0a8b0;
}

.project-description {
  width: 80%;
  float: left;
}

/**************************************************/
/* Subtle footer at the bottom of the page. */

#footer {
  color: #a0a8b0;
  position: absolute;
  bottom: 0;
  line-height: 2.5em;
}

/* Social media icons */
.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
    margin: 0 0 0em 0;
}

.social-links a {
    font-size: 2rem;
    color: #150c21;
    transition: all 0.3s ease;
    border: none;
}

.social-links a:hover {
    color: rgb(20, 110, 190);
    transform: scale(1.2);
    border: none;
}

/* Responsive sizing for mobile */
@media screen and (max-width: 600px) {
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        font-size: 1.5rem;
    }
}


.institution-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
    margin-top: 0px;
    flex-wrap: wrap;
}

.institution-logos a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border: none;
}

.institution-logos a:hover {
    transform: scale(1.2);
    opacity: 0.8;
    border: none;
}

.institution-logos img {
    height: 50px;
    width: auto;
    max-width: 100%; /* Add this */
    max-height: 50px; /* Add this to enforce height limit */
    object-fit: contain;
    transition: filter 0.1s ease;
    display: block; /* Add this */
}

/* Responsive */
@media screen and (max-width: 600px) {
    .institution-logos {
        gap: 20px;
        justify-content: center;
    }
    
    .institution-logos img {
        height: 40px;
        max-height: 40px; /* Add this */
    }
}
