/* What's Happening at VLC — page body, without site header or footer. */

@font-face {
  font-family: Poppins;
  src: url('../fonts/poppins-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Poppins;
  src: url('../fonts/poppins-semibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* 01. Theme, typography and common page-local controls. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

.vlc-happenings-page {
  --vh-cream: #fff7ed;
  --vh-paper: #fffbf5;
  --vh-sage: #f0f0df;
  --vh-forest: #173d31;
  --vh-green: #287b30;
  --vh-lime: #e6ec9b;
  --vh-ink: #2f2f2f;
  --vh-muted: #64675f;
  --vh-line: #cbd1be;
  --vh-gutter: clamp(22px, 5vw, 88px);
  margin: 0;
  background: var(--vh-cream);
  color: var(--vh-ink);
  font: 400 16px/1.75 Poppins, Arial, sans-serif;
}

.vlc-happenings-page *,
.vlc-happenings-page *::before,
.vlc-happenings-page *::after {
  box-sizing: border-box;
}

.vlc-happenings-page :where(h1, h2, h3, p, figure) {
  margin: 0;
}

.vlc-happenings-page :where(h1, h2, h3) {
  color: var(--vh-forest);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.14;
  overflow-wrap: break-word;
}

.vlc-happenings-page h2 {
  font-size: clamp(34px, 3.7vw, 56px);
}

.vlc-happenings-page h3 {
  font-size: clamp(22px, 1.9vw, 28px);
}

.vlc-happenings-page a {
  color: inherit;
  text-decoration: none;
}

.vlc-happenings-page button {
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.vlc-happenings-page :where(a, button):focus-visible {
  outline: 3px solid var(--vh-green);
  outline-offset: 5px;
}

.vlc-happenings-page img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.vlc-happenings-page ::selection {
  background: var(--vh-lime);
  color: var(--vh-forest);
}

.vlc-happenings-page [hidden] {
  display: none !important;
}

.vh-skip {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--vh-lime);
  color: var(--vh-forest);
}

.vh-skip:focus {
  top: 10px;
}

.vh-section {
  padding: clamp(60px, 6vw, 100px) var(--vh-gutter);
}

.vh-eyebrow {
  margin-bottom: 18px;
  color: var(--vh-green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.vh-prose {
  color: var(--vh-muted);
}

.vh-prose p + p {
  margin-top: 20px;
}

.vh-text-link {
  display: inline-block;
  margin-top: 25px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--vh-forest);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

/* Section heading: title on the left, short introduction on the right. */
.vh-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 8%;
  align-items: end;
}

.vh-heading .vh-text-link {
  margin-top: 16px;
}

/* Round chevron controls shared by every slider on the page. */
.vh-gallery-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vh-gallery-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--vh-line);
  border-radius: 50%;
  background: none;
  transition: background 200ms ease;
}

.vh-gallery-controls button::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  margin-left: -3px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.vh-gallery-controls button:is([data-gallery-step="-1"], [data-instagram-step="-1"])::before {
  margin-left: 3px;
  transform: rotate(-135deg);
}

.vh-gallery-controls button:hover:not(:disabled) {
  background: #cbd1be40;
}

.vh-gallery-controls button:disabled {
  opacity: .3;
  cursor: default;
}

.vh-gallery-controls > span {
  min-width: 64px;
  font-size: 13px;
  letter-spacing: .1em;
  text-align: center;
}

/* 02. Opening: full-width photograph with a forest overlay. */
.vh-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 620px;
  height: 88svh;
  max-height: 900px;
  overflow: hidden;
  background: var(--vh-forest);
  color: var(--vh-cream);
}

.vh-hero__media {
  position: absolute;
  inset: 0;
}

.vh-hero__media img {
  height: 100%;
  object-position: center 40%;
}

.vh-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #092218ed, #092218b8 45%, #09221845), linear-gradient(0deg, #071a1480, transparent 65%);
}

.vh-hero__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 65px var(--vh-gutter);
}

.vh-breadcrumb {
  margin-bottom: 28px;
  color: var(--vh-lime);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.vh-hero h1 {
  max-width: 1080px;
  color: var(--vh-cream);
  font-size: clamp(44px, 5.1vw, 78px);
}

.vh-hero__lead {
  max-width: 640px;
  margin-top: 26px;
  color: #f0f2e8;
  font-size: clamp(18px, 1.9vw, 26px);
  line-height: 1.55;
}

.vh-hero .vh-text-link {
  margin-top: 32px;
  color: var(--vh-lime);
}

.vh-hero__footer {
  position: absolute;
  right: var(--vh-gutter);
  bottom: 0;
  left: var(--vh-gutter);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px 26px;
  border-top: 1px solid #ffffff40;
  color: #e1e8de;
  font-size: 14px;
}

.vh-hero__footer span {
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.vh-hero a:focus-visible {
  outline-color: var(--vh-lime);
}

/* 03. Instagram spotlight: horizontal track of embedded posts. */
.vh-instagram {
  background: var(--vh-paper);
}

/* Title and city buttons share a line; the introduction sits below the title. */
.vh-instagram__heading {
  display: grid;
  grid-template-areas:
    "title accounts"
    "intro intro";
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 40px;
}

.vh-instagram__heading h2 {
  grid-area: title;
}

.vh-instagram__accounts {
  grid-area: accounts;
}

.vh-instagram__intro {
  grid-area: intro;
  margin-top: 16px;
}

/* City Instagram accounts, on the same line as the section title. */
.vh-instagram__accounts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.vh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 25px;
  border: 1px solid var(--vh-forest);
  border-radius: 3px;
  background: transparent;
  color: var(--vh-forest);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  transition: background 200ms ease, color 200ms ease;
}

.vh-button:hover {
  background: var(--vh-forest);
  color: var(--vh-cream);
}

.vh-instagram__slider {
  margin-top: 40px;
}

.vh-instagram__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--vh-line) transparent;
  scrollbar-width: thin;
}

.vh-instagram__profile {
  flex-shrink: 0;
  width: min(100%, 720px);
  margin-inline: auto;
  scroll-snap-align: start;
}

.vh-instagram__profile iframe {
  display: block;
  width: 100%;
  height: 620px;
  border: 0;
  background: var(--vh-paper);
}

/* Each post is cropped to its photograph or video thumbnail: the embed's profile
   header is shifted above the frame and its likes/comments footer falls below it. */
.vh-instagram__post {
  --vh-ig-header: 55px;
  --vh-ig-scale: 1;
  position: relative;
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 300px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--vh-forest);
  scroll-snap-align: start;
}

.vh-instagram__post iframe {
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: calc(100% + 2px);
  height: var(--vh-ig-height, calc(100% + 260px));
  border: 0;
  transform: translateX(-50%) scale(var(--vh-ig-scale)) translateY(calc(var(--vh-ig-header) * -1));
  transform-origin: top center;
}

.vh-instagram__bottom {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

/* 04. Around the Circle: filters and story cards. */
.vh-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-block: 40px 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--vh-line);
}


.vh-filters, .filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vh-filters button, .filters button {
  padding: 9px 18px;
  border: 1px solid var(--vh-line);
  border-radius: 25px;
  background: transparent;
  color: var(--vh-forest);
  font-size: 14px;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease;
}

.vh-filters button:hover, .filters button:hover {
  background: var(--vh-sage);
}

.vh-filters button.is-active, .filters button.is-active {
  border-color: var(--vh-forest);
  background: var(--vh-forest);
  color: var(--vh-cream);
}

.vh-filters button span, .filters button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 50%;
  background: #ffffff26;
  font-size: 11px;
}

.vh-stories__heading .vh-prose {
  margin-top: 16px;
}

.vh-story-grid, .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 28px;
}

.vh-story-card, .card {
  min-width: 0;
}

.vh-story-card__button, .card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.vh-story-card__media, .card {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--vh-sage);
}

.vh-story-card__media img, .card img {
  height: 100%;
  transition: transform 600ms ease;
}

.vh-story-card__meta, .card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 12px;
  margin-block: 20px 10px;
  color: var(--vh-green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.vh-story-card h3, .card h3 {
  transition: color 200ms ease;
}

.vh-story-card p, .card p {
  margin-top: 12px;
  color: var(--vh-muted);
}

.vh-story-card__button:hover img, .card:hover img {
  transform: scale(1.04);
}

.vh-story-card__button:hover h3 {
  color: var(--vh-green);
}

/* 05. Closing invitation. */
.vh-closing {
  background: var(--vh-sage);
}

/* 06. Story popup. */
.vh-dialog, .dialog {
  width: min(1020px, calc(100% - 40px));
  max-height: 90dvh;
  padding: 0;
  border: 0;
  background: var(--vh-cream);
  color: var(--vh-ink);
  overscroll-behavior: contain;
}

.vh-dialog::backdrop, .dialog::backdrop {
  background: #102b25c9;
  backdrop-filter: blur(5px);
}

.vh-dialog__toolbar, .dialog__toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  background: var(--vh-forest);
  color: var(--vh-cream);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.vh-dialog__toolbar button, .dialog__toolbar button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: 1px solid #ffffff59;
  border-radius: 50%;
  background: transparent;
  color: var(--vh-cream);
  font-size: 24px;
  line-height: 1;
  transition: background 200ms ease, color 200ms ease;
}

.vh-dialog__toolbar button:hover, .dialog__toolbar button:hover {
  background: var(--vh-cream);
  color: var(--vh-forest);
}

.vh-dialog__toolbar button:focus-visible {
  outline-color: var(--vh-lime);
}

.vh-dialog__content {
  padding: 38px;
}

.vh-dialog__intro h2 {
  font-size: clamp(32px, 4vw, 54px);
}

.vh-dialog__intro > p:last-child {
  max-width: 680px;
  margin-top: 16px;
  color: var(--vh-muted);
}

.vh-dialog__gallery {
  margin-top: 28px;
}

.vh-dialog__gallery > img {
  height: 420px;
  background: var(--vh-sage);
}

.vh-dialog__gallery figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  border-bottom: 1px solid var(--vh-line);
  color: var(--vh-muted);
  font-size: 13px;
}

.vh-dialog__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 26px;
}

.vh-dialog__bottom p {
  max-width: 630px;
  margin-top: 10px;
  color: var(--vh-muted);
}

.vh-dialog__bottom .vh-gallery-controls {
  flex-shrink: 0;
}

/* 07. Native scroll motion. */
.vh-motion .vh-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.vh-motion .vh-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 08. Responsive composition: keep all copy, photographs and actions readable. */
@media (max-width: 1000px) {
  .vh-story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .vh-section {
    padding-block: 50px;
  }

  .vh-hero {
    height: auto;
    min-height: 100svh;
    max-height: none;
    justify-content: flex-start;
  }

  .vh-hero__copy {
    padding-block: 64px 140px;
  }

  .vh-hero h1 {
    font-size: clamp(40px, 9.5vw, 62px);
  }

  .vh-hero__lead {
    font-size: 18px;
  }

  .vh-hero__media::after {
    background: linear-gradient(90deg, #092218d9, #0922188f), linear-gradient(0deg, #071a14b3, transparent);
  }

  .vh-hero__footer {
    flex-direction: column;
    gap: 6px;
  }

  .vh-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .vh-instagram__heading {
    grid-template-areas:
      "title"
      "intro"
      "accounts";
    grid-template-columns: minmax(0, 1fr);
  }

  .vh-instagram__accounts {
    margin-top: 24px;
  }

  .vh-instagram__slider {
    margin-top: 30px;
  }

  .vh-instagram__profile iframe {
    height: 530px;
  }

  .vh-instagram__post {
    flex-basis: 100%;
    min-width: 0;
  }

  .vh-filter-row {
    margin-block: 30px 28px;
  }

  .vh-filters {
    flex-wrap: nowrap;
    margin-inline: calc(var(--vh-gutter) * -1);
    padding-inline: var(--vh-gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .vh-filters::-webkit-scrollbar {
    display: none;
  }

  .vh-filters button {
    font-size: 13px;
  }

  .vh-dialog {
    width: calc(100% - 22px);
    max-height: 94dvh;
  }

  .vh-dialog__toolbar {
    padding: 11px 18px;
  }

  .vh-dialog__content {
    padding: 24px 20px;
  }

  .vh-dialog__gallery > img {
    height: 300px;
  }

  .vh-dialog__bottom {
    display: block;
  }

  .vh-dialog__bottom .vh-gallery-controls {
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  .vh-story-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

    .vh-dialog__gallery > img {
    height: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .vlc-happenings-page *,
  .vlc-happenings-page *::before,
  .vlc-happenings-page *::after {
    animation: none !important;
    transition: none !important;
  }
}
