:root {
    overscroll-behavior: none;

    --text-primary: #fdfeef;
    --text-primary-dark: #e2e3d0;
    --text-body: #292735;
    --text-accent: #94b69c;
    --bg-primary: #647d61;
    --bg-primary-dark: #546852;
    --bg-secondary: #f9fafa;
    --line: rgba(47, 59, 38, 0.14);

    --navbar-height: 45px;
}

body {
    overflow-x: hidden;
    overscroll-behavior: none;
    background-color: var(--bg-secondary);
    color: var(--body);
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 18px;
}

main {
    padding-top: var(--navbar-height);
    overscroll-behavior: none;
    position: relative;
}

p {
    margin-bottom: 15px;
}

/* ============= TEXT ============= */

h1 {
    padding: 0;
    margin: 0;
}
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--text-body);
}
h5, h6 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-accent);
}
.font-heading {
    font-family: 'Cormorant Garamond', serif;
}
.font-body {
    font-family: 'Jost', sans-serif;
}
.font-mono {
    font-family: 'IBM Plex Mono', monospace;
}
.text-body {
    color: var(--text-body);
}

/* ============= HOMEPAGE ============= */

#hero {
    height: calc(100lvh - var(--navbar-height) - 10px);
    width: 100vw;
    background-image: url("./images/detta_home.jpg");
    background-position: 42% 20%;
    position: relative;
    display: flex;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.1) 39%, var(--bg-secondary) 100%);
}

#hero-content {
    max-width: 400px;
    z-index: 5;
    margin-top: 8rem;
    margin-left: 13rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

#hero-logo {
    font-size: 160px;
    color: var(--text-primary);
    line-height: 114px;
    font-weight: 400;
    letter-spacing: -2px;
    font-style: italic;
}

#hero-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
}

#hero-subtitle p {
    margin-bottom: 0;
}


@media (max-width: 991px) {
    #hero {
        background-position: 45% 20%;
    }

    #bio img {
        aspect-ratio: 1 / 1.6;
    }
}

@media (max-width: 767px) {
    #hero {
        background-position: 29% 60%;
    }

    #hero-content {
        max-width: 85vw;
        margin-left: auto;
        margin-right: auto;
        justify-content: end;
    }

    #hero-logo {
        display: none;
    }

    #bio img {
        display: none;
        float: unset;
    }
}

#bio {
    color: var(--text-body);
    font-weight: 300;
    font-size: 19px;
    line-height: 1.85;
    border-top: 1px solid var(--text-accent);
    border-bottom: 1px solid var(--text-accent);
}

#bio p:first-of-type::first-letter{
    font-family: 'Cormorant Garamond', serif;
    font-size: 74px;
    float: left;
    line-height: 0.75;
    margin: 6px 12px 0 0;
    color: var(--text-accent);
    font-weight: 600;
}

#bio img {
    float: right;
    max-width: 40%;
    object-fit: cover;
    aspect-ratio: 1 / 1.3;
}

.quote {
    padding: 16px;
}

.quote-text {
    position: relative;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 21px;
    line-height: 1.5;
    color: var(--text-body);
    z-index: 10;
}

.quote-text::before {
    content: "“";
    position: absolute;
    top: -2px;
    left: -27px;
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-accent);
    font-size: 5rem;
    line-height: 3rem;
    z-index: -5;
}

.quote-by {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: block;
    margin-top: 0.4rem;
}

#home-end-image {
    min-height: 310px;
    background-image: url("./images/river.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 8%;
}

.transition-opacity {
    transition: opacity 1.6s ease;
}

.scroll-cue {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--text-body);
    text-transform: uppercase;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: .8;
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

.scroll-cue::after {
    content: "";
    width: 1px;
    height: 28px;
    background: linear-gradient(var(--text-body), transparent);
    animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse{0%,100%{opacity:.25;} 50%{opacity:.8;}}

/*============= NAVIGATION =============*/

.navbar {
    z-index: 151;
    background-color: var(--bg-primary);
    min-height: var(--navbar-height);
    width: 100vw;
}

.nav-link {
    color: var(--text-primary);
    display: inline-block;
    position: relative;
    letter-spacing: 0.08rem;
    font-weight: 400;
    text-transform: uppercase;
    font-size: .875rem
}

.nav-link.open,
.nav-link:hover,
.nav-link:focus {
    color: var(--text-primary);
}

.nav-link::before,
.nav-link::after {
    content: '';
    position: absolute;
    height: 15px;
    width: 10px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.0' width='36' height='54' viewBox='0 0 36 54'><g transform='translate(0,54) scale(0.05,-0.05)' fill='%2394b69c' stroke='none'><path d='M315 857 c-38 -187 -95 -265 -219 -298 -100 -27 -96 -43 19 -79 119 -38 177 -120 196 -276 26 -217 46 -214 87 16 31 166 72 222 188 260 109 35 111 54 8 90 -136 47 -182 120 -206 330 -18 160 -32 151 -73 -43z'/></g></svg>") no-repeat center / contain;
    opacity: 0;
    transition: opacity 0.13s ease-out;
}

.nav-link::before {
    bottom: 4px;
    left: -3px;
}

.nav-link::after {
    top: 4px;
    right: -3px;
}

.nav-link.open::before,
.nav-link:hover::before,
.nav-link:focus::before,
.nav-link.open::after,
.nav-link:hover::after,
.nav-link:focus::after {
    opacity: 1;
}

.navbar-brand {
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.navbar-brand h4 {
    color: var(--text-primary);
}

#navbar-collapse {
    position: fixed;
    top: var(--navbar-height);
    z-index: 50;
    width: 100vw;
    background-color: var(--bg-primary);
}

#navbar-collapse .nav-item:first-of-type {
    margin-top: 12px;
}

#navbar-collapse .nav-item:last-of-type {
    margin-bottom: 12px;
}

#navbar-management .dropdown-menu {
    border-radius: 0px;
    background-color: var(--bg-primary);
}

@media (max-width: 991px) {
    .nav-link {
        font-size: 1rem;
    }

    :root {
        --navbar-height: 52px;
    }
}

@media (max-width: 450px) {
    #navbar {
        gap: 0;
    }

    .navbar-brand {
        width: 100%
    }

    :root {
        --navbar-height: 87px;
    }
}

/*===== NAVBAR TOGGLE =====*/

.navbar-toggler {
    background: transparent;
    border: 1px solid transparent;
    padding: 8px 6px;
}
.navbar-toggler:focus {
    outline-width: 0;
}
.navbar-toggler [class*='bar-'] {
    background: var(--text-primary);
    display: block;
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .2s ease all;
    transition: .2s ease all;
    border-radius: 2px;
    height: 2px;
    width: 33px;
    margin-bottom: 6px;
}
.navbar-toggler .bar-bot {
    margin-bottom: 0;
}
.navbar-toggler.opened .bar-top {
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
    -webkit-transform-origin: 15% 15%;
            transform-origin: 15% 15%;
}
.navbar-toggler.opened .bar-mid {
    opacity: 0;
}
.navbar-toggler.opened .bar-bot {
    -webkit-transform: rotate(45deg);
            transform: rotate(-45deg);
    -webkit-transform-origin: 15% 95%;
            transform-origin: 15% 95%;
}
.navbar-toggler,
.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler-icon:focus {
    border: none;
    box-shadow: none;
}

/*============= FOOTER =============*/

footer {
    background-color: var(--bg-primary);
    padding: 60px;
}

footer h4 {
    font-size: 80px;
    color: var(--text-primary);
    line-height: 60px;
    font-weight: 400;
    letter-spacing: -2px;
    font-style: italic;
}

footer a:not(.btn) {
    color: var(--text-primary) !important;
    font-weight: 500 !important;
    transition: color 0.1s ease;
}

footer a:not(.btn):hover {
    color: var(--text-primary-dark) !important;
}

@media (max-width: 767px) {
    footer {
        padding: 40px;
    }
}

.website-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#newsletter-email {
    flex: 1;
    min-width: 200px;
    background: var(--bg-primary-dark);
    border: 1px solid var(--text-accent);
    border-radius: 30px;
    padding: 13px 20px;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color .25s ease;
}

#newsletter-email::placeholder {
    color: var(--text-accent);
}

#newsletter-email:focus{
    border-color: var(--text-primary-dark);
}

#newsletter-msg {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    border-radius: 50px;
}

/*-- Bootstrap Mobile Gutter Fix --*/
.row, .container-fluid{
    margin-left: 0px !important;
    margin-right: 0px !important;
}

/*===== MEDIA =====*/

.gallery .image-container{
    padding: 8px;
    width: 100%;
}
.gallery img{
    width: 100%;
    border-radius: 3px;
    cursor: pointer;
}

/*======== BUTTONS ============*/

.btn {
    padding: 10px 20px;
    border-radius: 60px;
    font-weight: 400;
    letter-spacing: 0.15rem;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    transition: background-color ease 0.15s, opacity 1.6s ease;
}

@media screen and (min-width: 768px) {   
    .btn {
        font-size: 0.9rem;
    }
}

.btn-sm {
    padding: 6px 10px;
    font-size: 0.75rem;
}

.btn-1 {
    color: var(--text-primary);
    background-color: var(--bg-primary);
    border-color: var(--bg-primary);

}
.btn-1:hover, .btn-1:active {
    color: var(--text-primary) !important;
    background-color: var(--bg-primary-dark) !important;
    border-color: var(--bg-primary-dark) !important;
}
@media (hover: none) {
    .btn-1:hover {
        background-color: var(--bg-primary) !important;
    }
}

.btn-2 {
    color: var(--bg-primary);
    background-color: var(--text-primary);
    border-color: var(--text-primary);
}
.btn-2:hover, .btn-2:active {
    color: var(--bg-primary) !important;
    background-color: var(--text-primary-dark) !important;
    border-color: var(--text-primary-dark) !important;
}
@media (hover: none) {
    .btn-2:hover {
        background-color: var(--text-primary) !important;
    }
}

.link-1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-style: italic;
    border-width: 0;
    border-bottom-width: 1px;
    border-style: solid;
    border-color: var(--text-accent);
    display: inline-block;
    padding-bottom: 4px;
    color: var(--text-body);
    text-decoration: none;
    transition: border-color 0.12s ease;
    pointer-events: all;
}

.link-1:hover, .link-2:hover {
    border-color: var(--text-body);
    text-decoration: none;
}

.link-2 {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    border-width: 0;
    border-bottom-width: 1px;
    border-style: solid;
    border-color: var(--text-accent);
    display: inline-block;
    padding-bottom: 4px;
    color: var(--text-body);
    text-decoration: none;
    transition: border-color 0.12s ease;
    pointer-events: all;
}

@media (hover: none) {
    .link-2 {
        font-size: 16px;
        padding: 6px 16px;
        letter-spacing: 1.2px;
    }
}

/* ====== FULLSCREEN IMAGES ====== */

.fs-image-container.show{
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    position: fixed;
    height: calc(100lvh - 58px);
    width: 100vw;
    z-index: 100;
}
.fs-image{
    position: fixed;
    max-height: 90lvh;
    max-width: 100vw;
    z-index: 101;
}
.fs-image-container .svg-container{
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 102;
}
.fs-image-container svg{
    height: 40px;
    width: 40px;
    color: white;
    cursor: pointer;
    z-index: 103;
    filter: drop-shadow(0 0 5px black)
}
@media (hover: none){
    .fs-image-container svg{
        height: 60px;
        width: 60px;
    }
}

/* ====== LOADING OVERLAY ====== */

#loading {
    position: fixed;
    width: 100vw;
    height: 100lvh;
    margin-top: var(--navbar-height);
    z-index: 150;
    background-color: var(--bg-secondary);
    color: var(--text-body);
}
#loading.visible {
    visibility: visible;
    opacity: 1;
    transition: opacity 1s linear;
}
#loading.hidden {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.4s, opacity 0.4s linear;
}
#loading.hidden .spinner-border {
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.2s, opacity 0.2s linear;
}

/* ====== SCROLL DOWN ====== */

.scroll-container{
    bottom: 30px;
    right: 50px;
    cursor: pointer;
}
.scroll{
    opacity: 1;
    -webkit-transition: all .5s ease-in 3s;
    transition: all .5s ease-in 3s;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: solid rgba(236, 236, 236, 0.4) 1px;
    border-radius: 3px;
    z-index: 140;
    -webkit-animation: bounce 2s infinite 2s;
    animation: bounce 2s infinite 2s;
    -webkit-transition: all .2s ease-in;
    transition: all .2s ease-in;
}
.scroll:before {
    position: absolute;
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    content: "";
    border: 1px solid rgb(204, 204, 204);
    border-width: 0px 0 2px 2px;
}
@keyframes bounce {
    0%,
    100%,
    20%,
    50%,
    80% {
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0);
    }
    40% {
        -webkit-transform: translateY(-10px);
        -ms-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    60% {
        -webkit-transform: translateY(-5px);
        -ms-transform: translateY(-5px);
        transform: translateY(-5px);
    }
}
.scroll-down:before {
    top: calc(50% - 15px);
    transform: rotate(-45deg);
}
@media (max-aspect-ratio: 1/1){
    .scroll-down{
        display: none;
    }
}
.scroll-up:before {
    top: calc(50% - 5px);
    transform: rotate(135deg);
}

/* ====== AUTH ====== */

.card.auth {
    border-color: transparent;
    border-radius: 15px;
    background-color: var(--bg-secondary);
}

.auth form{
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.auth ul.errorlist{
    list-style: none;
    padding: 0;
    margin-top: 1em;
    color: red;
}

/* ====== TOASTIFY ====== */

.toast-close:hover{
    opacity: 85%;
}

.toastify{
    padding: 1rem 0.5rem 1rem 1rem !important;
}

@media only screen and (max-width: 480px) {
    .toastify-left, .toastify-right {
        margin-left: auto !important;
        margin-right: auto !important;
        left: 0 !important;
        right: 0 !important;
        max-width: 95vw !important;
    }

    .toast-close{
        padding: 0.75rem !important;
        align-items: center;
    }
}

/* ====== SHOWS ====== */

.bg-1 {
    background-image: url("/static/images/river.jpg");
    background-position: 50% 50%;
    background-size: cover;
    background-repeat: no-repeat;
}

.shows-list, .shop-container {
    padding: 4rem 0;
}

.shows-list .show {
    border: 1px solid transparent;
    border-bottom-color: var(--line);
    min-height: 90px;
}

.shows-list .show:first-of-type {
    border-top-color: var(--line);
}

.shows-list .show .date {
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--text-accent);
    margin-bottom: 0;
    white-space: nowrap;
}

.shows-page .shows-list, .photos-page, .shop-page .shop-container {
    min-height: calc(100lvh - 595px - var(--navbar-height))
}

@media (min-width: 768px){
    .shows-page .shows-list, .photos-page, .shop-page .shop-container {
        min-height: calc(100lvh - 405px - var(--navbar-height));
    }
    .shows-page .shows-list, .shop-page .shop-container {
        padding: 8rem 0;
    }
}

@media (min-width: 992px){
    .shows-page .shows-list, .photos-page, .shop-page .shop-container {
        min-height: calc(100lvh - 345px - var(--navbar-height))
    }
}


/* ===== PHOTOS CAROUSEL ===== */

.carousel-item img {
    width: 100%;
    height: 55lvh;
    object-fit: contain;
    border-radius: 8px;
}
.carousel-control-prev, .carousel-control-next {
    width: 5%;
}

.thumb-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: #8d8d8d transparent;
}
.thumb-row::-webkit-scrollbar {
    height: 6px;
}
.thumb-row::-webkit-scrollbar-track {
    background: transparent;
}
.thumb-row::-webkit-scrollbar-thumb {
    background: #8d8d8d;
    border-radius: 3px;
}
.thumb-row img {
    flex: 0 0 auto;
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    border: 2px solid transparent;
    scroll-snap-align: center;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}
.thumb-row img:hover {
    opacity: 0.85;
}
.thumb-row img.active {
    opacity: 1;
    border-color: var(--text-body);
}

/*=========================*/

iframe{
   max-width: 100%;
   border-radius: 5px;
}

.card{
    border-radius: 0px;
    border-color: #4c636c;
    margin-bottom: 1rem;
}

.pagination{
    color: #fff;
    background-color: var(--slate);
    border-radius: 0;
}
.pagination a{
    color: #fff;
}
.pagination a:hover{
    color: #c1c1c1;
}

@media (max-width: 767px){
    .w-md-100{
        width: 100%
    }
}

.form-control{
    margin-bottom: 16px;
}

label{
    margin: 0 0 5px 5px;
}

.display-5{
    margin-bottom: 20px;
}

.fw-demisemibold{
    font-weight: 500 !important;
}

.fs-small{
    font-size: 0.95rem;
}

.banner-image{
    width: 100%;
    max-height: 66lvh;
    object-fit: cover;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.fixed-bg {
    width: 100vw;
    height: 100lvh;
    z-index: -1;
    position: fixed;
    left: 0;
    top: 0;
    background-size: cover;
}

.bg-secondary {
    background-color: var(--bg-secondary) !important;
}
