@import url("https://fonts.googleapis.com/css?family=Courgette|Roboto");

* {
  box-sizing: border-box;
  margin: 0;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #000;
}

::-webkit-scrollbar {
  width: 6px;
  background-color: #000;
}

::-webkit-scrollbar-thumb {
  background-color: #800080;
}

.progress {
  position: fixed;
  height: 7px;
  width: 100%;
  top: 0;
  background-color: #800080;
  scale: 0 1;
  transform-origin: left;
  animation: progress 1s linear;
  animation-timeline: scroll();
  z-index: 2;
}

@keyframes progress {
  to {
    scale: 1 1;
  }
}

.container {
  margin: auto;
  width: 30px;
  margin-top: 85vh;
}

.arrow {
  position: absolute;
  width: 28px;
  height: 6px;
  opacity: 0;
  transform: scale3d(.5, .5, .5);
  animation: move 3s ease-out infinite;
}

.arrow:first-child {
  animation: move 3s ease-out 1s infinite;
}

.arrow:nth-child(2) {
  animation: move 3s ease-out 2s infinite;
}

.arrow:before,
.arrow:after {
  content: ' ';
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  background: #800080;
}

.arrow:before {
  left: 0;
  transform: skew(0deg, 30deg);
}

.arrow:after {
  right: 0;
  width: 50%;
  transform: skew(0deg, -30deg);
}

@keyframes move {
  25% {
    opacity: 1;

  }

  33% {
    opacity: 1;
    transform: translateY(30px);
  }

  67% {
    opacity: 1;
    transform: translateY(40px);
  }

  100% {
    opacity: 0;
    transform: translateY(55px) scale3d(.5, .5, .5);
  }
}

p {
  font-family: "Roboto", sans-serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

blockquote {
  position: relative;
  padding-left: 1.5rem;
  font-family: "Courgette", serif;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.05rem;
}

blockquote:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background-color: #A9DFBF;
  border-radius: 60px;
}

figure {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
}

.smoke img {
  position: fixed;
  bottom: -200px;
  animation: fog calc(20s * var(--i)) linear infinite;
  filter: blur(1px);
}

@keyframes fog {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  25%, 75% {
    opacity: .07;
  }

  100% {
    opacity: 0;
    transform: scale(3);
  }
}

.hero:nth-child(2) figure {
  background-image: url("../images/bg_car_s.png");
}

.hero:nth-child(3) figure {
  background-image: url("../images/bg_car_l.png");
}

.hero:nth-child(4) figure {
  background-color: #000;
}

.hero-inner {
  position: absolute;
  overflow: hidden;
  width: 100%;
  height: 100%;
  clip: rect(0, auto, auto, 0);
}

@supports (-webkit-overflow-scrolling: touch) {
  .hero-inner {
    clip: unset;
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
  }
}

.hero__title {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  padding: 0 1rem;
  width: 100%;
  height: 100%;
  color: #800080;
  text-shadow: #800080 1px 0 10px;
  font-family: "Courgette", serif;
  font-size: 8vw;
  letter-spacing: -0.125rem;
  text-align: center;
}

@media (min-width: 1200px) {
  .hero__title {
    font-size: 6rem;
  }
}

.content {
  position: relative;
  margin: 0 auto 0;
  padding: 2rem;
  color: #800080;
  text-shadow: #800080 1px 0 5px;
}

.content:before {
  content: "";
  display: block;
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: #fff;
  -webkit-clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.content__inner {
  margin: 0 auto;
  max-width: 700px;
}

.content__inner>*+* {
  margin-top: 1.5rem;
}

.content__inner>blockquote {
  margin: 3rem 0;
}

.content__title {
  font-family: "Courgette", serif;
  font-size: 3rem;
  line-height: 1.25;
  letter-spacing: -0.125rem;
  text-align: center;
}

@media (min-width: 600px) {
  .content__title {
    font-size: 4rem;
  }
}

.content__author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  width: 100%;
  font-family: "Courgette", serif;
  font-size: 1.5rem;
  letter-spacing: -0.125rem;
  text-align: center;
}

.content__author:before, .content__author:after {
  content: "";
  flex: 1;
  height: 2px;
  background-color: #A9DFBF;
}

.content__author:before {
  margin-right: 1rem;
}

.content__author:after {
  margin-left: 1rem;
}

/* ////////////////////////////////// */

.scroller__inner img {
  width: 250px;
}

.scroller__inner {
  padding-block: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scroller[data-animated="true"] {
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg,
      transparent,
      white 20%,
      white 80%,
      transparent);
  mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
  width: max-content;
  flex-wrap: nowrap;
  animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
  --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
  --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
  --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
  --_animation-duration: 120s;
}

@keyframes scroll {
  to {
    transform: translate(calc(-50% - .5rem));
  }
}

.scroller-container {
  display: grid;
  min-block-size: 100vh;
  place-content: center;
}

/* gallery page start */
.gallery {
  display: grid;
  grid-gap: 3px;
  max-width: 99%;
  margin: 0 auto;
  padding-top: 10rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
}

.vertical__img {
  grid-row: span 2;
}

.horizontal__img {
  grid-column: span 2;
}

.large__img {
  grid-column: span 3;
  grid-row: span 1;
}

.gallery div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery div img:hover {
  cursor: pointer;
  opacity: .7;
}

.full {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 50%;
  background-color: #000000ee;
}

@media screen and (max-width: 515px) {
  .vertical__img {
    grid-row: span 1;
  }

  .horizontal__img {
    grid-column: span 1;
  }

  .large__img {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* gallery page end */