.actors-title {
  text-align: center;
}

.video-container {
  width: 100%;
  position: relative;
  aspect-ratio: 16/9;
  margin-bottom: 30px;

  iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.actor-info {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
  margin-bottom: 50px;

  .photo-container {
    aspect-ratio: 2/3;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 10px;
    }
  }

  .info-container {
    display: flex;
    flex-direction: column;

    table {
      width: 100%;
      border-collapse: collapse;
      overflow: hidden;
      margin-bottom: 30px;

      td {
        padding: 10px 10px 2.5px 5px;
        text-align: left;
        border: 1px solid #000;
        width: 50%;
      }
    }

    .button {
      margin-bottom: 50px;
    }
  }

}

.experience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: min-content;
  row-gap: 30px;
  column-gap: 20px;
  margin-bottom: 100px;
  width: 100%;

  div {
    ul {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding-left: 20px;
    }
  }
}

.gallery {
  margin-bottom: 100px;

  .actor-card {
    border: none;
    cursor: pointer;
  }
}


.popup {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: none;

  .popup-overlay {
    background-color: rgba(16, 16, 16, 0.8);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
  }

  .popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: 400px;

    @media (max-width: 500px) {
      width: 300px;
    }

    .gallery-swiper {
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: 10px;

      .swiper-wrapper {
        .swiper-slide {
          .img-container {
            width: 100%;
            border-radius: 10px;

            img {
              aspect-ratio: 2/3;
              width: 100%;
              height: 100%;
              object-fit: cover;
              border-radius: 10px;
            }
          }
        }
      }

      .gallery-swiper-prev {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 5px;
        z-index: 1000;
        background-image: url(../assets/icons/swiper-arrow-left.svg);
        background-repeat: no-repeat;
        background-position: center;
        width: 20px;
        height: 20px;
        cursor: pointer;

        @media (max-width: 500px) {
          width: 10px;
          height: 10px;
          background-size: contain;
        }
      }

      .gallery-swiper-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        right: 5px;
        z-index: 1000;
        background-image: url(../assets/icons/swiper-arrow-right.svg);
        background-repeat: no-repeat;
        background-position: center;
        width: 20px;
        height: 20px;
        cursor: pointer;

        @media (max-width: 500px) {
          width: 10px;
          height: 10px;
          background-size: contain;
        }
      }

      .gallery-swiper-pagination {
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;

        .swiper-pagination-bullet.swiper-pagination-bullet-active {
          background-color: #fff;
        }
      }
    }
  }
}

.popup.opened {
  display: block !important;
}

.other-actors {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;

  .swiper {
    max-width: 100%;
    position: relative;
    width: 100%;

    .swiper-slide {
      .actor-card {
        position: static;
      }
    }

    .swiper-prev {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      left: 5px;
      z-index: 999;
      background-image: url(../assets/icons/swiper-arrow-left.svg);
      background-repeat: no-repeat;
      background-position: center;
      width: 20px;
      height: 20px;
      cursor: pointer;
    }

    .swiper-next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      right: 5px;
      z-index: 999;
      background-image: url(../assets/icons/swiper-arrow-right.svg);
      background-repeat: no-repeat;
      background-position: center;
      width: 20px;
      height: 20px;
      cursor: pointer;
    }
  }
}

/* ADAPTIVE */

@media (max-width: 810px) {
  .experience {
    grid-template-columns: 1fr;
    gap: 30px;

    .more-works {
      gap: 30px;
    }
  }
}

@media (max-width: 600px) {
  .actor-info {
    grid-template-columns: 1fr;

    .photo-container {
      max-width: 60vh;
      margin: 0 auto;
    }
  }

  .experience {
    margin-bottom: 50px;
  }

}