/* Reset defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html, body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
  }
  
/*--------begin header-------*/
header {
    width: 100%;
}

.header-container {
    background-color: #333;
    color: white;
    padding: 10px 60px 10px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-width: 150px !important;
    max-height: 66px !important; /* Added to enforce height limit */
    height: 66px !important;
    width: auto !important; /* Ensure width adjusts */
}

/* contains a <ul> with seven navigation links */
.nav-links {
    font-family: "Roboto Condensed", Tahoma, Geneva, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

.nav-links ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.nav-links ul li {
    margin-left: 1rem;
    padding-left: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.nav-links a:hover {
    color: #42af7d;
}

/* contains three <div class="line"> elements, representing the hamburger icon */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
}

/* Ensure admin pages (using admin-menu.php) don’t show hamburger */
body.admin nav .hamburger {
  display: none !important;
}

/* Ensure nav-menu stays visible on admin pages */
body.admin nav .nav-menu {
  display: flex !important;
  flex-direction: row !important;
}
  
  /* Body Styling */
  body {
    font-family: Quicksand, Tahoma, Verdana, Geneva,  sans-serif;
    color: #333333;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 auto;
    width: 100%;
    padding: 20px;
    background-color: #fff;
  }
  
  @media (max-width: 768px) {
    body {
      padding: 15px;
    }
  }
  
  main {
    width: 90%;
    max-width: 1200px;
    margin: 2rem auto;
  }

  .breadcrumbs, .shieldgraphics, .photo-credits {
    width: 100%;
  }


  
/*--------begin footer-------*/
footer {
    width: 100%;  
    background-color: #333;
    font-family: "Roboto Condensed", Tahoma, Geneva, sans-serif;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    color: #999;
    padding: 10px 60px 10px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
}

.footer-links div {
    margin-bottom: 20px;
    margin-right: 40px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    display: block;
    padding: 15px 100px 10px 0;
    border-bottom: 1px solid #666;
}

.footer-links a:hover {
    color: #42af7d;
}

.footer-social img {
    height: 30px;
    padding-left: 10px;
}

.footer-social span {
    margin-right: 10px;
}

.footer-copyright {
    background-color: #222;
    border-top: 1px solid #666;
    height: 40px;
    padding-top: 20px;
}

.footer-copyright span {
    color: #999;
    font-size: 75%;
    padding-left: 60px;
}

.footer-copyright a {
    color: #ccc;
    text-decoration: none;
}

/* Hamburger menu on mobile (front-end only) */
@media (max-width: 768px) {

    main {
      width: 95%;
      margin: 1rem auto;
    }

    .header-container {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .logo img {
        max-width: 120px !important;
        max-height: 53px !important; /* Proportional height for mobile */
        height: 53px !important;
        width: auto !important;
    }

    .nav-links {
        display: none;
        width: 100%;
        background-color: #333;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 10px 0;
        z-index: 1000;
    }

    .nav-links.active {
        display: block;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }

    .nav-links ul li {
        margin: 10px 0;
        padding-left: 0;
    }

    .nav-links a {
        font-size: 14px;
    }

    .hamburger {
        display: flex;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        padding: 10px 20px;
    }

    .footer-links {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links div {
        margin: 10px 0;
        margin-right: 0;
    }

    .footer-links a {
        padding: 10px 0;
        border-bottom: none;
    }

    .footer-social {
        margin-top: 20px;
        text-align: center;
    }

    .footer-copyright span {
        padding-left: 20px;
        font-size: 70%;
    }
}

/* Header/Footer for Phone screens */

@media (max-width: 480px) {

    main {
        width: 98%;
        margin: 0.5rem auto;
    }
      
    .header-container {
        padding: 8px 15px;
    }

    .logo img {
        max-width: 100px !important;
        max-height: 44px !important; /* Proportional height for phone */
        height: 44px !important;
        width: auto !important;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hamburger .line {
        width: 20px;
        height: 2px;
        margin: 2px 0;
    }

    .footer-social img {
        height: 25px;
    }

    .footer-copyright span {
        font-size: 65%;
    }
}  
  
  main { margin-bottom: 15px; }
  h1 { 
    text-align: center; 
    line-height: 1.4; 
    margin-top: 15px; 
    margin-bottom: 15px; 
  }
  h2 { text-align: left; line-height: 1.5; margin-bottom: 15px; }
  p { margin-bottom: 15px; }
  a { text-decoration: none; color: darkgreen; }

  .featureimagecaption {
    font-family: "Trebuchet MS", Helvetica, sans-serif;
    margin-top: 15px;
    margin-bottom: 20px;
    text-align: center;
    word-spacing: 1px;
    color: #525252;
  }

  .historical {
  -webkit-box-shadow: 3px 3px 5px 2px #999999; 
  box-shadow: 3px 3px 5px 2px #999999;
  background: #DDDDDD;
  }
  body#tinymce {
  background: #FFFFFF
  }

  #myContainer {
    margin-bottom: 20px;
  }
  
  @media (max-width: 768px) {
    h1 {
      line-height: 1.6;
      margin-top: 10px;
      margin-bottom: 10px;
      font-size: 1.5em; /* Reduced from default ~2em (~32px) to ~24px */
    }
  }
  
  .breadcrumbs {
    text-align: center;
    margin-bottom: 15px;
  }
  
  .shieldgraphics {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 25px;
    flex-wrap: wrap;
  }
  
  .shieldgraphics img {
    max-width: 150px; /* Increased for desktop */
    height: auto;
    margin: 5px;
    flex: 0 1 auto;
  }
  
  @media (max-width: 768px) {
    .shieldgraphics {
      justify-content: center;
      gap: 10px;
    }
    .shieldgraphics img {
      max-width: 80px;
      flex: 0 1 calc(50% - 10px);
    }
  }
  
  .photo-credits {
    margin-top: 20px;
    margin-bottom: 30px;
  }
  
  /* Fix all list bullets/numbers (for overview or other lists) */
  ul, ol {
    list-style-position: inside;
    padding-left: 0;
    margin-left: 0;
    width: 100%;
  }
  
  @media (max-width: 768px) {
    ul, ol {
      padding-left: 0;
    }
  }
  
  .date-taken {
    font-size: 0.9em;
    color: #666;
  }
  
  /* Template 1 */
  .t1-gallery-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    padding: 0;
  }
  
  .t1-gallery-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    width: 100%;
  }
  
  .t1-thumbnail-col {
    max-width: 320px; /* Restore desktop thumbnail size */
    position: relative;
  }
  
  .t1-photo-count {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    font-size: 12px;
    border-radius: 3px;
  }
  
  .t1-caption-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  
  .t1-guide-header {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 3px solid #747474;
    margin-bottom: 12px;
  }
  
  .t1-route-header {
    display: inline-flex;
    align-items: center;
  }
  
  .t1-route-header img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 3px;
  }
  
  .t1-route-header .header-text {
    font-weight: bold;
    font-size: 18px;
  }
  
  @media (max-width: 768px) {
    .t1-gallery-container {
      grid-template-columns: 1fr;
    }
    .t1-gallery-item {
      grid-template-columns: 1fr;
      grid-template-rows: auto auto;
      justify-items: center;
    }
    .t1-thumbnail-col {
      max-width: 100%;
      margin-bottom: 10px;
    }
  }
  
  /* Template 2 */
  .grid-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
    padding: 0;
  }
  
  .highwaymarker {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    font-size: 18px;
    font-weight: 500;
    width: 100%;
    margin-bottom: 15px;
  }
  
  .highwaymarker img {
    margin-right: 7px;
  }
  
  .grid-gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }
  
  .grid-gallery-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  
  .grid-gallery-item .caption {
    text-align: center;
  }
  
  /* Outbound Links Styling (Flexbox) */
  .outbound-links {
    padding-left: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
  }
  
  .outbound-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }
  
  .outbound-link-item img {
    max-width: 50px;
    height: auto;
    vertical-align: middle;
  }
  
  @media (max-width: 1024px) and (min-width: 769px) {
    .grid-gallery {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .grid-gallery {
      grid-template-columns: 1fr;
    }
    .grid-gallery-item {
      align-items: center;
    }
    .outbound-links {
      flex-direction: column;
      gap: 2px; /* Reduced to half of 8px for less vertical scrolling */
    }
  }

  /* Side-by-side graphics styling for desktop */
.side-by-side-graphics {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* Space between items */
  justify-content: center; /* Center items horizontally */
  width: 100%;
  max-width: 1100px; /* Match body max-width */
  margin: 0 auto; /* Center the container */
}

.graphic-item {
  flex: 0 0 calc(50% - 20px); /* Two items side by side on desktop, accounting for gap */
  text-align: center; /* Center images */
}

.graphic-item img {
  max-width: 100%; /* Ensure images don’t exceed container */
  height: auto; /* Maintain aspect ratio */
  /* border: 1px solid #ddd; /* Optional: Match your design */
  border-radius: 4px; /* Optional: Match your design */
}

/* Mobile view (≤ 768px) - Stack vertically */
@media screen and (max-width: 768px) {
  .side-by-side-graphics {
      display: block; /* Stack items vertically */
      padding: 10px; /* Add padding for mobile */
  }

  .graphic-item {
      flex: none; /* Remove flex behavior */
      width: 100%; /* Full width on mobile */
      margin-bottom: 20px; /* Space between stacked items */
  }

  .graphic-item img {
      max-width: 100%; /* Ensure images fit mobile viewport */
  }
}

.yellow-box {
  background-color: yellow;
  color: black;
  border: 2px solid black; /* 1px thick, solid black border */
  padding: 1px; /* Optional: Adds some space between the text and the border */
  border-radius: 5px; /* Adjust the radius value to control the roundness */
  width: 100px; /* Sets the width to 200 pixels */
  font-family: 'Roadgeek 2005 Series E';
  font-weight: bold;
}