/* Sites with the "Theater" layout (daspodium.at, grazerpuppentheater.eu). Taken over from the old WordPress
   theme "grazerpuppentheater" (style.css, navbar-fixed-top.css and the styles of its start page templates),
   on the same Bootstrap 3.3.6 it was built on - see css/bootstrap3. */

/* navbar-fixed-top.css */
body {
    padding-top: 70px;
}

/* style.css (the Riegler font face is declared in _Host.cshtml) */
h1, h2, h3, h4, h5, h6, .nav > li {
    font-family: Riegler;
}

img.alignleft {
    float: left;
    margin-right: 15px;
    margin-bottom: 8px;
}

img.alignright {
    float: right;
    margin-left: 15px;
    margin-bottom: 8px;
}

body {
    font-size: 12pt;
}

.imageborder {
    border: 1px #CCC solid;
}

/* WordPress' own content classes (core block styles, not part of the theme) */
img.aligncenter, .wp-caption.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption.alignleft {
    float: left;
    margin-right: 15px;
}

.wp-caption.alignright {
    float: right;
    margin-left: 15px;
}

.wp-caption {
    max-width: 100%;
}

.post-text img, .panel-body img {
    max-width: 100%;
    height: auto;
}

.post-text iframe, .panel-body iframe {
    max-width: 100%;
}

/* "Unterseiten als Liste": featured image in WordPress' "medium" size (at most 300 x 300) */
.panel-body .well img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
}

/* The listing printed the raw text with <br /> per line, so paragraphs were one empty line apart */
.child-text p {
    margin: 0 0 1.428571em;
}

/* "Bilder-Kacheln" - startpage.php of grazerpuppentheater.eu */
.box_f {
    background-position: 50% 50%;
    background-size: cover;
    padding-top: 23%;
    width: 23%;
    display: inline-block;
    color: white;
}

@media (max-width: 992px) {
    .box_f {
        padding-top: 32%;
        width: 32%;
    }
}

/* "Bilder-Raster" - startpage.php of daspodium.at */
.square {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

    .square:after {
        content: "";
        display: block;
        padding-bottom: 100%;
    }

    .square > div {
        position: absolute;
        width: 100%;
        height: 100%;
        background-position: center;
        background-size: cover;
    }

.squareLong {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    display: none;
}

    .squareLong:after {
        content: "";
        display: block;
        padding-bottom: 100%;
    }

    .squareLong > div {
        position: absolute;
        width: 100%;
        height: calc(200% + 30px);
        background-position: center;
        background-size: cover;
    }

@media (min-width: 992px) {
    .squareLong {
        display: block;
    }
}

/* footer text and footer menu, if a site has them (the theme had none) */
.site-footer {
    margin: 20px 0;
    color: #777;
}

/* Blazor error bar and reconnect dialog (same as site.css) */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

#components-reconnect-modal {
    display: none;
}

    #components-reconnect-modal.components-reconnect-show,
    #components-reconnect-modal.components-reconnect-failed,
    #components-reconnect-modal.components-reconnect-rejected {
        display: block;
    }

    #components-reconnect-modal .reconnect-overlay {
        position: fixed;
        inset: 0;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #components-reconnect-modal .reconnect-dialog {
        background: #222;
        color: whitesmoke;
        padding: 1.5rem 2rem;
        border-radius: 0.5rem;
        text-align: center;
        max-width: 320px;
    }

    #components-reconnect-modal p {
        display: none;
        margin: 0;
    }

    #components-reconnect-modal .reconnect-reload-link {
        color: #8fd3ff;
    }

    #components-reconnect-modal.components-reconnect-show .reconnect-message-show,
    #components-reconnect-modal.components-reconnect-failed .reconnect-message-failed,
    #components-reconnect-modal.components-reconnect-rejected .reconnect-message-rejected {
        display: block;
    }
