/* Masonry Grid*/

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
  grid-template-rows: max-content;
  grid-auto-flow: dense;
  grid-gap: 1rem;
  padding: 2em;
  margin: auto;
  width: 100%;
}

.title-projects {
  text-align: center;
  margin-top: 2em;
}

.masonry-grid > .card {
  background-color: transparent;
}

.fa-linkedin {
  font-size: 2rem;
}

.card.link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card.link::before {
  content: 'Link';
  font-weight: 700;
  font-family: inherit;
  text-align: center;
}

.card.pdf::before {
  content: 'PDF Document';
  font-weight: 700;
  font-family: inherit;
  text-align: center;
}

.card.youtube::before {
  content: 'Video';
  font-weight: 700;
  font-family: inherit;
  text-align: center;
}

.card {
  background-color: #eee;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden;
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0.5em;
}
.scholarship-heading {
  padding: 1em !important;
  background-color: #333;
  margin-top: 1em !important;
}

.card img {
  width: 100%;
  height: 10rem;
  object-fit: cover;
}

.card h2 {
  margin: 16px;
  font-size: 1rem;
  text-align: center;
}

.card p {
  margin: 0 16px 16px;
  font-size: 1em;
  color: #666;
}

.card:hover {
  transform: scale(1.05);
}

a {
  text-decoration: none;
}

.profile-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin-bottom: 1em;
  object-fit: contain;
}

.profile-image > img {
  width: 12.5rem;
  height: 100%;
  object-fit: cover;
}

/* Navbar */

.topnav {
  background-color: #eeeeee3d;

  a {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 13px 16px;
    text-decoration: none;
    font-size: 17px;

    &:hover {
      background-color: #ddd;
      color: black;
    }
    &.active {
      background-color: #ddd;
      color: black;
    }
  }
  .logo {
    float: left;
    display: block;
    color: black;
    text-align: center;
    padding: 7px 10px 3px 10px;
    margin-top: 2px;
    text-decoration: none;
    font-size: 17px;

    img {
      width: 30px;
      height: auto;
    }
    &:hover {
      background: transparent;
    }
  }
  button {
    display: none;
  }
}
.container {
  padding: 0px 10px;
}
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {
    display: none;
  }
  .topnav button.icon {
    background: #d8d8d8;
    float: right;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 17px;
    border: 0;
    outline: none;
    cursor: pointer;
  }
  button.icon:focus,
  button.icon:hover {
    border: 0;
    outline: none;
    background: #b3b3b3;
  }
}
@media screen and (max-width: 600px) {
  .topnav.responsive {
    position: relative;

    a {
      float: none;
      display: block;
      text-align: left;
    }
    .icon {
      position: absolute;
      right: 0;
      top: 0;
    }
  }
}

.logo {
  padding-top: 5rem;
}

.pdf-container {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
embed {
  width: 100%;
  height: 100%;
}

.screenshot-container {
  width: 100%;
  height: 100vh;
  overflow: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.screenshot-container img {
  display: block;
  max-width: 100%;
  height: auto;
}

.callout {
  height: max-content;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 1em;
}

#font-slabo {
  font-family: 'Slabo 27px', sans-serif !important;
  font-size: 1.5rem;
  text-align: center;
  margin: 0;
  padding: 0 2.5em;
}

.image-width {
  max-width: 100%;
}

.video-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 1em;
}
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Makes the video cover the container without maintaining aspect ratio */
}

.feature-img {
  display: block;
  margin: 1em auto;
  object-fit: contain;
  max-width: 100%;
}

.paragraph-image {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.paragraph-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.5em auto;
}

.qoutes-ccri {
  width: 100%;
}

.offering li {
  color: #333 !important;
  font-weight: 200;
}

.impact-grid {
  grid-auto-flow: row dense;
}

.impact-grid > .card {
  gap: 0.9375rem;
}

.title-card {
  color: #353c47;
}

small,
a[href^='mailto:'],
a[href^='tel:'] {
  color: #b3b3b3;
}

/* Grid on homepage */
@media screen and (max-width: 60rem) {
  .masonry-grid {
    grid-template-columns: 1fr;
  }
}
