.wedding-dress {
  display: grid;
  grid-template-columns: minmax(220px, 0.48fr) minmax(0, 1fr);
  grid-template-areas:
    "image heading"
    "image palette";
  align-items: start;
  gap: 24px clamp(28px, 4vw, 56px);
  max-width: 1040px;
  margin: 62px auto 30px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(239, 191, 191, 0.35);
  background: rgba(12, 12, 12, 0.82);
  color: #ffffff;
}

.wedding-dress__heading {
  grid-area: heading;
  align-self: end;
}

.wedding-dress__image {
  grid-area: image;
  overflow: hidden;
  border: 1px solid rgba(239, 191, 191, 0.45);
  background-color: #450f1c;
}

.wedding-dress__image img {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}

.wedding-dress__eyebrow {
  margin: 0 0 12px;
  color: #efbfbf;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wedding-dress__heading h2 {
  margin: 0 0 18px;
  color: #ffffff;
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.25;
}

.wedding-dress__heading > p:not(.wedding-dress__eyebrow) {
  max-width: 550px;
  margin: 0;
  color: #e5d8d8;
  font-size: 17px;
  line-height: 1.6;
}

.wedding-dress__palette {
  display: grid;
  grid-area: palette;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wedding-dress__palette li {
  min-width: 0;
  color: #f1e3e3;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.wedding-dress__swatch {
  display: block;
  width: min(100%, 88px);
  aspect-ratio: 1;
  margin: 0 auto 12px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.wedding-dress__swatch--deep {
  background-color: #450f1c;
}

.wedding-dress__swatch--burgundy {
  background-color: #76182a;
}

.wedding-dress__swatch--rose {
  background-color: #9c686a;
}

.wedding-dress__swatch--blush {
  background-color: #efbfbf;
}

@media (max-width: 900px) {
  .wedding-dress {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "image"
      "palette";
    gap: 24px;
    max-width: 620px;
  }

  .wedding-dress__image {
    width: min(100%, 280px);
    margin: 0 auto;
  }

  .wedding-dress__heading {
    width: 100%;
    margin-bottom: 6px;
    text-align: center;
  }

  .wedding-dress__heading > p:not(.wedding-dress__eyebrow) {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 540px) {
  .wedding-dress {
    margin-top: 42px;
  }

  .wedding-dress__palette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 16px;
  }
}
