/* PhotoCarousel — drag-to-scroll image gallery with hover-to-enlarge cards.
   Varied card sizes aligned to the bottom, 8px radius, 16px gap (Figma node
   18098-24825). Assumes Inter (variable) + IBM Plex Mono load globally. */

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

/* ── Optional header (matches the other carousels' container alignment) ───── */
.pg__container {
  display: flex;
  max-width: 90rem;
  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;
  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, cards anchored to the bottom edge ────── */
.pg__track {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 16px;
  /* Vertical padding leaves room for the hover scale-up; horizontal padding
     aligns the first/last card with the site container. */
  /* padding: 36px max(5vw, calc((100vw - 90rem) / 2)); */
  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;
  transform-origin: center bottom;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* Hover-to-enlarge — disabled while dragging so the scale doesn't fight the scroll. */
.pg__track:not(.pg__track--dragging) .pg__card:hover {
  transform: scale(1.08);
  z-index: 2;
  box-shadow: 0 18px 40px rgba(19, 17, 21, 0.18);
}

.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 ───────────────────────────────────────────────────────────────── */
/* ── Mobile — Figma node 18098-24107 ─────────────────────────────────────────
   Cards scale uniformly to 0.8167× the desktop size (e.g. 200×260 → 163×212),
   6px radius, 13px gap, vertically centered. */
@media (max-width: 767px) {
  .pg {
    gap: 32px;
  }
  .pg__container {
    padding: 0 24px;
  }
  .pg__track {
    align-items: center;
    gap: 13px;
    padding: 0 24px 0 0;
  }
  .pg__card {
    width: calc(var(--pg-w) * 0.8167);
    height: calc(var(--pg-h) * 0.8167);
    border-radius: 6px;
  }
  .pg__heading {
    font-size: 32px;
    letter-spacing: -0.96px;
  }
  .pg__eyebrow {
    font-size: 14px;
  }
  /* Touch devices scroll natively; skip the hover scale to avoid sticky states. */
  .pg__track:not(.pg__track--dragging) .pg__card:hover {
    transform: none;
    box-shadow: none;
  }
}

