/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

#works {
  min-height: 70vh;
  padding-top: 10vh;
}

.works__container,
.gallery {
  background: #000;
  width: 100%;
  aspect-ratio: 16/9;
}

.works__item,
.gallery-cell {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  counter-increment: gallery-cell;
}

/* cell number */
.works__item:before {
  display: block;
  text-align: center;
  font-size: 80px;
  color: white;
}

.works-item__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.works-item:hover>.works-item__image {
  -webkit-filter: blur(4px);
  filter: blur(4px);
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
}

.works-item__overlay-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  -webkit-transition: opacity .35s ease;
  -o-transition: opacity .35s ease;
  transition: opacity .35s ease;
}

.works-item__overlay-content>span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 90%;
  width: 90%;
}

.works-item__overlay-content span svg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

.works-item__overlay-content>.overlay__content {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  height: 75%;
  width: 75%;
  color: black;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 6px;
}

.button a {
  width: 200px;
  padding: 12px 48px;
  text-align: center;
  color: white;
  border: solid 2px white;
}

.works-item:hover .works-item__overlay-content {
  opacity: 1;
  -webkit-transition: .5s;
  -o-transition: .5s;
  transition: .5s;
}

.works-item:first-child .overlay__content-brand {
  font-size: 1.6rem;
  font-weight: 900;
}

.works-item .overlay__content-brand {
  font-size: 1rem;
  font-weight: 900;
}

.overlay__content-description {
  font-weight: 900;
  width: 80%;
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.works-item:first-child .overlay__content-description {
  font-size: 1.6vw;
}

.works-item .overlay__content-description {
  font-size: 1.2vw;
}

.works-button {
  font-family: 'Oswald', sans-serif;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin: auto;
  margin-top: 40px;
  font-size: 1.8rem;
  font-weight: 900;
}

.works-button:hover {
  color: #FFB71B;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
}

@media (min-width: 780px) {
  .works-item__overlay-content>.overlay__content {
    gap: 16px;
  }

  .works-item .overlay__content-brand {
    font-size: 1rem;
  }

  .works-item:first-child .overlay__content-brand {
    font-size: 1.4rem;
  }

  .works-item:first-child .overlay__content-description {
    font-size: 3vw;
    line-height: 1;
    line-clamp: 4;
    -webkit-line-clamp: 4;
  }

  .works-item .overlay__content-description {
    line-height: 1;
    font-size: 2vw;
    line-clamp: 3;
    -webkit-line-clamp: 3;
  }
}

@media (min-width: 1020px) {
  .works-item:first-child .overlay__content-description {
    font-size: 3rem;
    line-height: 1;
    line-clamp: 4;
    -webkit-line-clamp: 4;
  }

  .works-item .overlay__content-description {
    line-height: 1;
    font-size: 1.6rem;
    line-clamp: 3;
    -webkit-line-clamp: 3;
  }
}

.slider {
  width: 50%;
  margin: 100px auto;
}

.slick-slide {
  margin: 0px 20px;
}

.slick-slide img {
  width: 100%;
}

.slick-prev:before,
.slick-next:before {
  color: black;
}


.slick-slide {
  -webkit-transition: all ease-in-out .3s;
  -o-transition: all ease-in-out .3s;
  transition: all ease-in-out .3s;
  opacity: .2;
}

.slick-active {
  opacity: .5;
}

.slick-current {
  opacity: 1;
}

/* big buttons, no circle */
.flickity-prev-next-button {
  width: 100px;
  height: 100px;
  background: transparent;
}

/* arrow color */
.flickity-prev-next-button .arrow {
  fill: white;
}

.flickity-prev-next-button.no-svg {
  color: white;
}

.flickity-prev-next-button:hover {
  background: transparent;
}

/* hide disabled button */
.flickity-prev-next-button:disabled {
  display: none;
}

.works__item {
  -ms-flex-preferred-size: calc(50% - 12px);
  flex-basis: calc(50% - 12px);
  -webkit-box-flex: 1;
  -ms-flex: 1 0 91%;
  flex: 1 0 91%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 12px;
}

.works__image-container {
  width: 100%;
  aspect-ratio: 1/1;
  position: relative;
}

.works__image-thumb {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;

  >img {
    width: 100%;
  }
}

.works__image-overlay {
  opacity: 0;
  width: 90%;
  height: 90%;
  position: absolute;
  top: 5%;
  left: 5%;
  -webkit-transition: .5s;
  -o-transition: .5s;
  transition: .5s;
  background-image: url('https://socialfarmers.id/user/assets/svg/works-thumbnail-background.svg');
  background-size: 100% 100%;
  padding: 10%;
  font-family: 'Sofia Sans', sans-serif;
  text-transform: uppercase;
  color: black;
  line-height: 1;

  >h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
  }

  >p {
    font-size: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

.works__image-thumb:hover>.works__image-overlay {
  -webkit-transition: .5s;
  -o-transition: .5s;
  transition: .5s;
  opacity: 1;
}

.works__overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 24px;
  background-color: rgba(0, 0, 0, .25);
}

.works__image-title {
  text-align: center;
  color: black;
  font-size: 2rem;
  z-index: 2;
}

.works__image-background {
  height: 100%;
  width: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  background-image: url("https: //socialfarmers.id/user/assets/svg/works-thumbnail-background.svg");
}

.works__description {
  width: 100%;
  height: auto;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 4px;

  font-family: 'Sofia Sans', sans-serif;
  line-height: 1;

  >h4 {
    font-size: 1rem;
    font-weight: 900;
  }

  >p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: .8rem;
    font-weight: 500;
  }
}