/* =========================
   Catalogue
========================= */

.catalogue {
  height: 50vh;
  min-height: 500px;

  display: flex;
  justify-content: center;
  align-items: flex-end;

  position: relative;
  overflow: hidden;
}

.background-container {
  width: 100%;

  background-color: var(--color-dark);

  display: flex;
  justify-content: center;
  align-items: center;

  position: relative;
}

.background-container .section-heading {
  width: 100%;
  max-width: var(--container-max);

  display: flex;
  flex-direction: column;
  gap: var(--gap-30);

  padding: var(--gap-50) var(--container-pad);

  position: relative;
  z-index: 2;
}

.background-container .section-heading h2 {
  width: 40%;
  margin: 0;

  color: var(--color-white);

  font-family: var(--font-primary);
  font-size: var(--fs-h2);
  font-weight: var(--fw-regular);
  line-height: 100%;
}

.background-container .section-heading p {
  width: 40%;
  margin: 0;

  color: var(--color-white);

  font-family: var(--font-secondary);
  font-size: var(--fs-body);
  line-height: 120%;
}

/* =========================
   Catalogue Images
========================= */

.catalogue-image {
  width: 50%;

  position: absolute;
  right: 0;
  bottom: 0;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  z-index: 1;
}

.catalogue-image img {
  display: block;
  width: 22%;
  height: auto;

  position: absolute;

  box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.25);
}

/* Image 1 — behind */
.catalogue-image img:nth-child(1) {
  z-index: 1;
}

/* Image 2 — TOP */
.catalogue-image img:nth-child(2) {
  z-index: 3;
}

/* Image 3 — behind */
.catalogue-image img:nth-child(3) {
  z-index: 2;
}

@media (max-width: 1024px) {
  .catalogue-image {
    width: 48%;
  }

  .catalogue-image img {
    width: 42%;
  }

  .catalogue-image img:nth-child(1) {
    transform: rotate(-30deg) translateX(20px) translateY(30px);
  }

  .catalogue-image img:nth-child(2) {
    transform: scale(1.25);
  }

  .catalogue-image img:nth-child(3) {
    transform: rotate(30deg) translateX(-20px) translateY(30px);
  }
}

@media (max-width: 767px) {
  .catalogue {
    min-height: 450px;
    height: auto;
    min-height: 0;
  }

  .background-container .section-heading {
    padding-block: var(--gap-40);
  }

  .background-container .section-heading h2,
  .background-container .section-heading p {
    width: 50%;
  }

  .background-container {
    height: auto;

    flex-direction: column;
    align-items: stretch;

    overflow: hidden;
  }

  /* Content */

  .background-container .section-heading {
    width: 100%;

    gap: var(--gap-20);

    padding: var(--gap-40) var(--container-pad) var(--gap-30);
  }

  .background-container .section-heading h2,
  .background-container .section-heading p {
    width: 100%;
  }

  /* Image Area */

  .catalogue-image {
    width: 100%;
    height: 300px;

    position: relative;
    right: auto;
    bottom: auto;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    margin-top: var(--gap-10);
  }

  .catalogue-image img {
    width: 45%;
    max-width: 150px;
    height: auto;

    flex-shrink: 0;
  }
}
