#search-form,
.search-toggle {
  display: none !important;
}

.media-embed .resource {
  display: inline-flex;           /* allows easy centering */
  flex-direction: column;         /* stack image + caption vertically */
  align-items: center;            /* centers horizontally */
  justify-content: center;        /* centers vertically if needed */
  text-align: center;             /* centers caption text */
  border-radius: 5px;            /* rounded corners */
  border: 2px solid #ddd;         /* optional border */
  overflow: hidden;               /* ensures image/caption respect radius */
  background-color: #fff;         /* optional background */
  padding: 12px;                   /* space inside border */
  box-sizing: border-box;
  gap: 12px; /* modern way to add spacing */
}

.media-embed .resource h3{
  font-size: 13px;
  font-family: "Lora", serif;
  white-space: normal;     /* allow wrapping */
  overflow: visible;       /* let content show */
  text-overflow: clip;     /* remove the "..." */
  display: block;            /* Ensure consistent block-level layout */
  max-width: 100%;           /* Prevent overflow outside the container */
  role: none; /* (for accessibility if added inline, not CSS) */
 margin: 8px 0; /* adds breathing room between items */
} 

/* Make the link itself a large enough touch target */
.media-embed .resource h3 a {
  display: inline-block;
  min-height: 44px;          /* WCAG recommended touch height */
  line-height: 1.3;
  padding: 8px 12px;         /* gives tappable area without bloating text */
  text-decoration: none;
  color: #222;
  border-radius: 6px;        /* makes focus/hover states visible and friendly */
 transition: color 0.2s ease, background-color 0.2s ease; /* smooth effect */
}

/* Hover & focus states */
.media-embed .resource h3 a:hover,
.media-embed .resource h3 a:focus {
  color: red;                /* turns text red on hover/focus */
  background-color: #f9f9f9; /* optional subtle highlight */
  outline: 2px solid transparent; /* keep focus outline from disappearing */
  outline-offset: 2px;
}

.media-embed .resource .caption * {
  color: black;
  font-family: "Lora", serif;
}

.item-subjects {
  display: inline-flex;           /* allows easy centering */
  flex-direction: column;         /* stack image + caption vertically */
  align-items: center;            /* centers horizontally */
  justify-content: center;        /* centers vertically if needed */
  text-align: center;             /* centers caption text */
  border-radius: 5px;            /* rounded corners */
  border: 2px solid #ddd;         /* optional border */
  overflow: hidden;               /* ensures image/caption respect radius */
  background-color: #fff;         /* optional background */
  padding: 8px;                   /* space inside border */
  box-sizing: border-box;
  width: 320px;                   /* or try 350px / 400px to taste */
  margin: 8px;                    /* optional spacing between boxes */
}
.item-subjects div a {
  color: black !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.item-subjects div a:hover {
  color: red !important;
}

 .media-render img {
     border-radius: 5px;            /* rounded corners */
  }

body {
 font-size: 20px;
}

a {
  text-decoration: none;
 color: black;
}

 .youth-slide  a {
 pointer-events: none;
}

.youth-slide{
 border-radius: 50px;
 transform: scale(0.9);
 border: 2px solid #ddd;  
}

  a:hover {
   color: #D00000;
   text-decoration: none;
  }

.media-embeds iframe {
    width: 100% !important;
    height: 800px !important;
}

.nav-menu {
    display: flex; /* Ensures items stay in one line */
    flex-wrap: nowrap; /* Prevents wrapping */
    list-style: none; /* Removes default list styles */
    padding: 0;
    margin: 0;
}

.nav-menu .nav-item {
   margin-right: 15px; /* Adjust spacing between items */
}

.nav-menu .nav-item a {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: var(--gap);
    border-top: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
    padding: 8px 12px;
    background: var(--nav-bg);
    position: relative;
    z-index: 15;
    border-radius: var(--radius);
}

.browse-all .button {
            display: inline-block;
            padding: 5px 10px;
            border: 1px solid grey;
            border-radius: 4px;
            transition: background-color 0.3s ease;
 }


@media (max-width: 768px) {
  header nav .navigation {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  header nav .navigation li {
    width: 100%;
  }

  header nav .navigation a {
    display: block;
    width: 100%;
    padding: 12px;
    border-bottom: 1px solid #dedede;
  }
}

.et_pb_scroll_top.et-pb-icon {
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  position: fixed;
  z-index: 99999;
  bottom: 125px;
  right: 0px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
  display: none;
  cursor: pointer;
  font-size: 50px;
  padding: 20px;
  color: #fff;
  transition: background 0.3s ease;
}

.et_pb_scroll_top.et-pb-icon:hover {
  background: rgba(0, 0, 0, 0.6);
}













