@charset "UTF-8";
/* 1. 리스트 레이아웃 및 크기 통일 */
.gallery_view_list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.gallery_view_list li {
  flex: 0 0 25%; /* 한 줄에 4개 배치 */
  width: 25%;
  height: 25%;
  box-sizing: border-box;
}

/* 2. 이미지 크기 강제 통일 */
.gallery_view_wrap {
  padding-left: 0px;
}

.gallery_view_list li .img-container {
  width: 100%;
  max-height: 500px;
  aspect-ratio: 16/16; /* 16:9 비율 고정 */
  overflow: hidden;
  border: 1px solid #ddd;
  background-color: #fff;
}

.gallery_view_list li img.imgList {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  display: block;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery_view_list li img.imgList:hover {
  transform: scale(1.05);
}

/* 모달 스타일 */
.modal-dialog.modal-xl {
  max-width: 90vw;
}

.modal-content {
  background-color: rgba(0, 0, 0, 0.8);
  border: none;
}

.modal-header {
  border-bottom: none;
}
.modal-header .modal-title {
  color: #fff;
}
.modal-header .btn-close {
  filter: invert(1);
}

.carousel-item img {
  max-height: 80vh;
  -o-object-fit: contain;
     object-fit: contain;
}

.carousel-indicators [data-bs-target] {
  background-color: #fff;
  opacity: 0.5;
}

.carousel-indicators .active {
  opacity: 1;
}

.fw-modal-overlay {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.fw-modal-overlay.active {
  display: flex;
}

.fw-modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 1100px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.fw-modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8f9fa;
}

.fw-modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: #333;
}

.fw-modal-close {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.5rem;
  font-weight: bold;
  color: #666;
  line-height: 1;
}

.fw-modal-close:hover {
  color: #000;
}

.fw-modal-body {
  position: relative;
  padding: 20px;
  background-color: #000;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fw-slide {
  display: none;
  width: 100%;
  text-align: center;
}

.fw-slide.active {
  display: block;
  animation: fwFadeIn 0.3s;
}

@keyframes fwFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fw-slide img {
  max-width: 100%;
  max-height: 70vh;
  -o-object-fit: contain;
     object-fit: contain;
}

.fw-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0);
  color: #fff;
  border: none;
  width: 100px;
  height: 100%;
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.fw-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.fw-nav-prev {
  left: 20px;
}

.fw-nav-next {
  right: 20px;
}

/* 새롭게 추가된 카운터 CSS */
.fw-slide-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  letter-spacing: 2px;
  z-index: 10;
}