.gallery-page {
  background:
    linear-gradient(
      180deg,
      #f5f2ee 0%,
      #f7f4ef 46%,
      #f2ece5 100%
    );
}

.gallery-landing {
  padding: 9rem 0 3.5rem;
}

.gallery-landing__container {
  display: flex;
  flex-direction: column;
  gap: 2.7rem;
}

.gallery-landing__intro {
  max-width: 46rem;
}

.gallery-landing__eyebrow {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--color-primary-variant);
  margin-bottom: 0.9rem;
}

.gallery-landing__title {
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 1.04;
  color: var(--color-primary);
  margin: 0 0 0.7rem;
}

.gallery-landing__subtitle {
  max-width: 40rem;
  font-size: 1.03rem;
  line-height: 1.85;
  color: #474747;
}

.gallery-landing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.gallery-card {
  position: relative;
  min-height: 35rem;
  border-radius: 1.8rem;
  overflow: hidden;
  display: block;
  box-shadow: 0 1.6rem 3rem rgba(0, 0, 0, 0.12);
  transform: translateY(0);
  transition: transform 320ms ease, box-shadow 320ms ease;
}

.gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 2rem 3.5rem rgba(0, 0, 0, 0.16);
}

.gallery-card__media,
.gallery-card__media img,
.gallery-card__overlay {
  position: absolute;
  inset: 0;
}

.gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-card__overlay {
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.10) 0%,
      rgba(0, 0, 0, 0.18) 32%,
      rgba(0, 0, 0, 0.72) 100%
    ),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.34) 0%,
      rgba(0, 0, 0, 0.12) 48%,
      rgba(0, 0, 0, 0.12) 100%
    );
}

.gallery-card__content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 2rem 2rem 2.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.gallery-card__logo-wrap {
  margin-bottom: auto;
  max-width: 12rem;
}

.gallery-card__logo-wrap--diaries {
  max-width: 15rem;
}

.gallery-card__logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.gallery-card__logo--diaries {
  filter: drop-shadow(0 0.4rem 1rem rgba(0, 0, 0, 0.25));
}

.gallery-card__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
  margin: 0 0 0.55rem;
  color: #fff;
  text-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.28);
}

.gallery-card__text {
  max-width: 24rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.75;
  margin-bottom: 1.15rem;
  text-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.22);
}

.gallery-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 9rem;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 248, 240, 0.95);
  color: #161616;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.16);
  transition: var(--transition);
}

.gallery-card:hover .gallery-card__cta {
  transform: translateY(-2px);
  background: #ffffff;
}

.gallery-ribbon {
  padding: 0 0 4.5rem;
  overflow: hidden;
}

.gallery-ribbon__track {
  display: flex;
  width: max-content;
  animation: ribbonMove 34s linear infinite;
  gap: 1rem;
}

.gallery-ribbon__group {
  display: flex;
  gap: 1rem;
}

.gallery-ribbon__group img {
  width: 10rem;
  height: 7rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 0.8rem 1.7rem rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

@keyframes ribbonMove {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 0.5rem));
  }
}

@media screen and (max-width: 1100px) {
  .gallery-landing {
    padding: 8rem 0 3rem;
  }

  .gallery-landing__grid {
    grid-template-columns: 1fr;
  }

  .gallery-card {
    min-height: 31rem;
  }

  .gallery-card__content {
    padding: 1.7rem 1.6rem 1.8rem;
  }
}

@media screen and (max-width: 768px) {
  .gallery-landing {
    padding: 7.4rem 0 2.7rem;
  }

  .gallery-landing__eyebrow {
    font-size: 0.76rem;
    letter-spacing: 0.22em;
  }

  .gallery-landing__title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .gallery-landing__subtitle {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .gallery-landing__grid {
    gap: 1.2rem;
  }

  .gallery-card {
    min-height: 27rem;
    border-radius: 1.35rem;
  }

  .gallery-card__content {
    padding: 1.35rem 1.2rem 1.45rem;
  }

  .gallery-card__logo-wrap {
    max-width: 10.5rem;
  }

  .gallery-card__logo-wrap--diaries {
    max-width: 13rem;
  }

  .gallery-card__text {
    margin-bottom: 0.95rem;
    line-height: 1.7;
  }

  .gallery-card__cta {
    min-width: 8.2rem;
    padding: 0.72rem 1rem;
    font-size: 0.72rem;
  }

  .gallery-ribbon {
    padding-bottom: 4rem;
  }

  .gallery-ribbon__group img {
    width: 8rem;
    height: 5.8rem;
    border-radius: 0.85rem;
  }
}

@media screen and (max-width: 520px) {
  .gallery-card {
    min-height: 24rem;
  }

  .gallery-card__title {
    font-size: 1.7rem;
  }

  .gallery-card__text {
    font-size: 0.92rem;
  }

  .gallery-ribbon__group img {
    width: 7rem;
    height: 5rem;
  }
}
