/* =========================================================
POSTER SYSTEM ENGINE
Controls layout, scaling, and interaction.
Posters must obey this system.
========================================================= */

/* =========================================================
POSTER SYSTEM RULES (STRICT - LEGACY SAFE)

1. NO MODERN CSS
- Do NOT use:
  aspect-ratio
  clamp()
  CSS variables
  grid (optional, flex preferred)

2. SIZING
- Use ONLY:
  %, px, em
- Poster must fill 100% of container

3. LAYOUT
- Use flexbox OR simple block layout
- Avoid absolute positioning unless decorative

4. TYPOGRAPHY
- Use fixed sizes + media queries
- Minimum font-size: 14px

5. SAFE ZONE
- Padding must be at least 5%

6. STRUCTURE

<div class="poster">
  <div class="header"></div>
  <div class="content"></div>
  <div class="footer"></div>
</div>

7. FORBIDDEN
- No body/html styling
- No external dependencies
- No scripts inside poster files

========================================================= */

/* =========================================================
POSTER VIEWER SYSTEM (LEGACY SAFE VERSION)
- No CSS variables
- No aspect-ratio
- No gap
========================================================= */

/* Base */
body {
  margin: 0;
  background: #f4f4f4;
  font-family: sans-serif;

  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Viewer Layout */
.viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* spacing replacement for gap */
.viewer > * {
  margin-bottom: 20px;
}

/* Poster Frame */
.poster-frame {
  width: 90vw;
  max-width: 700px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

/* A-series ratio using padding trick (√2 ≈ 1.414) */
.poster-frame:before {
  content: "";
  display: block;
  padding-top: 141.4%;
}

/* Poster Content Container */
.poster-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  transform-origin: center;
  transition: transform 0.3s ease;
}

/* Zoom */
.poster-frame.zoom .poster-inner {
  transform: scale(1.5);
  cursor: zoom-out;
}

/* Controls */
.controls {
  display: flex;
  align-items: center;
}

/* spacing instead of gap */
.controls > * {
  margin: 0 10px;
}

/* Buttons */
button {
  padding: 10px 16px;
  font-size: 18px;
  cursor: pointer;
}

/* Pagination */
#pagination {
  display: flex;
}

/* spacing instead of gap */
#pagination .dot {
  margin: 0 4px;
}

/* Dots */
.dot {
  width: 10px;
  height: 10px;
  background: #cccccc;
  border-radius: 50%;
  cursor: pointer;
}

/* Active dot */
.dot.active {
  background: #285a4d;
}