/* ===== GALLERY SLIDER — CARD STYLE (title below) ===== */

.gallery-slider-wrap {
  position: relative;
  margin-bottom: 3rem;
  padding: 0 24px;
}

.gallery-track-outer {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 16px;
  transition: transform .52s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  align-items: flex-start;
}

/* ---- CARD ---- */
.gallery-card {
  flex-shrink: 0;
  cursor: zoom-in;
}

/* Image box - slightly different heights to create stagger like screenshot */
.gallery-card-img {
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.gallery-card:nth-child(odd)  .gallery-card-img { height: 260px; }
.gallery-card:nth-child(even) .gallery-card-img { height: 300px; }

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gallery-card:hover .gallery-card-img img {
  transform: scale(1.05);
}

/* ---- TEXT BELOW ---- */
.gallery-card-info {
  padding: 10px 2px 0;
}

.gallery-card-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 3px;
  line-height: 1.3;
}

.gallery-card-sub {
  font-size: 13px;
  color: #7A7870;
}

/* ---- DOTS ---- */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D0CEC8;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}

.gallery-dot.active {
  background: var(--gold, #D4A843);
  transform: scale(1.4);
}

/* ---- ARROWS ---- */
.gallery-arrow {
  position: absolute;
  top: 130px;
  z-index: 10;
  background: white;
  border: 1px solid #E0DED8;
  color: #333;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,.13);
  transition: all .2s;
}

.gallery-arrow:hover {
  background: var(--gold, #D4A843);
  color: #111;
  border-color: var(--gold, #D4A843);
  box-shadow: 0 4px 18px rgba(212,168,67,.3);
  transform: scale(1.1);
}

.gallery-arrow.prev { left: 0; }
.gallery-arrow.next { right: 0; }

/* ===== LIGHTBOX ===== */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.open { display: flex; }

.lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 64px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 6px;
  display: none;
  animation: lbFadeIn .22s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-img.active { display: block; }

.lightbox-close {
  position: fixed;
  top: 18px; right: 22px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px;
  z-index: 9010;
  transition: background .2s;
}

.lightbox-close:hover { background: rgba(212,168,67,.85); color: #111; }

.lightbox-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: white;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 26px;
  transition: background .2s;
}

.lightbox-arrow:hover { background: rgba(212,168,67,.85); color: #111; }
.lightbox-arrow.prev { left: 10px; }
.lightbox-arrow.next { right: 10px; }

.lightbox-info {
  text-align: center;
  padding: 10px 0 4px;
}

.lightbox-caption {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  font-weight: 600;
}

.lightbox-counter {
  color: rgba(255,255,255,.4);
  font-size: 12px;
  margin-top: 2px;
}

.lightbox-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 16px 18px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}

.lightbox-thumbs::-webkit-scrollbar { display: none; }

.lightbox-thumb {
  flex-shrink: 0;
  width: 64px; height: 44px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .45;
  transition: all .2s;
}

.lightbox-thumb.active { border-color: var(--gold, #D4A843); opacity: 1; }
.lightbox-thumb:hover  { opacity: .8; }
.lightbox-thumb img    { width: 100%; height: 100%; object-fit: cover; display: block; }

/* RESPONSIVE */
@media(max-width:700px) {
  .gallery-card:nth-child(odd)  .gallery-card-img,
  .gallery-card:nth-child(even) .gallery-card-img { height: 190px; }
  .gallery-arrow { top: 95px; width: 34px; height: 34px; font-size: 16px; }
  .lightbox-stage { padding: 0 44px; }
  .lightbox-img { max-height: 62vh; }
}