.short-film-contest {
  max-width: 936px;
  margin: 0 auto 32px;
  color: #292124;
  font-family: "InterTight", sans-serif;
  scroll-margin-top: 20px;
}

.short-film-contest-shell {
  overflow: hidden;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgb(0 0 0 / 20%);
}

.short-film-contest-header {
  padding: 28px 32px 24px;
  text-align: center;
}

.short-film-contest-kicker {
  margin: 0 0 10px;
  color: #84334e;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
}

.short-film-contest h2 {
  margin: 0;
  color: #922044;
  font-family: "FixelExtraBold", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.2;
}

.short-film-contest-poster-link {
  display: block;
  width: calc(100% - 24px);
  margin: 0 auto;
  cursor: zoom-in;
  border-radius: 16px;
}

.short-film-contest-poster {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.short-film-contest-content {
  max-width: 864px;
  margin: 0 auto;
  padding: 28px 36px 32px;
  font-size: 1.12rem;
  line-height: 1.55;
}

.short-film-contest h3 {
  margin: 0 0 16px;
  color: #922044;
  font-family: "FixelExtraBold", sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
}

.short-film-contest-rules p {
  margin: 0 0 16px;
}

.short-film-contest-content a {
  color: #922044;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.short-film-contest-documents {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e6d7d7;
}

.short-film-contest-downloads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.short-film-contest-content .short-film-contest-download {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  border: 2px solid #922044;
  border-radius: 12px;
  background: #922044;
  color: #fff;
  text-decoration: none;
  line-height: 1.3;
}

.short-film-contest-download span { font-weight: 700; }
.short-film-contest-download small { font-size: 0.88rem; }
.short-film-contest-content .short-film-contest-download:hover { background: #731935; }

.short-film-contest a:focus-visible {
  outline: 3px solid #176968;
  outline-offset: 4px;
}

.short-film-contest-note {
  margin: 16px 0 0;
  color: #51454a;
  font-size: 1rem;
}

.contest-poster-dialog {
  width: min(1414px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #242124;
  color: #fff;
  font-family: "InterTight", sans-serif;
  overflow: auto;
  overscroll-behavior: contain;
}

.contest-poster-dialog::backdrop { background: rgb(0 0 0 / 85%); }

.contest-poster-toolbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #242124;
}

.contest-poster-toolbar form { margin: 0; }

.contest-poster-toolbar button {
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: #242124;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.contest-poster-toolbar button:hover { background: #f5dde5; }

.contest-poster-toolbar button:focus-visible {
  outline: 3px solid #f1cf60;
  outline-offset: 3px;
}

.contest-poster-dialog img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

html.contest-poster-open,
html.contest-poster-open body { overflow: hidden; }

@media (max-width: 600px) {
  .short-film-contest-header { padding: 24px 20px 20px; }
  .short-film-contest-poster-link { width: calc(100% - 12px); }
  .short-film-contest-content { padding: 24px 20px; }
  .short-film-contest-downloads { grid-template-columns: 1fr; }
}
