body {
  padding-top: 120px !important;
}

body > h2:first-of-type {
  display: block !important;
  position: static !important;
  margin: 20px 0 10px !important;
  padding: 0 !important;
  font-size: 40px !important;
  line-height: 1.2 !important;
  text-align: center !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 576px) {
  body {
    padding-top: 90px !important;
  }

  body > h2:first-of-type {
    margin-top: 15px !important;
    font-size: 28px !important;
  }

  h1 {
  font-family: "Cormorant", serif;
  font-size: 200px;
  margin-top: 20px;
  margin-bottom: 15px;
  line-height: 1;
  text-align: center;
}


  h2 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 30px;
    text-align: center;
  }

  h3 {
    margin-top: 15px;
    font-size: 20px;
    text-align: center;
  }

  .project-image {
    display: none !important;
  }

  .col-md-7 {
    width: 100%;
    text-align: center;
  }

  .col-md-7 h3 {
    margin-top: 0;
    text-align: center;
  }

  .col-md-7 p {
    text-align: center;
  }

  .d-flex.justify-content-end {
    justify-content: center !important;
    flex-direction: column;
    align-items: center;
  }

  .d-flex.justify-content-end .btn {
    width: 220px;
    margin: 6px 0;
  }
}

.col-md-7 p {
  text-align: justify;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-third {
  background-color: #4e2949 !important;
  border-color: #4e2949 !important;
  color: #ffffff !important;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-third:hover {
  background-color: #ffffff !important;
  border-color: #4e2949 !important;
  color: #4e2949 !important;
}
.lobster-two-regular {
  font-family: "Lobster Two", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 120px;
}

.lobster-two-bold {
  font-family: "Lobster Two", sans-serif;
  font-weight: 700;
  font-style: normal;
}

.lobster-two-regular-italic {
  font-family: "Lobster Two", sans-serif;
  font-weight: 400;
  font-style: italic;
}

.lobster-two-bold-italic {
  font-family: "Lobster Two", sans-serif;
  font-weight: 700;
  font-style: italic;
}


.award-title {
  text-align: center;
  margin-top: 15px;
}

.award-school {
  text-align: center;
  margin-bottom: 10px;
}

.award-btn {
  display: block;
  width: fit-content;
  margin: 0 auto 30px;
}
.award-year {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 25px;
  font-size: 32px;
  font-weight: 600;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 20px 40px;
}
.gallery-item img, .gallery-item video {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-item img:hover, .gallery-item video:hover {
  transform: scale(1.03);
}
.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img,
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain; /* shows the whole image, no cropping */
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 50%;
  z-index: 1100;
}

.lb-close {
  top: 20px;
  right: 20px;
}

.lb-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lb-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 2000;
}
.profile-photo {
  border-radius: 24px;
  size: 24px; /* increase for more rounded, e.g. 40px */
}

.about-text {
  text-align: left;
  line-height: 1.6;
}
.gallery-subtitle {
  grid-column: 1 / -1;   /* spans all columns instead of sitting in one cell */
  margin: 32px 0 12px;
  font-family: 'Lobster Two', cursive; /* match whatever heading font the rest of the site uses */
  font-size: 1.5rem;
}
.gallery-title {
  margin: 10px 0 4px;
  font-family: 'Lobster Two', cursive;
  font-size: 1.1rem;
  color: #333333;
}

.gallery-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.gallery-link {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  color: #ffffff;
  background-color: #4e2949;
  border: 1px solid #4e2949;
  border-radius: 20px;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.gallery-link:hover {
  background-color: #ffffff;
  color: #4e2949;
}

/* Technical Projects tab only — one project per row, centered showcase */
.gallery-coding {
  display: block;
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
}

.gallery-coding .gallery-item {
  text-align: center;
  margin: 0 auto 80px;
  padding: 0;
  background-color: transparent;
  border-radius: 0;
}

.gallery-coding .gallery-item:last-child {
  margin-bottom: 20px;
}

.gallery-coding .gallery-item img,
.gallery-coding .gallery-item video {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 12px;
  background-color: #f4f1f3; /* soft backdrop if the image doesn't fill the frame */
}

.gallery-coding .gallery-title {
  font-size: 1.4rem;
  margin-top: 20px;
}

.gallery-coding .gallery-description {
  max-width: 560px;
  margin: 8px auto 0;
}

.gallery-coding .gallery-link-row {
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 16px;
}

.gallery-coding .gallery-link {
  flex: none;
  min-width: 140px;
  text-align: center;
  white-space: normal;
}
.gallery-coding .gallery-subtitle {
  text-align: center;
  font-size: 1.75rem; /* reads like an H3 */
}

.logo-desktop {
  max-height: 48px;
  width: auto;
}

.logo-mobile {
  max-height: 40px;
  width: auto;
}