/* ===========================================================
   sec-5.css — GALLERY (exterior / interior carousel)
   =========================================================== */
#section-5 {
  padding: 120px 0;
}
.gallery-toggle {
  display: flex;
  justify-content: center;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  width: fit-content;
  margin: 0 auto 46px;
}
.gallery-toggle button {
  padding: 13px 38px;
  font-family: var(--sans);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  transition: all 0.25s;
}
.gallery-toggle button.active {
  background: var(--accent);
  color: #f7f0ec;
}

.carousel {
  position: relative;
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar {
  display: none;
}
.carousel-slide {
  flex: 0 0 76%;
  max-width: 860px;
  scroll-snap-align: center;
}
.carousel-slide img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.carousel-cap {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.carousel-cap .idx {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.carousel-cap .ttl {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}

.gallery-view {
  display: none;
}
.gallery-view.active {
  display: block;
}

.carousel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.carousel-dots {
  display: flex;
  gap: 8px;
}
.carousel-dots .dot {
  width: 8px;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: all 0.3s;
}
.carousel-dots .dot.active {
  width: 26px;
  background: var(--accent);
}
.carousel-nav {
  display: flex;
  gap: 10px;
}
.carousel-nav button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}
.carousel-nav button:hover {
  background: var(--accent);
  color: #f7f0ec;
  border-color: var(--accent);
}
.carousel-nav button svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .carousel-slide {
    flex: 0 0 88%;
  }
}
