/* ===== Base – matching thedmr.com casual dark style ===== */
body {
  font-family: Trebuchet MS, Arial, san-serif;
  background: #2e1000;
  color: #e0e0e0;
  margin: 0;
  padding: 20px 12px;
  text-align: center;
  line-height: 1.4;
}

@import url('https://fonts.googleapis.com/css2?family=Rock+Salt&display=swap')

.rock-salt-regular {
  font-family: "Rock Salt", cursive;
  font-weight: 400;
  font-style: normal;
}

p {
  font-family: Trebuchet MS, Arial, san-serif;
  color: white;
    margin: auto;
    text-align: center;
    font-size: clamp(.5rem, calc(0.5rem + .75vw), 1.2rem);
        display: block;
	}

h1 {
  font-family: Rock Salt, san-serif;
  color: gold;
  text-align: center;
  font-size: clamp(1rem, calc(0.5rem + 3vw), 1.75rem);
    line-height: 95%;
 }

a:link, a:visited {
  background-color: gold;
  color: black;
  padding: 0px 0px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
}

a:hover, a:active {
  background-color: maroon;
  color: gold;
}


/* ===== Featured poster ===== */
.featured {
  margin: 0 auto 2rem;
}
.featured-poster {
  max-width: min(92vw, 680px);
  max-height: 62vh;
  height: auto;
  border: 4px solid #444;
  box-shadow: 0 8px 25px rgba(0,0,0,0.6);
}

/* ===== Carousel ===== */
.carousel-section {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-viewport {
  flex: 1;
  overflow: hidden;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 14px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.45s ease;
}

.page {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 4px;
}

.thumb {
  height: 135px;
  width: auto;
  max-width: 125px;
  object-fit: contain;
  border: 2px solid #555;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.thumb:hover {
  transform: scale(1.07);
  border-color: #aaa;
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

/* Arrows */
.arrow {
  background: #2a2a2a;
  color: #ddd;
  border: 1px solid #555;
  font-size: 2.2rem;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
  line-height: 1;
  padding: 0;
}

.arrow:hover {
  background: #444;
  color: #fff;
}

/* ===== Lightbox (single instance) ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5); /* 50% opacity as requested */
  z-index: 1000;
  justify-content: center;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 3px solid #fff;
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
}

.lightbox .close {
  position: absolute;
  top: 14px;
  right: 22px;
  color: #fff;
  font-size: 2.8rem;
  cursor: pointer;
  line-height: 1;
  text-shadow: 0 0 6px #000;
  z-index: 10;
}

.lightbox .close:hover {
  color: #ff6666;
}

/* Footer – matches original link style */
.footer-links {
    font-size: clamp(.8rem, calc(0.5rem + 1vw), 1.2rem);
  margin-top: 1.5rem;
}
.footer-links a {
  color: #aaa;
  margin: 0 5px;
  text-decoration: none;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Narrow screens */
@media (max-width: 700px) {
  .thumb {
    height: 80px;
    max-width: 85px;
  }
  .arrow {
    width: 36px;
    height: 36px;
    font-size: 1.8rem;
  }
  h1 {
    font-size: 1.5rem;
  }
}
