/* Tiwaz's Emissaries: the layout that replaced the framesets (banner and sidebars), and this site's own pages.
   The shared styles are in Tiwaz.Shared (_content/Tiwaz.Shared/css/shared.css). */

/* ------------------------------------------------------------------ layout (replaces the framesets) */
.site-header {
    position: relative;
    height: 116px;
    /* Tiles start where top.jpg (780px) ends, as in the old top frame, so the seam lines up. */
    background: url(/img/toprepeat.jpg) 780px 0 repeat-x;
    overflow: hidden;
}
.site-header .banner { display: block; }

.site-body.with-sidebar {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
}
.sidebar { padding-top: 50px; }
.sidebar img { display: block; }
.sidebar-text { padding: 10px 6px 0 8px; }
.sidebar-text p { margin-bottom: 8px; }
.content { padding: 8px 12px 20px; min-width: 0; }

body.backdrop .content {
    background-image: url(/img/backdrop.jpg);
    background-repeat: no-repeat;
    background-position: center top;
    min-height: 600px;
}

@media (max-width: 700px) {
    .site-body.with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .sidebar { padding-top: 6px; }
    .site-header { height: auto; }
    .site-header .banner { max-width: 100%; height: auto; }
}

/* ------------------------------------------------------------------ Flash movies (Ruffle) */
.flash-player { max-width: 100%; margin: 10px 0; background: #000; color: #fff; }
.flash-player > p { padding: 10px; }

/* ------------------------------------------------------------------ galleries */
.gallery { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.gallery figure { margin: 0; text-align: center; }
.gallery figcaption { font-size: 10px; }
.gallery-view img { max-width: 100%; height: auto; }

/* ---------------------------------------------------------------- polls */
ol.poll > li { margin-bottom: 1em; }
ol.poll fieldset { border: 0; padding: 0; margin: 0; }
table.poll-results td { padding: 1px 4px; }
table.poll-results meter { width: 120px; }

/* ---------------------------------------------------------------- content pages */
table.realm-ranks { border-collapse: collapse; margin: 0 auto; }
table.realm-ranks td, table.realm-ranks th { border: solid 1px #000; padding: 3px; text-align: center; }
table.realm-ranks td.blank { border: none; }

/* ---------------------------------------------------------------- galleries */
.gallery { display: grid; grid-template-columns: repeat(var(--columns, 5), auto); gap: 6px; justify-content: center; margin-bottom: 1em; }
.gallery a { text-align: center; font-size: 8pt; }
.gallery img { border: 0; }
img.gallery-picture { max-width: 100%; height: auto; }
.pic_desc { font-size: 8pt; }
.gallery-float-right { float: right; padding: 5px; text-align: center; }
.gallery-float-left { float: left; padding: 5px; text-align: center; }
.clear { clear: both; }
p.right { text-align: right; }
