/* 第5回決勝大会結果専用。共通スタイル・既存ページには影響しません。 */
#final-page.results-2026 .award-block { margin: 0 0 2em; }
#final-page.results-2026 .award-block .lank { margin-bottom: 1em; }
#final-page.results-2026 .report-photo { margin: 1.4em auto 2em; max-width: 100%; }
#final-page.results-2026 .report-photo img { display: block; width: 100%; height: auto; }
#final-page.results-2026 .report-photo--compact { width: 100%; max-width: 100%; }
#final-page.results-2026 figcaption { margin-top: .6em; font-size: .85em; line-height: 1.7; text-align: center; overflow-wrap: anywhere; }
#final-page.results-2026 .award-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 840px; margin: 0 auto; }
#final-page.results-2026 .award-photos figure { margin: 0; }
#final-page.results-2026 .award-photos img { display: block; width: 100%; height: auto; }
#final-page.results-2026 .report-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
#final-page.results-2026 .judge-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
#final-page.results-2026 .report-pair .report-photo, #final-page.results-2026 .judge-photos .report-photo { width: 100%; }
@media screen and (max-width: 768px) {
  #final-page.results-2026 .award-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #final-page.results-2026 .report-pair, #final-page.results-2026 .judge-photos { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #final-page.results-2026 .judge-photos .report-photo { max-width: 360px; }
  #final-page.results-2026 figcaption { text-align: left; }
}

/* 横並び写真の表示枠を正方形に統一。画像ファイル自体は変更しない。 */
#final-page.results-2026 .award-photos figure,
#final-page.results-2026 .report-pair .photo-frame,
#final-page.results-2026 .judge-photos .photo-frame {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
#final-page.results-2026 .award-photos img,
#final-page.results-2026 .report-pair .photo-frame img,
#final-page.results-2026 .judge-photos .photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
/* 1列になる写真は元の縦横比に戻す。表彰式の2列写真は高さを統一。 */
@media screen and (max-width: 768px) {
  #final-page.results-2026 .report-pair .photo-frame,
  #final-page.results-2026 .judge-photos .photo-frame { aspect-ratio: auto; }
  #final-page.results-2026 .report-pair .photo-frame img,
  #final-page.results-2026 .judge-photos .photo-frame img { height: auto; }
}

/* 審査員長キャプションの指定改行はPCのみ。 */
@media screen and (max-width: 768px) {
  #final-page.results-2026 .judge-chair-pc-break { display: none; }
}

/* スマートフォン：奇数枚の最後の写真を同じ大きさのまま中央へ。 */
@media screen and (max-width: 768px) {
  #final-page.results-2026 .award-photos > figure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 10px) / 2);
    justify-self: center;
  }
}
