.page-store-preview main{padding-top:0px;}

/* HERO */
.page-store-preview .hero-sub{
  max-width:1200px;
  margin:40px auto 0;
  padding:0 20px;
}
.page-store-preview .hero-sub-img{
  width:100%;
  padding-top:40%;
  background:
    linear-gradient(to bottom,rgba(0,0,0,0.02),rgba(0,0,0,0.18)),
    url('../img/sub-top-02.jpg') center/cover no-repeat;
  position:relative;
}
.page-store-preview .hero-label{
  position:absolute;
  bottom:22px;
  left:50%;
  transform:translateX(-50%);
  font-size:11px;
  letter-spacing:3px;
  color:#f7f7f7;
}

/* GALLERY GRID */
.section{
  max-width:1200px;
  margin:60px auto;
  padding:0 20px;
}
.section-title{
  text-align:center;
  margin-bottom:24px;
  font-size:15px;
  letter-spacing:3px;
}
.gallery-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}
.gallery-item{
  cursor:pointer;
  overflow:hidden;
  border-radius:4px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); /* ✅ 자연스럽게 */
}
.gallery-thumb{
  width:100%;
  aspect-ratio:4/3;
  overflow:hidden;
}
.gallery-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1);
  transition:transform .6s cubic-bezier(.25,.82,.25,1);
}
.gallery-item:hover img{
  transform:scale(1.05); /* ✅ 박스 안에서 확대 */
}

/* ==============================
   MODAL 화살표 디자인코딩 (고급형)
   ============================== */
   
   /* 모달이 페이지 내 요소 영향을 받지 않도록 */
.modal {
  position: fixed !important;  /* ✅ 뷰포트 기준 고정 */
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 0;
  z-index: 3000;
  display: none;
  justify-content: center;
  align-items: center;
  background: none;
}

/* 모달이 열릴 때 스크롤 막기 */
body.modal-open {
  overflow: hidden;
}

/* 모달이 정상 표시될 때 */
.modal.active {
  display: flex;
}

/* ===============================
   MODAL BACKGROUND
   =============================== */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* ✅ 검정+투명 */
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.4s ease; /* ✅ 부드럽게 fade-in */
}
.modal.active .modal-backdrop {
  opacity: 1;
}

/* 모달 컨텐츠를 정중앙 정렬 */
.modal-content {
  margin: 0;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 80%;
  max-height: 80%;
}
.modal-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.3s ease;
  z-index: 15;
  color:#fff;
}

/* 호버 시 살짝 밝아지고 확대 */
.modal-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* 화살표 아이콘 */
.arrow-left,
.arrow-right {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  opacity: 0.9;
  transition: all 0.3s ease;
}

/* 방향 지정 */
.arrow-left {
  transform: rotate(-135deg);
  margin-left: 3px;
}
.arrow-right {
  transform: rotate(45deg);
  margin-right: 3px;
}

/* 화살표 hover 시 빛 강조 */
.modal-btn:hover .arrow-left,
.modal-btn:hover .arrow-right {
  border-color: #fff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

/* 위치 */
.modal-prev {
  left: -70px;
}
.modal-next {
  right:-70px;
}

/* 모바일용 */
@media (max-width: 768px) {
  .modal-btn {
    width: 38px;
    height: 38px;
  }
  .arrow-left,
  .arrow-right {
    width: 14px;
    height: 14px;
    border-width: 1.5px;
  }
  .modal-prev { left: 10px; }
  .modal-next { right: 10px; }
}
/* ===============================
   MODAL CLOSE BUTTON 디자인
   =============================== */
.modal-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  font-weight: 200;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.3s ease;
  z-index: 10;
}

/* 호버 시 밝게 */
.modal-close:hover {
  opacity: 1;
  transform: scale(1.15);
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

/* 모바일 보정 */
@media (max-width: 768px) {
  .modal-close {
    top: 10px;
    right: 14px;
    font-size: 26px;
  }
}

/* ==============================
   Pagination (바형)
   ============================== */
.modal-pagination {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 15;
}
.modal-pagination span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bbb;
  opacity: 0.5;
  transition: all 0.3s ease;
}
.modal-pagination span.active {
  width: 18px;
  border-radius: 6px;
  background: #fff;
  opacity: 1;
}

/* ==============================
   반응형
   ============================== */
@media (max-width: 1024px) {
  .modal-content { max-width: 90%; max-height: 70%; }
  .modal-prev { left: 6px; }
  .modal-next { right: 6px; }
  .modal-pagination { bottom: -28px; }
}


@media (max-width:768px){
  .modal-prev {left:10px;}
  .modal-next {right:10px;}
  .modal-pagination {bottom:-28px;}
}


@media (max-width:768px){
  .gallery-grid{grid-template-columns:repeat(2,1fr);}
  .modal-content{max-width:90%;max-height:70%;}
  .modal-prev{left:10px;}
  .modal-next{right:10px;}
  .modal-close{top:10px;right:14px;font-size:26px;}
}
