/* Our Creations — matches homepage What We Make type, colour and cards. */
.creations-page {
  position: relative;
  overflow: visible;
  padding: 160px 72px 96px;
  background: #fff;
  color: var(--black);
  min-height: 70vh;
}

.creations-page .products-bg-watermark {
  opacity: 1;
  filter: none;
}

.creations-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  position: relative;
  z-index: 1;
}

.creations-page .products-title {
  color: var(--black);
}

.creations-page .products-subtitle {
  color: var(--text-mid);
  max-width: 320px;
}

.creations-filters {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: -28px 0 56px;
  padding-bottom: 4px;
}

.creations-filter {
  appearance: none;
  background: none;
  border: 0;
  padding: 0 0 8px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.42);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.creations-filter:hover,
.creations-filter:focus-visible {
  color: var(--black);
  outline: none;
}

.creations-filter.is-active {
  color: var(--red, #d92d27);
  border-bottom-color: var(--red, #d92d27);
}

.creations-category {
  position: relative;
  z-index: 1;
  margin-bottom: 72px;
}

.creations-category[hidden],
.creations-category.is-filtered-out {
  display: none;
}

.creations-cat-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.1;
  color: var(--black);
  margin: 0 0 28px;
}

.creations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.creation-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #1c1c1c;
  cursor: pointer;
  text-align: left;
}

.creation-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.creation-card:hover img,
.creation-card:focus-visible img {
  transform: scale(1.06);
  filter: none;
}

.creation-card-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  background: none;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111;
  text-shadow: none;
}

.creation-box {
  position: absolute;
  z-index: 8;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: var(--off-white, #faf8f6);
  border: 1px solid rgba(217, 45, 39, 0.16);
  border-radius: 4px;
  padding: 18px 16px 14px;
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.12);
  overflow: hidden;
  /* Let hover pass through so leaving the card closes the box. */
  pointer-events: none;
}

.creation-box[hidden] {
  display: none;
}

.creation-box h3 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--red);
  margin: 0 0 8px;
  flex: 0 0 auto;
}

.creation-box p {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-mid);
  margin: 0 0 10px;
  flex: 0 1 auto;
  max-height: none;
  overflow: auto;
  min-height: 0;
}

.creation-box img {
  display: block;
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

@media (max-width: 1100px) {
  .creations-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .creations-page {
    padding: 120px 24px 64px;
  }
  .creations-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 48px;
  }
  .creations-page .products-subtitle {
    text-align: left;
    max-width: 100%;
  }
  .creations-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 16px;
    margin: -12px 0 40px;
    overflow: visible;
  }
  .creations-filter {
    flex: 0 1 auto;
    font-size: 11px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    max-width: calc(33.333% - 12px);
    text-align: center;
  }
  .creations-category {
    margin-bottom: 48px;
  }
  .creations-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  /* Match homepage product cards: title sits below the photo with space. */
  .creation-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .creation-card img {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: auto !important;
    object-fit: cover;
    object-position: center center;
    margin-bottom: -2px;
  }
  .creation-card-label {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    flex: 0 0 auto;
    min-height: 3.4em;
    display: flex;
    align-items: flex-end;
    padding: 12px 12px 14px;
    font-size: 10px;
    letter-spacing: 0.1em;
    line-height: 1.35;
    background: transparent;
  }
  .creation-box {
    padding: 18px 14px 14px;
  }
  .creation-box h3 {
    font-size: 15px;
    margin-right: 16px;
  }
  .creation-box p {
    font-size: 11px;
    line-height: 1.5;
  }
}
