/* Οι ζωγραφιές των ιστοριών αξιοποιούν τον διαθέσιμο χώρο χωρίς να καλύπτουν την αφήγηση. */

/* Η βιβλιοθήκη παραμυθιών διατηρεί άνετες, μεγάλες εικόνες σε όλες τις οθόνες. */
@media (min-width: 1080px) {
  .story-site-head,
  main#stories { max-width: 1420px; }
  #stories .story-hub-grid { gap: 24px; }
  #stories .story-hub-card.has-story-cover .story-card-art { margin: 16px 20px 0; width: calc(100% - 40px); }
}
@media (min-width: 721px) and (max-width: 930px) {
  #stories .story-hub-grid { grid-template-columns: minmax(0, 1fr); max-width: 780px; margin-inline: auto; }
}
@media (max-width: 720px) {
  #stories .story-hub-card.has-story-cover .story-card-art { margin: 12px 12px 0; width: calc(100% - 24px); }
  #stories .story-card-body { padding: 17px 17px 21px; }
  #stories .story-card-foot button { min-height: 44px; }
}

/* Η εικόνα μέσα στο ανοιχτό παραμύθι μεγαλώνει στο PC. */
@media (min-width: 1180px) {
  #parea-story-player { width: min(1480px, calc(100vw - 60px)); max-width: calc(100vw - 60px); }
  #parea-story-player .story-player-main {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(26px, 3vw, 50px);
  }
  #parea-story-player .story-picture-grid { min-height: 390px; padding: 32px 24px 47px; }
  #parea-story-player .story-picture-grid figure { flex: 1 1 42%; max-width: 300px; min-height: 238px; }
  #parea-story-player .story-picture-grid svg { width: 100%; height: auto; max-height: 255px; }
}
@media (min-width: 901px) and (max-width: 1179px) {
  #parea-story-player { width: min(1080px, calc(100vw - 40px)); max-width: calc(100vw - 40px); }
  #parea-story-player .story-player-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
  #parea-story-player .story-picture-grid { min-height: 320px; padding: 25px 18px 42px; }
  #parea-story-player .story-picture-grid figure { flex: 1 1 42%; max-width: 210px; min-height: 195px; }
  #parea-story-player .story-picture-grid svg { width: 100%; height: auto; max-height: 205px; }
}
/* Στο τάμπλετ οι ζωγραφιές μπαίνουν πάνω από το κείμενο, σε όλο το διαθέσιμο πλάτος. */
@media (min-width: 701px) and (max-width: 900px) {
  #parea-story-player { width: min(800px, calc(100vw - 28px)); max-width: calc(100vw - 28px); }
  #parea-story-player .story-player-main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  #parea-story-player .story-picture-grid { min-height: 295px; padding: 22px 20px 40px; }
  #parea-story-player .story-picture-grid figure { flex: 0 1 42%; max-width: 245px; min-height: 180px; }
  #parea-story-player .story-picture-grid svg { width: 100%; height: auto; max-height: 220px; }
}
@media (min-width: 471px) and (max-width: 700px) {
  #parea-story-player .story-picture-grid { min-height: 235px; padding: 17px 13px 36px; }
  #parea-story-player .story-picture-grid figure { flex: 1 1 42%; max-width: 195px; min-height: 135px; }
  #parea-story-player .story-picture-grid svg { width: 100%; height: auto; max-height: 174px; }
}
/* Στο τηλέφωνο τα δύο σχέδια παραμένουν ευδιάκριτα δίπλα-δίπλα. */
@media (max-width: 470px) {
  #parea-story-player .story-picture-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 160px; gap: 6px; padding: 13px 9px 34px;
  }
  #parea-story-player .story-picture-grid figure { min-height: 115px; width: 100%; max-width: none; }
  #parea-story-player .story-picture-grid svg { width: 100%; height: auto; max-height: 160px; }
  #parea-story-player .story-page-number { left: 13px; bottom: 9px; }
  #parea-story-player .story-player-choices { grid-template-columns: minmax(0, 1fr); }
}

/* Μεγαλύτερες εικόνες και στις κάρτες των ιστοριών της αρχικής. */
@media (min-width: 981px) {
  body.visual-refresh .story-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.visual-refresh .story-shelf-card { min-height: 195px; }
  body.visual-refresh .story-shelf-card .story-shelf-art:has(.story-shelf-cover) {
    width: clamp(175px, 40%, 245px); aspect-ratio: 16 / 10; padding: 0;
  }
}
@media (min-width: 701px) and (max-width: 980px) {
  body.visual-refresh .story-shelf-grid { grid-template-columns: minmax(0, 1fr); }
  body.visual-refresh .story-shelf-card .story-shelf-art:has(.story-shelf-cover) {
    width: clamp(170px, 34%, 240px); aspect-ratio: 16 / 10; padding: 0;
  }
}
@media (max-width: 700px) {
  body.visual-refresh .story-shelf-card .story-shelf-art:has(.story-shelf-cover) {
    width: clamp(100px, 32%, 165px); aspect-ratio: 4 / 3; padding: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #parea-story-player .story-picture-grid figure,
  #stories .story-hub-card,
  .story-shelf-card { animation: none !important; transition: none !important; }
}
