html {
    scroll-behavior: smooth;
  }

  body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: lighter;
    background: #f9f9f9;
    color: #222;
    transition: background 0.3s, color 0.3s;
  }

  body.dark-mode {
    background: #121212;
    color: #eee;
  }

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    color: white;
    padding: 20px;
    position: relative;
    z-index: 10;
  }

  .logo {
    font-size: 22px;
    font-weight: bold;
  }

  nav {
    display: flex;
    gap: 15px;
  }

  nav a {
    color: white;
    text-decoration: none;
    font-weight: lighter;
  }

  .social-icons {
    display: flex;
    gap: 10px;
  }

  .social-icons a {
    color: white;
    font-size: 18px;
  }

  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
  }

  .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
  }

  @media (max-width: 768px) {
    nav {
      display: none;
      flex-direction: column;
      background-color: #111;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      padding: 50px 0;
      text-align: center;
    }

    nav.active {
      display: flex;
    }

    .hamburger {
      margin-top:5px;
      display: flex;
    }

    header {
      flex-direction: column;
    }

    .logo {
      text-align: center;
      margin-bottom: 10px;
      padding-top:10px;
    }

    .social-icons {
      display: none;
    }

    nav.active a.social {
      display: block;
      text-align: center;
      font-size: 18px;
    }
  }

.liveBanner {

    background-color: rgb(221, 24, 24);
    color: white;
    padding: 6px 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    text-align: center;
    height: 25px;
}

.liveBanner a {
  color: white;
  text-decoration: none;
}

  .hero {
    position: relative;
    max-width: 1080px;
    height: auto;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
  }

  .hero img {
    width: 100%;
    height: auto;
    display: block;
  }

  .overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    font-size: 14px;
  }


.overlay a {
  color: white;
  text-decoration: none;
}

  .dot {
    height: 10px;
    width: 10px;
    background-color: red;
    border-radius: 50%;
    animation: pulse 1s infinite;
  }

  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  .datetime {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
  }

  #updateTimer {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
  }

  .weather-widget {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 1;
  }

  .counter {
    text-align: center;
    padding: 30px;
    font-size: 18px;
    font-weight: 200;
  }

  .counter span {
    color: red;
  }

  footer {
    background: #333;
    color: white;
    padding: 20px;
    font-size: 14px;
    text-align: center;
  }

  body.dark-mode footer {
    background: #1e1e1e;
    color: #ccc;
  }

  .ad {
    background: #eee;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
  }

  .donate {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .donate p, .donate button {
    display: inline;
    vertical-align: middle;
    margin: 0 5px;
  }

  .donate button {
    background: green;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
  }

  .mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #222;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    font-size: 20px;
    transition: background 0.3s;
  }

  .mode-toggle:hover {
    background: #444;
  }

  .archive {
    padding: 30px 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;

  }

  .break {
   height: 75px;
   width:100%;
  }

  .offWhiteWrap {
    background-color: #eeeeeee0;
   }

   body.dark-mode .offWhiteWrap {
    background: #121212;
  }

.image-grid-container {
padding: 0rem;
max-width: 1200px;
margin: 0 auto;
}

.image-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 18px;
}

.image-grid img.thumb {
width: 100%;
height: auto;
cursor: pointer;
border-radius: 6px;
border: 0.5px solid grey;

transition: transform 0.2s ease;
}

.image-grid img.thumb:hover {
transform: scale(1.03);
}

.img-overlay {
display: none;
position: fixed;
z-index: 9999;
top: 0; left: 0;
width: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.9);
justify-content: center;
align-items: center;
}

.img-overlay img {
max-width: 90%;
min-width: 70%;
max-height: 90%;
border-radius: 12px;
}

.img-overlay .close-btn {
position: absolute;
top: 20px;
right: 30px;
color: #fff;
font-size: 3rem;
font-weight: bold;
cursor: pointer;
z-index: 10000;
}

.img-overlay .close-btn:hover {
color: #ff5555;
}

.caption {
text-align: center;
margin-top: 8px;
font-size: 14px;
color: #555;
font-weight: normal;
}
body.dark-mode .caption {
color: white;
}

@media (max-width: 1080px) {
/* Styles for devices narrower than an iPad (portrait) */
.hero {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin:0;
  }
}

.image-overlay {
display: none;
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0, 0, 0, 0.9);
z-index: 9999;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 1rem;
}

.overlay.show {
display: flex;
}

.overlay-content {
text-align: center;
max-width: 90%;
max-height: 80vh;
}

.overlay-content img {
max-width: 100%;
max-height: 70vh;
border-radius: 10px;
transition: opacity 0.3s ease-in-out;
}

.nav-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 2rem;
color: white;
background: none;
border: none;
cursor: pointer;
padding: 10px;
user-select: none;
z-index: 10000;
}

.nav-btn.left {
left: 10px;
}

.nav-btn.right {
right: 10px;
}

.nav-btn:hover {
color: #ccc;
}

.close-btn {
margin-top: 20px;
background: #fff;
border: none;
padding: 10px 20px;
font-size: 1rem;
border-radius: 5px;
cursor: pointer;
}

.close-btn:hover {
background: #eee;
}

.overlay-controls {
margin-top: 20px;
display: flex;
justify-content: center;
gap: 15px;
}

.nav-button {
background: #000;
color: #fff;
border: none;
padding: 12px 18px;
font-size: 1.5rem;
border-radius: 50%;
cursor: pointer;
transition: background 0.2s ease, transform 0.2s ease;
box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.nav-button:hover {
background: #222;
transform: scale(1.1);
}


.image-wrapper {
position: relative;
display: inline-block;
max-width: 100%;
max-height: 70vh;
}

.image-wrapper img {
display: block;
max-width: 100%;
max-height: 70vh;
border-radius: 10px;
}

.image-caption {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.6);
color: #fff;
padding: 6px 12px;
border-radius: 5px;
font-size: 1rem;
white-space: nowrap;
}

#imgOverlay {
display: none;
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0, 0, 0, 0.9);
z-index: 9999;
align-items: center;
justify-content: center;
flex-direction: column;
padding: 1rem;
}

#imgOverlay.show {
display: flex;
}