body {
  font-family: 'Archivo', 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: 'Archivo', 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: 'Archivo', sans-serif;
    font-weight: 600;
    font-size: 2.3rem !important;
}

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

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

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

/* Custom styles for specific title sections */
.title.is-3 {
    position: relative;
}

/* Style for Human -> Human and Human -> Anime Characters text */
.title.is-3:contains("Human ->"),
.title.is-3:has-text("Human ->") {
    font-size: 2rem !important;
}

/* Alternative approach using pseudo-elements for the parentheses content */
h2.title.is-3 {
    font-size: 2rem !important;
}

/* Specific styling for the parentheses content to make it smaller and bold */
h2.title.is-3 span.motion-type {
    font-weight: bold;
    font-size: 0.8em;
}

/* Style for video captions to make them italic - only for video descriptions */
.column .has-text-centered[style*="font-weight: 600"] {
    font-style: italic;
}

.publication-authors {
}

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

.publication-authors .author-name {
   color: #000 !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;
}

/* Method section styles */
.method-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 2rem 0;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.method-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  flex-wrap: wrap;
}

.method-row.top-row {
  max-width: 800px;
}

.method-row.bottom-row {
  max-width: 800px;
}

.method-image {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.method-image-container {
  text-align: center;
}

.method-image-container.small {
  flex: 1.2;
  min-width: 240px;
  max-width: 456px;
}

.method-image-container.extrasmall {
  flex: 0.5;
  min-width: 120px;
  max-width: 200px;
}

.method-image-container.extrasmall .method-image {
  object-fit: contain;
  height: 180px;
}

.method-image-container.small .method-image {
  object-fit: contain;
  height: 250px;
}

.method-image-container.large {
  width: 100%;
  max-width: 800px;
}

.method-image-container h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
}

@media (max-width: 768px) {
  .method-images {
    gap: 1.5rem;
  }
  
  .method-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .method-image-container.small,
  .method-image-container.extrasmall,
  .method-image-container.large {
    max-width: 100%;
    min-width: auto;
  }
}

/* Gallery vertical video styles */
.vertical-video {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 200px;
}

/* Character grid complex layout - matching webpage_for_preview */
.character-grid-complex {
  display: grid;
  grid-template-columns: 3.3fr 1fr;
  gap: 25px;
  align-items: start;
}

.horizontal-videos-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  height: 100%;
}

.horizontal-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  flex: 1;
}

.vertical-videos-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.vertical-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  height: 100%;
}

/* Special Characters section */
.special-characters-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 960px;
  margin: 0 auto;
}

.character-video {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.character-video:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.character-video.horizontal {
  min-height: 0;
}

.character-video.vertical {
  height: 100%;
}

.character-video.vertical .video-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.character-video.vertical .video-container video {
  flex: 1;
  height: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* New grid layout for 3 landscape and 2 portrait videos */
.character-grid-3-2 {
  display: grid;
  grid-template-columns: 4fr 0.95fr;
  gap: 20px;
  width: 100%;
  /* Ensure the grid has a constrained height or aspect ratio if needed, 
     but usually letting content dictate height is fine. 
     However, to align the bottoms, we rely on the aspect ratios. */
}

.column-landscape {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.column-portrait {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.character-grid-3-2 .character-video {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.character-grid-3-2 .video-container {
  flex: 1;
  display: flex;
  height: 100%;
  background: #000;
}

.character-grid-3-2 .video-container video {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Use contain to show full video */
}

@media (max-width: 768px) {
  .character-grid-complex {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .horizontal-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .vertical-videos-container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .vertical-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .character-video {
    padding: 12px;
  }

  .special-characters-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .character-grid-3-2 {
    grid-template-columns: 1fr;
  }
  
  .column-landscape, .column-portrait {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .character-grid-complex {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .horizontal-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vertical-videos-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vertical-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .horizontal-videos-container {
    gap: 12px;
  }

  .special-characters-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
