/* The photos use the browser's own horizontal scrolling and swipe physics. */
.home-gallery,
.home-faq {
  box-sizing: border-box;
  width: calc(100% - var(--home-section-gutter, 24px) - var(--home-section-gutter, 24px));
  max-width: 1456px;
  margin: 44px auto;
  color: var(--home-ink, #000000);
  font-family: var(--brand-support-font, "Big Bird", Georgia, serif);
}
.home-gallery-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 20px;
}
.home-gallery-heading h2,
.home-faq h2 {
  max-width: 100%;
  margin: 0;
  font: 400 clamp(28px, 2.5vw, 38px)/1.25 var(--brand-support-font, "Big Bird", Georgia, serif);
  text-wrap: balance;
}
.home-gallery-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 16px;
  text-underline-offset: 5px;
}
.home-gallery-inspiration {
  max-width: 72ch;
  margin: 0 0 20px;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}
.home-gallery-track {
  --gallery-visible: 4;
  --gallery-gap: 20px;
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--gallery-visible) - 1) * var(--gallery-gap)) / var(--gallery-visible));
  gap: var(--gallery-gap);
  margin: 0;
  padding: 4px 0 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: #5D1451 #E7D3DB;
}
.home-gallery-slide { min-width: 0; scroll-snap-align: start; }
.home-gallery-slide a { display: block; color: inherit; }
.home-gallery-slide img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #E7D3DB;
}
.home-gallery-track:focus-visible,
.home-gallery-slide a:focus-visible {
  outline: 3px solid #0055A4;
  outline-offset: -3px;
}
.home-gallery-controls {
  display: grid;
  grid-template-columns: 44px minmax(80px, 1fr) 44px auto;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.home-gallery-controls[hidden] { display: none; }
.home-gallery-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #5D1451;
  border-radius: 11px 5px 12px 6px;
  background: transparent;
  color: #5D1451;
  font: 400 14px/1.3 var(--brand-support-font, "Big Bird", Georgia, serif);
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.home-gallery-arrow { padding: 9px; }
.home-gallery-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.home-gallery-autoplay { padding: 10px 16px; }
.home-gallery-controls button:disabled { opacity: .45; cursor: default; }
.home-gallery-controls button:focus-visible,
.home-gallery-all:focus-visible,
.home-faq a:focus-visible,
.home-faq summary:focus-visible { outline: 2px solid #0055A4; outline-offset: 4px; }
.home-gallery-count { margin: 0; text-align: center; font-size: 14px; line-height: 1.4; }
@media (hover: hover) and (pointer: fine) {
  .home-gallery-controls button:not(:disabled):hover { background: #E7D3DB; }
  .home-gallery-all:hover,
  .home-faq a:hover { color: #5D1451; }
}
.home-faq { margin-top: 48px; margin-bottom: 56px; padding-top: 32px; border-top: 1px solid #5D145140; }
.opening-home.main-site .home-faq { margin-bottom: 24px; }
.home-faq-inner { max-width: 840px; margin: 0 auto; }
.home-faq-contact { margin: 24px 0 0; font-size: 18px; line-height: 1.6; }
.home-faq-contact a { color: inherit; text-underline-offset: 5px; }
.home-faq-item { border-bottom: 1px solid #5D145140; }
.home-faq-item:first-of-type { margin-top: 20px; }
.home-faq-item summary { min-height: 44px; padding: 18px 4px; font-size: 20px; line-height: 1.45; cursor: pointer; }
.home-faq-answer { padding: 0 4px 20px; font-size: 18px; line-height: 1.6; }
.home-faq-answer p { margin: 0 0 14px; }
.home-faq-answer p:last-child { margin-bottom: 0; }
@media (max-width: 820px) {
  .home-gallery-track { --gallery-visible: 2; --gallery-gap: 18px; }
  .home-gallery,
  .home-faq { margin-top: 32px; margin-bottom: 32px; }
  .opening-home.main-site .home-faq { margin-bottom: 16px; }
}
@media (max-width: 540px) {
  .home-gallery-track { --gallery-visible: 1.35; --gallery-gap: 16px; }
  .home-gallery-controls { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
  .home-gallery-autoplay { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }
  .home-faq { padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-gallery-track { scroll-behavior: auto; }
}
