/* sexy marquee for mini guides .. */
#marquee {
  background-color: var(--coral-06);

  --gap: .5rem;

  display: flex;
  gap: var(--gap);

  padding-top: .5rem;
  padding-bottom: .5rem;

  text-decoration: none;
  overflow: hidden;
  transition: padding 150ms 20ms cubic-bezier(0, 0, .2, 1);
}

@media (hover: hover) {
  #marquee:hover {
    padding-top: .75rem;
    padding-bottom: .75rem;
  }
  
  #marquee:hover > div {
    animation-play-state: paused;
  }
}

#marquee > div {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--gap);

  min-width: 100%;

  animation: marqueeeeee 35s linear infinite;
}

#marquee > div p {
  color: white;
  flex: 0 0 auto;
  font-size: clamp(1.125rem, 0.8977rem + 0.9091vw, 1.625rem);
  font-weight: 450; /* bit chunkier than default 435 */
  line-height: 1;
  text-transform: uppercase;
}

#marquee > div svg {
  width: 100%;
  max-width: 1.5rem;
}

#marquee > div svg path {
  fill: var(--saffron-04);
}

@keyframes marqueeeeee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

@media (min-width: 768px) {
  #marquee {
    padding-top: .625rem;
    padding-bottom: .625rem;
  }

  #marquee > div svg {
    max-width: 2.325rem;
  }
}

@media (max-width: 1280px) {
  #marquee {
    position: fixed;
    bottom: 0;
    z-index: 666;
  }
}

/* Remove top margin for the homepage because of illo .. */
html#Home main {
  margin-top: 0;
}

main > section:first-of-type {
  padding-left: var(--document-margin);
  padding-right: var(--document-margin);

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column-reverse;
}

main > section:first-of-type > img {
  /* 
  Add small padding for the mobile illo 
  padding-left: .75rem;
  padding-right: .75rem;
  */

  /* Cause actual size of illo does not fill it .. */
  width: 100%;
}

main > section:first-of-type > img:nth-of-type(1) {
  display: none;
}

main > section:first-of-type > div {
  text-align: center;
}

main > section:first-of-type > div p {
  margin-top: .75rem;
  margin-bottom: 0;
  max-width: 36rem;
}

main > section:first-of-type > div a {
  margin-top: 1.5rem;
  
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
  padding-left: 2rem;
  padding-right: 2rem;

  position: relative;
  display: inline-block;
  font-family: var(--type-font-family-heading);
  
  /* 18px < ... > 26px */
  font-size: clamp(1.125rem, 0.8977rem + 0.9091vw, 1.625rem);
  line-height: 1;
  
  /* Small Mayenne wants it .. */
  letter-spacing: .01em;
  
  text-decoration: none;
  color: var(--saffron-01);
  z-index: 9;
}

main > section:first-of-type > div a:hover svg {
  transform: scale(1.02);
}

main > section:first-of-type > div a:hover svg path {
  fill: var(--ocean-05);
}

main > section:first-of-type > div a > svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  transition: all 200ms 20ms cubic-bezier(0, 0, .2, 1);
}

main > section:first-of-type > div a > svg path {
  fill: var(--raisin);
}

@media (max-width: 640px) {
  #Home .spots > div:nth-child(5),
  #Home .spots > div:nth-child(6) {
    display: none;
  }
}

@media (min-width: 768px) {
  
  main > section:first-of-type > img {
    padding-left: 0;
    padding-right: 0;
  }

  main > section:first-of-type > div p {
    margin-top: 1.5rem;
    margin-bottom: 0;
  }

  main > section:first-of-type > div a {
    margin-top: 2.5rem;
    
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1024px) {
  
  main > section:first-of-type {
    flex-direction: row;
    justify-content: space-between;
  }
  
  main > section:first-of-type > img {
    max-width: 28rem;
    transform-origin: top right;
    transform: scale(1.1);
  }
  
  main > section:first-of-type > div {
    text-align: left;
  }
  
  main > section:first-of-type > img:nth-of-type(1) {
    display: block;
  }
  
  main > section:first-of-type > img:nth-of-type(2) {
    display: none;
  }
}

#Home main > section:nth-of-type(2) > h2,
#Home main > section:nth-of-type(3) > h2 {
  margin-bottom: 0; /* Remove global margin */
  padding-left: var(--document-margin);
  padding-right: var(--document-margin);
}

#Home main .spots,
#Home main .guides {
  /* Demands extra room between h2 .. */
  margin-top: clamp(1.25rem, 0.6818rem + 2.2727vw, 2.5rem);
}

.guides {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  
  padding-left: var(--document-margin);
  padding-right: var(--document-margin);
}

.guides > div {
  display: flex;
  flex-direction: column;
}

.guides > div > a {
  aspect-ratio: 3/4;
  flex-shrink: 0;
  
  position: relative;
  display: block;
  border-radius: var(--border-radius-md);
}

.guides > div > a { background-color: var(--cosmos-02); }
.guides > div:nth-of-type(2n+1) > a { background-color: var(--wine-02); }

@media (hover: hover) {
  .guides > div > a:hover img {
    transform: translateY(-6px);
  }
}

.guides > div > a:focus img {
  box-shadow: 0 0 0 5px rgb(247 85 37 / 30%);
}

.guides img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-md);
  transition: transform 150ms 20ms cubic-bezier(0, 0, .2, 1);
}

.guides .details {
  margin-top: 1rem;
}

.guides h3 > a {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  transition: transform 150ms 20ms cubic-bezier(0, 0, .2, 1);
}

@media (hover: hover) {
  .guides h3 > a:hover {
    color: var(--coral-05);
    transform: translateX(2px);
  }
}

@media (min-width: 640px) {
  
  .guides {
    gap: 1.5rem;
  }
  
  .guides > div h3 {
    padding-right: 1rem;
  }
  
  .guides > div > a {
    width: auto;
    aspect-ratio: 3/4;
  }
  
  .guides .details {
    margin-top: 1.25rem;
  }
}

@media (min-width: 768px) {

  .guides {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .guides > div > a {
    aspect-ratio: 3/4;
  }

  .guides .details {
    margin-top: 1.5rem;
  }
}

.rejoindre-et-proposer {
  padding-left: var(--document-margin);
  padding-right: var(--document-margin);
}

.rejoindre-et-proposer > div {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, minmax(0px, auto) );

  justify-items: start;
  align-items: left;

  text-decoration: none;
  color: inherit;
}

.rejoindre-et-proposer > div a {
  margin-top: 1rem;
}

.rejoindre-et-proposer > div:nth-of-type(1) img {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-right: 1.25rem;
}

.rejoindre-et-proposer > div:nth-of-type(1) h3 {
  grid-column: 2 / span 3;
}

.rejoindre-et-proposer > div:nth-of-type(1) p {
  grid-column: 2 / span 3;
}

.rejoindre-et-proposer > div:nth-of-type(1) a {
  grid-column: 2 / span 4;
}

.rejoindre-et-proposer > div:nth-of-type(2) img {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-right: 1.25rem;
}

.rejoindre-et-proposer > div:nth-of-type(2) h3 {
  grid-column: 2 / span 3;
}

.rejoindre-et-proposer > div:nth-of-type(2) p {
  grid-column: 2 / span 3;
}

.rejoindre-et-proposer > div:nth-of-type(2) a {
  grid-column: 2 / span 3;
}

.rejoindre-et-proposer img {
  max-height: 14rem;
}

.rejoindre-et-proposer > span {
  display: block;

  padding-top: .75rem;
  padding-bottom: .75rem;

  width: 100%;
  height: 90%;

  background-color: rgb(0 0 0 / 0%);
}

@media (min-width: 768px) {

  .rejoindre-et-proposer {
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
    align-items: center;
    column-gap: 2.5rem;
  }

  .rejoindre-et-proposer > span {
    padding-top: 0;
    padding-bottom: 0;
    background-color: rgb(36 33 36 / 5%);
  }

  .rejoindre-et-proposer > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    text-decoration: none;
    color: inherit;
  }

  .rejoindre-et-proposer > div img {
    margin-bottom: 1.5rem;
  }
  
  .rejoindre-et-proposer > div a {
    margin-top: 1.5rem;
  }
}