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

.video-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 50px;

  iframe {
    width: 66.666%;
    aspect-ratio: 16 / 9;
    object-fit: cover;

    @media (max-width: 600px) {
      width: 100%;
    }
  }
}

.actor-info {
  width: 66.666%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 100px;

  @media (max-width: 1024px) {
    width: 100%;
  }

  @media (max-width: 600px) {
    display: flex;
    flex-direction: column;
    max-width: 100vh;
    margin: 0 auto 50px auto;
  }

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

  .info-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    width: 100%;

    .text-container {
      display: flex;
      flex-direction: column;
      align-items: start;
      gap: 20px;
      width: 100%;

      .title-container {
        display: flex;
        flex-direction: column;
        gap: 10px;

        .exclusive-container {
          display: flex;
          align-items: center;
          gap: 10px;

          img.exclusive {
            height: 30px;
            width: 30px;
          }

          h4 {
            font-size: 20px;
          }
        }
      }

      h2 {
        margin-bottom: 0;
        text-wrap: wrap;
        text-align: left;
      }

      table {
        width: 100%;
        border-collapse: collapse;
        overflow: hidden;
        border: none;
        column-gap: 20px;
        margin-bottom: 20px;

        tr {
          border-bottom: 1px solid #000;

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

          @media (max-width: 400px) {
            flex-wrap: wrap;

            td:nth-child(1) {
              width: auto;
            }

            td:nth-child(2) {
              width: auto;
            }
          }

          td {
            padding: 10px 0;
            text-align: left;
            border: none;

            span {
              display: block;
              text-wrap: wrap;
            }

            ul {
              display: flex;
              flex-direction: column;
              gap: 10px;
              list-style: none;

              li {
                a.text-link {
                  overflow-wrap: break-word;
                  word-break: break-all;
                }
              }
            }
          }

          td:nth-child(1) {
            width: 40%;
            padding-right: 5px;
          }

          td:nth-child(2) {
            width: 60%;
            padding-left: 5px;
          }
        }

        tr:last-child {
          border-bottom: none;
        }
      }
    }

    .button {
      margin-bottom: 0;
      border-radius: 0;
    }
  }
}

.gallery {
  .actors-list {
    .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;

      .swiper-wrapper {
        .swiper-slide {
          .img-container {
            width: 100%;

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

      .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;
}