@charset "utf-8";

/*
 * Reusable components.
 *
 * Most of these styles are directly adapted from the legacy site, but with
 * narrower selectors and clearer grouping.
 */

/* -------------------------------------------------------------------------- */
/* Branding                                                                    */
/* -------------------------------------------------------------------------- */

.site-brand__link {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.logo {
    margin-top: -15px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 200px;
}

.logo_tiurana {
    width: 200px;
    font-family: Vivante, serif;
    font-size: 40pt;
    font-weight: bolder;
    color: var(--color-blue);
    text-align: center;
}

.logo_encaraviu {
    width: 150px;
    margin-top: -20px;
    margin-left: 50px;
    font-family: Mistral, sans-serif;
    font-size: 20pt;
    font-weight: normal;
    color: var(--color-accent-soft);
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Dividers                                                                    */
/* -------------------------------------------------------------------------- */

hr.grad {
    border: 0;
    height: 1px;
    background-image: linear-gradient(
            to right,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0)
    );
}

hr.diffuse_line {
    overflow: visible;
    padding: 0;
    border: none;
    border-top: medium double;
    text-align: center;
}

hr.diffuse_line::after {
    display: inline-block;
    position: relative;
    top: -0.7em;
    font-size: 1.5em;
    line-height: 1.15;
    padding: 0 0.25em;
    background: var(--color-background);
}

hr.section::after {
    content: "§";
}

hr.caret::after {
    content: "^";
    transform: rotate(180deg);
}

/* -------------------------------------------------------------------------- */
/* Navigation                                                                  */
/* -------------------------------------------------------------------------- */

.site-nav {
    margin-top: 20px;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 5px;
}

.menu-list__item + .menu-list__item {
    margin-top: 10px;
}

.menu-link {
    display: block;
    text-decoration: none;
    font-family: Vivante, serif;
    font-size: x-large;
    font-weight: bolder;
    color: var(--color-blue);
    text-align: left;
}

.menu-link:hover,
.menu-link:focus-visible {
    text-decoration: underline;
}

.menu-link.is-active {
    text-decoration: underline;
}

/* -------------------------------------------------------------------------- */
/* Gallery search panel                                                        */
/* -------------------------------------------------------------------------- */

.gallery-search-panel {
    width: 100%;
}

.gallery-search-note {
    margin-bottom: 1rem;
    text-align: center;
}

.gallery-search-form {
    margin: 0 auto 1rem auto;
    text-align: center;
}

.gallery-search-form select,
.gallery-search-form button {
    font: inherit;
}

.gallery-search-form select {
    max-width: 100%;
}

.gallery-search-form button {
    margin-left: 0.5rem;
}

/* -------------------------------------------------------------------------- */
/* Gallery thumbnail grid                                                      */
/* -------------------------------------------------------------------------- */

.mini {
    text-align: center;
}

.gallery-thumb {
    display: inline-block;
    vertical-align: top;
    position: relative;
    width: 100px;
    margin: 5px;
    font-size: small;
    line-height: 1.2;
    color: var(--color-text);
    text-decoration: none;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
    text-decoration: underline;
}

.gallery-thumb img {
    display: block;
    height: 50px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 0.25rem auto;
    border: 1px solid var(--color-border);
}

.gallery-thumb span {
    display: block;
    overflow-wrap: anywhere;
}

.gallery-empty {
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Image detail pages                                                          */
/* -------------------------------------------------------------------------- */

.image-back-link {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.image-back-link a {
    text-decoration: none;
}

.image-back-link a:hover,
.image-back-link a:focus-visible {
    text-decoration: underline;
}

.image-detail {
    text-align: center;
}

.image-detail__figure {
    display: inline-block;
}

.image-detail__img--normal {
    width: 400px;
    max-width: 100%;
    border: 4px solid var(--color-border);
}

.image-detail__figure--large {
    display: block;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.image-detail__img--large {
    width: 100%;
    border: 4px solid var(--color-border);
}

.image-detail__author {
    font-size: x-small;
    font-style: italic;
    text-align: right;
    margin-left: auto;
    margin-right: auto;
}

.image-detail__author--normal {
    width: 400px;
    max-width: 100%;
}

.image-detail__author--large {
    width: 90%;
}

.image-detail__description {
    margin-top: 10px;
    font-size: large;
    text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Common utility-like classes retained from the legacy visual system          */
/* -------------------------------------------------------------------------- */

.lightblue {
    color: var(--color-lightblue);
}

.blue {
    color: var(--color-blue);
}

.italic {
    font-style: italic;
}

.strong {
    font-weight: bold;
}

@media screen and (max-width: 900px) {
    .gallery-search-form button {
        display: block;
        margin: 0.75rem auto 0 auto;
    }

    .image-detail__figure--large,
    .image-detail__author--large {
        width: 100%;
    }
}
