/* HERCULES site additions (kept separate from index.css per project convention). */

.publication-venue {
  display: inline-block;
  margin: 0.5rem auto 1rem;
  padding: 0.25rem 0.75rem;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: #b87333;
  border-radius: 999px;
}

.hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

.env-grid {
  margin-top: 1rem;
}

.env-image,
.sensors-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.env-caption,
.sensors-caption {
  margin-top: 0.5rem;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
}

.results-carousel .item .carousel-image {
  width: 100%;
  height: auto;
  display: block;
}

.sensors-grid {
  margin-top: 1rem;
}

/* ------------------------------------------------------------------ */
/* Video panels (HERCULES clip showcase)                              */
/* ------------------------------------------------------------------ */

.vgroup {
  margin-top: 2rem;
}

.vgroup-title {
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  text-align: center;
  margin: 1.75rem 0 1rem;
  color: #333;
}

.vgroup-title::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 3px;
  margin-right: 0.55rem;
  vertical-align: middle;
  background: #b87333;
  border-radius: 2px;
}

/* Grid variants ---------------------------------------------------- */
.vgrid {
  display: grid;
  gap: 1.25rem;
  margin: 0 auto;
}

/* Mixed-aspect phenomena: larger panels, up to 2 per row, cards size to their clip. */
.vgrid--mixed {
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  align-items: start;
}

@media screen and (max-width: 520px) {
  .vgrid--mixed {
    grid-template-columns: 1fr;
  }
}

/* Ultrawide (~2:1): full-width stacked so the wide framing reads. */
.vgrid--wide {
  grid-template-columns: 1fr;
  max-width: 900px;
}

/* 16:9 collaborative-SLAM clips: 2x2 on desktop, 1 col on mobile. */
.vgrid--2x2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
}

/* Single centered panel (loop-closure alignment). */
.vgrid--single {
  grid-template-columns: 1fr;
  max-width: 760px;
}

/* Full-width stacked panels (dense dataset dashboards — need room to read sub-views). */
.vgrid--full {
  grid-template-columns: 1fr;
  max-width: 1100px;
}

/* Two clips side by side per scene (e.g. wildlife view + UAV/UGV view). Ultrawide,
   so don't force an aspect — let each clip keep its natural height. */
.vgrid--pairs {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1120px;
  align-items: start;
}

@media screen and (max-width: 768px) {
  .vgrid--pairs {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .vgrid--2x2 {
    grid-template-columns: 1fr;
  }
}

/* Panel -------------------------------------------------------------*/
.vpanel {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.vpanel-media {
  position: relative;
  width: 100%;
  background: #0e0e0e;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  line-height: 0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.vpanel-media:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

.vpanel-video {
  display: block;
  width: 100%;
  height: auto;
}

/* 16:9 groups: uniform boxes regardless of slight source differences. */
.vgrid--2x2 .vpanel-media,
.vgrid--single .vpanel-media {
  aspect-ratio: 16 / 9;
}

.vgrid--2x2 .vpanel-video,
.vgrid--single .vpanel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play / pause toggle ----------------------------------------------*/
.vpanel-toggle {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  cursor: pointer;
  opacity: 0.85;
  transition: background 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.vpanel-toggle:hover {
  background: #b87333;
  opacity: 1;
  transform: scale(1.06);
}

.vpanel-toggle i {
  font-size: 1rem;
  line-height: 1;
  margin-left: 1px; /* optically center the play triangle */
}

.vpanel-toggle .fa-pause {
  margin-left: 0;
}

/* Caption -----------------------------------------------------------*/
.vpanel-cap {
  margin-top: 0.6rem;
  text-align: center;
}

.vpanel-title {
  display: block;
  font-family: 'Google Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #222;
}

.vpanel-desc {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.35;
}
