/* roadtrp.org global stylesheet */

/* === Video frame (lite-youtube wrapper) === */
.vid-frame {
  display: inline-block;
  vertical-align: top;
  box-sizing: border-box;
  width: 392px;
  max-width: 100%;
  padding: 4px;
  background: #000;
  border: 1px solid #fff;
  font-family: Tahoma, Geneva, sans-serif;
  margin: 2px 0;
}
.vid-frame .lyt {
  display: block;
  position: relative;
  width: 100%;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  background: #000;
}
.vid-frame.vid-16x9 .lyt { aspect-ratio: 16 / 9; }
.vid-frame.vid-4x3  .lyt { aspect-ratio: 4 / 3; }
.vid-frame .lyt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
}
.vid-frame .lyt-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 14%;
  pointer-events: none;
  transition: background 0.15s;
}
.vid-frame .lyt-play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
}
.vid-frame .lyt:hover .lyt-play,
.vid-frame .lyt:focus .lyt-play {
  background: rgba(204, 0, 0, 0.95);
}
.vid-frame .vid-cap {
  color: #fff;
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 16px;
  padding: 4px 2px 2px;
  word-wrap: break-word;
  line-height: 1.35;
}
.vid-frame .vid-cap b {
  font-weight: bold;
}
.vid-frame .vid-cap p {
  margin: 0.6em 0 0 0;
}
/* Real iframe replaces .lyt on click — share its sizing */
.vid-frame iframe {
  width: 100%;
  border: 0;
  display: block;
}
.vid-frame.vid-16x9 iframe { aspect-ratio: 16 / 9; }
.vid-frame.vid-4x3  iframe { aspect-ratio: 4 / 3; }

/* Site logo: black, underlined */
a.site-logo:link,
a.site-logo:visited {
  color: #000 !important;
  text-decoration: underline !important;
}

/* Link hover states */
a.slink:hover {
  color: #000000;
  text-decoration: underline;
  background-color: #FFFFCC;
}
a.rlink:hover {
  color: rgb(255, 0, 0);
  text-decoration: underline;
}

/* Google CSE menu search inline display */
.menu-search .gsc-control-cse,
.menu-search .gsc-control-wrapper-cse,
.menu-search .gsc-search-box {
  display: inline-block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.menu-search table.gsc-search-box { margin: 0 !important; }
.menu-search .gsc-input-box { min-width: 200px; }

/* Mobile (≤720px) layout */
@media (max-width: 720px) {
  .menu, .menubar, .topmenu, .header, .head, nav, .nav {
    display: block;
    white-space: normal !important;
    overflow: visible !important;
  }
  .menu a, a.slink {
    display: inline-block;
    margin-right: 6px;
  }
  td[nowrap], nobr {
    white-space: normal !important;
  }
  .menu-search .gsc-input-box {
    min-width: 120px !important;
  }
}
