/* This stylesheet is loaded by the Gansu page only. */
body.hwt-gansu-9d8n .gansu-journey-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 28px;
}

body.hwt-gansu-9d8n .gansu-journey-gallery__card {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ivory);
  box-shadow: 0 6px 22px rgba(18, 61, 51, 0.05);
}

body.hwt-gansu-9d8n .gansu-journey-gallery__card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc((100% - 28px) / 2);
  justify-self: center;
}

body.hwt-gansu-9d8n .gansu-journey-gallery__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

body.hwt-gansu-9d8n .gansu-journey-gallery__card figcaption {
  padding: 18px 20px;
  color: var(--forest);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

body.hwt-gansu-9d8n .day-photos.cols-1,
body.hwt-gansu-9d8n .day-photos.cols-2,
body.hwt-gansu-9d8n .day-photos.cols-3 {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

body.hwt-gansu-9d8n .day-photos figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: clamp(360px, 34vw, 460px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ivory);
}

body.hwt-gansu-9d8n .day-photos img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

@media (max-width: 800px) {
  body.hwt-gansu-9d8n .gansu-journey-gallery__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: 22px;
  }

  body.hwt-gansu-9d8n .gansu-journey-gallery__card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }

  body.hwt-gansu-9d8n .gansu-journey-gallery__card figcaption {
    padding: 15px 16px;
    font-size: 18px;
  }

  body.hwt-gansu-9d8n .day-photos.cols-1,
  body.hwt-gansu-9d8n .day-photos.cols-2,
  body.hwt-gansu-9d8n .day-photos.cols-3 {
    width: calc(100% + 28px);
    max-width: none;
    margin-left: -14px;
    margin-right: -14px;
    gap: 18px;
  }

  body.hwt-gansu-9d8n .day-photos figure {
    height: auto;
    aspect-ratio: 3 / 2;
    min-height: 220px;
    max-height: 260px;
    border: 0;
    border-radius: 0;
  }

  body.hwt-gansu-9d8n .day-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
