/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
    font-family: 'Gothic A1', sans-serif;
    font-weight: 300;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

@media (min-width: 40em) {
    body.nav-active {
      overflow: hidden;
    }
}

a {
    text-decoration: none;
    color: #77a7b9;
}

.content {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1em;
    box-sizing: border-box;
}

@media (min-width: 30em) {
    .container {
        padding: 0 2em;
    }
}

@media (min-width: 48em) {
    .container {
        padding: 0 3em;
    }
}

.header {
    width: 100%;
    background: rgba(255,255,255,1);
    position: fixed;
    top: 0;
    z-index: 1;
    transition: background 100ms, color 100ms;
}

.header-container {
    display: flex;
    justify-content: space-between;
}

.logo {
    display: inline-block;
    font-weight: 500;
}

.logo > a {
    text-decoration: none;
    color: #222;
}

.hamburger {
    padding: 2em 1em;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    -moz-transition: width .3s,height .3s,padding .3s,z-index .6s step-end;
    -o-transition: width .3s,height .3s,padding .3s,z-index .6s step-end;
    -webkit-transition: width .3s,height .3s,padding .3s,z-index .6s step-end;
    transition: width .3s,height .3s,padding .3s,z-index .6s step-end;
}

.nav-active .hamburger {
    z-index: 300;
    -moz-transition: width .3s,height .3s,padding .3s,z-index .6s step-start;
    -o-transition: width .3s,height .3s,padding .3s,z-index .6s step-start;
    -webkit-transition: width .3s,height .3s,padding .3s,z-index .6s step-start;
    transition: width .3s,height .3s,padding .3s,z-index .6s step-start;
}

.patty {
    width: 30px;
    height: 2px;
    margin: 8px 0px;
    position: relative;
    background: #222;
    z-index: 1;
    -moz-transition: top .3s,-moz-transform .3s;
    -o-transition: top .3s,-o-transform .3s;
    -webkit-transition: top .3s,-webkit-transform .3s;
    transition: top .3s,transform .3s;
}

.nav-active .patty {
    background: none !important;
}

.patty::before,
.patty::after {
    content: ' ';
    display: block;
    width: 30px;
    height: 2px;
    background: #000;
    position: absolute;
    z-index: 1;
    -moz-transition: top .3s,-moz-transform .3s;
    -o-transition: top .3s,-o-transform .3s;
    -webkit-transition: top .3s,-webkit-transform .3s;
    transition: top .3s,transform .3s;
}

.patty::before {
    top: -8px;
}

.patty::after {
    top: 8px;
}

.nav-active .patty::after {
    top: 0 !important;
    background: #fff;
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

.nav-active .patty::before {
    top: 0 !important;
    background: #fff;
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

@media (min-width: 40em) {
    .hamburger,
    .patty {
        display: none;
    }
}


.nav {
    z-index: 150;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    background-color: rgba(34,34,34,0);
    visibility: hidden;
    overflow: auto;
    display: -webkit-flex;
    -webkit-flex-direction: column;
    display: flex;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    -moz-transition: visibility 0s linear .6s,background-color .6s cubic-bezier(0.7, 0.01, 0.3, 1);
    -o-transition: visibility 0s linear .6s,background-color .6s cubic-bezier(0.7, 0.01, 0.3, 1);
    -webkit-transition: visibility 0s linear,background-color .6s cubic-bezier(0.7, 0.01, 0.3, 1);
    -webkit-transition-delay: .6s,0s;
    transition: visibility 0s linear .6s,background-color .6s cubic-bezier(0.7, 0.01, 0.3, 1);
}

.nav-active .nav {
    visibility: visible;
    background-color: #222 !important;
    background-color: rgba(34,34,34,0.9) !important;
    -moz-transition: visibility 0s linear 0s,background-color .6s !important;
    -o-transition: visibility 0s linear 0s,background-color .6s !important;
    -webkit-transition: visibility 0s linear,background-color .6s !important;
    -webkit-transition-delay: 0s,0s;
    transition: visibility 0s linear 0s,background-color .6s !important;
}

.nav-active .nav-item {
    opacity: 1;
    color: #fff;
    -moz-transition: opacity .4s linear .2s;
    -o-transition: opacity .4s linear .2s;
    -webkit-transition: opacity .4s linear;
    -webkit-transition-delay: .2s;
    transition: opacity .4s linear .2s;
}

@media (min-width: 40em) {
    .nav {
        visibility: visible;
        display: inline-block;
        margin: 2em 0 0;
        position: relative;
        top: auto;
        width: auto;
        height: auto;
    }

    .nav-active .nav {
        visibility: visible;
        background-color: transparent !important;
        -moz-transition: none !important;
        -o-transition: none !important;
        -webkit-transition: none !important;
        -webkit-transition-delay: 0s;
        transition: none !important;
    }

    .nav-active .nav-item {
        color: #222;
    }
}

.nav-item {
    font-weight: 500;
    font-size: 0.9em;
    text-decoration: none;
    color: #222;
    position: relative;
    margin: 2em 0;

    opacity: 0;
    -moz-transition: opacity .4s linear 0s;
    -o-transition: opacity .4s linear 0s;
    -webkit-transition: opacity .4s linear;
    -webkit-transition-delay: 0s;
    transition: opacity .4s linear 0s;
}

.nav-item:hover {
    color: #fff;
}

.nav-item:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #fff;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.2s ease-in-out 0s;
  transition: all 0.2s ease-in-out 0s;
}

.nav-item:hover:before,
.nav-item.active:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

@media (min-width: 40em) {
    .nav-item {
        opacity: 1;
        margin: 0 2em 0 0;
    }
    .nav-item:hover {
        color: #222;
    }
    .nav-item:before {
        background-color: #222;
    }
    .nav-item:last-child {
        margin-right: 0;
    }
}



.content {
    width: 100%;
}

.article {
    width: 100%;
    max-width: 1100px;
    margin: 8em auto 10em;
    font-size: 0.8em;
}

.show {
  font-size: 1.5em;
}

.artist {
    font-weight: 600;
}

.subtitle {
    font-style: italic;
}

.join-mail {
    margin: 0;
}
#mc_embed_signup {
    margin-top: 2em;
}
#mc_embed_signup form {
    padding-left: 0;
}
#mc_embed_signup input.email,
#mc_embed_signup .button {
    border-radius: 0;
}
#mc_embed_signup .button {
    background-color: rgba(119,167,185, 0.8);
}
#mc_embed_signup .button:hover {
    background-color: rgba(119,167,185,1)
}

.siema img {
    max-width: 100%;
}

.captions {
    margin-top: 0.3em;
    font-size: 0.7em;
}

.siema-controls {
    text-align: right;
    font-size: 0.9em;
}

.siema-controls .btn {
    border: none;
    background: transparent;
    cursor: pointer;
}

.siema-controls .btn:disabled {
    color: #ddd;
}

.footer {
    margin-bottom: 1em;
}
.footer p {
    font-size: 0.7em;
}

@media (min-width: 30em) {
    .footer .copyright {
        float: left;
    }
    .footer .info {
        float: right;
    }
}
.footer .telephone {
    margin-right: 2em;
}

.arteba img {
    width: 100px;
}

.arteba-info {
    font-size: 0.9em;
    margin-bottom: 2em;
}

.exhibitions {
  padding: 3em 0 0 1em;
}

.exhibitions li {
  list-style: none;
  margin-bottom: 1em;
}

.exhibitions a {
    text-decoration: none;
    color: #000;
    padding-bottom: 0.2em;
    border-bottom: 0.05em solid #000;
}

.exhibitions .year {
  margin-bottom: 2em;
}

.exhibitions .year-exhibitions {
  padding-left: 4em;
}

.blockquote {
  line-height: 2em;
  margin: 0 0 1em;
  padding: 1em 0;
}

.blockquote-cite {
  text-align: center;
  display: inherit;
  font-size: 0.8em;
}

.about-space {
  margin-top: 1em;
  padding: 2em 0 0;
  border-top: 1px solid #000;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
