/* Lightbox styles */
.gallery {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.gallery img.lightbox-img {
  max-width: 120px;
  max-height: 80px;
  cursor: pointer;
  border: 2px solid #ccc;
  border-radius: 6px;
  transition: box-shadow 0.2s;
}
.gallery img.lightbox-img:hover, .gallery img.lightbox-img:focus {
  box-shadow: 0 0 8px #888;
  border-color: #888;
}
.lightbox-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 2px;
  box-shadow: none;
  background: #fff;
  padding: 0;
}
.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  color: #fff;
  font-size: 2rem;
  font-weight: normal;
  cursor: pointer;
  z-index: 10000;
  background: none;
  border: none;
}
.right-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 300px;
  padding: 10px;
  background: #fff;
  border-left: 1px solid #999;
  max-height: 460px;
  margin-top: 16px;
}

.scroll-section {
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 14px 12px 14px;
  height: 200px;
  overflow-y: auto;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.posts-section, .updates-section {
  flex: 1 1 0;
  min-height: 0;
  max-height: 200px;
}

.posts-section h3, .updates-section h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 1.1em;
  font-weight: bold;
  letter-spacing: 1px;
  font-family: inherit;
  color: inherit;
}

.post, .update {
  margin-bottom: 10px;
  font-size: inherit;
  font-family: inherit;
  color: inherit;
}

.post:last-child, .update:last-child {
  margin-bottom: 0;
}
.header-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2.5rem;
  font-family: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 2;
}
.header-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 2.5rem;
  font-family: 'CPFontOte', Arial, Helvetica, sans-serif;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  pointer-events: none;
  z-index: 2;
}
body {
  background: url('background.jpg') repeat center center fixed;
  background-size: cover;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #000;
}
.container {
  width: 760px;
  margin: 0 auto;
  background: #fff;
  border-left: 1px solid #999;
  border-right: 1px solid #999;
}
.header {
  position: relative;
  background: url('mainpageheader.gif') no-repeat center top;
  background-size: cover;
  background-position: center -100px;
  height: 140px;
}

.top-row {
  display: flex;
  transition: all 0.5s ease-in-out;
}
.top-row.hide {
  transform: translateY(-100%);
  height: 0;
  overflow: hidden;
}
.left-column {
  width: 460px;
  padding: 10px;
}
.right-column {
  width: 300px;
  padding: 10px;
  background: #fff;
  border-left: 1px solid #999;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 16px;
}
.block {
  background: #eee;
  border: 1px solid #aaa;
  margin-bottom: 10px;
  display: flex;
  cursor: default;
  transition: box-shadow 0.2s, background 0.2s;
}
.block.clickable {
  cursor: pointer;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}
.block.clickable:hover, .block.clickable:focus {
  background: #e0e0e0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  outline: 2px solid #888;
}
.block img {
  width: 140px;
  height: 80px;
  object-fit: cover;
  border-right: 1px solid #aaa;
}
.block-text {
  padding: 8px;
  font-weight: bold;
}
.block-text span {
  display: block;
  font-weight: normal;
  font-size: 10px;
  margin-top: 3px;
}
.double-block {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.double-block .block {
  width: 100%;
}
.nav {
  background: #000;
  color: #fff;
  padding: 5px 10px;
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav a {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.section {
  display: none;
  padding: 20px;
}
.section.active {
  display: block;
}
.sponsors, .footer {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background: #f5f5f5;
  border-top: 1px solid #aaa;
}
.footer {
  font-size: 11px;
}

/* Stamp Showcase: seamless infinite loop, slightly faster speed */
.stamp-showcase-container {
  width: 100%;
  overflow: hidden;
  background: transparent;
}
.stamp-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.stamp-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: max-content;
  animation: stamp-scroll 45s linear infinite;
}
.stamp-marquee:hover .stamp-track {
  animation-play-state: paused;
}
@keyframes stamp-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
