/* =========================================================
   THE GATHERING — SITE.CSS
   ========================================================= */


/* =========================================================
   BASE
   ========================================================= */

* {
    box-sizing: border-box;
}


html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}


body {
    margin: 0;
    padding: 0;

    font-family:
        "Share Tech Mono",
        "Courier New",
        Courier,
        monospace;

    font-size: 14px;
    line-height: 1.2;

    color: #000;
    background: #fff;
}


h1 {
    font-size: 26px;
}


h2 {
    font-size: 1.5em;
}


h3 {
    font-size: 14px;
}


a {
    color: #646464;
    text-decoration: none;
}


a:hover,
a:focus {
    color: #000;
}


img {
    max-width: 100%;
}


.artist-link {
    color: blue;
}


.text-justify {
    text-align: justify;
}


/* =========================================================
   MAIN PAGE WRAPPER
   ========================================================= */

#content-wrapper {
    position: relative;
    min-height: 100vh;
}


/* =========================================================
   CENTRAL ARTWORK / VIDEO
   ========================================================= */

#centering {
    position: fixed;

    top: 50%;
    left: 50%;

    width: 500px;
    height: 500px;

    margin-top: -250px;
    margin-left: -250px;

    overflow: hidden;
}


#internal-video-wrapper {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}


#internal-video-wrapper img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


.video-page {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #000;
}


/* =========================================================
   BACK LINK
   ========================================================= */

.RETURN {
    margin-top: 20px;
    margin-left: 10px;
}


/* =========================================================
   LEFT COLUMN
   ========================================================= */

#extra-text {
    position: absolute;

    width: 250px;

    margin-top: 50px;
    margin-bottom: 30px;
    margin-left: 60px;
}


#side-header {
    width: 100%;
}


/* =========================================================
   EVENT META
   ========================================================= */

.event-meta {
    width: 100%;
}


.event-details p {
    margin: 0;
}

.event-details p + p {
    margin-top: 0;
}


/* =========================================================
   LINEUP
   ========================================================= */

.lineup {
    margin-top: 1em;
}


.lineup-heading {
    margin-top: 1em;
    margin-bottom: 0;
}


.lineup-item {
    margin-top: 0;
    margin-bottom: .35em;
}


/*
   ALL optional lineup metadata uses this ONE class.

   >= 1500px  → visible
   <= 1499px  → hidden

   Example:
   <span class="lineup-info">(Balance Recording, Chicago)</span>
*/

.lineup-info {
    display: inline;
}


.lineup-group {
    margin-bottom: 1em;
}


.lineup-parent {
    margin-bottom: .5em;
}


.lineup-children {
    margin-left: 1ch;
}


.lineup-children .lineup-item {
    margin-bottom: .5em;
}


/* Occasional hanging-dash alignment */

.lineup-group--aligned .lineup-parent {
    display: grid;
    grid-template-columns: 2ch 1fr;

    margin-top: 0;
    margin-bottom: .35em;
}


.lineup-group--aligned .lineup-parent::first-letter {
    /* no special styling needed */
}


.lineup-group--aligned .lineup-children {
    margin-left: 2ch;
}

/* =========================================================
   ARTWORK CREDIT
   ========================================================= */

.artwork-credit {
    margin-top: 1em;
    margin-bottom: 1em;
}


/* =========================================================
   EVENT TEXT
   ========================================================= */

.event-content {
    font-size: .8em;
    text-align: justify;
}


.event-prose-small {
    font-size: .8em;
    text-align: justify;
}


.spacer-lg {
    margin-bottom: 3em;
}


/* =========================================================
   RIGHT COLUMN
   ========================================================= */

#right-list {
    position: absolute;

    top: 200px;
    right: 200px;

    width: 300px;
}


/* =========================================================
   QUOTES
   ========================================================= */

.event-quote {
    display: inline-block;
}


.event-quote p {
    position: relative;

    margin-top: 0;
    margin-bottom: .45em;

    white-space: nowrap;
}


.event-quote .quote-first::before {
    content: '"';

    position: absolute;
    left: -1ch;
}


.event-quote .quote-last::after {
    content: '"';

    position: absolute;
    right: -1ch;
    top: 0;
}


.quote-break {
    height: 1em;

    margin: 0;

    visibility: hidden;
}


.quote-slogan {
    margin-top: 1.5em;
}


.quote-attribution {
    margin-top: 1em;

    text-align: right;
}


/*
   Used where intentional spacing must be retained.
*/

.event-quote--pattern p,
.event-quote--pre p {
    white-space: pre;
}


/* =========================================================
   AUDIO
   ========================================================= */

.event-audio {
    display: block;

    width: 280px;
    max-width: 100%;
    height: 20px;
}


.event-audio--tall {
    height: 30px;
}


/* =========================================================
   TICKET / EXTERNAL EMBEDS
   ========================================================= */

.ticket-iframe {
    display: block;

    width: 100%;
    height: 800px;
    max-height: calc(100vh - 200px);

    border: 0;

    color-scheme: light;
}


/* =========================================================
   CENTERED PAGE HEADERS
   ========================================================= */

.centerHead {
    margin-top: 12px;

    text-align: center;
}


.center-head-title {
    margin: 0;

    font-size: 45px;
    line-height: 1.1;
}


/* =========================================================
   FOOTER
   ========================================================= */

#adress {
    position: fixed;

    right: 10px;
    bottom: 10px;

    background: #fff;
}


.mobile-footer {
    display: none;
}


/* =========================================================
   MOBILE SECTION SEPARATOR
   ========================================================= */

.mobile-separator {
    display: none;
}


/* =========================================================
   HOMEPAGE
   ========================================================= */


/* =========================================================
   UPCOMING / NEWS
   ========================================================= */

#upcoming {
    margin-bottom: 1em;
}

#upcoming[hidden] {
    display: none;
}

.upcoming-heading {
    margin: 0 0 1em 0;
}

#upcoming-list .event-entry:last-child {
    margin-bottom: 0;
}

/* =========================================================
   COLLAPSIBLE SECTIONS
   ========================================================= */

.section {
    margin-bottom: 1em;
}

.section-summary {
    display: block;

    cursor: pointer;
    list-style: none;

    font-weight: 700;
}


.section-summary::-webkit-details-marker {
    display: none;
}


.section-summary::marker {
    content: "";
}


/* Closed */

.section-summary::before {
    content: "";

    display: inline-block;

    width: 0;
    height: 0;

    margin-right: 3px;

    border-top: 7.5px solid transparent;
    border-bottom: 7.5px solid transparent;
    border-left: 11px solid #000;

    transform: translateY(1px);
    transform-origin: center;
}

.section[open] > .section-summary::before {
    transform: translateY(1px) rotate(90deg);
}

.event-entry {
    margin: 0 0 1em 0;
}


/* No gap between event title and lineup */

.event-row,
.event-entry .artist-list {
    margin-top: 0;
    margin-bottom: 0;
}


/* No extra gap after the final event */

.event-entry:last-child {
    margin-bottom: 0;
}


.event-link {
    display: grid;
    grid-template-columns: 14px 1fr;
    column-gap: 6px;
    align-items: start;

    width: 100%;
}


.event-icon {
    display: block;

    width: 14px;
    height: 14px;
}


.event-title {
    min-width: 0;
}


/* =========================================================
   HOMEPAGE RIGHT COLUMN
   ========================================================= */

/* Same font size as the rest of the website */

#right-list .event-content,
.event-quote,
.event-quote--small,
.event-quote--pattern,
.event-quote--pre {
    font-size: 1em;
    font-weight: 400;
}


/* =========================================================
   HOMEPAGE FOOTER
   ========================================================= */

/* No gap between Resident Advisor and Contact */

#adress p,
.mobile-footer p {
    margin-top: 0;
    margin-bottom: 0;
}

/* =========================================================
   GENERIC FORMS
   ========================================================= */

form {
    max-width: 100%;
}


form label {
    display: block;

    margin-bottom: .25em;
}


form input,
form textarea,
form select,
form button {
    max-width: 100%;

    font: inherit;
}


form input,
form textarea,
form select {
    padding: .35em;

    border: 1px solid #646464;

    background: #fff;
    color: #000;
}


form textarea {
    resize: vertical;
}


form button {
    padding: .35em .7em;

    border: 1px solid #646464;

    background: #fff;
    color: #000;

    cursor: pointer;
}


form button:hover,
form button:focus {
    border-color: #000;
}


/* =========================================================
   VERY LARGE DESKTOP
   ========================================================= */

@media all and (min-width: 1700px) {

    #right-list {
        right: 200px;
    }


    #extra-text {
        width: 450px;

        margin-left: 60px;
    }

}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media all and (min-width: 1500px) and (max-width: 1699px) {

    #right-list {
        right: 150px;
    }


    #extra-text {
        width: 400px;

        margin-left: 40px;
    }

}


/* =========================================================
   HIDE OPTIONAL LINEUP INFO
   ========================================================= */

@media all and (max-width: 1499px) {

    .lineup-info {
        display: none;
    }

}


/* =========================================================
   1340 → 1499
   ========================================================= */

@media all and (min-width: 1340px) and (max-width: 1499px) {

    #extra-text {
        width: 350px;

        margin-left: 30px;
    }

}


/* =========================================================
   1200 → 1339
   ========================================================= */

@media all and (min-width: 1200px) and (max-width: 1339px) {

    #extra-text {
        width: 300px;

        margin-left: 30px;
    }

}


/* =========================================================
   1200 → 1499 RIGHT COLUMN
   ========================================================= */

@media all and (min-width: 1200px) and (max-width: 1499px) {

    #right-list {
        width: 300px;

        right: 50px;
    }

}


/* =========================================================
   992 → 1199
   ========================================================= */

@media all and (min-width: 992px) and (max-width: 1199px) {

    #centering {
        width: 450px;
        height: 450px;

        margin-top: -225px;
        margin-left: -225px;
    }


    #extra-text {
        width: 300px;

        margin-left: 20px;
    }


    #right-list {
        width: 260px;

        right: 20px;
    }

}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media all and (max-width: 991px) {

    body {
        padding: 18px;

        font-size: 20px;
    }


    h1 {
        font-size: 1.5em;
    }


    h2 {
        font-size: 1.35em;
    }


    h3 {
        font-size: 1em;
    }


    /* Central artwork */

    #centering {
        position: static;

        width: 100%;
        height: auto;

        margin: 0;

        overflow: visible;
    }


    #internal-video-wrapper {
        display: block;

        width: 100%;
        height: auto;
    }


    #internal-video-wrapper img {
        width: 100%;
        height: auto;

        object-fit: contain;
    }


    .video-page {
        width: 100%;
        height: auto;
    }


    /* Back */

    .RETURN {
        margin-top: 20px;
        margin-left: 0;
    }


    /* Left / right columns */

    #extra-text,
    #right-list {
        position: static;

        width: 100%;

        margin-left: 0;
        margin-right: 0;
    }


    #extra-text {
        margin-top: 30px;
        margin-bottom: 30px;
    }


    #right-list {
        margin-top: 30px;
    }


    /* Full-width dashed separator */

    .mobile-separator {
        display: block;

        width: 100%;
        height: 1px;

        margin-top: 30px;
        margin-bottom: 30px;

        background:
            repeating-linear-gradient(
                to right,
                #000 0,
                #000 6px,
                transparent 6px,
                transparent 12px
            );
    }
    
    /* Center right-side content below mobile separator */

    #right-list .event-content {
        text-align: left;
    }
    
    #right-list .event-quote {
        display: block;
    
        width: fit-content;
        max-width: 100%;
    
        margin-left: auto;
        margin-right: auto;
    
        text-align: left;
    }

    /* Audio */

    .event-audio {
        width: 100%;
        max-width: 100%;
    }


    /* Ticket embed */

    .ticket-iframe {
        width: 100%;
        height: 800px;

        max-height: none;
    }


    /* Center title */

    .center-head-title {
        font-size: 2em;
    }


    /* Desktop footer off */

    .hidden-mobile {
        display: none !important;
    }


    /* Mobile footer */

    .mobile-footer {
        display: block;

        margin-top: 40px;
        margin-bottom: 10px;
    }


    /* Forms */

    form input,
    form textarea,
    form select,
    form button {
        width: 100%;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media all and (max-width: 480px) {

    body {
        padding-right: 14px;
        padding-left: 14px;
    }


/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}