/* ==================================================
   KMDP-TV SITE STYLES
   ================================================== */


/* --------------------------------------------------
   COLOR VARIABLES
-------------------------------------------------- */

:root {
  --navy: #000086;
  --deep-blue: #00005e;
  --blue: #1514EA;
  --light-blue: #4BA0ED;
  --lavender: #bdbef7;
  --hot-pink: #eB448e;
  --border: #eB448e;
  --yellow: #ffff54;
  --red: #cc0000;
  --white: #ffffff;
  --black: #010101;
  --text: #ffffff;
  
  
}

@font-face {
  font-family: 'VCR';
  src: url('/assets/VCR.ttf'); /* Standalone src line for old IE */
  src: url('/assets/VCR.ttf') format('embedded-opentype'),
       url('/assets/VCR.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  
}

@font-face {
font-family: 'chicago';
  src: url('/assets/chicago.ttf'); /* Standalone src line for old IE */
  src: url('/assets/chicago.ttf') format('embedded-opentype'),
       url('/assets/chicago.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  
}

/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  
  width: 100%;
  height: 100vh;
 
  background: var(--black);
  background-image: linear-gradient( #ffffff .2em, transparent .2em), linear-gradient(90deg, #ffffff .2em, transparent .2em);
  background-size: 10em 10em;

  color: var(--text);
  font-family: Georgia, serif;
  font-size: 11px;
}

a {
  color: var(--yellow);
  text-decoration: underline;
}

a:hover {
  color: var(--hot-pink);
}


/* --------------------------------------------------
   SITE CONTAINER
-------------------------------------------------- */

.site {
  width: min(820px, 100%);
  margin: 8px auto 24px;

  background: var(--black);
  border: 1px solid #eB448e;
  box-shadow: 2px 2px 0 #999;
}


/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.header {
  position: relative;
  min-height: 82px;

  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: stretch;

  /* Stacked backgrounds: top image first, base banner second */
  background-image: url("/assets/banner.png");
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center center; /* Adjust positioning as needed */
  background-size: 100% 100%;

  border-bottom: 3px solid var(--blue);
}

.logo {
  display: block;

  border: 0;
  width: 93px;
  height: 100px;
}

.station-brand {
  padding: 10px 14px;
  text-shadow: 1px 1px white;
}

.station-brand .callsign {
  color: var(--blue);

  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: bold;
  line-height: 30px;

  letter-spacing: -2px;
}

.station-brand .tagline {
  margin-top: 7px;

  color: #222;
  font-size: 10px;
  font-weight: bold;

  letter-spacing: 0.3px;
}

.station-brand .tagline span {
  color: var(--hot-pink);
}


/* --------------------------------------------------
   SEARCH
-------------------------------------------------- */

.search {
  padding: 9px 8px;

  border-left: 0px solid #929ac2;

  text-align: right;
}

.search-label {
  display: block;

  margin-bottom: 4px;

  color: var(--yellow);
  
  font-family: "chicago", normal;
  font-size: 10px;
  font-weight: Normal;
  
  text-shadow: 1px 0 0 #1514EA;


}

.search form {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
}

.search input {
  width: 91px;
  height: 20px;

  padding: 1px 3px;

  border: 1px solid #eB448e;
  background: black;
  color: yellow;

  font: 11px Georgia, normal;
  font-style: italic;
}

.go {
  width: 29px;
  height: 20px;

  border: 1px solid #222;
  background: var(--hot-pink);

  color: yellow;
  font: 11px chicago, normal;
  font-size: 10px;
  font-weight: normal;
  
  text-shadow: 1px 0 0 #1514EA;
  
  

  cursor: pointer;
}


/* --------------------------------------------------
   LIVE DATE / CHANNEL BAR
-------------------------------------------------- */

.station-bar {
  display: flex;
  align-items: center;

  min-height: 14px;

  background: var(--blue);
  
}

.ticker-date {
  flex: 0 0 auto;

  padding: 0px 4px;
  line-height: 14px;
  display: flex;
  align-items: center;
  transform: translateY(-2.5px);
  white-space: nowrap;

  color: var(--yellow);
  font-size: 13px;
  font-weight: normal;
  font-family: 'VCR', normal;
  /* 1px right, 1px down, 0px blur, black color */
  text-shadow: 1px 0 0 #000000;
}

.ticker {
  overflow: hidden;
  flex: 2;

  height: 14px;
  
  background: var(--blue);
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-block;

  padding: 0px 0 0 100%;
  white-space: nowrap;
  margin-top: -5px;
  animation: ticker 40s linear infinite;

  color: var(--yellow);
  font-size: 13px;
  font-weight: normal;
  font-family: 'VCR', normal;
  /* 1px right, 1px down, 0px blur, black color */
  text-shadow: 1px 0 0 #000000; 
}

.ticker-track strong {
  color: var(--hot-pink);
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}


/* --------------------------------------------------
   CHANNEL NAV
-------------------------------------------------- */

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;

  padding: 2px;

  background: #000;
}

.channels a {
  flex: 1 1 auto;

  min-width: 67px;

  padding: 4px 6px;

  background: var(--black);
  color: #000;

  border-top: 1px solid #ffffff;
  border-left: 1px solid #ffffff;
  border-right: 1px solid #000000;
  border-bottom: 1px solid #000000;

  text-align: center;

  font-size: 10px;
  font-weight: bold;

  text-decoration: none;
}

.channels a:hover,
.channels a.active {
  background: var(--hot-pink);
  color: white;
}


/* --------------------------------------------------
   THREE-COLUMN BODY
-------------------------------------------------- */

.columns {
  display: grid;

  grid-template-columns: 130px minmax(0, 1fr) 130px;

  align-items: stretch;
}


/* --------------------------------------------------
   LEFT COLUMN
-------------------------------------------------- */

.left-column {
  background:
    linear-gradient(
      to bottom,
      var(--light-blue),
      var(--blue),
      var(--hot-pink),
      var(--yellow),
      var(--black)
    );
    

  border-right: 2px solid #eB448e;
}

.nav-header {
  padding: 7px 2px;

  background: var(--light-blue);
  color: var(--yellow);

  border-bottom: 2px solid #eB448e;

  font-family: 'chicago', normal;
  font-size: 10px;
  font-weight: normal;
  
  text-shadow: 1px 0 0 #1514EA; 
  text-align: center;
  text-transform: none;
}

.main-nav {
  padding: 4px;
}

.main-nav a {
  display: block;

  padding: 6px 5px;
  margin-bottom: 1px;

  background: var(--light-blue);
  color: yellow;

  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;

  font-family: 'chicago', normal;
  font-size: 12px;
  font-weight: normal;

  text-shadow: 1px 0 0 #1514EA; 
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--hot-pink);
  color: yellow;
}

.side-links {
  margin: 8px 4px;

  border: 1px solid #aaa;
}

.side-links a {
  display: block;

  padding: 6px 4px;

  color: white;
  background: var(--blue);

  border-bottom: 1px solid #444;

  text-align: center;

  font-size: 9px;

  text-decoration: none;
}

.side-links a:hover {
  background: #3333aa;
}


/* --------------------------------------------------
   AD BOXES
-------------------------------------------------- */

.ad-box {
  margin: 8px 4px;

  min-height: 108px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    repeating-linear-gradient(
      45deg,
      #777 0,
      #777 1px,
      #888 1px,
      #888 4px
    );

  border: 2px inset #aaa;

  color: white;

  text-align: center;

  text-shadow: 1px 1px #000;

  font-size: 9px;
  font-weight: bold;
}


/* --------------------------------------------------
   CENTER COLUMN
-------------------------------------------------- */

.center-column {
  min-width: 0;

  background: var(--black);
  
}

.welcome {
  padding: 4.7px 5px;
  background: var(--black);

  border-bottom: 2px solid #eB448e;

  color: var(--yellow);

  font-size: 15px;
  font-weight: normal;
  font-style: italic;
  
  text-align: center;
  text-shadow: 1px 0 0 #1514EA; 
}

.welcome strong {
  color: var(--hot-pink);
  
  font-size: 15px;
  font-weight: normal;
  font-style: italic;
  
  text-shadow: 1px 0 0 #1514EA;
  
}

.welcome-image {
    display: block;
    margin-top: 6px;
    margin-left: auto;
    margin-right: auto;
    max-width: 50%; /* Prevents the image from stretching past its container */
    height: auto;

}

.welcome-borderless {
  padding-bottom: 0px;
  padding-top: 6px;
  background: var(--black);

  color: var(--yellow);

  font-size: 15px;
  font-weight: normal;
  font-style: italic;
  
  text-align: center;
  text-shadow: 1px 0 0 #1514EA; 
}


/* --------------------------------------------------
   CONTENT MODULES
-------------------------------------------------- */

.module {
  margin: 7px 5px;

  border: 1px solid var(--border);

  background: black;
}

.module-title {
  display: flex;
  align-items: center;

  min-height: 22px;

  padding: 4px 6px;

  background:
    linear-gradient(
      to right,
      var(--light-blue),
      var(--blue),
      var(--black)
    );

  color: yellow;

  border-bottom: 1px solid #eB448e;

  font-family: 'chicago', normal;
  font-size: 11px;
  font-weight: normal;
  font-style: normal;
  text-shadow: 0.7px 0 0 #000000;
}

.module-title::before {
  content: "◆";

  margin-right: 5px;

  color: var(--yellow);

  font-size: 7px;
}

/* --------------------------------------------------
   YOUTUBE EMBEDDED CONTENT
-------------------------------------------------- */

/* 4:3 Retro Aspect Ratio Video Container */
.video-container-43 {
  position: relative;
  width: 100%;             /* Fills 100% of the parent module space */
  aspect-ratio: 4 / 3;     /* Native modern CSS 4:3 ratio */
  overflow: hidden;
  margin: 12px 0;
  border: 0;               /* Removes unwanted external borders */
  background: #000000;     /* Keeps background solid black */
}

.video-container-43 iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  
  border: 0;
  outline: none;
}

/* --------------------------------------------------
   STORIES
-------------------------------------------------- */

.lead-story {
  padding-bottom: 4px;
  padding-top: 4px;

}

.lead-story:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.story-title {
  display: block;

  margin: 0px;

  color: var(--yellow);
  
  font-size: 14px;
  font-weight: normal;
  font-style: italic;
  text-shadow: 1px 0 0 #1514EA; 
  padding-left: 6px;
  padding-top: 10px;
  border-top: 1px dotted var(--light-blue);
  
  text-decoration: none;
  
}  
  .story-title-borderless {
  display: block;

  margin: 0px;

  color: var(--yellow);
  
  font-size: 14px;
  font-weight: normal;
  font-style: italic;
  text-shadow: 1px 0 0 #1514EA; 
  padding-left: 6px;
  padding-top: 2px;
  border-top: none; /* Removes the top border */
  text-decoration: none;
  
}

.station-info-group {
  display: block;
  flex-direction: column; /* Stacks channel title and extra text vertically */
  flex: 1;                /* Fills remaining horizontal space next to icon */
  min-width: 0;           /* Prevents text overflow bugs */
  
}

.station-title {
  display: block;

  margin: 0px;

  color: var(--yellow);
  
  font-family: Chicago, normal;
  font-size: 13px;
  font-weight: normal;
  font-style: normal;
  text-shadow: 1px 0 0 #1514EA; 
  padding-left: 6px;
  padding-top: 2px;
  
  text-decoration: none;
  
}

.station-extra {
  margin: 4px 0 0 0;      /* Adds a tiny bit of breathing room from the line above */
  text-align: center;     /* Centers the extra text horizontally */
  font-family: Georgia, serif;
  font-size: 12px;        /* Slightly smaller to differentiate it */
  padding-bottom: 10px;
  color: var(--white);
  
}

.station-extra-border {
  margin: 4px 0 0 0;      /* Adds a tiny bit of breathing room from the line above */
  text-align: center;     /* Centers the extra text horizontally */
  font-family: Georgia, serif;
  font-size: 12px;        /* Slightly smaller to differentiate it */
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 1px dotted var(--light-blue);
  
}

.story-meta {
  margin-bottom: 0px;

  color: var(--light-blue);

  font-family: Georgia, serif;
  font-size: 12px;
  padding-left: 6px;
  padding-top: 2px;
  
  text-decoration: none;
}

.story-text {
  margin: 0;

  line-height: 1.35;
  font-family: Georgia, serif;
  font-size: 11px;
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 0px;
  padding-bottom: 6px;
  
}

.story-text-border {
  margin: 0;

  line-height: 1.35;
  font-family: Georgia, serif;
  font-size: 11px;
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 0px;
  padding-bottom: 10px;
  border-bottom: 1px dotted var(--light-blue);
  
}

.more {
  display: inline-block;

  margin-top: 3px;

  font-size: 9px;
  font-weight: normal;
}

.center-image-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;    /* Centers children inside the wrapper */
  width: fit-content;     /* Shrinks wrapper to fit the image width */
  margin: 0px auto;      /* enters the wrapper horizontally on the page */
  max-width: 100%;
  
}

.center-image {
    display: block;
    margin: 6px auto;
    max-width: calc(100% - 12px); /* Prevents 6px left + 6px right margin from pushing outside parent */
    height: auto;
    border: 1px solid var(--hot-pink);
    
    
}  

  .center-image-caption {
    display: block;
    width: 100%;
    margin-top: 6px;
    font-size: 11px;
    color: var(--light-blue);
    text-align: center;
    
}

 .center-image-borderless {
  display: block;
  margin: 6px auto;       /* ⬅️ Ensures margins are centered */
  max-width: calc(100% - 12px);
  height: auto;
}
  
/* Flexible parent container for text + image side-by-side */
.story-content {
  display: flex;
  gap: 2px;               /* Space between image wrapper and text */
  align-items: flex-start; /* Aligns text and image to top edge */
  width: 100%;
  box-sizing: border-box;
  padding: 6px;
}

/* Special modifier class for single-line station lists */
.story-content.station-list {
  display: flex;
  gap: 10px;
  align-items: center; /* Keeps icon vertically balanced with the text group */
  width: 100%;
  box-sizing: border-box;
  padding: 6px;
}

/* 1. Base Image Wrapper: Controls column width */
.story-image-wrapper {
  box-sizing: border-box;
  width: 35%;             /* ⬅️ Change this % to resize the image & wrapper column! */
  max-width: 280px;       /* Keeps it from ballooning on huge screens */
  min-width: 50px;       /* Prevents collapsing too small on narrow layouts */
  flex-shrink: 0;         /* Stops Flexbox from forcing it smaller than min-width */
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 2. Base Image inside Wrapper: Stretches cleanly to wrapper bounds */
.story-image {
  box-sizing: border-box;
  width: 100%;            /* Fills 100% of .story-image-wrapper */
  height: auto;           /* Preserves aspect ratio */
  display: block;
}

/* 3. Modifier for bordered images */
.story-image.has-border {
  border: 1px solid var(--hot-pink);
}

/* 4. Text paragraph automatically fills all remaining space */
.image-text {
  margin: 0;
  flex: 1;                /* Flexbox: takes 100% of remaining horizontal space */
  line-height: 1.35;
  font-family: Georgia, serif;
  font-size: 11px;
  min-width: 0;           /* Prevents text from forcing flex container to stretch */
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 0px;
  padding-bottom: 0px;
  
}
  .image-text-border {
  margin: 0;

  line-height: 1.35;
  font-family: Georgia, serif;
  font-size: 11px;
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 0px;
  padding-bottom: px;
  border-bottom: 1px dotted var(--light-blue);
  
}

.story-image-caption {
  margin-top: 4px;
  margin-bottom: 0px;
  font-size: 11px;
  color: var(--light-blue);
  text-align: center;
    
}

.image-beside {
  display: flex;       /* Aligns the content side by side */
  gap: 10px;           /* Puts space between the two images */
  justify-content: center;
  margin: 12px auto;
}

.image-beside img {
  width: 50%;          /* ⬅️ Gives each image nearly half the container width (leaving room for the 10px gap) */
  max-width: 250px;    /* ⬅️ Optional: Prevents them from getting too massive on wide screens */
  height: auto;        /* Preserves aspect ratio */
  object-fit: contain; /* Prevents stretching/distortion */
  flex-shrink: 0;      /* ⬅️ CRUCIAL: Stops flexbox from squishing one image more than the other */
}

/* --------------------------------------------------
   TWO-COLUMN CONTENT
-------------------------------------------------- */

.two-up {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 6px;

  margin: 7px 5px;
}

.two-up .module {
  margin: 0;
}


/* --------------------------------------------------
   COMPACT LISTS
-------------------------------------------------- */

.compact-list {
  margin: 0;
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 2px;
  padding-bottom: 2px;

  list-style: none;
}

.compact-list li {
  padding: 5px 0;

  border-bottom: 1px dotted #4BA0ED
}

.compact-list li:last-child {
  border-bottom: 0;
}

.compact-list a {
  font-size: 14px;
  font-weight: normal;
  font-style: italic;
  text-shadow: 1px 0 0 #1514EA;
  
}


/* --------------------------------------------------
   RIGHT COLUMN
-------------------------------------------------- */

.right-column {
  padding: 5px;

  background:
    linear-gradient(
      to bottom,
      var(--light-blue),
      var(--blue),
      var(--hot-pink),
      var(--yellow),
      var(--black)
    );
    

  border-left: 2px solid #eB448e;
}


/* --------------------------------------------------
   RIGHT-SIDE BOXES
-------------------------------------------------- */

.right-box {
  margin-bottom: 7px;

  border: 1px solid var(--hot-pink);

  background: black;
}

.right-title {
  padding: 4px;

  background: var(--hot-pink);
  color: yellow;

  font-family: 'chicago', normal;
  font-size: 12px;
  font-weight: normal;
  font-style: normal;

  text-shadow: 1px 0 0 #1514EA;
  text-align: center;
}

.right-content {
  padding: 4px;

  font-family: 'VCR', normal;
  font-weight: normal;
  font-style: normal;
  font-size: 8px;
  line-height: 1.4;
  text-align: center;
}

.right-content a {
  
  font-family: 'VCR', normal;
  font-size: 11px;
  font-weight: normal;
}


/* --------------------------------------------------
   STATUS
-------------------------------------------------- */

.status {
  color: var(--yellow);
  
  font-family: 'VCR', normal;
  font-size: 11px;
  font-weight: normal;
}


/* --------------------------------------------------
   VERTICAL ADS
-------------------------------------------------- */

.vertical-ad {
  min-height: 150px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 7px;
  padding: 8px;

  background:
    linear-gradient(
      135deg,
      #eee 25%,
      #ddd 25%,
      #ddd 50%,
      #eee 50%,
      #eee 75%,
      #ddd 75%
    );

  background-size: 8px 8px;

  border: 2px inset #aaa;

  color: #555;

  text-align: center;

  font-size: 9px;
  font-weight: bold;
}


/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

.footer {
  padding: 8px;

  background: #000;
  color: #ffffff;

  border-top: 2px solid #eB448e;

  text-align: center;

  font-size: 9px;
  line-height: 1.5;
}

.footer a {
  color: var(--white);
}

/* Custom font style for the second line */
        .footer-chicago {
            font-family: 'chicago', normal;
            font-size: 9px;
            color: #ffff54;
            text-shadow: 1px 0 0 #1514EA;
}
        .bottom-image {
            display: block;
            margin-top: auto;
            margin-left: auto;
            margin-right: auto;
            max-width: 67%; /* Prevents the image from stretching past its container */
            height: auto;

        }



/* --------------------------------------------------
   MOBILE HAMBURGER NAVIGATION
-------------------------------------------------- */

/* Hidden on desktop */
.mobile-nav-container {
  display: none;
  position: relative;
  z-index: 100;
  padding: 4px;
  background: var(--blue);
  border-bottom: 2px solid var(--hot-pink);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;

  width: 35px;
  height: 30px;
  padding: 5px;

  background: var(--light-blue);

  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;

  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  box-shadow: 1px 0 0 var(--blue);
}

.mobile-menu {
  display: none;
  width: 100%;
  padding: 5px;

  background: linear-gradient(
    to bottom,
    var(--light-blue),
    var(--blue),
    var(--hot-pink),
    var(--yellow),
    var(--black)
  );

  border: 2px solid var(--hot-pink);
  border-top: 0;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu .main-nav {
  padding: 0;
}

.mobile-menu .main-nav a {
  display: block;
  padding: 8px 6px;
  margin-bottom: 2px;

  background: var(--light-blue);
  color: yellow;

  border-top: 1px solid #eee;
  border-left: 1px solid #eee;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;

  font-family: 'chicago', normal;
  font-size: 12px;
  text-shadow: 1px 0 0 #1514EA;
  text-decoration: none;
}

.mobile-menu .main-nav a:hover,
.mobile-menu .main-nav a.active {
  background: var(--hot-pink);
  color: yellow;
}

/* --------------------------------------------------
   MOBILE NAVIGATION
-------------------------------------------------- */

/* Hidden on desktop */
.mobile-nav-container {
  display: none;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: -2px;
  width: 180px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 5px;
  background: var(--blue);
  border: 2px solid var(--hot-pink);
  box-shadow: 2px 2px 0 #000;
  z-index: 10000;
}

.mobile-menu.open {
  display: block;
}


/* --------------------------------------------------
   MOBILE
-------------------------------------------------- */

@media (max-width: 650px) {

  /* Main site fills the screen */
  .site {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  /* Stack header content */
  .header {
    grid-template-columns: 1fr;
  }

  .search {
    display: none;
  }

  /* Use the full screen for the main content */
  .columns {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Hide desktop sidebars */
  .left-column,
  .right-column {
    display: none;
  }

  /* Floating hamburger button */
  .mobile-nav-container {
    display: block;
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 10001;
    padding: 4px;
    background: var(--blue);
    border: 2px solid var(--hot-pink);
    box-shadow: 2px 2px 0 #000;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 28px;
    padding: 5px;
    background: var(--light-blue);
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--yellow);
    box-shadow: 1px 0 0 var(--blue);
  }

  /* Mobile menu links */
  .mobile-menu .main-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }

  .mobile-menu .main-nav a {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  /* Stack two-column content */
  .two-up {
    grid-template-columns: 1fr;
  }

  .channels a {
    min-width: 80px;
  }

  /* Stack image and text */
  .image-container {
    flex-direction: column;
  }

  .image-container img {
    width: 100%;
  }
}


/* --------------------------------------------------
   SMALL MOBILE
-------------------------------------------------- */

@media (max-width: 430px) {

  .columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .station-brand .callsign {
    font-size: 29px;
  }

  .ticker-date {
    font-size: 8px;
  }

  .mobile-nav-container {
    top: 8px;
    right: 8px;
  }
  
  /* Only apply these layout overrides on the About page */
  
  .page-about .center-column .module:nth-of-type(1) .story-content {
    flex-direction: column;
    align-items: center;
  }

  .page-about .center-column .module:nth-of-type(1) .story-image-wrapper {
    width: 60% !important;
    max-width: 200px;
    margin: 0 auto 12px auto;
  }

  .page-about .center-column .module:nth-of-type(2) .story-content {
    flex-direction: column;
  }

  .page-about .center-column .module:nth-of-type(2) .story-image-wrapper {
    width: 100% !important;
    max-width: 100%;
    margin: 12px 0 0 0;
    order: 2;
  }

  .page-about .center-column .module:nth-of-type(2) .image-text {
    order: 1;
  }
  
  /* 1. Prevent the KY3/KSPR side-by-side logos from overflowing the module border */
  .image-beside img {
    max-width: calc(50% - 6px) !important; /* Scales them down slightly to fit padding bounds */
    box-sizing: border-box;
  }

  /* 2. Slightly reduce the yellow station call-sign font size on mobile to prevent wrapping */
  .station-title {
    font-size: 10px !important; 
  }

}