@import url("/assets/css/components/molecules/breadcrumb.css");
@import url("/assets/css/components/atoms/badge.css");

.gallery .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gallery .categories {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  border-width: 1px 0 1px 0;
  border-style: solid;
  border-color: #0a0a0a1a;
}

.gallery .categories .list {
  display: flex;
  align-items: center;
  gap: 40px;
}

.gallery .categories .list button {
  height: 76px;
  font-weight: var(--font-medium);
  font-size: var(--text-xl);
  line-height: var(--text-xl-line-height);
  color: var(--neutral-950);
  position: relative;
  transition: var(--transition-color);
}

.gallery .categories .list button:hover {
  color: var(--primary);
}

.gallery .categories .list button::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

.gallery .categories .list button.active::after {
  background-color: var(--primary);
}

.gallery .categories .list button.active {
  color: var(--primary);
}

.gallery .categories .arrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery .categories .arrow button {
  width: 48px;
  height: 48px;
  background-color: #0a0a0a0d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-all);
  will-change: transform, box-shadow;
}

.gallery .categories .arrow button:hover {
  background-color: var(--primary-50);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  transform: scale(1.05);
}

.gallery .categories .arrow button:active {
  background-color: var(--primary-300);
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
}

.gallery .box {
  border: 1px solid #0a0a0a0d;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.gallery .box h3 {
  font-weight: var(--font-semibold);
  font-size: var(--text-xl);
  line-height: var(--text-xl-line-height);
  color: var(--neutral-950);
}
.gallery .box p {
  font-weight: var(--font-normal);
  font-size: var(--text-base);
  line-height: var(--text-base-line-height);
  color: var(--neutral-950);
  margin-bottom: 16px;
}
.gallery .box .images {
  display: flex;
  overflow-x: auto;
  width: 100%;
  white-space: nowrap;
  gap: 8px;
  margin-bottom: 8px;
  position: relative;
}
.gallery .box .images::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 38px;
  height: 100%;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}
.gallery .box .images .image {
  min-width: 144px;
  height: 82px;
  border-radius: 4px;
  overflow: hidden;
}
.gallery .box .images .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery .box button {
  width: 100%;
  justify-content: center;
}
.gallery .box .info {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  width: 100%;
  margin-top: 16px;
}
.gallery .box .info .info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gallery .box .info .info-item span {
  text-align: center;
  font-weight: var(--font-normal);
  font-size: var(--text-sm);
}
.gallery .box .info .info-item span strong {
  display: block;
}
.gallery .swiper {
  width: 100%;
}
.video-box {
  position: relative;
  border-radius: 12px;
  height: 228px;
  overflow: hidden;
}
.video-box img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}
.video-box .overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #00000052;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  justify-content: space-between;
}
.video-box .overlay button,
.gallery-detail .container .image button {
  min-width: 48px;
  height: 48px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-detail .container .image button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
}
.gallery-detail .container .image button svg {
  width: 48px;
  height: 48px;
}
.video-box .overlay h3 {
  font-weight: var(--font-semibold);
  font-size: var(--text-base);
  line-height: var(--text-base-line-height);
  color: var(--neutral-0);
}
.gallery-detail .container {
  max-width: 892px;
}
.gallery-detail .container .image {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 32px;
  position: relative;
}
.gallery-detail .container .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}
.gallery-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.gallery-text h3 {
  font-weight: var(--font-medium);
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-line-height);
  color: var(--neutral-950);
}
.gallery-text p {
  font-weight: var(--font-normal);
  font-size: var(--text-base);
  line-height: var(--text-base-line-height);
  color: var(--neutral-950);
}
.gallery-detail .container img {
  border-radius: 24px;
}
.gallery-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.gallery-footer h4 {
  font-weight: var(--font-medium);
  font-size: var(--text-3xl);
  line-height: var(--text-3xl-line-height);
  color: var(--neutral-950);
}
.gallery-footer .list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}
.gallery-detail .gallery-text a {
  font-weight: var(--font-normal);
  font-size: var(--text-base);
  line-height: var(--text-base-line-height);
  color: var(--primary);
  text-decoration: none;
}
.gallery-modal {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-opacity);
  overflow: auto;
}

.gallery-modal.active {
  opacity: 1;
  pointer-events: all;
  z-index: 1000;
  left: 0;
}

.gallery-modal-box {
  max-width: 928px;
  width: 100%;
  margin: auto;
  position: relative;
}

.gallery-image {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  height: 638px;
}
.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}
.gallery-image-mini {
  height: 82px;
  width: 100%;
  border-radius: 8px;
}
.gallery-image-mini img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-transform), border 0.3s ease;
}
.gallery-swiper .swiper-wrapper {
  padding: 32px 64px 0 64px;
}
.swiper-slide-thumb-active .gallery-image-mini img {
  border: 2px solid var(--neutral-0);
}
.arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  transform: translateY(calc(-50% - 48px));
}
.arrows button {
  background-color: var(--neutral-0);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-transform);
}
.arrows button:first-child {
  margin-left: -100px;
}
.arrows button:last-child {
  margin-right: -100px;
}
.arrows button:hover {
  transform: scale(1.05);
  cursor: pointer;
}
.video-modal {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-opacity);
  overflow: auto;
}
.video-modal.active {
  opacity: 1;
  pointer-events: all;
  z-index: 1000;
  left: 0;
}
.video-modal-box {
  max-width: 928px;
  width: 100%;
  margin: auto;
  position: relative;
  padding: 40px 16px;
}
#video-close-btn {
  position: absolute;
  top: 0;
  right: 0;
  color: var(--neutral-0);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition-transform);
  z-index: 10;
}
#video-close-btn:hover {
  transform: scale(1.05);
  cursor: pointer;
}
@media screen and (max-width: 1150px) {
  .gallery .box .images {
    gap: 16px;
  }
  .gallery .box .images .image {
    min-width: 120px;
    height: 68px;
  }
  .gallery .categories .list button {
    font-size: var(--text-lg);
    line-height: var(--text-lg-line-height);
    height: 62px;
    white-space: nowrap;
  }
  .gallery .box h3 {
    font-size: var(--text-lg);
    line-height: var(--text-lg-line-height);
  }
  .gallery .box p {
    font-size: var(--text-sm);
    line-height: var(--text-sm-line-height);
  }
  .gallery .box .info .info-item span {
    font-size: var(--text-xs);
    line-height: var(--text-xs-line-height);
  }
  .gallery-image {
    height: 512px;
  }
}

@media screen and (max-width: 920px) {
  .gallery .categories .list {
    gap: 24px;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .gallery .categories .arrow {
    display: none;
  }
  .gallery-footer .list {
    grid-template-columns: 1fr 1fr;
  }
}

@media screen and (max-width: 640px) {
  .gallery .box {
    padding: 24px 12px;
  }
  .gallery .box h3 {
    font-size: var(--text-base);
    line-height: var(--text-base-line-height);
  }
  .gallery .categories .list button {
    height: 48px;
    font-size: var(--text-base);
    line-height: var(--text-base-line-height);
  }
  .gallery-image {
    height: 320px;
  }
  .gallery-image-mini {
    height: 62px;
  }
}
