/* Shared styles: footer navigation + protected photo viewer.
   Colours match the site's original palette (teal header #1abc9c, black navbar #333). */

.navbar.footer-navbar {
  overflow: hidden;
  background-color: #333;
  margin-top: 20px;
}

.navbar.footer-navbar a {
  position: relative;
  float: left;
  display: inline-block;
  color: white;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
}

.navbar.footer-navbar a:hover {
  background-color: #ddd;
  color: black;
}

@media screen and (max-width: 400px) {
  .navbar.footer-navbar a {
    float: none;
    width: 100%;
  }
}

/* Give photo thumbnails a hint that they're clickable, without changing page layout */
a.stm-view {
  cursor: zoom-in;
}

a.stm-view img {
  -webkit-user-drag: none;
  user-select: none;
}

/* ---- Protected photo viewer ---- */
.stm-viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  font-family: Arial, Helvetica, sans-serif;
}

.stm-viewer-overlay.stm-open {
  opacity: 1;
  visibility: visible;
}

.stm-viewer-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 94vw;
  max-height: 92vh;
}

.stm-viewer-frame img {
  max-width: 94vw;
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #111;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none; /* blocks the browser's built-in "save image" context menu affordances */
}

.stm-viewer-caption {
  background: #1abc9c;
  color: white;
  padding: 10px 20px;
  text-align: center;
  margin-top: 12px;
  border-radius: 4px;
  max-width: 90vw;
  font-size: 15px;
  line-height: 1.4;
}

.stm-viewer-close,
.stm-viewer-prev,
.stm-viewer-next {
  position: fixed;
  background: #333;
  color: white;
  border: none;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  line-height: 1;
  border-radius: 4px;
  padding: 10px 16px;
}

.stm-viewer-close:hover,
.stm-viewer-prev:hover,
.stm-viewer-next:hover {
  background: #ddd;
  color: black;
}

.stm-viewer-close {
  top: 18px;
  right: 18px;
}

.stm-viewer-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.stm-viewer-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.stm-viewer-watermark-note {
  color: #ccc;
  font-size: 11px;
  margin-top: 6px;
  text-align: center;
}

@media screen and (max-width: 600px) {
  .stm-viewer-prev,
  .stm-viewer-next {
    padding: 8px 12px;
    font-size: 18px;
  }
}
