/**
 * Structure changes to accommodate full bleed gallery
 *
 * 1. Remove default global margin due to gallery being at top
 * 2. Move width lock from main to article
 * 3. Change gap size into nested content size, like spot page article
 */
main {
  margin-top: 0!important; /* 1 */
  max-width: initial!important; /* 2 */
  gap: clamp(1.75rem, 0.8409rem + 3.6364vw, 3.75rem)!important; /* 3 */
}

aside {
  display: flex;

  /* 16px < ... > 24px */
  gap: clamp(1rem, 0.7727rem + 0.9091vw, 1.5rem);

  padding-inline: var(--document-margin);
  scroll-padding-inline: var(--document-margin);

  max-inline-size: 100%;
  overflow-x: auto;
  -ms-scroll-chaining: none;
  -ms-scroll-snap-type: x mandatory;
  scroll-snap-type: x mandatory;
}

aside > figure {
  /* fk no idea .. */
  flex: 0 0 auto;

  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  margin-bottom: 0;
}

aside > figure img {
  border-radius: var(--border-radius-md);
  width: auto;
  height: 100%;

  /* TODO: revisit sizing .. */
  max-height: 55vh;
}

aside > figure figcaption {
  margin-top: .5rem;
  font-size: .875rem;
  opacity: .75;
}

article {
  display: grid;
  grid-template-areas: 
    "left"
    "right";
  grid-template-columns: 1fr;
  grid-template-rows: auto;

  /* 32px < ... > 64px */
  gap: clamp(2rem, 1.0909rem + 3.6364vw, 4rem);

  margin-left: auto;
  margin-right: auto;

  padding-left: var(--document-margin);
  padding-right: var(--document-margin);
}

article > section:first-of-type {
  grid-area: left;
  align-self: start;
}

article > section:first-of-type > header {
  margin-bottom: clamp(1rem, 0.8295rem + 0.6818vw, 1.375rem);
}

article > section:last-of-type {
  display: grid;
  grid-auto-rows: min-content;
  grid-area: right;

  /* between types of spots */
  gap: 2rem;
}

article > section:last-of-type > section {
  display: grid;
  gap: 1rem;
}

article > section:last-of-type > section header {
  display: flex;
  align-items: center;
  gap: .875rem;
}

article > section:last-of-type > section header svg {
  width: auto;
  height: 100%;
  max-height: 2.75rem;
  flex-shrink: 0;
}

article ul > li {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

article ul > li:not(:last-of-type) {
  border-bottom: var(--border-width) solid var(--raisin);
}

article ul > li:first-of-type {
  padding-top: 0;
}

article ul > li:last-of-type {
  padding-bottom: 0;
}

/* Remove global margin coming from p + p .. */
article ul > li p {
  margin-top: 0;
  margin-bottom: 0;
}

article ul > li a {
  color: inherit;
  text-decoration: none;
}

article ul > li a:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  aside > figure figcaption {
    font-size: 1rem;
  }

  article {
    grid-template-areas: 
      "left right";
    grid-template-columns: 1fr 1fr;
  }

  article > section:last-of-type {
    /* between types of spots */
    gap: 3rem;
  }

  article > section:last-of-type > section {
    gap: 1.5rem;
  }

  article > section:last-of-type > section header {
    gap: 1rem;
  }

  article > section:last-of-type > section header svg {
    max-height: 3rem;
  }

  article ul > li {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}