/* Custom styles for homepage bio and background */

:root {
  --bio-bg: rgba(255, 255, 255, 0.02);
  --bio-border: rgba(255, 255, 255, 0.04);
}

/* Page background: change to a subtle gradient or image as desired */
body {
  background: linear-gradient(180deg, #0f1113 0%, #17181b 100%);
}

/* Bio avatar */
.home-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bio-border);
}

/* Bio card tweaks */
#home-bio .card-wrapper.card {
  background: var(--bio-bg);
  border: 1px solid var(--bio-border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

#home-bio .card-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

#home-bio .card-text p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.8);
}

/* Make the right column (aside) background match the page */
#panel-wrapper {
  background: transparent;
}

/* Home hero styles */
#home-hero {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

#home-hero .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(7, 8, 10, 0.6) 0%,
    rgba(7, 8, 10, 0.85) 100%
  );
  padding-top: 40px;
  padding-bottom: 60px;
}

.bio-card {
  background: transparent; /* remove boxed background */
  border: none;
}

.profile-large {
  width: 240px;
  max-width: 100%;
  border-radius: 8px;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.04);
}

.contact-list li {
  margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
  .profile-large {
    width: 140px;
  }
}

/* Right panel (home) image */
.home-panel-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  height: calc(
    100vh - 160px
  ); /* take most of viewport height, adjust for header/footer */
}

.home-panel-image {
  max-height: 100%;
  width: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Make the About card wider and more contrast for readability */
.bio-card--wide {
  max-width: 920px;
}

.bio-card--wide .card-text,
.bio-card--wide .card-body {
  color: #f8f9fb; /* slightly off-white for readability */
}

.research-container {
  padding-left: 2rem;
  padding-right: 2rem;
}
.research-container .page-content {
  max-width: none;
  padding-right: 0;
}

/* Make sure main content stretches to the right edge and images align */
.research-container .row {
  margin-left: 0;
  margin-right: 0;
}
.research-container .col-12 {
  padding-left: 0;
  padding-right: 0;
}

/* Space between image and videos, and between stacked videos */
.research-container
  .row.align-items-start
  > .col-12
  > .row
  > .col-md-6:first-child {
  padding-right: 1.5rem;
}
.research-container .videos-column .ratio {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  background: #0f1113;
}
.research-container .videos-column .mb-3 {
  margin-bottom: 1rem !important;
}

/* Equal-height layout: make image and videos stretch to same height */
.media-row {
  gap: 1rem;
}
.media-left .research-figure {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.media-right .videos-column {
  display: flex;
  flex-direction: column;
}
.media-right .video-flex {
  flex: 1 1 0%; /* let the two video containers split the available height */
  display: flex;
}
.media-right .video-flex .ratio {
  height: 100%;
}
.media-right .video-flex .ratio iframe {
  width: 100%;
  height: 100%;
}

.research-container img {
  max-width: 100%;
  height: auto;
}

.research-container figure {
  margin-bottom: 1.5rem;
}

/* Ensure research figures have no animations or overlay effects */
.research-figure,
.research-figure img {
  -webkit-animation: none !important;
  -moz-animation: none !important;
  animation: none !important;
  -webkit-transition: none !important;
  transition: none !important;
}

/* Remove any pseudo-element overlay that may create a sweep/span effect */
.research-figure::before,
.research-figure::after {
  content: none !important;
  display: none !important;
}

/* Remove shimmer/hover overlay that was added via anchor classes */
.img-link.shimmer {
  background: transparent !important;
  box-shadow: none !important;
  -webkit-animation: none !important;
  animation: none !important;
}
.img-link.shimmer::before,
.img-link.shimmer::after {
  content: none !important;
  display: none !important;
}

/* Hide the small left duplicate info that was inside the center */
.home-hero .home-avatar,
.home-hero .contact-list {
  display: none;
}
