/* ── Block: Works ───────────────────────────────────────────────────────── */

.il-works {
  padding: 64px 0;
  position: relative;
}

.il-works__title {
  font-size: 32px;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 24px;
  color: var(--color-red);
}

.il-works::before {
  left: calc(50% - 600px);
  display: block;
  content: '';
  width: 230px;
  height: 100%;
  background-color: var(--color-red);
  position: absolute;
  top: 0;
}

@media (max-width: 1280px) {
  .il-works::before {
    left: 40px;
  }
}

@media (max-width: 1080px) {
  .il-works::before {
    left: 20px;
  }
}

@media (max-width: 768px) {
  .il-works__title {
    font-size: 26px;
  }

  .il-works::before {
    left: 0;
    width: 100%;
    height: 221px;
  }
}

.il-works__swiper--mobile {
  display: none !important;
}
.il-works__swiper--desktop {
  display: block !important;
}

.il-works__wrapper {
  position: relative;
  z-index: 2;
  padding: 0 100px;
}

.il-works__slide {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.il-works__swiper--two .il-works__slide {
  aspect-ratio: initial;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.il-works__swiper--two .il-works__slide a {
  aspect-ratio: 4 / 3;
}

.il-works__slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.il-works__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: scale 0.5s ease;
}

.il-works__slide a:hover img {
  scale: 1.1;
}

/* Arrows */
.il-works__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  cursor: pointer;
  line-height: 0;
}

.il-works__arrow--left  { left:  20px; }
.il-works__arrow--right { right: 20px; }

/* Pagination container */
.il-works__pag {
  margin-top: 20px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 20px;
  overflow: hidden;
}

/* Pagination bullets — created by slider-pagination.js */
.il-works__pag .slider-pagination__bullet {
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--color-red);
}

@media (max-width: 768px) {
  .il-works {
    padding: 56px 0;
  }

  .il-works__wrapper {
    padding: 0;
  }

  .il-works__title {
    font-size: 26px;
    color: var(--color-white);
    position: relative;
    z-index: 2;
  }

   .il-works__swiper--desktop {
    display: none !important;
  }
  .il-works__swiper--mobile {
    display: block !important;
  }

  .il-works__arrow--left  { left:  0; }
  .il-works__arrow--right { right: 0; }
}
