mason/dhandler, static/tgal.css: Embrace idea of multiple thumbnail sets.
[tgal] / static / tgal.css
index 80d519d..0cbae14 100644 (file)
@@ -76,23 +76,21 @@ div.footitem {
 }
 
 div.gallery {
-       display: block;
-       text-align: center;
+       flex-direction: row; flex-wrap: wrap;
+       align-items: start; justify-content: space-evenly;
 }
+div.gallery.bigthumb { display: flex; }
 
-div.pic {
+figure.thumb {
        display: inline-block;
        vertical-align: top;
-       width: 228px;
        margin: 1em;
 }
+a.thumb:link { display: inline-block; }
+img.thumb { object-fit: contain; }
 
-div.pic a:link { display: inline-block; }
-
-img.thumb {
-       width: 228px; height: 228px;
-       object-fit: contain;
-}
+figure.bigthumb { width: 228px; }
+img.bigthumb { width: 228px; height: 228px; }
 
 div.comment {
        border: thin black solid;
@@ -103,12 +101,10 @@ div.comment {
        margin-top: 2ex; margin-bottom: 2ex;
 }
 
-div.caption {
-       display: block;
-       width: 228px;
-}
-div.caption span.name { font-family: sans-serif; }
-div.caption span.comment { font-style: italic; margin-inline-start: 1em; }
+figure.thumb figcaption { display: block; }
+figcaption { text-align: center; }
+figcaption span.name { font-family: sans-serif; }
+figcaption span.comment { font-style: italic; margin-inline-start: 1em; }
 
 div.viewnav {
        flex-grow: 1; flex-basis: 0;
@@ -147,7 +143,8 @@ div.thumbstrip {
        max-width: 100%;
        overflow-x: auto;
        text-align: center;
-       display: flex; flex-direction: row; align-self: center;
+       flex-direction: row; align-self: center;
 }
+div.thumbstrip.bigthumb { display: flex; }
 
 /*----- That's all, folks -------------------------------------------------*/