/* PhotoCarousel — auto-scrolling image gallery (drag also works). Cards share
   a fixed row height with varied widths, 8px radius, 12px gap (Figma node
   18716-12073). Assumes Inter (variable) + IBM Plex Mono load globally. */

.pg {
  --container-max: 90rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 48px;
  font-family: Inter, sans-serif;
}

@media (min-width: 1440px) {
  .pg {
    --container-max: 100rem;
  }
}

@media (min-width: 1920px) {
  .pg {
    --container-max: 120rem;
  }
}

/* ── Optional header (matches the other carousels' container alignment) ───── */
.pg__container {
  display: flex;
  max-width: var(--container-max);
  width: 90%;
  margin: 0 auto;
}

.pg__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.pg__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #5c5a57;
  font-feature-settings: "salt" 1;
}

.pg__eyebrow-dot {
  display: block;
  width: 8px;
  height: 8px;
  background-color: #c1bafe;
  flex-shrink: 0;
}

.pg__heading {
  margin: 0;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.1;
  letter-spacing: -1.44px;
  color: #131115;
}

/* ── Track — horizontal drag-scroll, auto-scrolled by the component ───────── */
.pg__track {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.pg__track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.pg__track--dragging {
  cursor: grabbing;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.pg__card {
  position: relative;
  flex: 0 0 auto;
  width: var(--pg-w);
  height: var(--pg-h);
  overflow: hidden;
  border-radius: 8px;
  background-color: #ecebe9;
}

.pg__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

/* ── Tablet ───────────────────────────────────────────────────────────────── */
@media (max-width: 991px) {
  .pg__container {
    max-width: none;
    width: 100%;
    padding: 0 5vw;
    box-sizing: border-box;
  }
  .pg__track {
    padding: 32px 5vw;
  }
  .pg__heading {
    font-size: 40px;
    letter-spacing: -1.2px;
  }
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
/* Scales the desktop card size down proportionally (no dedicated mobile
   Figma frame for this node): width ×0.8167, height ×1.225, 6px radius,
   13px gap. */
@media (max-width: 767px) {
  .pg {
    gap: 32px;
  }
  .pg__container {
    padding: 0 24px;
  }
  .pg__track {
    gap: 9.8px;
    padding: 0 24px 0 0;
  }
  .pg__card {
    width: calc(var(--pg-w) * 0.8167);
    height: calc(var(--pg-h) * 1.225);
    border-radius: 6px;
  }
  .pg__heading {
    font-size: 32px;
    letter-spacing: -0.96px;
  }
  .pg__eyebrow {
    font-size: 14px;
  }
}

