.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  justify-content: center;
  align-items: center;

  .modal-dim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);

    .btn-close {
      position: absolute;
      top: 24px;
      right: 24px;
      width: 40px;
      height: 40px;
      border-radius: 1000px;
      background-color: rgba(0, 0, 0, 0.8);
      cursor: pointer;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      display: flex;
      justify-content: center;
      align-items: center;

      img {
        width: fit-content;
        height: fit-content;
      }
    }
  }

  .modal-content {
    position: relative;
    top: 5%;
    display: flex;
    flex-direction: column;
    justify-items: center;
    width: 85%;
    height: 100vh;
    border-radius: 8px;
    overflow: hidden;
    overflow-y: scroll;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
    z-index: 999999;

    .modal-banner {
      position: relative;
      width: 100%;
      height: 400px;

      .modal-banner-content {
        width: 100%;
        height: 100%;
        overflow: hidden;

        .modal-banner-img {
          width: 100%;
        }

        .model-banner-dim {
          position: absolute;
          width: 100%;
          height: 50%;
          bottom: 0;
          z-index: 2;
          background: linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0) 100%
          );
        }

        .title-wrapper {
          position: absolute;
          display: flex;
          flex-direction: column;
          width: 100%;
          bottom: 40px;
          padding-left: 64px;
          height: fit-content;
          gap: 24px;
          z-index: 3;

          .title {
            font-size: 84px;
            font-weight: 700;
            color: var(--white);
          }
        }
      }
    }

    .body {
      width: 100%;
      display: flex;
      flex-direction: row;
      padding: 64px;
      padding-bottom: 120px;
      gap: 64px;
      background-color: var(--bg-main-deep);

      .info-overview {
        display: flex;
        flex-direction: column;
        gap: 48px;
        flex: 3;
        flex-shrink: 0;

        .label-list {
          display: flex;
          flex-direction: column;
          gap: 48px;

          .label-item-wrapper {
            display: flex;
            flex-direction: column;
            gap: 24px;

            .label-item-title {
              font-size: 24px;
              font-weight: 700;
            }

            .label-item-list {
              display: flex;
              flex-wrap: wrap;
              gap: 8px;

              .label {
                width: fit-content;
                color: var(--black);
                padding: 8px 12px;
                line-height: 150%;
                border-radius: 1000px;
                border: 1px solid var(--gray-100);
              }
            }
          }
        }

        .label-end {
          display: flex;
          flex-direction: column;
          gap: 32px;

          .label-end-title-wrapper {
            display: flex;
            flex-direction: column;
            gap: 24px;

            .label-end-title {
              font-size: 24px;
              font-weight: 700;
            }

            .label-end-desc {
              font-size: 16px;
              line-height: 150%;
              color: var(--gray-500);
            }
          }
        }
      }

      .info-body {
        width: 100%;
        flex: 7;
        display: flex;
        flex-direction: column;
        gap: 64px;

        .info-title {
          width: 100%;
          font-size: 48px;
          font-weight: 700;
          line-height: 130%;
        }

        .info-desc {
          width: 100%;
          font-size: 16px;
          line-height: 150%;
        }

        .info-mid-info {
          display: flex;
          flex-direction: row;
          background-color: var(--gray-500);
          align-items: center;
          border-radius: 4px;
          overflow: hidden;

          .info-mid-info-content {
            display: flex;
            flex-direction: column;
            gap: 24px;
            width: 100%;
            flex: 5;
            padding: 32px;
            padding-right: 64px;

            .mid-title {
              font-size: 32px;
              font-weight: 600;
              color: var(--white);
            }

            .mid-desc {
              font-size: 16px;
              line-height: 150%;
              color: var(--white);
            }
          }
          .info-mid-img {
            height: 100%;
            flex: 5;

            img {
              width: 100%;
              height: 100%;
            }
          }
        }

        .info-img {
          width: 100%;
          height: fit-content;
          border-radius: 4px;
          overflow: hidden;

          img {
            width: 100%;
            height: 100%;
          }
        }
        .info-video {
          width: 100%;
          height: fit-content;
          border-radius: 4px;
          overflow: hidden;
          video {
            width: 100%;
            height: 100%;
          }
        }
      }
    }

    .btn-prev,
    .btn-next {
      position: fixed;
      bottom: 24px;
      width: fit-content;
      display: flex;
      flex-direction: row;
      gap: 16px;
      align-items: center;
      z-index: 1001;
      cursor: pointer;

      span {
        font-size: 16px;
        color: var(--white);
      }
    }

    .btn-prev {
      left: 24px;
    }

    .btn-next {
      right: 24px;
    }
  }
}

.btn-wrapper {
  display: flex;
  flex-direction: row;
  gap: 8px;

  .btn {
    &:hover {
      background-color: rgba(0, 0, 0, 0.3);
      color: black;
    }

    a {
      width: fit-content;
      height: 32px;
      border: 1px solid var(--white);
      border-radius: 4px;
      padding: 0 12px;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      display: flex;
      gap: 8px;
    }

    span {
      margin-top: 3px;
      color: var(--white);
      font-size: 14px;
      font-weight: 400;
      text-decoration: none;
    }

    &.black {
      a {
        border-color: 1px solid var(--gray-500);

        span {
          color: var(--gray-500);
        }
      }
    }
  }
}

.btn-last-wrapper {
  display: flex;
  flex-direction: row;
  margin-top: 24px;
  justify-content: space-between;

  .btn-last-prev {
    display: flex;
    width: fit-content;
    padding-left: 12px;
    padding-right: 16px;
    align-items: center;
    height: 40px;
    justify-content: center;
    color: var(--black);
    font-weight: 300;
    border: 1px solid var(--black);
    border-radius: 4px;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    &:hover {
      background: rgba(0, 0, 0, 0.1);
    }
  }

  .btn-last-next {
    user-select: none;
    cursor: pointer;
    display: flex;
    width: fit-content;
    padding-left: 16px;
    padding-right: 12px;
    gap: 8px;
    height: 40px;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-weight: 300;
    border-radius: 4px;
    background-color: var(--black);

    &:hover {
      background: var(--gray-500);
    }

    span {
      color: var(--white);
    }
  }
}

#modal-description {
  width: 100%;
}

@media screen and (max-width: 480px) {
  .modal {
    .modal-dim {
      .btn-close {
        z-index: 99999999;
      }
    }

    .modal-content {
      top: 0;
      width: 100%;
      border-radius: initial;

      .modal-banner {
        height: 280px;
        flex-shrink: 0;

        .modal-banner-content {
          .title-wrapper {
            padding-left: 24px;
            bottom: 24px;

            .title {
              font-size: 32px;
            }
          }
        }

        img {
          height: 100%;
        }
      }

      .body {
        flex-direction: column;
        /* padding: 24px; */
        /* padding-bottom: 48px; */
        padding: initial;
        padding-top: 24px;
        padding-bottom: 80px;
        gap: 40px;

        .info-overview {
          padding: 24px;
          padding-bottom: 0;
          gap: 24px;

          .label-list {
            gap: 32px;
            .label-item-wrapper {
              .label-item-title {
                font-size: 20px;
              }

              .label-item-list {
                font-size: 12px;
                line-height: 150%;
                .label {
                  padding: 4px 8px;
                }
              }
            }

            .label-end {
              gap: 24px;

              .label-end-title-wrapper {
                .label-end-desc {
                  font-size: 14px;
                }
              }
            }
          }
        }

        .info-body {
          width: 100%;
          gap: 32px;

          .info-title {
            padding: 0 24px;
            font-size: 32px;
          }

          .info-desc {
            padding: 0 24px;
            width: 100%;
            font-size: 14px;
          }

          .info-mid-info {
            border-radius: 0;
            flex-direction: column;

            .info-mid-info-content {
              padding-left: 24px;
              padding-right: 24px;

              .mid-title {
                font-size: 24px;
              }

              .mid-desc {
                font-size: 14px;
              }
            }
          }

          .info-video {
            border-radius: 0;
          }
        }
      }

      .btn-prev,
      .btn-next {
        display: none;
      }
    }

    .btn-last-wrapper {
      padding: 0 24px;

      .btn-last-prev {
        font-size: 14px;

        span {
          span {
            display: none;
          }
        }
      }

      .btn-last-next {
        font-size: 14px;
        span {
          span {
            display: none;
          }
        }
      }
    }
    .btn-wrapper {
      .btn {
        a {
          img {
            width: 20px;
            height: 20px;
          }
        }
      }
    }
  }
}

.icon-link {
  width: 20px;
  height: 20px;
}

#modal-image {
  width: 100%;
  height: 100%;
}
