/* Voice of Rodeo – based on the look of the old Twenty Seventeen (dark) theme */
:root {
  --bg: #222;
  --bg-2: #1a1a1a;
  --line: #333;
  --text: #eee;
  --muted: #bbb;
  --heading: #ddd;
  --white: #fff;
  --accent: #c8102e;
  --wrap: 1000px;
  --content: 740px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.66 "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: var(--white); text-decoration: none; box-shadow: inset 0 -1px 0 rgba(255,255,255,.6); transition: box-shadow .15s; }
a:hover, a:focus { box-shadow: inset 0 -2px 0 var(--white); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 2em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: #222; padding: .6em 1em; }
.skip-link:focus { left: 1em; top: 1em; }

/* ---------- header ---------- */
.home-header .custom-header { position: relative; height: calc(100vh - 56px); min-height: 320px; background: #111; overflow: hidden; }
.home-header .custom-header img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.scroll-down { position: absolute; right: 1.5em; bottom: 1em; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.45); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: none; }
.inner-header .branding { padding-top: 1.4em; padding-bottom: 1.4em; }
.inner-header { background: var(--bg-2); }
.site-title { font-weight: 800; font-size: 1.5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--white); box-shadow: none; }
.site-title:hover { box-shadow: none; opacity: .85; }

/* ---------- menu ---------- */
.main-nav { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.main-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.main-nav .menu a { display: block; padding: 1em 1.25em; font-size: 14px; font-weight: 600; color: var(--text); box-shadow: none; }
.main-nav .menu li:first-child a { padding-left: 0; }
.main-nav .menu a:hover, .main-nav .menu a[aria-current] { color: #fff; box-shadow: inset 0 -3px 0 var(--white); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); font-family: inherit; font-weight: 600; font-size: 14px; line-height: 1; padding: 1.1em 0; cursor: pointer; align-items: center; gap: .6em; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: ""; }
.menu-toggle .bars::before { position: absolute; top: -6px; } .menu-toggle .bars::after { position: absolute; top: 6px; }
@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .main-nav .menu { display: none; flex-direction: column; padding-bottom: .5em; }
  .main-nav.open .menu { display: flex; }
  .main-nav .menu a { padding: .75em 0; border-top: 1px solid var(--line); }
  .main-nav .menu a:hover, .main-nav .menu a[aria-current] { box-shadow: none; text-decoration: underline; }
  .home-header .custom-header { height: auto; min-height: 0; aspect-ratio: 5 / 3; }
  .home-header .custom-header img { object-position: left center; }
  .wrap { padding: 0 1em; }
}

/* ---------- content ---------- */
.featured-image { max-width: var(--wrap); margin: 0 auto; padding: 0 2em; }
.featured-image img { display: block; width: 100%; max-height: 80vh; object-fit: cover; }
@media (max-width: 767px) { .featured-image { padding: 0; } }
.site-content { padding-top: 3em; padding-bottom: 3em; }
.page-article { max-width: var(--content); margin: 0 auto; }
.entry-title { font-size: 14px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--heading); margin: 0 0 1.5em; }
.entry-title a { color: inherit; box-shadow: none; }
.entry-content h1 { font-size: 1.75rem; font-weight: 300; line-height: 1.25; color: var(--white); margin: 0 0 .75em; }
.entry-content h2 { font-size: 1.4rem; font-weight: 300; line-height: 1.3; color: var(--white); margin: 1.5em 0 .75em; }
.entry-content h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin: 1.5em 0 .5em; }
.entry-content p { margin: 0 0 1.5em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.5em; padding-left: 1.25em; }
.entry-content li { margin-bottom: .25em; }
.entry-content hr { border: 0; height: 1px; background: #555; margin: 2em auto; width: 100px; }
.entry-content figure { margin: 0 0 1.5em; }
.entry-content img { display: block; }
.entry-content figure img[src$=".png"] { background: #fff; padding: 8px; } /* sponsor logos with see-through backgrounds */
.entry-content .aligncenter, .entry-content figure.aligncenter, .entry-content img.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.entry-content .aligncenter img { margin: 0 auto; }
.entry-content .alignleft, .entry-content img.alignleft { float: left; margin: .3em 1.5em 1em 0; max-width: 50%; }
.entry-content .alignright, .entry-content img.alignright { float: right; margin: .3em 0 1em 1.5em; max-width: 50%; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content [style*="text-align: center"], .has-text-align-center { text-align: center; }
.entry-content table { border-collapse: collapse; width: 100%; margin-bottom: 1.5em; }
.entry-content td, .entry-content th { border-bottom: 1px solid var(--line); padding: .5em; text-align: left; }
.video { position: relative; aspect-ratio: 16/9; margin-bottom: 1.5em; } .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .entry-content .alignleft, .entry-content .alignright { float: none; max-width: 100%; margin: 0 0 1.5em; } }

/* ---------- home panels ---------- */
.home .panel { padding-top: 4.5em; padding-bottom: 4.5em; }
.panel-image { height: 70vh; min-height: 260px; max-height: 900px; background: #111 center / cover no-repeat; }
@media (min-width: 1025px) and (hover: hover) { .panel-image { background-attachment: fixed; } }
@media (max-width: 767px) { .panel-image { height: 50vh; } .home .panel { padding-top: 3em; padding-bottom: 3em; } }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 1.5em; }
.gallery a { box-shadow: none; display: block; aspect-ratio: 1; overflow: hidden; background: #111; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.gallery a:hover img { transform: scale(1.04); opacity: .9; }
@media (max-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.page-article .gallery { margin-left: calc(-1 * min(130px, (100vw - var(--content)) / 2 - 2em)); margin-right: calc(-1 * min(130px, (100vw - var(--content)) / 2 - 2em)); }
@media (max-width: 900px) { .page-article .gallery { margin-left: 0; margin-right: 0; } }

/* ---------- contact ---------- */
.contact-info { margin-bottom: 2em; }
.contact-info p { margin: 0 0 .5em; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: .3em; padding: .7em; font: inherit; color: #333; background: #fff; border: 1px solid #ccc; border-radius: 3px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid #fff; outline-offset: 1px; }
.contact-form button { background: #fff; color: #222; border: 0; border-radius: 2px; padding: .9em 2em; font-family: inherit; font-weight: 800; font-size: 14px; line-height: 1; cursor: pointer; }
.contact-form button:hover { background: #ddd; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.contact-form .req { color: #e66; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { font-weight: 600; min-height: 1.5em; }
.form-status.ok { color: #8fd18f; } .form-status.err { color: #f99; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5em 0; font-size: 14px; color: var(--muted); }
.site-footer p { margin: 0 0 .4em; }
.site-footer a { color: var(--text); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 48px; line-height: 1; cursor: pointer; padding: .3em .4em; }
.lb-close { top: 0; right: 0; font-size: 40px; } .lb-prev { left: 0; top: 50%; transform: translateY(-50%); } .lb-next { right: 0; top: 50%; transform: translateY(-50%); }
