/* ==================================================
   FILMY ZE SPOTKAŃ PAGE
================================================== */

.videos-page {

  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: clip;
  background-color: var(--Primary-colors-Grey-200);

}


/* ==================================================
   FILMY ZE SPOTKAŃ — INTRO
================================================== */

.videos-intro {

  position: relative;

  margin-top: -96px;

  padding-top: 96px;

}


.videos-intro__layout {

  position: relative;

  padding-block: 144px 168px;

}


.videos-intro__content {

  grid-column: 4 / 10;

  display: flex;

  flex-direction: column;

  align-items: center;

  min-width: 0;

  text-align: center;

}


/* ==================================================
   FILMY ANIMATED BACKGROUND
================================================== */

.videos-page__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}

.videos-page__blob {
  position: absolute;
  width: 640px;
  height: 640px;
  filter: blur(53.099998474121094px);
  opacity: 0.8;
  transform: translate3d(0, 0, 0);
  will-change: transform, border-radius;
}

.videos-page__blob--one {
  top: -320px;
  left: 25%;
  background: rgba(37, 191, 160, 0.15);
  animation: videos-page-blob-one 8s ease-in-out infinite alternate;
}

.videos-page__blob--two {
  display: none;
  left: calc(50% - 100px + 269px);
  bottom: -20%;
  width: 829px;
  height: 555px;
  background: rgba(113, 89, 237, 0.15);
  animation: videos-page-blob-two 8s ease-in-out infinite alternate;
  animation-delay: -3s;
}


/* ==================================================
   BLOB ANIMATIONS
================================================== */

@keyframes videos-page-blob-one {
  0% {
    transform:
      translate3d(12%, -12%, 0)
      scale(1);
    border-radius:
      44% 56% 63% 37%
      /
      46% 36% 64% 54%;
  }

  50% {
    transform:
      translate3d(-5%, 5%, 0)
      scale(1.25);
    border-radius:
      62% 38% 42% 58%
      /
      38% 61% 39% 62%;
  }

  100% {
    transform:
      translate3d(-8%, 8%, 0)
      scale(0.95);
    border-radius:
      36% 64% 55% 45%
      /
      58% 42% 58% 42%;
  }
}

@keyframes videos-page-blob-two {
  0% {
    transform:
      translate3d(5%, 10%, 0)
      scale(1.1);
    border-radius:
      61% 39% 52% 48%
      /
      42% 58% 42% 58%;
  }

  50% {
    transform:
      translate3d(-5%, -2%, 0)
      scale(0.9);
    border-radius:
      38% 62% 36% 64%
      /
      62% 38% 62% 38%;
  }

  100% {
    transform:
      translate3d(2%, -12%, 0)
      scale(1.1);
    border-radius:
      54% 46% 65% 35%
      /
      35% 55% 45% 65%;
  }
}


/* ==================================================
   EYEBROW
================================================== */

.videos-intro__eyebrow {

  margin: 0;

  color:
    var(--Primary-colors-Blue-500);

}


/* ==================================================
   TITLE
================================================== */

.videos-intro__title {

  display: flex;

  flex-direction: column;

  align-items: center;

  margin: 8px 0 0;

  color: var(--Primary-colors-Dark-Blue-700);

}


.videos-intro__title-main,
.videos-intro__title-accent {

  display: block;

}


/* ==================================================
   FILMY — LIST
================================================== */

.videos-list {

  position: relative;

}


.videos-list__container {

  position: relative;

}


.videos-list__grid {

  position: relative;

}


.videos-list__cards {

  grid-column: 1 / -1;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 64px 20px;

}


/* ==================================================
   VIDEO CARDS
================================================== */

.videos-list__cards .card-video {

  min-width: 0;

}


/* ==================================================
   PAGINATION
================================================== */

.videos-list__pagination {

  grid-column: 1 / -1;

  display: flex;

  justify-content: center;

  width: 100%;

  margin-top: 96px;

  margin-bottom: 0;

}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {

  /* ==================================================
     FILMY ZE SPOTKAŃ PAGE
  ================================================== */

  .videos-page {

    overflow: clip;

  }

  .videos-intro {

    margin-top: -82px;

    padding-top: 82px;

  }


  .videos-intro__layout {

    padding-block: 48px 120px;

  }


  .videos-intro__content {

    grid-column: 1 / -1;

    max-width: none;

    text-align: center;

  }


  /* ==================================================
     VIDEO LIST
  ================================================== */

  .videos-list__cards {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 40px 20px;

  }


  /* ==================================================
     PAGINATION
  ================================================== */

  .videos-list__pagination {

    margin-top: 64px;

  }

    /* ==================================================
     videos BLOBS
  ================================================== */

  .videos-page__blob {
    width: 220px;
    height: 220px;
  }

  .videos-page__blob--one {
    top: 1%;
    left: 50%;
    animation-name: videos-page-blob-one-tablet;
  }


  /* ==================================================
     videos BLOBS — TABLET ANIMATION
  ================================================== */

  @keyframes videos-page-blob-one-tablet {
    0% {
      transform:
        translate3d(-50%, -12%, 0)
        scale(1);
    }

    50% {
      transform:
        translate3d(-50%, 5%, 0)
        scale(1.25);
    }

    100% {
      transform:
        translate3d(-50%, 8%, 0)
        scale(0.95);
    }
  }
}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

  .videos-page__blob {
    animation: none;
  }
}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

  /* ==================================================
     VIDEO CARDS
  ================================================== */

  .videos-list__cards {

    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 48px;

  }
}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

  .videos-list__cards .card-video {

    transition: none;

  }

}

