.nice-guide {
  --nice-blue: #e8f0f2;
  --nice-evening: #182f3e;
  --nice-gutter: max(6vw, calc((100% - 1340px) / 2));
}

.nice-guide figure {
  min-width: 0;
  margin: 0;
}

.nice-guide figcaption {
  margin-top: 0.6rem;
  color: #485960;
  font-size: 0.875rem;
  line-height: 1.4;
}

.nice-guide h2 {
  font-size: clamp(2.65rem, 4.55vw, 5.1rem);
}

.nice-guide h2 em {
  color: var(--accent);
}

.nice-guide p {
  margin: 0.9rem 0 1.2rem;
}

.nice-hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(450px, 67vh, 710px);
  overflow: hidden;
  color: #fffaf1;
  background: #2a687d;
}

.nice-hero img,
.nice-hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nice-hero img {
  z-index: -2;
  object-fit: cover;
  object-position: center 53%;
}

.nice-hero::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgb(9 29 44 / 64%), transparent 80%),
    linear-gradient(0deg, rgb(9 29 44 / 65%), transparent 68%);
}

.nice-hero__copy {
  padding: clamp(32px, 5vw, 78px) var(--nice-gutter);
}

.nice-hero h1 {
  margin: 0;
  font-size: clamp(3.75rem, 8.3vw, 8.5rem);
  line-height: 0.99;
}

.nice-hero h1 em {
  display: block;
  color: #ffddad;
}

.nice-hero p {
  max-width: 39ch;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.36rem);
  line-height: 1.55;
}

.nice-jump {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem clamp(1.15rem, 3.8vw, 4.5rem);
  width: 100%;
  padding: 0.55rem 5vw;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.95rem;
  font-weight: 600;
}

.nice-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nice-jump a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.nice-guide section[id] {
  scroll-margin-top: 4.25rem;
}

.nice-shell {
  width: min(88%, 1340px);
  margin-inline: auto;
}

.nice-section {
  padding-block: clamp(54px, 7.25vw, 116px);
}

.nice-market,
.nice-split,
.nice-section__heading {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5.5vw, 90px);
}

.nice-market {
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
}

.nice-copy > p,
.nice-section__heading > p {
  max-width: 54ch;
}

.nice-market__photos {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(10px, 1.55vw, 24px);
}

.nice-market__photos figure:first-child {
  margin-top: clamp(22px, 4vw, 66px);
}

.nice-market__photos img {
  aspect-ratio: 1.14;
  object-fit: cover;
}

.nice-market__photos figure:last-child img {
  aspect-ratio: 0.73;
  object-fit: cover;
}

.nice-beaches {
  background: var(--nice-blue);
}

.nice-beaches__photo img,
.nice-museums__photo img {
  aspect-ratio: 1.25;
  object-fit: cover;
}

.nice-beaches__photo img {
  object-position: center 67%;
}

.nice-dinner__feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  color: #fffbf2;
  background: var(--nice-evening);
}

.nice-dinner__copy {
  align-self: center;
  padding: clamp(38px, 6vw, 96px) clamp(24px, 4vw, 65px) clamp(38px, 6vw, 96px) var(--nice-gutter);
}

.nice-dinner__copy h2 em {
  display: block;
  color: #ffc98f;
}

.nice-dinner__copy p {
  max-width: 44ch;
  margin-bottom: 0;
}

.nice-dinner__feature figure {
  position: relative;
  min-height: clamp(290px, 36vw, 620px);
}

.nice-dinner__feature img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

.nice-dinner__feature figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 6px 12px;
  color: #fffaf1;
  background: rgb(17 34 46 / 82%);
}

.nice-addresses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.8vw, 46px);
  padding-block: clamp(28px, 4.4vw, 72px) 0;
}

.nice-entry {
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
}

.nice-entry h3 {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.5rem);
  line-height: 1.08;
}

.nice-entry p {
  margin: 0.6rem 0;
}

.nice-entry .nice-location {
  margin-top: 0.55rem;
  color: #4a5b63;
  font-size: 0.9rem;
  line-height: 1.45;
}

.nice-addresses .nice-entry {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}

.nice-addresses .nice-entry p:last-of-type {
  margin-bottom: 0.95rem;
}

.nice-addresses .nice-entry .under {
  margin-top: auto;
}

.nice-section__heading {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  margin-bottom: clamp(22px, 3.5vw, 56px);
}

.nice-section__heading p {
  margin: 0;
}

.nice-list {
  display: grid;
  gap: 1.4rem;
}

.nice-events {
  background: #f2e9da;
}

.nice-events .nice-split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
}

.nice-events__photo img {
  aspect-ratio: 1.02;
  object-fit: cover;
  object-position: 57% center;
}

.nice-event-list {
  margin-block: 1.6rem;
}

.nice-event-list .nice-location {
  margin-top: 0;
  color: #834530;
  font-weight: 600;
}

.nice-agenda {
  display: inline-block;
  font-weight: 600;
}

.nice-coast__photo img {
  aspect-ratio: 3.6;
  object-fit: cover;
  object-position: 42% center;
}

.nice-coast__stops {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 4.4vw, 72px);
  margin-top: 1.7rem;
}

.nice-return {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  background: #e6ede7;
}

.nice-return__copy {
  align-self: center;
  padding: clamp(36px, 5.8vw, 92px) 5vw clamp(36px, 5.8vw, 92px) var(--nice-gutter);
}

.nice-return__copy p {
  max-width: 49ch;
}

.nice-return > img {
  height: 100%;
  min-height: 290px;
  max-height: 580px;
  object-fit: cover;
  object-position: center 55%;
}

.nice-return__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.35rem;
}

.nice-credits {
  padding-block: 18px 22px;
  color: #485960;
  font-size: 0.875rem;
}

.nice-credits summary {
  width: fit-content;
  cursor: pointer;
}

.nice-credits a {
  text-decoration: underline;
}

@media (max-width: 1060px) {
  .nice-addresses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem 5vw;
  }
}

@media (max-width: 720px) {
  .nice-guide {
    --nice-gutter: 5vw;
  }

  .nice-hero {
    min-height: clamp(398px, 64vh, 530px);
  }

  .nice-hero img {
    object-position: 65% center;
  }

  .nice-hero h1 {
    font-size: clamp(3.15rem, 13vw, 5.8rem);
  }

  .nice-jump {
    position: static;
    justify-content: flex-start;
    gap: 0 1.2rem;
  }

  .nice-guide section[id] {
    scroll-margin-top: 1rem;
  }

  .nice-shell {
    width: 90%;
  }

  .nice-market,
  .nice-split,
  .nice-section__heading,
  .nice-dinner__feature,
  .nice-events .nice-split,
  .nice-return {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .nice-dinner__feature,
  .nice-return {
    gap: 0;
  }

  .nice-beaches .nice-copy {
    grid-row: 1;
  }

  .nice-beaches__photo img,
  .nice-museums__photo img,
  .nice-events__photo img {
    aspect-ratio: 1.43;
  }

  .nice-dinner__copy,
  .nice-return__copy {
    padding: 42px var(--nice-gutter) 32px;
  }

  .nice-coast__photo img {
    aspect-ratio: 1.85;
  }

  .nice-coast__stops {
    grid-template-columns: minmax(0, 1fr);
  }

  .nice-return > img {
    max-height: 390px;
  }
}

@media (max-width: 480px) {
  .nice-addresses {
    grid-template-columns: minmax(0, 1fr);
  }
}
