/* Benchmark Buckles – static site styles (recreates the old Twenty Seventeen look) */
:root {
  --text: #333;
  --head: #222;
  --muted: #767676;
  --line: #eee;
  --wrap: 1000px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 18px/1.66 "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.lb-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--head); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: #000; text-decoration: none; }
:focus-visible { outline: 2px solid #1a6fd6; outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 30px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.custom-header { position: relative; overflow: hidden; background: #f4f4f4; }
.custom-header.front { height: clamp(300px, 42vw, 560px); }
.custom-header.inner { height: clamp(240px, 26vw, 340px); }
.custom-header .header-image { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.header-brand { position: absolute; left: 0; right: 0; bottom: 28px; }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { width: 243px; height: auto; max-width: 62vw; }
.custom-header.inner .custom-logo { width: 190px; }

.main-nav { background: #fff; border-bottom: 1px solid var(--line); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav li a {
  display: block; padding: 15px 16px; color: var(--muted); text-decoration: none;
  font-size: 15px; font-weight: 600; line-height: 1.3;
}
.main-nav li a:hover, .main-nav li.current a { color: #000; }
.main-nav .wrap { padding: 0 14px; }
.menu-toggle {
  display: none; width: 100%; background: #fff; border: 0; padding: 20px; cursor: pointer;
  font: 800 18px/1 "Libre Franklin", sans-serif; color: var(--head);
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: inline-block; width: 20px; height: 3px; background: currentColor; position: relative; vertical-align: middle;
}
.menu-toggle .bars { margin-right: 12px; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; }
.menu-toggle .bars::after { top: 7px; }

@media (max-width: 767px) {
  .menu-toggle { display: block; }
  .main-nav .wrap { padding: 0; display: none; }
  .main-nav.open .wrap { display: block; }
  .main-nav ul { display: block; }
  .main-nav li { border-top: 1px solid var(--line); }
  .main-nav li a { padding: 14px 30px; font-size: 16px; }
}

/* ---------- content ---------- */
.panel { padding: 54px 0 24px; }
.panel-about, .panel-contact { padding-top: 40px; }
.entry-title {
  margin: 0 0 1.1em; color: var(--head); font-size: 14px; font-weight: 800; line-height: 1.4;
  letter-spacing: .14em; text-transform: uppercase;
}
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 1.5em; max-width: 760px; }
.entry-content h2 { margin: 2em 0 .8em; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--head); }
.entry-content h3 { margin: 1.8em 0 .8em; font-size: 16px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--head); }
.entry-content strong { font-weight: 800; }
.entry-content blockquote, .wp-block-quote {
  margin: 0 0 1.6em; padding: 0 0 0 1.4em; border-left: 3px solid var(--head); font-size: 1.1em; max-width: 760px;
}
.entry-content blockquote p { margin: 0; }

.wp-block-gallery {
  --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 14px; margin: 0 0 2.2em; padding: 0;
}
.wp-block-gallery.columns-1 { --cols: 1; }
.wp-block-gallery.columns-2 { --cols: 2; }
.wp-block-gallery.columns-4 { --cols: 4; }
.wp-block-gallery.columns-5 { --cols: 5; }
.wp-block-gallery > figure.wp-block-image {
  margin: 0; position: relative; overflow: hidden; background: #f3f3f3; aspect-ratio: 4 / 5;
}
.wp-block-gallery > figure.wp-block-image > a { display: block; height: 100%; line-height: 0; }
.wp-block-gallery > figure.wp-block-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.wp-block-gallery > figure.wp-block-image a:hover img { transform: scale(1.03); }
.wp-block-gallery > figure.wp-block-image figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 10px 9px; margin: 0;
  color: #fff; font-size: 14px; line-height: 1.3; text-align: center; font-weight: 600;
  background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,0)); pointer-events: none;
}
.wp-block-gallery > figcaption.blocks-gallery-caption { grid-column: 1 / -1; position: static; padding: 0; margin: 0; background: none; color: var(--muted); font-size: 15px; font-weight: 400; text-align: left; }
figure.wp-block-image { margin: 0 0 1.8em; }
figure.wp-block-image figcaption { font-size: 14px; color: var(--muted); margin-top: .5em; }
.wp-block-group { margin: 0; }

@media (max-width: 767px) {
  .wp-block-gallery, .wp-block-gallery.columns-4, .wp-block-gallery.columns-5 { --cols: 2; gap: 10px; }
  .wp-block-gallery > figure.wp-block-image figcaption { font-size: 12.5px; padding: 24px 6px 7px; }
  .panel { padding-top: 40px; }
}

/* banner photo between sections / on the contact page */
.panel-image { position: relative; overflow: hidden; height: clamp(220px, 36vw, 450px); background: #f4f4f4; margin-top: 24px; }
.panel-image img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 40%; }
.panel-image .wrap { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 26px; }
.panel-image:has(.banner-title)::after {
  content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0)); pointer-events: none;
}
.panel-image .banner-title { position: relative; z-index: 2; margin: 0; color: #fff; font-size: 20px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.panel-image + .panel { padding-top: 40px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: 16px; }
.site-footer h2 { margin: 0 0 1.4em; font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--head); }
.site-footer h3 { margin: 0 0 .3em; font-size: 16px; font-weight: 800; }
.site-footer p { margin: 0 0 1.3em; }
.social-links { list-style: none; margin: 1.6em 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.social-links a { font-weight: 600; font-size: 15px; }
.site-footer .copyright { margin: 2.4em 0 0; padding-top: 1.4em; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* ---------- photo viewer ---------- */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 94vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; display: inline-block; }
.lightbox figcaption { color: #fff; font-size: 16px; font-weight: 600; margin-top: 10px; min-height: 1.4em; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-family: Arial, sans-serif;
  line-height: 1; padding: 14px 18px; opacity: .85;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 6px; right: 8px; font-size: 44px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
@media (max-width: 767px) { .lb-prev, .lb-next { font-size: 48px; padding: 10px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* wide or square photos are shown whole instead of cropped to 4:5 */
.wp-block-gallery > figure.wp-block-image.fit img { object-fit: contain; }
