/*
 * Jon Solo - site styles
 * Plain CSS (no build step). Converted once from the original Sass sources (2019).
 * Fonts (Nunito, Permanent Marker) are loaded from Google Fonts via <link> in index.html.
 */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  padding: 0;
  margin: 0;
  font-family: "Permanent Marker", sans-serif;
}

.gallery {
  background: white;
  height: 100%;
}

.gallery-cell {
  width: 100%;
  height: 100%;
  margin-right: 10px;
  background: white;
  overflow: scroll;
  border: 0.7em solid white;
}

.flickity-prev-next-button {
  background-color: rgba(255, 255, 255, 0.7);
  width: 120px;
  height: 120px;
}

.flickity-prev-next-button.next {
  right: 7%;
}

.flickity-prev-next-button.previous {
  left: 7%;
}

.swipe {
  text-align: center;
  position: absolute;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-size: 3vmax;
  margin: 0 auto;
  color: black;
  width: 100%;
  pointer-events: none;
  z-index: 2;
}

.swipe-indicator {
  display: inline-block;
  padding: 0.5em 1em;
  border-radius: 1em;
  background-color: rgb(255, 255, 255);
}

.swipe-off {
  display: none;
}

.vhs-left, .vhs-right {
  opacity: 0;
  animation-duration: 0.6s;
  animation-fill-mode: forwards;
}

.vhs-left {
  animation-name: vhs-left;
  transform: translateX(-12.5vw);
}

.vhs-right {
  animation-name: vhs-right;
  transform: translateX(12.5vw);
}

@keyframes vhs-left {
  0% {
    transform: translateX(-12.5vw);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes vhs-right {
  0% {
    transform: translateX(12.5vw);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.vhs-reverse {
  animation-direction: reverse;
}

.vhs-delay-3 {
  animation-delay: 3s;
}

.vhs-duration-3 {
  animation-duration: 3s;
}

.jonsolo {
  height: 100%;
  width: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-image: url(../images/spotlight_small.jpg);
  background-color: rgb(0, 0, 0);
}
.jonsolo:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(-135deg, #47565f 0%, #5b625a 15%, #947461 38%, #f98056 70%, #f7ec86 100%);
  opacity: 0.6;
}

.nameplate {
  margin: 20% 3% 0% 17%;
  display: flex;
  flex-wrap: wrap;
}

.jonsolo-text {
  width: 100%;
  opacity: 0;
  top: -30px;
  position: relative;
  color: rgb(255, 255, 255);
  font-size: 16vw;
  line-height: 1;
  text-align: right;
}

.socialmedia {
  margin-top: 1.5rem;
  width: 100%;
  display: flex;
}

.socialicon {
  opacity: 0;
  top: 10px;
  position: relative;
  color: white;
  width: 100%;
}

.svgitem {
  display: flex;
  margin-left: 14%;
  width: 100%;
}

.svgicon {
  fill: white;
}

.svglink {
  display: flex;
  justify-content: flex-end;
}

/* Home slide intro: name drops in, then social icons rise in one by one.
   Replaces the old Velocity.js RunSequence (same delays, 1s duration, swing easing). */
.jonsolo-text,
.socialicon {
  animation: rise-in 1s cubic-bezier(0.37, 0, 0.63, 1) both;
}

.jonsolo-text {
  --rise: 30px;
  animation-delay: 1s;
}

.socialicon {
  --rise: -10px;
}

.socialicon:nth-child(1) { animation-delay: 1.5s; }
.socialicon:nth-child(2) { animation-delay: 1.6s; }
.socialicon:nth-child(3) { animation-delay: 1.75s; }
.socialicon:nth-child(4) { animation-delay: 1.95s; }
.socialicon:nth-child(5) { animation-delay: 2.2s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(var(--rise));
  }
}

@media (prefers-reduced-motion: reduce) {
  .jonsolo-text,
  .socialicon {
    animation-duration: 1ms;
    animation-delay: 0s;
  }
}

@media all and (orientation: landscape) {
  .jonsolo {
    background-image: url(../images/spotlight_large.jpg);
  }
  .nameplate {
    margin: 8% 3% 0% 37%;
  }
  .socialmedia {
    margin-top: 1rem;
  }
  .jonsolo-text {
    font-size: 12vw;
  }
}
.intro {
  height: 100%;
  width: 100%;
  background-image: url(../images/keys_small.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-color: #000;
}
.intro:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(45deg, #00a8c5, #ffff7e);
  opacity: 0.8;
}
.intro:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(90deg, #00a8c5, transparent 120%);
  opacity: 0.8;
}

.instrument {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex-wrap: nowrap;
  height: 90%;
  margin-left: 3%;
}

.instrument-text {
  font-size: 8vmin;
  color: #2364b4;
  position: relative;
  z-index: 1;
  text-shadow: none;
}

.instrument-list {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 90%;
  color: white;
  text-shadow: 0.05em 0.05em 0.01em #2364b4;
  position: relative;
  z-index: 1;
  font-size: 10vmin;
}

#audio button {
  height: 8vmin;
  width: 8vmin;
  vertical-align: middle;
  background: url(../images/play.svg) top left no-repeat;
  background-color: transparent;
  background-size: contain;
  border: 0;
  cursor: pointer;
}

#audio button.pause {
  background-image: url(../images/pause.svg);
}

@media all and (orientation: landscape) {
  .intro {
    background-image: url(../images/keys_large.jpg);
  }
  .instrument-text {
    font-size: 6vmin;
  }
  .instrument-list {
    font-size: 8vmin;
  }
}
@media all and (max-width: 25em), all and (max-height: 28em) {
  .instrument-text {
    font-size: 6vmin;
  }
  .instrument-list {
    font-size: 8vmin;
  }
}
.video {
  background: linear-gradient(135deg, #6f749e 0%, #9a8daf 31%, #d0a8b9 58%, #f8bbb1 80%, #fde6b1 100%);
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: nowrap;
}

.band-text {
  transform: rotate(-45deg);
  font-size: 6vmin;
  color: white;
  position: absolute;
  top: 4%;
  left: -20%;
  background-color: black;
  padding: 0 20% 1% 20%;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  max-width: 512px;
  margin: 0 auto;
}

iframe {
  border: 0;
}

.video-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 10px solid white;
}

.gallery2 {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: transparent;
  height: 80%;
}

.gallery2-cell {
  margin: 0 auto;
  width: 60%;
  max-width: 512px;
  background: transparent;
  border: none;
}

.gallery2:after {
  content: "flickity";
  display: none;
}

@media all and (orientation: portrait) {
  .gallery2:after {
    content: "";
  }
}
@media all and (orientation: landscape) {
  .band-text {
    font-size: 8vmin;
    position: static;
    background-color: transparent;
    text-align: center;
    transform: rotate(0deg);
    padding: 0 0 1rem 0;
    margin-top: -8vmin;
  }
  .gallery2 {
    display: block;
    height: auto;
  }
  .gallery2-cell {
    width: 100%;
    max-width: none;
    max-height: 288px;
  }
  .video-frame {
    width: 100%;
    height: 288px;
  }
}
@media all and (orientation: landscape) and (min-width: 87.5em) and (min-height: 504px) {
  .gallery2-cell {
    width: 100%;
    max-width: none;
    max-height: 504px;
  }
  .video-wrapper {
    max-width: 896px;
  }
  .video-frame {
    width: 100%;
    height: 504px;
  }
}
.music {
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, #11219d 0%, #59d7dd 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-wrap: nowrap;
}

.music-text {
  transform: rotate(-45deg);
  font-size: 6vmin;
  color: white;
  position: absolute;
  top: 8%;
  left: -23%;
  background-color: black;
  padding: 0 20% 1% 20%;
}

.music-wrapper {
  position: relative;
  padding-bottom: 350px;
  height: 0;
  max-width: 350px;
  margin: 0 auto;
}

.music-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 10px solid white;
}

/* iOS fallback for the Bandcamp players (see index.html script) */
.music-cover {
  display: block;
  overflow: hidden;
  background: white;
  color: white;
  text-decoration: none;
}

.music-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-cover-cue {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  /* large on purpose: with no viewport tag iPhones scale the page ~0.4x */
  font-size: 22px;
  line-height: 1;
}

.music-cover:active .music-cover-cue {
  background: black;
}

.gallery3 {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  background: transparent;
  height: 90%;
}

.gallery3-cell {
  margin: 0 auto;
  width: 100%;
  max-width: 350px;
  background: transparent;
  border: none;
}

.gallery3:after {
  content: "flickity";
  display: none;
}

@media all and (orientation: portrait) {
  /* disable Flickity for large devices */
  .gallery3:after {
    content: "";
  }
}
@media all and (orientation: portrait) and (max-height: 80em) {
  .gallery3-cell {
    width: 100%;
    max-width: none;
    max-height: 250px;
  }
  .music-wrapper {
    max-width: 250px;
    padding-bottom: 250px;
  }
  .music-frame {
    width: 100%;
    height: 250px;
  }
  .music-cover-cue {
    font-size: 16px;
    padding: 6px 12px;
  }
}
@media all and (orientation: landscape) {
  .music-text {
    font-size: 8vmin;
    position: static;
    background-color: transparent;
    text-align: center;
    transform: rotate(0deg);
    padding: 0 0 1rem 0;
    margin-top: -8vmin;
  }
  .gallery3 {
    display: block;
    height: auto;
  }
  .gallery3-cell {
    width: 100%;
    max-width: none;
    max-height: 350px;
  }
  .music-frame {
    width: 100%;
    height: 350px;
  }
}
@media all and (orientation: landscape) and (min-width: 87.5em) and (min-height: 700px) {
  .gallery3-cell {
    width: 100%;
    max-width: none;
    max-height: 700px;
  }
  .music-wrapper {
    max-width: 700px;
    padding-bottom: 700px;
  }
  .music-frame {
    width: 100%;
    height: 700px;
  }
}
@media all and (orientation: portrait) {
  .swipe {
    bottom: 30%;
  }
}
@media all and (orientation: landscape) {
  .swipe {
    bottom: 18%;
  }
  .flickity-page-dots {
    bottom: -6vmin;
  }
}
