
/*---- CROSS BROWSER DROPDOWN MENU ----*/
ul#nav2 {margin: 55 0 0 0px;}
ul.drop a { display:block; color: #fff; font-family: Verdana; font-size: 14px; text-decoration: none;}
ul.drop, ul.drop li, ul.drop ul { list-style: none; margin: 0; padding: 0; border: 1px solid #fff; background: #006400; color: #fff;}
ul.drop { position: absolute; float: left; top:1; }
ul.drop li { float: left; line-height: 1.3em; vertical-align: center; zoom: 1; padding: 5px 10px; }
ul.drop li.hover, ul.drop li:hover { position: relative; z-index: 599; cursor: default; background: #1e7c9a; }
ul.drop ul { visibility: hidden; position: absolute; top: 100%; left: 0; z-index: 598; width: 195px; background: #555; border: 1px solid #fff; }
ul.drop ul li { float: none; }
ul.drop ul ul { top: -2px; left: 100%; }
ul.drop li:hover > ul { visibility: visible }

/* ---- Responsive dropdown (phones/tablets) ---- */
@media (max-width: 700px) {
  ul#nav2 {
    position: static;   /* allow normal layout */
    float: none;
    margin: 0;
    width: 100%;
  }

  /* Top-level: stack items vertically and allow text wrapping */
  ul.drop > li {
    float: none;
    width: 100%;
    box-sizing: border-box;
  }

  ul.drop > li > a {
    white-space: normal;
    word-break: break-word;
    line-height: 1.3em;
  }

  /* Submenus: be in-flow (no absolute), full width */
  ul.drop ul {
    visibility: hidden;  /* keep the dropdown behavior */
    position: static;
    width: 100%;
    border-left: 0;
    border-right: 0;
    box-sizing: border-box;
  }

  /* When hovering a top-level item, show its submenu */
  ul.drop li:hover > ul {
    visibility: visible;
  }
}


.tile {
  position: relative;
  width: 183px;   /* match your image width */
  height: 275px;  /* match your image height */
  overflow: hidden;
  margin: 0;       /* optional */
  border: 1px solid #222; /* optional */
}

.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
  transform: translateX(0);
}

.tile .page {
  position: absolute;
  inset: 0;
  background: #111; /* “small page” background */
  color: #fff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0.95;
}

.tile:hover img,
.tile:focus-within img {
  transform: translateX(-120%); /* slide image away on hover */
}

/* Optional: make it work when using keyboard focus */
.tile a { color: inherit; }
