/* Wedding Venues We've Styled (scripts/build-venues.py): the illustrated map, the venue grid and each venue page */
.vn {
  --vn-ink: #3a3835;
  --vn-muted: #66605a;
  --vn-line: #e3d9d0;
  --vn-cream: #faf6f0;
  --vn-peach: #e59775;
  --vn-sage: #898c6b;
  display: block;
  color: var(--vn-ink);
  font-family: Raleway, sans-serif;
}

.vn-h1 {
  margin: 0 0 14px;
  font-family: Cinzel, serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  text-wrap: balance;
}

.vn-h2 {
  margin: 0 0 20px;
  font-family: Cinzel, serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
}

.vn p {
  max-width: 68ch;
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
}

.vn-lede {
  color: #474747;
  font-size: 17px;
}

/* ---------- hub ---------- */
.vn-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px max(4vw, 20px) 28px;
  text-align: center;
}

.vn-intro .vn-lede {
  margin: 0 auto;
}

.vn-map {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 max(4vw, 20px);
}

.vn-map-scroll {
  overflow: hidden;
  border: 1px solid var(--vn-line);
  border-radius: 4px;
  background-color: #e4eef1;
}

.vm {
  display: block;
  width: 100%;
  height: auto;
}

.vm-county {
  font: 600 15px Raleway, sans-serif;
  letter-spacing: 0.4em;
  fill: #b8b1a7;
}

.vm-town {
  font: 600 8.5px Raleway, sans-serif;
  letter-spacing: 0.14em;
  fill: #7d766e;
}

.vm-showroom text {
  font: 700 8.5px Raleway, sans-serif;
  letter-spacing: 0.14em;
  fill: #fff;
}

.vm-name {
  font: 700 9.5px Raleway, sans-serif;
  letter-spacing: 0.12em;
  fill: #3a3835;
  transition: fill 0.2s ease;
}

.vm-venue {
  cursor: pointer;
}

.vm-art {
  transition: transform 0.25s ease;
}

.vm-venue:hover .vm-art,
.vm-venue:focus-visible .vm-art {
  transform: translateY(-3px);
}

.vm-venue:hover .vm-name,
.vm-venue:focus-visible .vm-name {
  fill: #b5603f;
}

.vm-venue:hover .vm-pin,
.vm-venue:focus-visible .vm-pin {
  r: 6.5;
}

.vm-venue:focus {
  outline: none;
}

.vm-venue:focus-visible .vm-name {
  text-decoration: underline;
}

.vn-map-note {
  margin: 10px 0 0 !important;
  color: var(--vn-muted);
  font-size: 12px !important;
}

/* phones: let the map be wide enough to read, and scroll it sideways */
@media screen and (max-width: 767px) {
  .vn-map-scroll {
    overflow-x: auto;
  }

  .vm {
    width: 760px;
    max-width: none;
  }
}

.vn-all {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px max(4vw, 20px) 24px;
}

.vn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--vn-line);
  background-color: #fff;
  color: inherit;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.vn-card-link:hover,
.vn-card-link:focus-visible {
  box-shadow: 0 10px 28px rgba(30, 28, 24, 0.12);
  transform: translateY(-2px);
}

.vn-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background-color: var(--vn-cream);
}

.vn-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vn-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.vn-card-art .vn-art {
  width: 62%;
}

/* the venue's drawing, inset in the corner of the wedding photo */
.vn-card-thumb {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 69px;
  padding: 6px;
  border-radius: 4px;
  background-color: var(--vn-cream);
  box-shadow: 0 3px 10px rgba(30, 28, 24, 0.18);
}

.vn-card-thumb .vn-art {
  width: 100%;
  height: 100%;
}

.vn-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.vn-card-name {
  margin: 0 72px 4px 0;
  font-family: Cinzel, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.vn-card-town {
  margin: 0 0 12px !important;
  color: var(--vn-muted);
  font-size: 13px !important;
  letter-spacing: 0.04em;
}

.vn-card-text {
  flex: 1;
  font-size: 15px !important;
}

.vn-card-more {
  color: #8a5a44;
  font-size: 13.5px;
  text-decoration: underline;
}

.vn-cta {
  margin-top: 56px;
  padding: 64px max(4vw, 20px);
  border-top: 1px solid var(--vn-line);
  background-color: var(--vn-cream);
  text-align: center;
}

.vn-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}

.vn-cta p {
  margin: 0 auto 22px;
}

.vn-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

/* ---------- a venue ---------- */
.vn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px max(4vw, 20px) 56px;
}

.vn-where {
  margin: 0 0 22px !important;
  color: var(--vn-muted);
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.vn-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.vn-hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--vn-line);
  background-color: var(--vn-cream);
}

.vn-hero-art .vn-art {
  width: 70%;
}

.vn-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px max(4vw, 20px);
}

.vn-tint {
  max-width: none;
  background-color: var(--vn-cream);
}

.vn-tint > * {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.vn-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.vn-quote {
  margin: 0;
  padding: 26px 28px;
  border-left: 3px solid var(--vn-peach);
  background-color: var(--vn-cream);
}

.vn-quote blockquote {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.vn-quote blockquote p {
  margin: 0;
  font-size: 17px;
  font-style: italic;
  line-height: 1.6;
}

.vn-quote figcaption {
  font-family: Cinzel, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.vn-quote figcaption a {
  color: inherit;
}

.vn-weds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-wed-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.vn-wed-media {
  aspect-ratio: 4 / 5;
  margin-bottom: 12px;
  overflow: hidden;
  background-color: var(--vn-cream);
}

.vn-wed-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.vn-wed-link:hover .vn-wed-media img {
  transform: scale(1.03);
}

.vn-wed-art {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #d9c6b9;
}

.vn-wed-art .vn-art {
  width: 70%;
}

.vn-wed-title {
  margin: 0 0 2px !important;
  font-family: Cinzel, serif;
  font-size: 15px !important;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vn-wed-text {
  margin: 0 !important;
  color: var(--vn-muted);
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.vn-cons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vn-con {
  padding: 24px;
  border: 1px solid var(--vn-line);
  background-color: #fff;
}

.vn-con-title {
  margin: 0 0 10px;
  font-family: Cinzel, serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.vn-con p {
  margin: 0;
  font-size: 15px;
}

.vn-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: start;
}

.vn-details {
  display: grid;
  gap: 14px;
  margin: 0;
}

.vn-details dt {
  color: var(--vn-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vn-details dd {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.vn-mapbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 340px;
  padding: 24px;
  border: 1px solid var(--vn-line);
  background-color: #eef3f4;
  text-align: center;
}

.vn-mapbox.is-loaded {
  gap: 0;
  padding: 0;
}

.vn-mapbox.is-loaded .vn-mapbox-note {
  align-self: stretch;
  max-width: none;
  padding: 10px 14px;
  background-color: #fff;
  text-align: right;
}

.vn-mapbox iframe {
  width: 100%;
  height: 380px;
  border: 0;
}

.vn-mapbox-note {
  margin: 0 !important;
  color: var(--vn-muted);
  font-size: 13px !important;
}

.vn-mapbox-note a,
.vn-details a,
.vn-back {
  color: #8a5a44;
}

.vn-plan .vn-buttons {
  justify-content: flex-start;
}

.vn-more-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.vn-more-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--vn-line);
  color: inherit;
  font-family: Cinzel, serif;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.vn-more-link:hover,
.vn-more-link:focus-visible {
  border-color: var(--vn-peach);
}

.vn-more-art {
  flex: none;
  width: 64px;
  height: 50px;
}

.vn-back {
  font-size: 15px;
}

.vn :focus-visible {
  outline: 2px solid var(--vn-peach);
  outline-offset: 2px;
}

@media screen and (max-width: 991px) {
  .vn-hero,
  .vn-cols,
  .vn-about {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .vn-weds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 479px) {
  .vn-weds {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vm-art,
  .vn-card-link,
  .vn-wed-media img {
    transition: none;
  }
}

/* layout fixes: crop photos to their frames; text reads left (the site's base styles centre it) */
.vn-card-media,
.vn-wed-media,
.vn-hero-media {
  position: relative;
  overflow: hidden;
}

.vn-card-media > img,
.vn-wed-media img {
  position: absolute;
  inset: 0;
}

.vn-section,
.vn-hero,
.vn-card-body,
.vn-con,
.vn-about,
.vn-quote,
.vn-wed {
  text-align: left;
}

.vn-section p,
.vn-hero p {
  margin-left: 0;
}

.vm-venue,
.vm-venue text {
  text-decoration: none;
}

.vn p,
.vn h1,
.vn h2,
.vn h3,
.vn dl {
  text-align: inherit;
}

.vn-intro,
.vn-cta {
  text-align: center;
}

/* map hover: the drawing lifts inside a still hit area (scripts/venue_art.py), so it can't flicker */
.vm-hit {
  fill: transparent;
  pointer-events: all;
}

.vm-art,
.vm-pin,
.vm-name {
  pointer-events: none;
}

.vm-venue .vm-art {
  transition: transform 0.2s ease;
}

.vn-chip {
  padding: 6px 14px;
  border: 1px solid var(--vn-line);
  border-radius: 999px;
  background-color: #fff;
  color: #8a5a44;
  text-decoration: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.vn-chip:hover,
.vn-chip:focus-visible {
  border-color: #e59775;
  background-color: #fdf3ee;
}

.vn-where-note {
  margin-top: 18px !important;
  color: var(--vn-muted);
  font-size: 13px !important;
}

/* the couple's own words, from the testimonials page */
.vn-tm {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin: 0;
  border: 1px solid var(--vn-line);
  background-color: var(--vn-cream);
}

.vn-tm-text-only {
  grid-template-columns: 1fr;
}

.vn-tm-photo {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.vn-tm-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vn-tm-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px 48px;
  border-left: 3px solid var(--vn-peach);
  text-align: left;
}

.vn-tm-quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.vn-tm-quote p {
  margin: 0 0 12px !important;
  font-size: 16px !important;
  font-style: italic;
  line-height: 1.75 !important;
}

.vn-tm-cite {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-top: 10px;
}

.vn-tm-name {
  font-family: Cinzel, serif;
  font-size: 17px;
  font-weight: 700;
}

.vn-tm-where {
  color: var(--vn-muted);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vn-tm-cite .vn-back {
  flex-basis: 100%;
  font-size: 14px;
}

/* the gallery: every photo at its own shape, in columns */
.vn-sub {
  max-width: 720px;
  margin: -6px 0 26px !important;
  color: var(--vn-muted);
}

.vn-gal {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 3;
  column-gap: 14px;
}

.vn-gal-item {
  position: relative;
  margin: 0 0 14px;
  break-inside: avoid;
}

/* the Bespoke Florals products in a photo, as lozenges on its lower edge */
.vn-gal-chips {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 24px);
  pointer-events: none;
}

.vn-gal-chips .vn-chip {
  padding: 5px 13px;
  border-color: transparent;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(30, 28, 24, 0.18);
  font-size: 13px;
  pointer-events: auto;
}

.vn-gal-open {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.vn-gal-open img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

.vn-gal-open:hover img,
.vn-gal-open:focus-visible img {
  transform: scale(1.03);
}

.vn-look {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background-color: rgba(30, 28, 24, 0.94);
}

.vn-look[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.vn-look::backdrop {
  background: transparent;
}

.vn-look-fig {
  margin: 0;
  text-align: center;
}

.vn-look-fig img {
  max-width: 86vw;
  max-height: 80vh;
  object-fit: contain;
}

.vn-look-fig figcaption {
  max-width: 720px;
  margin: 12px auto 0;
  padding: 0 16px;
  color: #f1ece4;
  font-size: 14px;
}

.vn-look-link {
  color: #f2b79c;
}

.vn-look-close,
.vn-look-prev,
.vn-look-next {
  position: absolute;
  border: 0;
  background: none;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

.vn-look-close {
  top: 14px;
  right: 20px;
}

.vn-look-prev {
  left: 14px;
}

.vn-look-next {
  right: 14px;
}

@media screen and (max-width: 767px) {
  .vn-tm {
    grid-template-columns: 1fr;
  }

  .vn-tm-photo {
    min-height: 260px;
  }

  .vn-tm-body {
    padding: 28px 24px;
    border-top: 3px solid var(--vn-peach);
    border-left: 0;
  }

  .vn-gal {
    columns: 2;
    column-gap: 10px;
  }

  .vn-gal-item {
    margin-bottom: 10px;
  }

  .vn-look-prev,
  .vn-look-next {
    top: auto;
    bottom: 14px;
  }
}

/* "Our showroom" on the map: white on a peach label, black on hover; links to the showroom page */
.vm-showroom {
  cursor: pointer;
  text-decoration: none;
}

.vm-showroom text {
  text-decoration: none;
  transition: fill 0.2s ease;
}

.vm-showroom:hover text,
.vm-showroom:focus-visible text {
  fill: #2b2724;
}

.vm-showroom:focus {
  outline: none;
}

.vm-showroom:focus-visible .vm-showroom-pill {
  stroke: #2b2724;
  stroke-width: 1;
}

/* phones: the map scrolls sideways, with arrows and a hint to show it can */
.vn-map-frame {
  position: relative;
}

.vn-map-nav,
.vn-map-hint {
  display: none;
}

@media screen and (max-width: 767px) {
  .vm {
    width: 820px;
  }

  .vn-map-scroll {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .vn-map-scroll::-webkit-scrollbar {
    display: none;
  }

  .vn-map-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background-color: rgba(43, 39, 36, 0.82);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(30, 28, 24, 0.25);
    cursor: pointer;
    transition: opacity 0.25s ease;
  }

  .vn-map-prev {
    left: 8px;
  }

  .vn-map-next {
    right: 8px;
  }

  .vn-map-nav[disabled] {
    opacity: 0;
    pointer-events: none;
  }

  .vn-map-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background-color: rgba(43, 39, 36, 0.82);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .vn-map-hint svg {
    width: 18px;
    height: 18px;
    animation: vn-swipe 1.6s ease-in-out infinite;
  }

  .vn-map-frame.is-moved .vn-map-hint {
    opacity: 0;
  }
}

@keyframes vn-swipe {
  0%, 100% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  .vn-map-hint svg {
    animation: none;
  }

  .vn-map-scroll {
    scroll-behavior: auto;
  }
}
