body {
  font-family: 'Noto Sans', sans-serif;
}


.footer .icon-link {
    font-size: 25px;
    color: #000;
}

.link-block a {
    margin-top: 5px;
    margin-bottom: 5px;
}

.dnerf {
  font-variant: small-caps;
}


.teaser .hero-body {
  padding-top: 0;
  padding-bottom: 3rem;
}

.teaser {
  font-family: 'Google Sans', sans-serif;
}


.publication-title {
}

.publication-banner {
  max-height: parent;

}



.publication-banner video {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  object-fit: fit;
}

.publication-header .hero-body {
}

.publication-title {
    font-family: 'Google Sans', sans-serif;
}

.publication-authors {
    font-family: 'Google Sans', sans-serif;
}

.hero-body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.publication-venue {
    color: #555;
    width: fit-content;
    font-weight: bold;
}

.publication-awards {
    color: #ff3860;
    width: fit-content;
    font-weight: bolder;
}

.publication-authors {
}

.publication-authors a {
   color: hsl(204, 86%, 53%) !important;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.author-block {
  display: inline-block;
}

.publication-banner img {
}

.publication-authors {
  /*color: #4286f4;*/
}

.publication-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;

    overflow: hidden;
    border-radius: 10px !important;
}

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

.publication-body img {
}

.results-carousel {
  overflow: hidden;
}

.results-carousel .item {
  margin: 5px;
  overflow: hidden;
  border: 1px solid #bbb;
  border-radius: 10px;
  padding: 0;
  font-size: 0;
}

.results-carousel video {
  margin: 0;
}


.interpolation-panel {
  background: #f5f5f5;
  border-radius: 10px;
}

.interpolation-panel .interpolation-image {
  width: 100%;
  border-radius: 5px;
}

.interpolation-video-column {
}

.interpolation-panel .slider {
  margin: 0 !important;
}

.interpolation-panel .slider {
  margin: 0 !important;
}

#interpolation-image-wrapper {
  width: 100%;
}
#interpolation-image-wrapper img {
  border-radius: 5px;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);  /* Change 5 to 4 for 4x4 */
  grid-template-rows: repeat(2, 1fr);
  gap: 0px;
  padding: 0px;
  
  /* 2. Constrain the size */
  max-height: 90vh;        /* Limits height to 70% of the viewport */
  width: 100%;             /* Allows it to be responsive on small screens */
  /* max-width: 90vh;         MUST match max-height to maintain 1:1 ratio */
  
  /* aspect-ratio: 1 / 1;     Keeps it square */
  margin: 0 auto;          /* Centers it horizontally */

}

.size-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.size-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.size-3x1 {
  grid-column: span 3;
  grid-row: span 1;
}
.size-1x2 {
  grid-column: span 1;
  grid-row: span 2;
}

.size-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.video-grid {
  width: 100%;
  height: 100%;
  overflow: hidden; /* Clips any video overflow */
}
.video-grid video {
  width: 100%;
  height: 100%;
  display: block;           /* Avoid inline spacing */
  margin: 0;
  padding: 0;
  object-fit: cover;    
}

.video-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.video-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.video-box video {
  width: 100%;
  height: auto;
  display: block;         /* Avoid inline spacing */
  margin: 0;
  padding: 0;
  object-fit: cover;    
}

/* Fix for Leaflet popups to accommodate videos nicely */
.leaflet-popup-content-wrapper {
  text-align: center;
  padding: 0; /* Removes default inner padding for a cleaner look */
  overflow: hidden;
}

.leaflet-popup-content {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 15px !important; /* Adjust padding around the content */
  width: auto !important;  /* Allows the flex container to dictate width */
}
.popup-video {
  width: 100%;
  border-radius: 5px;
  margin-top: 5px;
}

/* Container to give the viewer a nice border and consistent height */
.viser-wrapper {
  position: relative;
  width: 100%;
  height: 400px; /* Adjust this height based on your preference */
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Make the iframe fill the wrapper */
.viser-frame {
  width: 100%;
  height: 100%;
}

/* Optional: Add spacing between the title and the viewer */
.column .title {
  margin-bottom: 1rem !important;
}

/* Container to center the legend items */
.legend-container {
  display: flex;
  justify-content: center;
  gap: 20px;       /* Space between different legend items */
  margin-top: 15px;
  flex-wrap: wrap; /* Wraps items if the screen gets too narrow */
}

/* Individual legend item (Block + Text) */
.legend-item {
  display: flex;
  align-items: center;
  font-family: 'Noto Sans', sans-serif;
}

/* The actual color square */
.color-block {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  margin-right: 8px;
  display: inline-block;
  flex-shrink: 0; /* Prevents the square from squishing */
}

/* The text styling */
.legend-text {
  font-size: 0.9rem;
  color: #4a4a4a;
}