.calendar-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

#calendar-img {
  width: 100%;
  height: auto;
  display: block;
}

/* General Styles */
body {
  margin: 0;
  background: #111;
  font-family: 'Orbitron', Arial, sans-serif;
  color: white;
}

/* Header */
header {
  background-color: #222;
  padding: 10px 15px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.site-logo {
  max-height: 60px;
  width: auto;
}

header h1 {
  font-size: 1.6em;
  margin: 0;
  color: #00f5ff;
}

header .tagline {
  font-size: 1em;
  color: #ccc;
  font-weight: normal;
}

/* Footer */
footer {
  background-color: #222;
  text-align: center;
  padding: 10px;
  font-size: 1em;
}

/* New: Inline footer row for contact and signup */
.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
}

.footer-contact {
  font-family: 'Orbitron', Arial, sans-serif;
  color: #fff;
  font-size: 1em;
  margin-right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

footer a {
  color: #ff3333;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Calendar Container */
.calendar-container {
  position: relative;
  width: 100%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
}

/* Clickable Boxes */
.clickable-box, .split-box {
  position: absolute;
  width: 10.16%;
  aspect-ratio: 1 / 1;
  z-index: 10;
}

.half-box {
  display: block;
  width: 100%;
  height: 50%;
  overflow: visible;
}

/* Zoom effect */
.clickable-box img, .half-box img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

/* --- REMOVED ZOOM ON HOVER FOR CLICKABLE-BOX AND HALF-BOX --- */
/*
.clickable-box:hover img, .half-box:hover img {
  transform: translate(-50%, -50%) scale(1.6);
  opacity: 1;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.9);
  z-index: 999;
}
*/

/* Portrait-specific boost for zoom */
.zoom-boost:hover img {
  transform: translate(-50%, -50%) scale(1.6);
  opacity: 1;
  z-index: 999;
}

.zoom-boost img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
}

/* Orientation visibility toggles */
@media screen and (orientation: portrait) {
  .landscape-only {
    display: none;
  }
  .portrait-only {
    display: block;
  }
}

@media screen and (orientation: landscape) {
  .portrait-only {
    display: none;
  }
  .landscape-only {
    display: block;
  }
}

/* --- REMOVED UNIFIED ZOOM FIX FOR CLICKABLE-BOX AND HALF-BOX --- */
/*
.clickable-box:hover img,
.half-box:hover img,
.zoom-a:hover img,
.zoom-boost:hover img {
  transform: translate(-50%, -50%) scale(3.8) !important;
  opacity: 1 !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.9) !important;
  z-index: 999 !important;
}
*/

.zoom-a:hover img {
  transform: translate(-50%, -50%) scale(2);
}

.zoom-a img {
  width: 100%;
  height: auto;
}

.zoom-a:hover img {
  transform: translate(-50%, -50%) scale(2.5);
}

.zoom-a {
  display: inline-block;
}

.zoom-a img {
  width: auto;
  height: auto;
  max-width: 100%;
}

.page-header h1 {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.page-header h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: #ccc;
}

.archive-month {
  color: #fff;
  font-weight: bold;
  text-align: center;
  font-size: 1.2rem;
  margin-top: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
  transition: color 0.3s;
}

.archive-item a:hover .archive-month {
  color: #00ccff;
}

@media screen and (orientation: landscape) {
  html, body {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
  }

  header, footer {
    flex-shrink: 0;
  }

  .calendar-container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }

  .calendar-wrapper {
    height: 100%;
  }

  #calendar-img {
    height: 100%;
    width: auto;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
}

header {
  background-color: #222;
  padding: 10px 15px;
  text-align: center;
}

header h1 {
  font-family: 'Orbitron', Arial, sans-serif;
  font-size: 1.6em;
  margin: 0;
  color: #00f5ff;
}

header .tagline, header h2 {
  font-size: 1em;
  color: #ccc;
  font-weight: normal;
  margin: 0.5em 0 0 0;
}

.header-links {
  margin-top: 10px;
  text-align: center;
}

.header-links a {
  color: #ff3333;
  font-size: 1em;
  text-decoration: none;
  font-weight: bold;
}

.header-links a:hover {
  text-decoration: underline;
}

/* Orbitron font */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');

/* One-line responsive header */
.one-line-header {
  background: linear-gradient(to right, #111, #220000);
  padding: 10px 15px;
  font-family: 'Orbitron', sans-serif;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  text-align: center;
}

.site-logo {
  height: 40px;
  width: auto;
}

.title-text {
  font-family: 'Orbitron', sans-serif;
  color: #00f5ff;
  font-size: 1rem;
  flex-grow: 1;
  text-align: center;
}

.past-link {
  color: #ff3333;
  text-decoration: none;
  font-weight: bold;
}

.past-link:hover {
  text-decoration: underline;
}

@media screen and (max-width: 600px) {
  .header-bar {
    flex-direction: column;
    align-items: center;
  }

  .title-text {
    font-family: 'Orbitron', sans-serif;
    color: #00f5ff;
    font-size: 1rem;
    flex-grow: 1;
    text-align: center;
  }
}

/* --- HIDE ORIGINAL IMAGE ON HOVER FOR CLICKABLE-BOX AND HALF-BOX --- */
.clickable-box:hover img,
.half-box:hover img {
  opacity: 0 !important;
  transform: translate(-50%, -50%) scale(1) !important;
  box-shadow: none !important;
  z-index: 10 !important;
}

.hover-zoom-img {
  will-change: transform, opacity, left, top, width, height;
  background: #111;
  transition: transform 0.3s cubic-bezier(.4,2,.6,1), opacity 0.3s cubic-bezier(.4,2,.6,1);
  opacity: 0;
  transform: scale(0.8);
}

.social-icons-inline i {
  color: #ccc;
  font-size: 1.2em;
  margin-right: 10px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.social-icons-inline i:hover {
  color: #fff;
}

.social-icon {
  height: 20px;
  width: auto;
  filter: grayscale(100%);
  vertical-align: middle;
  margin-right: 10px;
  margin-top: -2px; /* aligns better with font icons */
  transition: filter 0.3s ease;
}

.social-icon:hover {
  filter: grayscale(0%);
  text-decoration: none;
}

/* Footer signup inline and minimal */
.footer-signup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
}

.footer-signup input[type="email"] {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #00f5ff;
  background-color: #000;
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.8rem;
  width: 160px;
}

.footer-signup button {
  background: #ff3333;
  border: none;
  color: white;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
}

.footer-signup button:hover {
  background-color: #cc0000;
}

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}