/* The works as a list (list.js): works.html, and under a work's own page, which runs on into it. The pictures down the middle (html.center),
   when it was at the left, the name and a ruled sheet at the right (html.big: the pictures as large as the window lets them, the words in
   front of them; neither: each picture on the left). Under WebGL the words and rules are painted by page.js, from where these put them */
:root { --split:62%; --gap:clamp(64px, 10vh, 128px); }   /* the room above and below each work */
#list { position:relative; z-index:1; padding:22vh 0 0; }
.gl #list, .gl #list * { color:transparent !important; }   /* WebGL draws the words; these stay for the pointer, the keys and screen readers */
.w { display:grid; grid-template-columns:var(--split) minmax(0, 1fr); --sides:top; }
.w .s { display:none; }
.w .m { display:block; padding:var(--gap) 48px var(--gap) var(--pad); }
.w .m i { display:block; width:min(100%, calc(78vh * var(--ar))); aspect-ratio:var(--ar); }   /* where the picture is */
.w .m img { display:block; width:100%; height:100%; object-fit:cover; }
.w .t { --sides:left; padding:var(--gap) var(--pad) var(--gap) 28px; }
.w .n { margin:0; color:var(--faint); }
.w h2 { margin:12px 0 8px; font:400 clamp(34px, 3.6vw, 60px)/.98 var(--serif); }
.w h2 a { text-decoration:none; }
.w .pc { margin:0 0 20px; font:italic 400 20px/1.2 var(--serif); color:var(--mute); }
.w .r { margin:0; padding:10px 0; --sides:top; color:var(--mute); }
.w .r.k { color:var(--ink); }
.w .o { display:block; padding:10px 0; --sides:top bottom; color:var(--ink); text-decoration:none; }
.rest { display:grid; grid-template-columns:var(--split) minmax(0, 1fr); --sides:top bottom; margin-bottom:24vh; }
.rest h3 { margin:0; padding:44px 48px 44px var(--pad); color:var(--faint); }
.rest ul { list-style:none; margin:0; padding:30px var(--pad) 36px 28px; --sides:left; }
.rest li a { display:flex; justify-content:space-between; align-items:baseline; gap:16px; padding:10px 0; --sides:bottom; text-decoration:none; }
.rest li:last-child a { --sides:none; }
.rest .nm { font-size:24px; line-height:1.15; }
.rest li .mono { color:var(--faint); white-space:nowrap; }
.center .w, .center .rest { grid-template-columns:minmax(0, 1fr) min(52vw, 980px) minmax(0, 1fr); }
.center .w .s { display:block; --sides:right; padding:var(--gap) 24px var(--gap) var(--pad); }
.center .w .s p { margin:0; color:var(--faint); }
.center .w .t .n { display:none; }
.center .w .m { display:flex; justify-content:center; align-items:flex-start; padding:var(--gap) 36px; }
.center .rest ul, .big .rest ul { grid-column:2 / 4; }
/* ?big: the pictures as large as the window lets them, down the middle; the sheet in front of each, at its upper right */
.big .w { grid-template-columns:minmax(0, 1fr); position:relative; }
.big .w .m { display:flex; justify-content:center; padding:7vh var(--pad); }
.big .w .m i { width:min(100%, calc(86vh * var(--ar))); }
.big .w .t { position:absolute; z-index:2; top:calc(7vh + 26px); right:calc(var(--pad) + 1.5vw); width:min(30vw, 440px); padding:0; --sides:none; }
.big .rest { grid-template-columns:minmax(0, 1fr) min(46vw, 860px) minmax(0, 1fr); }
@media (min-width:901px) { .w.tall .m i { width:min(100%, calc(50vh * var(--ar))); } }   /* an upright picture, smaller than the rest */
/* without WebGL the page draws its own rules and words */
html:not(.gl) .w, html:not(.gl) .w .r { border-top:var(--lw) solid var(--ln); }
html:not(.gl) .w .t { border-left:var(--lw) solid var(--ln); }
html:not(.gl) .w .o { border-block:var(--lw) solid var(--ln); }
html:not(.gl) .rest { border-block:var(--lw) solid var(--ln); }
html:not(.gl) .rest ul { border-left:var(--lw) solid var(--ln); }
html:not(.gl) .rest li:not(:last-child) a { border-bottom:var(--lw) solid var(--ln); }
html:not(.gl).center .w .s { border-right:var(--lw) solid var(--ln); }
.gl .w .m img { visibility:hidden; }
@media (max-width:900px) {
  .w, .rest, .center .w, .center .rest { grid-template-columns:minmax(0, 1fr); }
  #list { padding-top:120px; }   /* a phone: just under the bar and its two-line role (at 0 the first work lay under them; 22vh was "çok büyük boşluk") */
  .w { min-height:64svh; align-content:center; --sides:none; }   /* a phone: each work most of the window, no rule between them (the full window left too much room: "işler arası mesafeyi azalt") */
  html:not(.gl) .w { border-top:0; }
  .center .w .s { display:block; --sides:none; padding:48px var(--pad) 0; } .center .w .t .n { display:none; }   /* on a phone: when it was, above its picture */
  .w .m, .center .w .m { display:block; padding:22px var(--pad) 14px; } .center .w .m { padding-top:12px; }
  .w .m i { width:100%; }
  .w.tall .m i { width:min(100%, calc(58vh * var(--ar))); margin:0 auto; }   /* an upright picture no taller than most of the window */
  .w .t, .big .w .t { position:static; width:auto; --sides:none; padding:0 var(--pad) 60px; }
  .big .w .m { padding:22px var(--pad) 14px; }
  .rest h3 { padding:28px var(--pad) 0; }
  .rest ul, .center .rest ul, .big .rest ul { grid-column:auto; --sides:none; padding:8px var(--pad) 28px; }
  .big .rest { grid-template-columns:minmax(0, 1fr); }
  html:not(.gl) .w .t, html:not(.gl) .rest ul { border-left:0; }
}
