/* Pro Mod Racing — "Victory Lane": masthead button + photo gallery pop-up (vl.js). */

/* button: right of the logo, centred between the logo and the page edge; white text in an orange outline */
.vl-btn {
  grid-column: 3; grid-row: 1; justify-self: center; align-self: center;
  font: inherit; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.2;
  font-size: clamp(0.72rem, 1.5vw, 1.05rem); color: #fff; white-space: nowrap;
  background: rgba(10, 11, 14, 0.35); border: 2px solid var(--accent); border-radius: 10px; padding: 0.65em 1.1em;
  cursor: pointer; transition: background 0.15s ease, transform 0.15s ease;
  translate: 0.5rem 0;          /* half the masthead padding: centred between the logo and the page edge itself */
}
@media (max-width: 400px) { .vl-btn { translate: 0.25rem 0; } }
button.vl-btn:hover, button.vl-btn:focus-visible { background: rgba(246, 90, 8, 0.28); transform: scale(1.04); }
button.vl-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
span.vl-btn { cursor: default; }
@media (max-width: 600px) {
  .vl-btn { white-space: normal; max-width: 96px; padding: 0.45em 0.55em; letter-spacing: 0.06em; }
}

/* pop-up */
html.vl-lock, html.vl-lock body { overflow: hidden; }
.vl-modal {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4, 5, 8, 0.86); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.vl-modal.open { display: flex; }
.vl-panel {
  width: 100%; max-width: 1040px; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden;
  background: var(--panel, #12141a); border: 1px solid rgba(246, 90, 8, 0.6); border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}
.vl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line, rgba(255, 255, 255, 0.12)); }
.vl-kick { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: #ff9a5c; font-weight: 800; }
.vl-head h3 { margin: 3px 0 0; font-family: var(--racing); font-weight: 400; font-size: 1.6rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; outline: none; }
.vl-close {
  flex: 0 0 auto; width: 34px; height: 34px; cursor: pointer; font-weight: 800; font-size: 1rem; color: #e8eaf2;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 9px;
}
.vl-close:hover { background: rgba(246, 90, 8, 0.45); border-color: var(--accent, #f65a08); }
.vl-body { overflow-y: auto; flex: 1 1 auto; min-height: 0; padding: 16px 18px 22px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.vl-empty { text-align: center; color: var(--muted, #9aa3b2); font-size: 0.95rem; line-height: 1.7; padding: 44px 20px; }
.vl-empty b { display: block; color: #fff; font-size: 1.1rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 6px; }
.vl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vl-card {
  display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; cursor: pointer; text-align: left; font: inherit; color: #e8eaf2;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(246, 90, 8, 0.3); border-radius: 12px; overflow: hidden; transition: 0.15s;
}
.vl-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #000; }
.vl-cap { padding: 0 10px 9px; font-size: 0.85rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.vl-card:hover, .vl-card:focus-visible { border-color: var(--accent, #f65a08); transform: translateY(-2px); outline: none; }
.vl-card:focus-visible { box-shadow: 0 0 0 2px #fff; }
.vl-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.vl-back {
  font-family: inherit; cursor: pointer; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.5px; color: #cfd3e0; background: rgba(10, 11, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px; padding: 7px 16px;
}
.vl-back:hover { color: #fff; border-color: rgba(246, 90, 8, 0.65); }
.vl-count { color: var(--muted, #9aa3b2); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.vl-view { position: relative; display: flex; justify-content: center; background: #000; border-radius: 12px; overflow: hidden; }
.vl-view img { display: block; max-width: 100%; height: auto; max-height: calc(92vh - 190px); width: auto; object-fit: contain; }
.vl-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; border: 0; cursor: pointer;
  font-size: 2.2rem; line-height: 1; color: #fff; background: rgba(0, 0, 0, 0.45); border-radius: 10px;
}
.vl-nav:hover, .vl-nav:focus-visible { background: rgba(246, 90, 8, 0.75); outline: none; }
.vl-prev { left: 8px; }
.vl-next { right: 8px; }
.vl-caption { margin: 12px 2px 0; color: #e8eaf2; font-size: 1rem; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.vl-close:focus-visible, .vl-back:focus-visible { outline: 2px solid #ff9a5c; outline-offset: 2px; }
@media (max-width: 700px) { .vl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
@media (max-width: 560px) {
  .vl-modal { padding: 0; }
  .vl-panel { max-width: none; height: 100%; max-height: none; border: 0; border-radius: 0; }
  .vl-head { padding: 12px 14px; }
  .vl-head h3 { font-size: 1.3rem; }
  .vl-body { padding: 12px 12px 24px; }
  .vl-view img { max-height: calc(100vh - 200px); }
}
@media (max-width: 340px) {        /* very narrow phones: smaller logo + button so nothing runs off the edge */
  .site-logo { height: 84px; }
  .vl-btn { max-width: 74px; font-size: 0.6rem; letter-spacing: 0.02em; padding: 0.35em 0.4em; translate: none; }
}