/* Contact ------------------------------------------------------------- */

/* The shop's contact details, read from its settings, beside an optional
   photo. The details come first in the markup, so a screen reader meets the
   address before the picture; from 640px the two stand side by side and
   --photo-left swaps them on screen only. On a phone the photo sits above
   the details, cut wide and short, so the address still reaches the first
   screen. */
.contact {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

/* A grid column shrinks no further than its longest word unless told to,
   and a long e-mail address is one word: without this it pushes the column
   past a phone's edge. */
.contact__body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.contact__lead {
  margin-bottom: var(--space-5);
}

.contact__details {
  display: grid;
  gap: var(--space-3);
  font-style: normal;
}

.contact__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
}

.contact__row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--ink-soft);
}

.contact__row .icon {
  flex: none;
  margin-top: 0.15em;
  color: var(--primary);
}

.contact__photo {
  order: -1;
  margin: 0;
}

.contact__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.contact__photo > .photo-credit {
  margin-top: var(--space-1);
}

@media (min-width: 640px) {
  .contact--with-photo {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .contact__photo {
    order: 0;
  }

  .contact--photo-left .contact__photo {
    order: -1;
  }

  .contact__img {
    aspect-ratio: 4 / 3;
  }
}
