/* GARNI-GEGHARD v0.0.19 — gallery introduction integrated into the destination design language. */

body.gi-v019 .gi-gallery {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(88px, 8vw, 124px);
  padding-bottom: clamp(92px, 8vw, 126px);
  background:
    radial-gradient(circle at 84% 17%, rgba(209, 179, 111, .11), transparent 32%),
    linear-gradient(180deg, #f5f1e8 0%, #f8f5ee 50%, #f3eee4 100%);
}

body.gi-v019 .gi-gallery::before {
  content: '';
  position: absolute;
  z-index: -2;
  width: min(560px, 42vw);
  aspect-ratio: 1;
  right: clamp(-205px, -10vw, -95px);
  top: clamp(-180px, -8vw, -82px);
  border: 1px solid rgba(7, 62, 53, .075);
  border-radius: 50%;
  box-shadow:
    0 0 0 58px rgba(7, 62, 53, .022),
    0 0 0 116px rgba(209, 179, 111, .018);
  pointer-events: none;
}

body.gi-v019 .gi-gallery::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: clamp(30px, 7vw, 135px);
  top: clamp(82px, 8vw, 132px);
  width: clamp(150px, 18vw, 280px);
  aspect-ratio: 1;
  background: url('../img/favicon.png') center / contain no-repeat;
  opacity: .045;
  filter: grayscale(1) contrast(1.15);
  pointer-events: none;
}

body.gi-v019 .gi-gallery__intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .66fr);
  gap: clamp(52px, 7vw, 112px);
  align-items: end;
  margin: 0 0 clamp(48px, 5vw, 72px);
  padding: 0 0 clamp(38px, 4vw, 52px);
  border-bottom: 1px solid rgba(7, 62, 53, .17);
}

body.gi-v019 .gi-gallery__intro::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: clamp(90px, 10vw, 150px);
  height: 2px;
  background: var(--gi-sand, #d5b66d);
}

body.gi-v019 .gi-gallery__copy {
  max-width: 900px;
}

body.gi-v019 .gi-gallery__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--gi-forest, #0b4a3e);
  font: 700 11px/1.2 var(--gi-sans, sans-serif);
  letter-spacing: .15em;
  text-transform: uppercase;
}

body.gi-v019 .gi-gallery__eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gi-forest, #0b4a3e);
}

body.gi-v019 .gi-gallery__intro h2 {
  max-width: 13ch;
  margin: 0;
  color: var(--gi-ink, #073e35);
  font-family: var(--gi-serif, serif);
  font-size: clamp(48px, 5.3vw, 82px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.042em;
  text-wrap: balance;
}

body.gi-v019 .gi-gallery__rule {
  display: block;
  width: clamp(130px, 18vw, 260px);
  height: 1px;
  margin-top: 30px;
  background: linear-gradient(90deg, var(--gi-sand, #d5b66d), rgba(209, 179, 111, 0));
}

body.gi-v019 .gi-gallery__intro > p {
  max-width: 520px;
  margin: 0 0 7px;
  padding-left: 25px;
  border-left: 1px solid rgba(7, 62, 53, .24);
  color: var(--gi-muted, #667b75);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.82;
}

body.gi-v019 .gi-gallery__grid {
  position: relative;
  z-index: 1;
}

body.gi-v019 .gi-gallery__item {
  box-shadow: 0 18px 52px rgba(8, 43, 36, .12);
}

body.gi-v019 .gi-gallery__item:focus-visible {
  outline: 3px solid var(--gi-sand, #d5b66d);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  body.gi-v019 .gi-gallery__intro {
    grid-template-columns: minmax(0, 1fr) minmax(250px, .72fr);
    gap: 42px;
  }

  body.gi-v019 .gi-gallery__intro h2 {
    font-size: clamp(44px, 6vw, 66px);
  }
}

@media (max-width: 820px) {
  body.gi-v019 .gi-gallery {
    padding-top: 70px;
    padding-bottom: 72px;
  }

  body.gi-v019 .gi-gallery::before {
    width: 360px;
    right: -230px;
    top: -140px;
  }

  body.gi-v019 .gi-gallery::after {
    width: 145px;
    right: -18px;
    top: 88px;
    opacity: .035;
  }

  body.gi-v019 .gi-gallery__intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 38px;
    padding-bottom: 32px;
  }

  body.gi-v019 .gi-gallery__intro h2 {
    max-width: 15ch;
    font-size: clamp(38px, 9vw, 56px);
    line-height: 1.03;
  }

  body.gi-v019 .gi-gallery__intro > p {
    max-width: 650px;
    margin: 0;
    padding-left: 18px;
    font-size: 15px;
    line-height: 1.7;
  }

  body.gi-v019 .gi-gallery__rule {
    margin-top: 22px;
  }
}

@media (max-width: 520px) {
  body.gi-v019 .gi-gallery {
    padding-top: 58px;
    padding-bottom: 60px;
  }

  body.gi-v019 .gi-gallery::after {
    display: none;
  }

  body.gi-v019 .gi-gallery__eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
    letter-spacing: .11em;
  }

  body.gi-v019 .gi-gallery__intro h2 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.05;
  }

  body.gi-v019 .gi-gallery__intro > p {
    padding-left: 15px;
    font-size: 14px;
  }
}
