@media (orientation:landscape){
#thebody{
  /* height: calc(var(--vh, 1vh) * 100); */
  background: var(--backgroundColor);
}

#martin-name{
  background: var(--backgroundColorBar);
  width: 100%;
  padding: 0;
  text-align: center;
  height: 9vh;
  line-height: 9vh;
}

  .scroll-mode #intro-screen {
  z-index: 10;
  position: absolute;
}

#intro-screen {

}

.intro-name{
  top: 25%;
  font-size: 4rem;
}

.intro-button-wrap{
  top: 55%;
}

.intro-button-wrap > div{
  background: white;
  color: black;
}

.scroll-mode #gallery-bar, .scroll-mode .expand#gallery-bar{
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 90vh;
  height: 100dvh;
  /* height: calc(100 * var(--vh)); */
  overflow: hidden;
  background: var(--backgroundColor);
}

.scroll-mode #photo-bar, .scroll-mode .expand #photo-bar{
  width: 100%;
  height: calc(var(--vh, 1vh) * 81);
  /* height: calc(81lvh); */
  height: var(--landscapeHeight);
  height: 81%;
}




.scroll-mode #gallery-bar-inner{
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: calc(60% - 4vw);
  padding-left: 4vw;
  height: 4rem;
  line-height: 4rem;
  height: 9vh;
  line-height: 9vh;
  /* max-height: 9vh; */
  background: var(--backgroundColorBar);
}

.gallery-bar-item.selected-item {
  border-bottom: 2px solid darkgray;
  border-bottom-width: 2px;
  border-bottom-color: darkgray;
  border-color: rgb(60,60,60);
}

.scroll-mode .gallery-bar-item{
  height: fit-content;
  line-height: normal;
  margin-right: 20px;
  margin-top: 0;
}



.scroll-mode #gallery-container {
  position: absolute;
  right: 0;
  width: 60%;
  /* height: var(--landscapeHeight); */
  left: auto;
  max-height: calc(var(--landscapeHeight) - 3vh);
  background: var(--backgroundColor);
  overflow-y: scroll;
  top: 4rem;
  top: 9vh;
    padding-top: 3vh;
    /* pointer-events: none; */
}

#gallery-wrap{
  position: relative;
  /* overflow-y: scroll; */
  /* max-height: var(--landscapeHeight); */
  opacity: 1;
  scrollbar-width: thin;
  background: var(--backgroundColor);
  /* min-height: 0px; */
}

#gallery-wrap.gallery-wrap-no-focus{
  opacity: 1;
}

.scroll-mode .grid-item {
  padding: 0;
  width: calc(25% - 8px);
  margin: 1px 2px;
  margin: 0px 1px;
}

#gallery-wrap-bottom{
  height: 15vh;
  width: 100%;
  bottom: 20px;
  position: absolute;
}



#photo-bar::before{
  content: attr(data-name);
  position: absolute;
  bottom: 2vh;
  bottom: calc(15% - 1.44rem);
  right: 30px;
  font-size: 1.44rem;
  font-weight: 500;
  z-index: 100000;
  text-transform: capitalize;
  /* text-transform: uppercase; */
  /* font-size: 1.2rem; */
  animation: photoToggle .4s linear forwards;
  /* animation-delay: 2s; */
  color: white;
  font-family: Inter;
}

}

















@media screen and (orientation: landscape) and (max-width: 1200px) {
  #intro-screen {
  background-image: url("../img/cover_landscape2.jpg");
  background-position: 20px -70px;
  background-color: white;

}

  .intro-name {
    /* translate: 0; */
    top: 20%;
    font-size: 2.5rem;
    left: 30%;
  }

  .intro-button-wrap{
    /* translate: 0; */
    top: 60%;
    left: 30%;
    color: black;
  }

  .intro-button-wrap > div {
    /* color: black; */
    /* border-color: black; */
  }

  #thebody{
    background: var(--backgroundColor);
  }
  .scroll-mode #gallery-bar-inner {
    font-size: 1.2rem;
    height: 2.3rem;
    line-height: 2.3rem;
    height: 11vh;
    line-height: 11vh;
    height: var(--topBarLandscapeMobile);
    line-height: var(--topBarLandscapeMobile);
    scrollbar-width: none;
  }

  .scroll-mode #gallery-bar-inner::-webkit-scrollbar {
  display: none;
  }

.scroll-mode  #photo-bar-inner{
    /* height: calc(var(--landscapeHeight) + 2vh); */
    height: var(--landscapeHeight3);
    height: 100%;
    position: absolute;
    position: relative;
    width: 100%;
    top: 0;
    left: 0;
    translate: 0;
    /* background: gray; */
    overflow: scroll;
  }

  .scroll-mode .photo-bar-item{
    /* background: lightpink; */
    /* height: 100vh; */
    position: relative;
  }

  .photo-bar-img {
  position: absolute;
}

  .scroll-mode #photo-bar, .scroll-mode .expand #photo-bar{
    /* height: calc(var(--landscapeHeight2) + 2vh); */
    /* background: red; */
    /* position: absolute; */
    /* top: 11vh; */
    top: var(--topBarLandscapeMobile);
    height: calc(100% - var(--topBarLandscapeMobile));
    position: relative;
    position: absolute;
    /* max-height: 81vh; */
    /* height: var(--landscapeHeight3); */
  }

  .scroll-mode #gallery-container {
    max-height: calc(var(--landscapeHeight) - 1vh);
    top: 2rem;
    top: 11vh;
    top: var(--topBarLandscapeMobile);
      padding-top: 3vh;
  }

  #martin-name{
    height: 2.3rem;
    line-height: 2.3rem;
    height: 11vh;
    line-height: 11vh;
    height: var(--topBarLandscapeMobile);
    line-height: var(--topBarLandscapeMobile);

  }

  .expand .photo-name-toggle1::before, .expand .photo-name-toggle2::before, #photo-bar::before {
    /* display: none; */
    font-size: 1.1rem;
    font-weight: 400;

  }



  .scroll-mode .gallery-bar-item{
    margin-right: 7px;
    margin-top: 0;
  }
}
