.page-tourism .site-header h1 {
  max-width: 760px;
}

.tourism-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 32%) minmax(0, 850px);
  gap: clamp(48px, 6.5vw, 110px);
  min-height: 900px;
  padding: 150px 7.2vw 180px 0;
}

.tourism-intro__marker {
  position: relative;
  align-self: start;
  width: 230px;
  height: 210px;
  margin-top: 112px;
}

.tourism-intro__marker span {
  position: absolute;
  top: 74px;
  left: 0;
  width: 154px;
  height: 150px;
  background: var(--red);
}

.tourism-intro__marker img {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 84px;
  width: 145px;
  height: 145px;
}

.tourism-intro__copy {
  max-width: 850px;
}

.tourism-intro__copy p {
  margin: 0 0 42px;
  color: var(--gray);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.tourism-intro__copy strong {
  color: var(--red);
  font-weight: 700;
}

.tourism-intro__anchor {
  color: inherit;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.tourism-intro__anchor:hover,
.tourism-intro__anchor:focus-visible {
  text-decoration: underline;
}

.tourism-text-project-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.tourism-text-project-link:hover,
.tourism-text-project-link:focus-visible {
  text-decoration: underline;
}

.tourism-intro__copy .tourism-intro__closing {
  margin-bottom: 0;
  color: #090909;
}

.tourism-section {
  padding: 150px 0 180px;
}

.tourism-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: 6.25%;
  align-items: center;
}

.tourism-section__copy {
  grid-area: copy;
  width: min(600px, calc(100% - 34px));
}

.tourism-section__copy h2 {
  margin: 0 0 36px;
  color: var(--red);
  font-size: clamp(28px, 2.35vw, 36px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.tourism-section__copy p {
  margin: 0 0 32px;
  color: var(--gray);
  font-size: 19px;
  line-height: 1.4;
  letter-spacing: -0.026em;
}

.tourism-section__copy p:last-child {
  margin-bottom: 0;
}

.tourism-section__copy strong {
  font-weight: 700;
}

.tourism-section__copy .tourism-section__evidence {
  color: #090909;
}

.tourism-subsection {
  margin-top: 34px;
}

.tourism-subsection h3 {
  margin: 0 0 28px;
  color: #4e4e4e;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.026em;
}

.tourism-subsection p {
  color: #090909;
}

.tourism-gallery {
  grid-area: visual;
  min-width: 0;
}

.tourism-project-link,
.tourism-project-link img {
  display: block;
}

.tourism-project-link {
  position: relative;
  overflow: hidden;
}

.tourism-project-link:focus-visible {
  outline-offset: 5px;
}

.tourism-project-link img {
  width: 100%;
  height: auto;
}

@media (hover: hover) and (pointer: fine) {
  .tourism-project-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 13px 16px;
    color: #fff;
    background: var(--red);
    content: attr(data-caption);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }

  .tourism-project-link:hover::after,
  .tourism-project-link:focus-visible::after {
    opacity: 1;
    visibility: visible;
  }
}

.tourism-section--identity {
  min-height: 1140px;
}

.tourism-section--identity .tourism-section__inner,
.tourism-section--materials .tourism-section__inner {
  grid-template-areas: "visual copy";
}

.tourism-section--identity .tourism-section__copy,
.tourism-section--materials .tourism-section__copy {
  justify-self: start;
}

.tourism-gallery--identity {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  align-items: start;
  gap: 24px 20px;
  max-width: 700px;
}

.tourism-gallery--identity .tourism-project-link--routes {
  grid-column: 1 / -1;
}

.tourism-gallery--identity .tourism-project-link--porto {
  align-self: start;
}

.tourism-gallery--identity .tourism-project-link--zamora {
  width: 92%;
}

.tourism-section--signage {
  min-height: 1230px;
}

.tourism-section--signage .tourism-section__inner,
.tourism-section--digital .tourism-section__inner {
  grid-template-areas: "copy visual";
}

.tourism-section--signage .tourism-section__copy,
.tourism-section--digital .tourism-section__copy {
  justify-self: start;
  width: min(535px, calc(100% - 9.03vw));
  margin-left: 9.03vw;
}

.tourism-gallery--signage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 30px 22px;
}

.tourism-gallery--signage .tourism-project-link:nth-child(1) {
  width: 100%;
}

.tourism-gallery--signage .tourism-project-link:nth-child(2) {
  align-self: center;
  width: min(100%, 350px);
}

.tourism-gallery--signage .tourism-project-link--wide {
  grid-column: 1 / -1;
  justify-self: end;
  width: 78%;
}

.tourism-section--materials {
  min-height: 1030px;
}

.tourism-gallery--materials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.tourism-gallery--materials .tourism-project-link:first-child {
  width: min(100%, 800px);
}

.tourism-gallery--materials .tourism-project-link:last-child {
  width: min(90%, 750px);
}

.tourism-section--digital {
  min-height: 1270px;
  padding-bottom: 230px;
}

.tourism-gallery--digital {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 54px;
  padding-right: 4.5vw;
}

.tourism-gallery--digital .tourism-project-link:first-child {
  align-self: flex-end;
  width: min(78%, 620px);
}

.tourism-gallery--digital .tourism-project-link:last-child {
  width: min(73%, 600px);
}

.tourism-portfolio-banner h2 {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  padding: 14px 50px;
  color: #fff;
  background: var(--red);
  font-size: clamp(18px, 1.8vw, 28px);
  font-weight: 500;
  line-height: 1.23;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}

.tourism-portfolio-banner h2:hover,
.tourism-portfolio-banner:focus-visible h2 {
  background: #000;
}

.page-tourism .contact__intro p {
  max-width: 510px;
}

.page-tourism .contact__intro .contact__prompt {
  margin-top: 24px;
  font-weight: 500;
}

@media (min-width: 768px) and (max-width: 1100px) {
  .page-tourism .site-header h1 {
    max-width: 650px;
  }

  .tourism-intro {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 36px;
    min-height: 760px;
    padding-top: 105px;
    padding-right: 5vw;
    padding-bottom: 130px;
  }

  .tourism-intro__marker {
    transform: scale(0.82);
    transform-origin: left center;
  }

  .tourism-section {
    min-height: 0;
    padding-block: 125px;
  }

  .tourism-section__inner {
    gap: 5%;
  }

  .tourism-section--signage .tourism-section__copy,
  .tourism-section--digital .tourism-section__copy {
    margin-left: 5vw;
  }

  .tourism-section__copy p,
  .tourism-subsection h3,
  .tourism-intro__copy p {
    font-size: 17px;
  }

  .tourism-gallery--identity,
  .tourism-gallery--signage {
    gap: 18px;
  }

  .tourism-section--digital {
    padding-bottom: 170px;
  }
}

@media (max-width: 767px) {
  .page-tourism .site-header h1 {
    max-width: 345px;
  }

  .tourism-intro {
    display: block;
    min-height: 0;
    padding: 70px 27px 92px;
  }

  .tourism-intro__marker {
    width: 88px;
    height: 88px;
    margin: 0 auto 42px;
  }

  .tourism-intro__marker span {
    display: none;
  }

  .tourism-intro__marker img {
    position: static;
    width: 88px;
    height: 88px;
  }

  .tourism-intro__copy p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.43;
    letter-spacing: -0.023em;
  }

  .tourism-section,
  .tourism-section--identity,
  .tourism-section--signage,
  .tourism-section--materials,
  .tourism-section--digital {
    min-height: 0;
    padding: 76px 0 104px;
  }

  .tourism-section__inner,
  .tourism-section--identity .tourism-section__inner,
  .tourism-section--signage .tourism-section__inner,
  .tourism-section--materials .tourism-section__inner,
  .tourism-section--digital .tourism-section__inner {
    display: flex;
    flex-direction: column;
  }

  .tourism-section__copy,
  .tourism-section--identity .tourism-section__copy,
  .tourism-section--signage .tourism-section__copy,
  .tourism-section--materials .tourism-section__copy,
  .tourism-section--digital .tourism-section__copy {
    order: 1;
    width: 100%;
    margin: 0;
    padding: 0 27px;
  }

  .tourism-section__copy h2 {
    margin-bottom: 25px;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.035em;
  }

  .tourism-section__copy p {
    margin-bottom: 29px;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.023em;
  }

  .tourism-subsection {
    margin-top: 35px;
  }

  .tourism-subsection h3 {
    margin-bottom: 21px;
    font-size: 18px;
    line-height: 1.35;
  }

  .tourism-gallery,
  .tourism-gallery--identity,
  .tourism-gallery--signage,
  .tourism-gallery--materials,
  .tourism-gallery--digital {
    order: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 42px;
    padding: 0;
    gap: 0;
  }

  .tourism-gallery .tourism-project-link,
  .tourism-gallery--identity .tourism-project-link--routes,
  .tourism-gallery--identity .tourism-project-link--porto,
  .tourism-gallery--identity .tourism-project-link--zamora,
  .tourism-gallery--signage .tourism-project-link:nth-child(1),
  .tourism-gallery--signage .tourism-project-link:nth-child(2),
  .tourism-gallery--signage .tourism-project-link--wide,
  .tourism-gallery--materials .tourism-project-link:first-child,
  .tourism-gallery--materials .tourism-project-link:last-child,
  .tourism-gallery--digital .tourism-project-link:first-child,
  .tourism-gallery--digital .tourism-project-link:last-child {
    align-self: auto;
    width: 100%;
  }

  .tourism-portfolio-banner h2 {
    width: 294px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.24;
    letter-spacing: 0.035em;
  }

  .page-tourism .contact__intro p {
    max-width: none;
  }
}

@media (max-width: 360px) {
  .tourism-intro,
  .tourism-section__copy {
    padding-right: 22px;
    padding-left: 22px;
  }

  .tourism-intro__copy p,
  .tourism-section__copy p,
  .tourism-subsection h3 {
    font-size: 16px;
  }
}
