/*
 * site.css — the few things the PHP pages need that the Lightroom export
 * did not have: a back link, notice messages, album tile captions on the
 * index, and the Google sign-in overlay.
 *
 * Everything else is inherited from main.css. The three exported stylesheets
 * (normalize.css, main.css, custom.css) are kept byte-identical to
 * original/assets/css/ and must not be edited.
 */

/* -- Header back link ----------------------------------------------------
   Colour comes from main.css: header a { color: inherit } and
   header a:hover { opacity: .75 }. Font size matches header p.author. */

header div.meta-right {
    text-align: right;
}

a.back-link {
    display: inline-block;
    padding-top: 6px;
    font-size: 12px;
    text-decoration: none;
}

/* -- Notices (empty gallery, gallery not found, no galleries yet) -------- */

p.gallery-notice,
p.empty-notice {
    padding: 160px 24px 60px;
    text-align: center;
    font-size: 16px;
    line-height: 1.6;
}

p.gallery-notice a,
p.empty-notice a {
    color: inherit;
}

p.empty-notice code,
p.gallery-notice code {
    font-size: 13px;
    opacity: .8;
}

/* -- Album tiles on the index -------------------------------------------
   The tile itself is a div.thumbnail styled entirely by main.css. These
   rules only add the click target and the name/count caption over it. */

a.album-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    text-decoration: none;
    color: inherit;
}

span.album-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 10px 8px 10px;
    text-align: left;
    background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, .75));
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .75));
}

span.album-name {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.25;
}

span.album-count {
    display: block;
    margin-top: 2px;
    color: #cccccc;
    font-size: 12px;
    line-height: 1.25;
}

/* Tiles are sized in px by album-grid.js; until it runs they stay hidden so
   the page does not flash at full-bleed width. */
#thumbnailContainer.album-grid div.thumbnail {
    visibility: hidden;
}

#thumbnailContainer.album-grid.is-laid-out div.thumbnail {
    visibility: visible;
}

/* -- Google sign-in overlay ---------------------------------------------- */

#driveAuthOverlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    background-color: #000000;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
}

#driveAuthOverlay .drive-auth-panel {
    padding: 24px;
    max-width: 420px;
}

#driveAuthOverlay .drive-auth-message {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.6;
}

#driveAuthOverlay .drive-auth-button {
    padding: 10px 20px;
    font: inherit;
    font-size: 14px;
    color: #ffffff;
    background: transparent;
    border: 1px solid #666666;
    border-radius: 3px;
    cursor: pointer;
}

#driveAuthOverlay .drive-auth-button:hover {
    border-color: #aaaaaa;
}
