/* Font from 02_Output_J8/assets/fonts */
@font-face {
  font-family: 'League Spartan';
  src: url('../assets/fonts/LeagueSpartan-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.exercise-wrapper {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 1.25rem;
  padding-right: 14rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* Interview gallery – 8 images 800×400 (2:1), 2×4 grid, fits viewport so all 8 visible */
.interview-gallery {
  font-family: 'League Spartan', sans-serif;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  /* Square gallery so each cell is 2:1 (width = height for 2 cols × 4 rows) */
  width: min(calc(100vh - 10rem), 38rem);
  height: min(calc(100vh - 10rem), 38rem);
  max-width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 0.1rem solid #e0e8ee;
  aspect-ratio: 2 / 1;
  background-color: #f5f8fa;
  min-height: 0;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Hide */
.hidden {
  display: none;
}

footer {
  display: none;
}

@media (max-width: 48rem) {
  .exercise-wrapper {
    flex-direction: column;
    padding: 1rem 1rem 1rem 1rem;
    padding-right: 8rem;
  }

  .interview-gallery {
    width: min(calc(100vh - 9rem), calc(100vw - 4rem));
    height: min(calc(100vh - 9rem), calc(100vw - 4rem));
    max-width: calc(100vw - 2rem);
    gap: 0.5rem;
  }

  .gallery-item {
    aspect-ratio: 2 / 1;
  }
}
