.gift-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.gift-page__content {
  width: 100%;
  min-width: 0;
}

/* Static counterpart of the home hero in front-page.css. */
.gift-hero {
  position: relative;
  width: 100%;
  max-width: 1600px;
  min-height: 700px;
  margin: 0 auto;
  overflow: hidden;
  font-family: var(--font-family);
  background-color: var(--black);
}

.gift-hero__media {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}

.gift-hero__overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 7.29%, rgba(102, 102, 102, 0) 60.83%), linear-gradient(90deg, rgba(102, 102, 102, 0) 27.74%, rgba(0, 0, 0, 0.3) 100%);
}

.gift-hero__container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  padding-top: 133px !important;
  padding-bottom: 50px !important;
}

.gift-hero__content {
  width: 100%;
  max-width: 520px;
}

.gift-hero__eyebrow,
.gift-hero__heading,
.gift-hero__description {
  margin-top: 0;
  font-family: var(--font-family);
  line-height: 120%;
  letter-spacing: -0.02em;
}

.gift-hero__eyebrow {
  margin-bottom: 18px;
  font-size: 12px;
  font-weight: 400;
  color: var(--grey-elements);
}

.gift-hero__heading {
  margin-bottom: 15px;
  font-size: 38px;
  font-weight: 500;
  color: var(--white);
}

.gift-hero__description {
  max-width: 458px;
  margin-bottom: 56px;
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
}

.gift-hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.gift-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.gift-hero__button:active {
  transform: translateY(1px);
}

.gift-hero__button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.gift-selection {
  padding: 100px 0;
}

.gift-selection+.gift-selection {
  padding-top: 0;
}

.gift-selection__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  column-gap: 30px;
  margin-bottom: 50px;
}

.gift-selection__title {
  grid-column: 1 / -1;
  margin: 0 0 25px;
  font-family: var(--font-family);
  font-size: 42px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: var(--black);
}

.gift-selection__description {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 140%;
  color: var(--grey);
}

.gift-selection__label {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  font-family: var(--font-family);
  font-weight: 500;
  color: var(--red);
  font-size: 18px;
  line-height: 140%;
  white-space: nowrap;
}

.gift-selection__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 29px;
}

.gift-selection__card {
  position: relative;
  display: flex;
  flex: 1 1 calc((100% - 58px) / 3);
  flex-direction: column;
  min-width: 0;
  height: 394px;
  padding: 30px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--black);
  color: var(--white);
}

.gift-selection__card::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(102, 102, 102, 0) 30.65%, #000 96.92%);
  pointer-events: none;
  content: "";
}

.gift-selection__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gift-selection__price {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 35px;
  margin: 0;
  padding: 9px 25px;
  border-radius: 8px;
  background: var(--white);
  color: var(--red);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 120%;
  text-align: center;
  white-space: nowrap;
}

.gift-selection__content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 20px;
}

.gift-selection__heading {
  margin: 0 0 20px;
  color: var(--white);
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.02em;
}

.gift-selection__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(100%, 208px);
  font-size: 14px !important;
}

.gift-selection__button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.gift-format__header .gift-selection__title {
  grid-column: 1;
  margin-bottom: 0;
}

.gift-format__header .gift-selection__label {
  grid-row: 1;
  margin-bottom: 0;
}

.gift-company {
  color: var(--black);
  font-family: var(--font-family);
}

.gift-company__layout {
  display: grid;
  grid-template-columns: max(30px, calc((100% - 1180px) / 2)) minmax(0, 574px) minmax(40px, 1fr) 564px;
  grid-template-areas: ". content . media";
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.gift-company__content {
  grid-area: content;
  align-self: center;
  min-width: 0;
  padding: 40px 0;
}

.gift-company__heading {
  max-width: 480px;
  margin: 0 0 20px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 42px;
  line-height: 120%;
  color: var(--black);
}

.gift-company__text {
  max-width: 460px;
  margin: 0 0 45px;
  font-size: 18px;
  font-weight: 500;
  line-height: 120%;
}

.gift-company__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  width: 358px !important;
}

.gift-company__button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.gift-company__media {
  position: relative;
  grid-area: media;
  min-width: 0;
  height: 481px;
  overflow: hidden;
  border-radius: 20px;
}

.gift-company__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bd-footer {
  margin-top: 0 !important;
}

/* The photo meets the viewport edge below the requested 1600px layout width. */
@media screen and (max-width: 1599px) {
  .gift-company__media {
    border-radius: 20px 0 0 20px;
  }
}

@media screen and (max-width: 1439px) {
  .gift-hero__content {
    max-width: 550px;
  }
}

@media screen and (max-width: 1279px) {
  .gift-hero__description {
    max-width: 545px;
  }
}

@media screen and (max-width: 1023px) {
  .gift-company__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "content" "media";
  }

  .gift-company__content {
    padding: 100px 30px 50px;
  }

  .gift-company__heading {
    max-width: 100%;
    font-size: 36px;
  }

  .gift-company__text {
    max-width: 470px;
    margin-bottom: 30px;
    font-size: 16px;
  }

  .gift-company__media {
    height: 395px;
    border-radius: 20px 20px 0 0;
  }

  .gift-hero {
    min-height: 630px;
  }

  .gift-hero__container {
    padding-top: 100px !important;
  }

  .gift-hero__content {
    max-width: 530px;
  }

  .gift-hero__description {
    font-size: 16px;
    max-width: 482px;
    margin-bottom: 50px;
  }

  .gift-selection__title {
    font-size: 36px;
    margin-bottom: 20px;
  }

  .gift-selection__header {
    column-gap: 25px;
    margin-bottom: 40px;
  }

  .gift-selection__description {
    max-width: 385px;
  }

  .gift-selection__description,
  .gift-selection__label {
    font-size: 16px;
  }

  .gift-selection__grid {
    gap: 25px;
  }

  .gift-selection__card {
    flex-basis: calc((100% - 25px) / 2);
    height: 333px;
    padding: 25px;
  }

  .gift-selection__price {
    padding: 9px 45px;
  }

  .gift-selection__heading {
    font-size: 16px;
    margin-bottom: 18px;
    max-width: 395px;
  }
}

@media screen and (max-width: 767px) {
  .gift-company__content {
    padding: 80px 15px 40px;
  }

  .gift-company__heading {
    margin-bottom: 18px;
    font-size: 26px;
    max-width: 250px;
  }

  .gift-company__text {
    max-width: 300px;
    font-size: 14px;
  }

  .gift-company__media {
    height: 292px;
  }

  .gift-hero {
    min-height: 500px;
  }

  .gift-hero__container {
    padding-top: 50px !important;
  }

  .gift-hero__content {
    max-width: 430px;
  }

  .gift-hero__eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
  }

  .gift-hero__heading {
    margin-bottom: 16px;
    font-size: 26px;
  }

  .gift-hero__description {
    margin-bottom: 30px;
    font-size: 14px;
    max-width: 370px;
  }

  .gift-hero__actions {
    gap: 12px;
  }

  .gift-hero__button {
    max-width: 232px;
    min-height: 48px;
  }

  .gift-selection {
    padding: 80px 0;
  }

  .gift-selection__header {
    margin-bottom: 30px;
  }

  .gift-selection__title {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .gift-selection__description,
  .gift-selection__label {
    font-size: 14px;
  }

  .gift-selection__card {
    flex-basis: 100%;
    height: 306px;
    padding: 20px;
  }

  .gift-selection__heading {
    max-width: 360px;
  }
}

@media screen and (max-width: 550px) {
  .gift-hero__content {
    max-width: 340px;
  }

  .gift-hero__description {
    max-width: 330px;
  }

  .gift-selection__header {
    column-gap: 8px;
  }

  .gift-selection__title {
    grid-column: 1;
    max-width: 258px;
  }

  .gift-selection__description {
    grid-column: 1 / -1;
    max-width: 320px;
  }

  .gift-selection__heading {
    max-width: 281px;
  }

  .gift-selection__label {
    grid-row: 1;
    margin-bottom: 18px;
  }
}

@media screen and (max-width: 474px) {
  .gift-hero__content {
    max-width: 100%;
  }
}

@media screen and (max-width: 424px) {
  .gift-hero__content {
    max-width: 320px;
  }
}

@media screen and (max-width: 374px) {
  .gift-selection__title {
    font-size: 20px;
  }

  .gift-selection__description,
  .gift-selection__label {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift-hero__button {
    transition: none;
  }
}
