/* -------------------------------------------------------- */
/* NEWSLETTER PAGE                                          */
/* Loads AFTER style.css. Only what is unique to this page. */
/* -------------------------------------------------------- */

/* Page background: the blue this page used before */
:root {
  --background-color: #3abbe4;
}

/* Orange active nav button */
.media-nav-button.active {
  background-color: #f4a518;
}

/* Issue image sits in a dashed box, slightly smaller than the main box
   (the gap around it is the main box's own padding) and scales to fit
   desktop and mobile */
#newsletter-image {
  display: block;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 1px dashed white;
  cursor: zoom-in;
}

@media (max-width: 600px) {
  .main-box { padding: 12px; }
}

/* Sidebar text (quote + link), sized for the narrow column */
.sidebar-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}

.sidebar-author {
  margin-top: 8px;
  font-size: 14px;
  text-align: right;
  opacity: 0.85;
}

/* -------------------------------------------------------- */
/* LIGHTBOX                                                 */
/* -------------------------------------------------------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  border: 1px dashed white;
  box-shadow: 5px 5px black;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  background: black;
  color: white;
  border: 1px dashed white;
  box-shadow: 3px 3px black;
  font-size: 22px;
  cursor: pointer;
}

.lightbox-close:hover {
  background: white;
  color: black;
}