:root {
  --theme: #e48889ff;
  --light: #f2e8cfff;
  --darkT: #cbe5f1ff;
  --darkGrey: #251818ff;
}

.work,
html {
  margin: 0;
  margin: 0;
}

.work main section {
  overflow: hidden;
}

.work h2 {
  width: 70vw;
  max-width: 80ch;
  animation: fade-in 2s ease-in-out both;
  /* transform: translateX(-6em); */
}

.container {
  /* max-width: 1280px;
  width: 95%; */
  margin: 0 auto;
  background-color: var(--theme);
}

ul {
  padding: 0;
}

header.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  color: var(--light);

}

header.container h3 {
  font-weight: 400;
}

header.container img {
  width: 90%;
  max-width: 500px;
  height: auto;
}

.work section h3 {
  color: var(--theme);
}

.work .autoscale {
  width: 100%;
  height: auto;
  max-width: 80ch;
}

.work .scroll-container {
  height: 100vh;
  min-height: 450px;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.work .scroll-container:nth-of-type(1),
.scroll-container:nth-of-type(3),
.scroll-container:nth-of-type(6),
.scroll-container:nth-of-type(10) {
  background-color: var(--theme);
  color: var(--light);
}

.work .scroll-container:nth-of-type(1) h3,
.scroll-container:nth-of-type(3) h3,
.scroll-container:nth-of-type(6) h3,
.scroll-container:nth-of-type(10) h3 {
  color: var(--light);
}

.work .scroll-container:nth-of-type(2),
.scroll-container:nth-of-type(8) {
  background-color: var(--darkT);
}

.work .scroll-container:nth-of-type(4),
.scroll-container:nth-of-type(7),
.scroll-container:nth-of-type(11) {
  background-color: var(--light);
}

.work .scroll-container:nth-of-type(even) {
  flex-direction: row-reverse;
}

.work .scroll-element,
.work .scroll-caption {
  width: 50%;
}

.work .scroll-caption {
  max-width: 50ch;
}

.work .scroll-container:nth-of-type(3) .scroll-element {
  transform: translateY(5rem);
  filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.5));
}

.work .scroll-container:nth-of-type(8) .scroll-element {
  transform: translateY(25rem);
  filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.5));
}

.work .scroll-element {
  min-height: 300px;
  display: flex;
  justify-content: center;
}

.work .scroll-caption {
  margin: 3rem;
}

.work footer {
  text-align: center;
  padding: 0.5rem 0;
  background-color: var(--theme);
  color: var(--light);
}

.work footer p {
  font-size: 0.75rem;
  margin: 0.25rem 0;

}

.work a {
  text-decoration: none;
  color: inherit;
}

.work ol {
  padding-left: 2rem;
}

.work li {
  margin: 1rem 0;
  color: var(--theme);
}

.work .centersec {
  padding: 5rem 1rem;
  text-align: center;
}

.work .centersec div {
  max-width: 80ch;
  margin: 0 auto;
}

.work .centersec>img {
  width: 50vw;
  height: auto;
}

.scroll-container .pic img {
  width: 100%;
  height: auto;

}

.work .album {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 60ch;
  /* grid-template-columns: repeat(auto-fill,minmax(130px, 1fr)); */
}

.work .album p {
  color: var(--darkGrey);
}

.work .frame {
  width: 20ch;
  height: 20ch;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.work .frame img {
  height: 100%;
  width: auto;
}



.pic img,
.pic svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work .twoimg img {
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 550ms cubic-bezier(0.19, 1, 0.22, 1)
}

.work .abso img {
  position: absolute;
  width: 80%;
}

.work .twoimg img:first-of-type {
  left: 0%;
  top: -5rem;
}

.work .twoimg img:last-of-type {
  right: 15%;
  transform: translateY(5rem);
}

.work .twoimg img:hover {
  transform-origin: center;
  z-index: 2;
}

.work .twoimg img:first-of-type:hover {
  transform: translateY(-1rem);
}

.work .twoimg img:last-of-type:hover {
  transform: translateY(4rem);
}

.work .btn {
  display: block;
  text-align: center;
  background-color: var(--theme);
  color: var(--light);
  padding: 1rem 2em 1rem 2em;
  border: none;
  font-size: 1.2rem;
  transition: all .5s ease-in-out;
  margin: 2rem auto;

}

.work #zoom img:hover {
  filter: brightness(20%);
  transition: all .5s ease-in-out;
}

.work figcaption {
  opacity: 0;
}

.work #zoom img:hover~figcaption {
  transition: all .5s ease-in-out;
  opacity: 1;
}

.work .noflow>img:hover {
  transition: all .5s ease-in-out;
  transform: translate(-2rem);
}

.work .textBlock {
  margin: 0;
  font-size: 5em;
  transition-property: transform;
  transform: translate(0, 5rem);
  cursor: default;
}

.work .textBlock::before {
  content: attr(data-content);
  position: absolute;
  top: -50px;
  height: 4rem;
  overflow: hidden;
  color: var(--darkGrey);
  opacity: 0;
  transition: opacity 1s;
}

.work .textBlock::after {
  content: attr(data-content);
  position: absolute;
  top: -85px;
  left: 0;
  height: 3rem;
  color: var(--darkT);
  overflow: hidden;
  opacity: 0;
  transition: opacity 2s;
}


.work .textBlock:hover::after,
.work .textBlock:hover::before {
  opacity: 1;
}

@media screen and (max-width: 650px) {
  .work h2 img {
    max-width: 100vw;
  }

  .work .scroll-container,
  .work .scroll-container:nth-of-type(even) {
    flex-direction: column;
    align-content: inherit;
  }

  .work .scroll-container:nth-of-type(3) .scroll-element {
    transform: translateY(0);
  }

  .work .scroll-container:nth-of-type(8) .scroll-element {
    transform: translateY(0);
  }

  .work .abso img {
    width: 90%;
  }

  .work .twoimg img:first-of-type {
    left: 0%;
    top: 0;
  }

  .work .scroll-element {
    height: 100%;
    max-height: 400px;
    overflow: hidden;
  }

  .work .noflow {
    overflow: unset;
    max-height: none;
  }

  .work .scroll-element,
  .work .scroll-caption {
    width: 100%;
  }

  .work .album {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .work h2 {
    transform: none;
  }

  .work .frame {
    width: 10ch;
    height: 10ch;
    justify-self: center;
  }

  .work #gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/**Styling scrollable elements*/

.js-scroll {
  opacity: 0;
  transition: opacity 500ms;
}

.js-scroll.scrolled {
  opacity: 1;
}

.scrolled.fade-in {
  animation: fade-in 1s ease-in-out both;
}

.scrolled.fade-in-bottom {
  animation: fade-in-bottom 1s ease-in-out both;
}

.scrolled.slide-left {
  animation: slide-in-left 1s ease-in-out both;
}

.scrolled.slide-right {
  animation: slide-in-right 1s ease-in-out both;
}

@keyframes slide-in-left {
  0% {
    -webkit-transform: translateX(-100px);
    transform: translateX(-100px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slide-in-right {
  0% {
    -webkit-transform: translateX(100px);
    transform: translateX(100px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateX(0);
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fade-in-bottom {
  0% {
    -webkit-transform: translateY(50px);
    transform: translateY(50px);
    opacity: 0;
  }

  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}