/*
 * Globals
 */

/* Links */
a,
a:focus,
a:hover {
  color: #fff;
}

/* Custom default button */
.btn-default,
.btn-default:hover,
.btn-default:focus {
  color: #333;
  text-shadow: none;
  /* Prevent inheritence from `body` */
  background-color: #fff;
  border: 1px solid #fff;
  opacity: 0.8;
}


/*
 * Base structure
 */

html,
body {
  height: 100%;
  /*background-color: #333;*/
}

body {
  color: #fff;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);

}

/* Extra markup and styles for table-esque vertical and horizontal centering */
.site-wrapper {
  display: table;
  width: 100%;
  height: 100%;
  /* For at least Firefox */
  min-height: 100%;
  /* -webkit-box-shadow: inset 0 0 100px rgba(0,0,0,.5);
          box-shadow: inset 0 0 100px rgba(0,0,0,.5);*/
}

.site-wrapper-inner {
  display: table-cell;
  vertical-align: top;

}

.cover-container {
  margin-right: auto;
  margin-left: auto;
  margin-top: 44pt;

}

/* Padding for spacing */
.inner {
  padding: 30px;
}


/*
 * Header
 */
.masthead-brand {
  margin-top: -10px;
  margin-bottom: 10px;
}

.masthead-nav>li {
  display: inline-block;
}

.masthead-nav>li+li {
  /*margin-left: 50px;*/
}

.masthead-nav>li>a {
  padding-right: 0;
  padding-left: 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  /* IE8 proofing */
  color: rgba(255, 255, 255, .75);
  border-bottom: 2px solid transparent;
}

.masthead-nav>li>a:hover,
.masthead-nav>li>a:focus {
  background-color: transparent;
  border-bottom-color: #a9a9a9;
  border-bottom-color: rgba(255, 255, 255, .25);
}

.masthead-nav>.small>a {
  font-size: 10px;
  margin-bottom: 30px;
  /* margin-right: -160px;
    margin-left: 110px;*/
  display: block;
  float: left;

}

.masthead-nav>.active>a,
.masthead-nav>.active>a:hover,
.masthead-nav>.active>a:focus {
  color: #fff;
  border-bottom-color: #fff;

}

@media (min-width: 768px) {
  .masthead-brand {
    /*float: left;*/
  }

  .masthead-nav {
    /*float: right;*/
  }
}


/*
 * Cover
 */

.cover {
  padding: 0 20px;
}

.cover .btn-lg {
  padding: 10px 20px;
  font-weight: bold;
}

@media (min-width: 768px) {
  .background {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    /* filter: blur(5px);
    -webkit-filter: blur(5px);*/
  }
}

@media (max-width: 768px) {
  .bg-mobile {
    /* background-size: cover; */
    background-position: center;
    /* background-attachment: fixed; */
    /* background-repeat: no-repeat; */
    background-image: url(synesthescope_bg_blur.jpg);
  }

  #main-menu-row.horizontal .cover-heading {
    font-size: 20px;
    padding: 6px 0;
  }

  .music-section,
  .exhibitions-section,
  .scenography-section,
  .software-section {
    width: 100% !important;
    max-width: 100vw;
    min-width: 0;
    word-break: break-word;
  }

  .content {
    width: 98vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  #main-menu-row.horizontal {
    flex-wrap: wrap;
  }

  .cover-heading {
    white-space: normal;
    word-break: break-word;
  }
}
.synesthescope_bg {
  background-image: url(synesthescope_bg_blur.jpg);
}

/* IMG */

#image-gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 20px;
}

#image-gallery .grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/*
 * Footer
 */

.mastfoot {
  color: #999;
  /* IE8 proofing */
  /* color: rgba(255, 255, 255, .5); */
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1000;
}

.mastfoot::before {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 86px;
  pointer-events: none;
  background: linear-gradient(to top, #000 30%, rgba(0, 0, 0, 0) 100%);
  z-index: 999;
  display: block;
}

.mastfoot > * {
  position: relative;
  z-index: 1000;
}

.bio {
  position: absolute;
  right: 22pt;
  top: 22pt;
  width: 110px;
}

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

.footleft {
  left: 0;
}

.footright {
  right: 0;
}

/* Make icons really tiny and force the size */

.footleft a > * {
  display: inline-block;
  object-fit: contain;
  vertical-align: middle;
}
  
.footleft a {
  text-decoration: none !important;
  /* line-height: 0px;    ensure no extra gap below the icon */
  margin: 0 0.3em;   /* small horizontal spacing */
  /* line-height: 2em; */
}

.footer-icon-bandcamp {
  width: 1.3em;
  height: 1.3em;
}

.footer-icon-insta {
  width: 1.4em;
  height: 1.4em;
}

.footer-icon-sc {
  width: 1.8em;
  height: 1.8em;
}

/*
 * Affix and center
 */

/*
 iPhone 5 & 5S Media Queries*/
@media only screen and (min-device-width : 320px) {

  .masthead,
  .cover-container {
    width: 300px;
  }

  .mastfoot {
    width: 90%;
    position: fixed;
    bottom: 0;
    padding: 0;
    margin: 0 auto;
    left: 0pt;
    right: 0pt;
  }
}

@media (min-width: 768px) {

  /* Pull out the header and footer */
  .masthead {
    position: fixed;
    top: 0;
  }

  .mastfoot {
    position: fixed;
    bottom: 0;
  }

  .mastfoot > * {
    margin-left: 24pt;
    margin-right: 24pt;
  }

  /* Start the vertical centering */
  .site-wrapper-inner {
    vertical-align: middle;
  }

  /* Handle the widths */
  .masthead,
  .mastfoot,
  .cover-container {
    width: 100%;
    /* Must be percentage or pixels for horizontal alignment */
  }
}

@media (min-width: 992px) {

  .masthead,
  .mastfoot,
  .cover-container {
    width: 820px;
  }
}

#works .text-left {
  text-align: left;
}

.paddin-left {
  padding-left: 16px;
  margin-left: 16px;
}

.headline-content {
  display: none;
  /* Hide by default */
  margin-bottom: 20px;
  margin-top: 20px;
}

.subsection-title {
  padding-bottom: 8px;
  padding-top: 8px;
  cursor: pointer;
}

.row {
  /* display: table-row; */
  display: block;
}

.cell {
  display: block;
  border: 0px;
  padding: 5px;
  text-align: left;
}

.headline {
  font-size: 26px;
  font-weight: 200;
  font-stretch: extra-expanded;

  text-decoration: underline;
  padding-bottom: 40px;
}

.headline2 {
  font-style: italic;
  font-size: 19px;
  font-weight: 200;
  font-stretch: expanded;
  cursor: pointer;
}

a {
  text-decoration: underline;
}

.exhibitions-section {
  width: 640px;
}

.scenography-section {
  width: 640px;
}

.software-section {
  width: 640px;
}

.music-section {
  width: 980px;
}

#main-menu-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition:
    /* top 0.5s, right 0.5s,*/
    flex-direction 0.5s;
  top: 0;
  right: 0;
  z-index: 1100;
  width: 100%;
  min-height: 200px;
}

.menu-item {
  margin: 0 0 18px 0;
  /* transition: margin 0.5s; */
}

#main-menu-row.horizontal {
  flex-direction: row;
  position: fixed;
  top: 32px;
  right: 32px;
  align-items: flex-start;
  justify-content: flex-end;
  width: auto;
}

#main-menu-row.horizontal .menu-item {
  margin: 0 18px;
}

/* Divider visibility logic for menu items */
.menu-item .divider-horizontal {
  display: none;
}

#main-menu-row.horizontal .menu-item .divider {
  display: none;
}

#main-menu-row.horizontal .menu-item .divider-horizontal {
  display: inline;
}

#main-menu-row.horizontal .menu-item {
  display: flex;
  align-items: center;
  padding: 0;
}

@media (max-width: 768px) {


  /* headers */
  #main-menu-row.horizontal .menu-item a>h1.cover-heading,
  /* devider and external links */
  #main-menu-row.horizontal .menu-item>h1#main-menu-row.horizontal .menu-item>p {
    margin: 0 !important;
    padding: 0 0px !important;
    line-height: 1.1;
    vertical-align: middle;
    height: 22px !important;
  }

  #main-menu-row.horizontal .menu-item {
    margin: 0 6px;
  }

  .cover-container::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 86px;
    z-index: 1099;
    pointer-events: none;
    background: linear-gradient(to bottom, #000 30%, rgba(0, 0, 0, 0) 100%);
    display: block;
  }


}

#main-menu-row.horizontal .menu-item a#toggle-content.selected h1.cover-heading,
#main-menu-row.horizontal .menu-item a#toggle-images.selected h1.cover-heading {
  color: #fff;
}

#main-menu-row.horizontal .menu-item h1.cover-heading,
#main-menu-row.horizontal .menu-item p a {
  color: #aaa;
}

.headline-content {
  display: none;
}

.subheadline-content {
  padding-bottom: 4px;
}

.item-credits {
  margin-top: 6px;
  font-size: 12px;
  color: #6f6f6f;
}

.underline {
  text-decoration: none !important;
}

.subsection-title.underline:hover,
.headline2.underline:hover {
  text-decoration: underline !important;
}

.subsection-title.bio-text,
.headline2.bio-text {
  cursor: default;
  text-decoration: none !important;
}

.bio-section .subsection-title,
.bio-section .headline2,
.bio-section .subsection-title:hover,
.bio-section .headline2:hover {
  cursor: default;
  text-decoration: none !important;
}

.content {
  position: absolute;
  left: -1200px;
  transition: left 0.5s ease-in-out;
  z-index: 1000;
  width: 900px;

  top: 50%;
  transform: translateY(-50%);
  bottom: 20px;
}

.content.show {
  left: 70px;
}

@media (max-width: 768px) {
  .subsection-title.underline,
  .headline2.underline {
    text-decoration: underline !important;
  }

  .subsection-title.bio-text,
  .headline2.bio-text {
    text-decoration: none !important;
  }

  .bio-section .subsection-title,
  .bio-section .headline2,
  .bio-section .subsection-title:hover,
  .bio-section .headline2:hover {
    text-decoration: none !important;
  }

  .content {
    width: 80vw;
    left: 1vw;
    right: 1vw;
    top: 00vw;
    transform: none;
    border-radius: 0;
    min-width: 0;
    max-width: 100vw;
    padding-top: 120px;
  }

  .content.show {
    left: 16px;
  }
}

.content:not(.show) {
  display: none;
}

.content.show {
  display: block;
}


@media (max-width: 768px) {

  .music-section,
  .exhibitions-section,
  .scenography-section,
  .software-section {
    width: 100% !important;
    max-width: 100vw;
    min-width: 0;
    word-break: break-word;
  }

  .content {
    width: 98vw;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  #main-menu-row.horizontal {
    flex-wrap: wrap;
  }

  .cover-heading {
    white-space: normal;
    word-break: break-word;
  }
}


.bio-section {
  text-align: left;
  max-width: 420px;
  margin: 0 0 28px 0;
}

.bio-short-section .headline,
.bio-long-section .headline {
  font-size: 22px;
  margin-bottom: 6px;
  color: #bbb;
  text-decoration: none;
}

.bio-text {
  font-size: 15px;
  color: #aaa;
  margin-bottom: 0;
  font-weight: 400;
}


.collage-item {
  position: absolute;
  width: 330vw;
  max-width: 300px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
}

.collage-item:hover {
  transform: scale(1.05);
  z-index: 1000;
  transition: transform 0.2s ease;
}

/* Parallax background when image gallery is active */
body.img-active {
  /* background-image: url("img-bg-1.png"); */
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}

/* ---------------------------------------------------------------
 * Animated centered-collage gallery
 * Cluster-style layout (like the original) + fade-in entrance,
 * hover dim/highlight of neighbors, and click-to-lightbox with
 * title + description + link from content.json.
 * --------------------------------------------------------------- */

/* The gallery borrows the .content class, which is sized and offset for the
   text panel (width:900px, left:70px, top:50% + translateY(-50%)). Inheriting
   that put the orbit centre 70px right of the screen and gave the scene a
   computed height of 0, so every tile was anchored to one horizontal line.
   Pin the scene to the viewport instead — the same thing the mobile rules
   were already doing. pointer-events is off so this full-screen layer never
   blocks the menu or the footer links; only the tiles themselves are
   interactive. */
#image-gallery.show {
  position: fixed;
  display: block !important;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  transform: none;
  padding: 0;
  overflow: visible;
  z-index: 950;
  pointer-events: none;
  /* 3D scene: tiles are "sputniks" orbiting a shared point near centre.
     Perspective is intentionally short so tiles in the back visibly
     shrink and tiles in the front grow. */
  perspective: 900px;
  perspective-origin: 50% 50%;
  transform-style: preserve-3d;
}

.gallery-stage {
  position: absolute;
  /* Every tile is anchored at the centre; the orbit on .gallery-drift
     carries it around from there. */
  left: 50%;
  top: 50%;
  width: var(--w, 240px);
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  /* The stage's own box stays at the centre of the scene while the visible
     tile orbits away on .gallery-drift. Left hoverable, all 29 boxes stacked
     up in the middle of the screen and stole every pointer event — whichever
     one happened to be on top always won, so the same image kept lighting up
     no matter which one you pointed at. Only the tile itself is a target. */
  pointer-events: none;
  /* Entrance: hidden until the tile's own image has loaded and JS adds
     .is-visible. */
  opacity: 0;
  transform:
    translate3d(-50%, -50%, 0)
    rotate(var(--rot, 0deg))
    scale(calc(0.92 + var(--depth, 0) * 0.04));
  transition:
    opacity 0.9s cubic-bezier(.2,.7,.2,1) var(--enter-delay, 0ms),
    transform 1.0s cubic-bezier(.2,.7,.2,1) var(--enter-delay, 0ms);
  backface-visibility: hidden;
}

.gallery-stage.is-visible {
  opacity: 1;
  transform:
    translate3d(-50%, -50%, 0)
    rotate(var(--rot, 0deg))
    scale(1);
}

/* Orbit layer: tiles act as sputniks on a tilted 3D elliptical path.
   Projected to screen, the path is mostly along the lower-left ↔
   upper-right diagonal with a small lateral wobble; in 3D, z is
   correlated with the along-diagonal position so that the upper-right
   end of the path is pushed back (z–) and the lower-left end comes
   forward (z+). perspective on the gallery scales tiles with z, so
   tiles in the back are visibly smaller.

   Each tile has a per-tile --r (radius) and animation-delay (phase),
   so they're spread along the same path at different moments. */
.gallery-drift {
  display: block;
  width: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  animation-name: gallery-orbit;
  animation-duration: 80s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: both;
}

@keyframes gallery-orbit {
  0%    { transform: translate3d(calc(var(--r, 240px) *  0.707), calc(var(--r, 240px) * -0.707), calc(var(--r, 240px) * -0.900)); }
  12.5% { transform: translate3d(calc(var(--r, 240px) *  0.575), calc(var(--r, 240px) * -0.425), calc(var(--r, 240px) * -0.636)); }
  25%   { transform: translate3d(calc(var(--r, 240px) *  0.106), calc(var(--r, 240px) *  0.106), 0px); }
  37.5% { transform: translate3d(calc(var(--r, 240px) * -0.425), calc(var(--r, 240px) *  0.575), calc(var(--r, 240px) *  0.636)); }
  50%   { transform: translate3d(calc(var(--r, 240px) * -0.707), calc(var(--r, 240px) *  0.707), calc(var(--r, 240px) *  0.900)); }
  62.5% { transform: translate3d(calc(var(--r, 240px) * -0.575), calc(var(--r, 240px) *  0.425), calc(var(--r, 240px) *  0.636)); }
  75%   { transform: translate3d(calc(var(--r, 240px) * -0.106), calc(var(--r, 240px) * -0.106), 0px); }
  87.5% { transform: translate3d(calc(var(--r, 240px) *  0.425), calc(var(--r, 240px) * -0.575), calc(var(--r, 240px) * -0.636)); }
  100%  { transform: translate3d(calc(var(--r, 240px) *  0.707), calc(var(--r, 240px) * -0.707), calc(var(--r, 240px) * -0.900)); }
}


.gallery-figure {
  margin: 0;
  padding: 0;
  position: relative;
  display: block;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1);
}

.gallery-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.45),
    0 18px 60px rgba(0, 0, 0, 0.35);
  user-select: none;
  -webkit-user-drag: none;
}

/* Hover caption: title + description (short), below the image. */
.gallery-cap {
  position: absolute;
  left: -20px;
  right: -20px;
  top: calc(100% + 10px);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  padding: 0 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.gallery-cap-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.gallery-cap-note {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
  max-height: 3.6em;
  overflow: hidden;
}

.gallery-cap-link {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
  font-style: italic;
}

/* Highlight is driven only by .is-hover. Native :hover was also matching here,
   and because the browser does not re-run hit-testing while a tile drifts
   under a stationary cursor, the two could disagree and light up two tiles. */
.gallery-stage.is-hover .gallery-figure {
  transform: scale(1.04);
}

.gallery-stage.is-hover .gallery-cap {
  opacity: 1;
  transform: translateY(0);
}

/* Neighbor dimming when something is hovered. Opacity-only (no filter)
   so the preserve-3d stacking context isn't flattened mid-orbit. */
#image-gallery.has-hover .gallery-stage:not(.is-hover) {
  opacity: 0.28;
  transition:
    opacity 0.25s ease,
    transform 1.0s cubic-bezier(.2,.7,.2,1);
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 3000;
  padding: 4vh 4vw;
}

.gallery-lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-inner {
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.gallery-lightbox-img {
  max-width: 92vw;
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.45s cubic-bezier(.2,.7,.2,1);
}

.gallery-lightbox.open .gallery-lightbox-img {
  transform: scale(1);
}

.gallery-lightbox-meta {
  max-width: 680px;
  text-align: center;
  color: #ddd;
  padding: 0 8px;
}

.gallery-lightbox-section {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 6px;
}

.gallery-lightbox-section:empty {
  display: none;
}

.gallery-lightbox-title {
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
}

.gallery-lightbox-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin-bottom: 8px;
}

.gallery-lightbox-note:empty {
  display: none;
}

.gallery-lightbox-credits {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.45;
  margin-bottom: 8px;
}

.gallery-lightbox-credits:empty {
  display: none;
}

.gallery-lightbox-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #fff;
  text-decoration: underline;
  opacity: 0.85;
}

.gallery-lightbox-link:hover {
  opacity: 1;
}

.gallery-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 768px) {
  body.img-active {
    overflow: hidden;
    overscroll-behavior: none;
  }

  /* Base rule already pins the scene to the viewport; on touch the layer has
     to stay hit-testable so touch-action can suppress page scrolling and the
     gallery's own touch handlers fire. */
  #image-gallery.show {
    height: 100dvh;
    overflow: hidden;
    touch-action: none;
    pointer-events: auto;
  }

  .gallery-cap-title { font-size: 11px; }
  .gallery-cap-note { font-size: 10px; }
  .gallery-lightbox-title { font-size: 14px; }
  .gallery-lightbox-note { font-size: 12px; }
}

/* Respect motion preferences. */
@media (prefers-reduced-motion: reduce) {
  .gallery-stage,
  .gallery-figure,
  .gallery-cap,
  .gallery-lightbox,
  .gallery-lightbox-img {
    transition: none !important;
  }
  .gallery-stage {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--rot, 0deg));
  }
  /* Hold each tile at its starting point on the orbit instead of drifting. */
  .gallery-drift {
    animation-play-state: paused;
  }
}
