

/* -- MEMORIES SLIDER -- */
.memories {
  position: relative;
}

.memory-viewport {
  overflow: hidden;
  padding: 14px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.memory-track {
  display: flex;
  gap: 18px;
  width: max-content;
  /* JS drives the transform, one card at a time with a pause between */
  transition: transform 1.15s cubic-bezier(.5, .05, .2, 1);
  will-change: transform;
}

.memory-track>.memory-card {
  width: 300px;
  flex: 0 0 300px;
}

/* fallback when JS is off: plain horizontal scroll */
.no-js .memory-viewport {
  overflow-x: auto;
}

.memory-track::-webkit-scrollbar {
  height: 6px;
}

.memory-track::-webkit-scrollbar-track {
  background: var(--line);
  border-radius: 99px;
}

.memory-track::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
}

.memory-card {
  margin: 0;
  cursor: zoom-in;
  background: linear-gradient(145deg, #1a1f2e, #141820);
  border: 1px solid rgba(232, 56, 79, 0.12);
  border-radius: 14px;
  padding: 10px 10px 12px;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s;
}

/* scattered polaroid tilt */
.memory-track>.memory-card:nth-child(odd) {
  transform: rotate(-1.7deg);
}

.memory-track>.memory-card:nth-child(even) {
  transform: rotate(1.5deg);
}

.memory-card:hover {
  transform: rotate(0deg) translateY(-9px);
  box-shadow: 0 20px 44px rgba(232, 56, 79, 0.15);
  z-index: 10;
}

/* washi-tape accent on top */
.memory-card::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 76px;
  height: 19px;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(120deg, rgba(232, 56, 79, 0.3), rgba(240, 192, 64, 0.35));
  border-inline: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  z-index: 2;
  pointer-events: none;
}

.memory-card .gallery-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: #0c0e13;
}

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .65s cubic-bezier(.2, .7, .3, 1);
}

.memory-card:hover img {
  transform: scale(1.07);
}

.memory-card figcaption {
  display: grid;
  gap: 3px;
  padding: 12px 6px 2px;
  background: none;
}

.memory-card figcaption strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
  transition: color .25s;
}

.memory-card figcaption span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.memory-card:hover figcaption strong {
  color: var(--brand);
}

.memory-card.placeholder-card {
  cursor: default;
}

.memory-card.placeholder-card .ph-img {
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  border: 2px dashed rgba(232, 56, 79, 0.2);
  background:
    radial-gradient(circle at 30% 30%, rgba(232, 56, 79, 0.08), transparent 60%),
    radial-gradient(circle at 75% 75%, rgba(240, 192, 64, 0.08), transparent 55%),
    #141820;
}

.slider-nav {
  display: flex;
  gap: 8px;
}

.slider-nav button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: background .2s, color .2s, border-color .2s;
}

.slider-nav button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 36px);
}

.heading-row .section-heading {
  margin-bottom: 0;
}