 /* CSS definition file containing sitestyle stylesheets
    Additional style sheet black.css for JAlbum skin - Exhibit Plus
    Author Mark Fyvie email: <jalbum at markf . mailshell . com> 

    Note: this style sheet contains only information to change the colours on the original stylesheet basestyle.css (located in the res directory). This makes it easy to update just the colours in one location */

/* <% album.put("BUTTON_SET", "silver-21px-darkbackground"); %> */ 

 body  { color: #0099FF; background-color: black }
 a:link { color: #0099FF } 
 a:visited { color: #0099FF }
 a:hover { color: #00CCFF }
 p { }
 p.indent { }
 table,tr,td { }
 img {}
/* Used to setup the main page structure */
#centercontent { background: black; background-image: url(https://www.kinderground.com/images/kinderground.gif); }

/* Styles assosicated with index pages */
 #indexframe { background-color: #000000; background-image: url(https://www.kinderground.com/images/kinderground.gif) }
 .folderData { color: #0099FF }
 .folderDescription { color: #000000 }
 .folderNavigation { }
 .folderNavigation a { }
 .folderNavigation a:link { color: #0099FF }
 .folderNavigation a:visited { color: #0099FF }
 .folderNavigation a:hover { color: #00CCFF }
 .float { } 
 .float p { }
 .float p.thumbComment { }
 .thumbName a { color: #0099FF; }
 .thumbDate { }
 #w3clogosright { }

/* Styles assosciated with slide pages */
 #centercontent { background: black; background-image: url(https://www.kinderground.com/images/kinderground.gif); }
 .minithumb {}
 .minithumbCurrent { border: 1px dotted white }
 .minithumbBox {background-image: url(https://www.kinderground.com/images/kinderground.gif) }
 .photoName { color: #0099FF }
 .photoPosition { color: #0099FF }
 .photoComments {}
 .photoData { color: #0099FF }
 .photoData b {}
 .photoData i {}
 .photoDataPopupBase {}
 .photoDataPopup { background: black; background-image: url(https://www.kinderground.com/images/kinderground.gif); color: #0099FF }
 .keyboardDataPopup {}
 .slideFrameButtons {}
 #buttonbox_portrait {}
 #photonavbar_inside_portrait {}
 #w3clogosleft { }

/* Styles assosciated with additional files, e.g. news.inc, footer.inc etc */
 .dateline { color: #0099FF }
 .header { color: #0099FF }
 .footer { color: #0099FF }


/* ==================================================================
   Phone layout, added 2026.

   Everything below sits inside one media query, so above 700px not a
   single rule here applies and the album looks exactly as it always
   has. black.css is the right home because the pages load it after
   basestyle.css, so these rules win without needing !important on
   everything - only the skin's inline styles need forcing.

   The viewport tag that makes any of this take effect is set from
   res/keyboard.js, which every page loads in its head.
   ================================================================== */
@media (max-width: 700px) {

 /* The desktop skin insets the content by 40px each side. On a phone
    that is most of the room a photograph has. */
 #centercontent { margin: 0; padding: 10px 8px 26px }
 body          { font-size: 15px }

 /* Text that was rendering at about 3.6px once the 980px page had
    been squeezed onto the glass. */
 .header           { font-size: 20px; line-height: 1.3 }
 .folderNavigation, .folderNavigation a { font-size: 14px }
 .folderData, .folderDescription, .thumbDate, .thumbName { font-size: 12px }
 .photoName        { font-size: 16px; float: none }
 .photoPosition, .photoData, .footer { font-size: 12px }
 .photoComments    { font-size: 15px }

 /* ---------- an album: three photos across ---------- */
 #indexframe { width: auto; padding: 0 }

 /* Floats rather than inline-blocks, so the newlines between the
    thumbnails in the HTML cannot add stray gaps and spoil the row. */
 #indexframe > a          { float: left; width: 32%; margin: 0 2% 8px 0;
                            padding: 0; display: block }
 #indexframe > a:nth-of-type(3n) { margin-right: 0 }
 #indexframe > a > img    { width: 100% !important; height: auto !important;
                            margin: 0 !important; padding: 0 !important;
                            display: block }

 /* The skin sprinkles empty clearing divs between the thumbnails,
    which would end each row after one photo. The folder rows on the
    top index are NOT empty, so they are left alone. */
 #indexframe > div:empty  { display: none }

 /* ---------- the top index: one folder to a row ---------- */
 #indexframe > div        { float: none !important; width: auto !important }
 #indexframe div[style*="width:125px"],
 #indexframe div[style*="width: 125px"] { width: 90px !important;
                            margin-right: 12px !important }
 #indexframe div[style*="width:125px"] img,
 #indexframe div[style*="width: 125px"] img { width: 100% !important;
                            height: auto !important }

 /* ---------- one photo ---------- */
 #frame        { width: auto !important; margin: 0 }
 #frame img    { max-width: 100%; width: auto; height: auto }

 /* The 48px filmstrip, the buttons pinned at top:576px and the two
    hover popups all assume a mouse and a wide window. */
 .minithumbBox, .slideFrameButtons,
 .photoDataPopup, .photoDataPopupBase, .keyboardDataPopup { display: none }

 /* The page buttons, moved under the photo by keyboard.js and grown
    from 20px icons into something a thumb can hit. */
 #cmgnav       { display: block; text-align: center; margin: 16px 0 8px;
                 line-height: 0 }
 #cmgnav a,
 #cmgnav img   { display: inline-block; vertical-align: middle }
 #cmgnav img   { width: 44px; height: 44px; margin: 0 5px }

 /* Everything still left as a link gets a real tap target. The
    thumbnails are put back to zero, or the grid above breaks. */
 #centercontent a  { display: inline-block; padding: 7px 3px }
 #indexframe > a   { padding: 0 }
 #cmgnav a         { padding: 0 }

 /* An empty link is not something to tap: the skin emits one as the
    caption of an untitled photo, and another as the scroll marker on
    the slide page. Left as inline they take up nothing, rather than
    becoming invisible 14px targets from the padding above. */
 #centercontent a:empty { display: inline; padding: 0 }

 /* The little 20px arrows - "up one level" on an album index, and the
    page buttons on a slide - all become proper buttons. */
 /* Annika's album uses the blue icon set, Kaspar's the silver one.
    Both are matched so one black.css serves both galleries. */
 #centercontent img[src*="metodi-blue-20px"],
 #centercontent img[src*="metodi-silver-20px"] { width: 44px !important;
                                                 height: 44px !important }

 /* With the page buttons moved down, the line breaks that used to
    separate them from the photo leave a hole above it. */
 #centercontent > br { display: none }

 /* The skin's own logos and the w3c badges have no place here. */
 #w3clogosleft, #w3clogosright { display: none }
}


/* ==================================================================
   Back button, added November 2026.

   res/keyboard.js puts a "back" button at the top left of every page;
   it goes to the "click for more" page of kinderground.com.
   ================================================================== */
 #cmgback { float: left; margin: 0 10px 0 0; padding: 0 6px;
            border: 1px solid #0099FF; border-radius: 3px;
            font-size: x-small; line-height: 15px;
            color: #0099FF; text-decoration: none }
 #cmgback:hover { color: #00CCFF; border-color: #00CCFF }

@media (max-width: 700px) {
 /* on a phone: on a line of its own, big enough for a thumb */
 #centercontent a#cmgback { display: table; float: none; margin: 0 0 10px;
                            padding: 0 16px; font-size: 16px; line-height: 40px }
}
