.genocide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  background-color: black;
  /* padding: 0 0 0 6px; */
}


.gc-word {
  color: darkred;
  font-weight: bold;
}

/* Grid for the scroll list */
.genocide-scroll-container {
  display: grid;
  grid-template-columns: 1fr; 
  width: calc(100% - 12px);
  box-sizing: border-box;
  gap: 6px;
  margin-left: 10px;
}

/* Center cards horizontally when only one column */
@media (orientation: landscape) and (max-width: 499.98px),
       (orientation: landscape) and (resolution >= 2dppx) and (max-width: 999.98px),
       (max-width: 499.98px) {
  .genocide-scroll-container {
    justify-items: center;
    width: 100%;
  }
  .genocide-card {
    width: 100%;
  }
}

.genocide-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  padding: 4px;
  max-width: 480px;
  background: gray;
  color: white;
  &.g {
    background-size: 300%;
    background-position: center;;
    background-image: url('https://ik.imagekit.io/ubx4wnixel/images/blood.png');
    background-size: cover;
  }
  .gc-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
  }
  .gc-name {
    margin-top: 2vw;
    font-size: clamp(14px, 7vh, 26px);
    text-align: center;
  }
  .gc-title {
    text-align: center;
    font-size: clamp(12px, 7vw, 22px);
  }
  .gc-quotes {
    font-size: clamp(18px, 4vh, 21px);
    /* margin-left: 3vw; */
    min-height: 32vh;
    width: 85%;
    padding: 0 clamp(4px, 1.4vw, 6px);
    /* background-color: black; */
    color: yellow;
  }
  .gc-image {
    width: 86%;
    aspect-ratio: 1/1;
    img {
      border-radius: 8%;
      width: 100%;
      aspect-ratio: 1/1;
      object-fit: cover;
      margin-bottom: 2vw;
    }
  }
  .gc-image2 {
    margin: clamp(6px, 4vh, 20px) 0;
    height: 200px;
    aspect-ratio: 1/1;
    img {
      border-radius: 8%;
      width: 100%;
      aspect-ratio: 1/1;
      object-fit: cover;
      margin-bottom: 2vw;
    }
  }
}


/* Responsive multi-column grid for landscape when there's enough space */
@media (orientation: landscape) and (min-width: 500px) {
    .gc-top {
      color:red;
      background: black;
      font-size: clamp(18px, 7vh, 40px);
      font-weight: bold;
      text-align: center;
      position: sticky;
      display: flex;
      justify-content: center;
      align-items: center;
      top: 0;
      left: 0;
      right: 0;
      z-index: 1000;
      width: 100%;
      height: 8vh;
      padding: 6px 10px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

    .genocide-scroll-container {
      /* Grow from 2 to many columns automatically based on space */
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


/* High-DPR (>=2) up to 1000px: force one column & full-width (cross-browser) */
@media (max-width: 500px) and (min-resolution: 1dppx),
       (max-width: 1000px) and (min-resolution: 2dppx),
       (max-width: 1000px) and (-webkit-min-device-pixel-ratio: 2) {
  .genocide-scroll-container {
    grid-template-columns: 1fr !important;
    justify-items: stretch !important;
    width: 100% !important;
    padding: 0 0 0 2%;
    gap: 24px;
  }

  .gc-top {
    color:red;
    background: black;
    font-size: clamp(26px, 4.8vh, 72px);
    font-weight: bold;
    text-align: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    padding: 2vh 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .genocide-card {
    position: relative;
    width: 96% !important;
    max-width: none !important;
    min-height: 70vh;
    padding-bottom: 2vh;
    margin-left: 0.6vw;
    /* max-width: 480px; */
    .gc-name {
      padding: 0 2vw;
      margin-top: 2vw;
      font-size: clamp(14px, 5vh, 56px);
      /* font-size: 46px; */
      text-align: center;
    }
    .gc-title {
      text-align: center;
      font-size: clamp(20px, 5.1vh, 36px);
    }
    .gc-quotes {
      display: flex;
      margin: 0 0 2vh 4vw;
      flex-direction: column;
      justify-content: space-around;
      align-items: center;
      font-size: clamp(24px, 7vw, 60px);
      min-height: 28vh;
      width: 80%;
      padding: 2vh clamp(4px, 1.4vw, 6px);
      color: yellow;
    }
    .gc-image2 {
      margin: clamp(6px, 4vh, 20px) 0;
      height: 60vw;
      aspect-ratio: 1/1;
      img {
        border-radius: 8%;
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        margin-bottom: 2vw;
      }
    }
    .gc-marquee {
      opacity: 0.8;
      font-size: clamp(14px, 6vw, 50px);
      position: absolute;
      bottom: 1%;
      right: 2%;
    }
  }
}

@media (max-width: 500px) and (min-resolution: 1dppx) {

  .genocide-card {
    padding: 0 3vw;
    .gc-name {
      font-size: clamp(14px, 6vh, 32px);
    }
    .gc-title {
      font-size: clamp(10px, 3vh, 24px);
    }
    .gc-quotes {
      min-height: 22vh;
      color: yellow;
    }
  }
}