.gallery-section * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.gallery-section {
  font-family: 'Segoe UI', sans-serif;
  background: #f4f6f8;
  color: #333;
  padding: 2rem 1rem;
}

.gallery-section .gallery-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}


.gallery-section h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #f4a261; /* updated to match Sogo color */
}

.gallery-section .filters {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gallery-section .btn-filter {
  padding: 0.5rem 1.2rem;
  background: #fff;
  color: #f4a261;
  border: 2px solid #f4a261;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
}

.gallery-section .btn-filter.active,
.gallery-section .btn-filter:hover {
  background: #f4a261;
  color: #fff;
}

.gallery-section .category {
  margin-bottom: 3rem;
}

.gallery-section .category h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #f4a261;
  border-bottom: 2px solid #f4a261;
  padding-bottom: 4px;
}

.gallery-section .carousel-wrapper {
  position: relative;
}

.gallery-section .carousel {
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
}

.gallery-section .carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s ease;
}

.gallery-section .carousel-track img {
  flex: 0 0 calc(100% / 3 - 8px); /* Show 3 images at a time */
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .gallery-section .carousel-track img {
    flex: 0 0 100%;
  }
}

.gallery-section .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #f4a261;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  transition: background 0.3s ease;
}

.gallery-section .nav-btn:hover {
  background: #d48a4b;
}

.gallery-section .nav-btn.left {
  left: 10px;
}

.gallery-section .nav-btn.right {
  right: 10px;
}

.gallery-section .dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 0.5rem;
}

.gallery-section .dot {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.gallery-section .dot.active {
  background: #f4a261;
}
.carousel-wrapper {
  max-width: 1000px !important; /* or any width you prefer */
  margin: 0 auto;
}
.gallery-section .carousel-track img {
  height: 250px;
  object-fit: cover;
  max-width: 100%;
  flex: 0 0 calc(100% / 3 - 8px); /* show 3 images */
  border-radius: 8px;
}
@media (max-width: 768px) {
  .gallery-section .carousel-track img {
    flex: 0 0 100%;
    height: 200px;
  }
}
.carousel-track img {
  height: 250px;
  object-fit: cover;
  flex: 0 0 calc(100% / 3 - 8px);
  border-radius: 8px;
}
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  z-index: 10000;
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  padding-bottom: 10px; /* să eviți tăierea la limită */
}

.carousel-track img {
  flex: 0 0 calc((100% - 24px) / 3); /* 3 imagini și 2 x 12px gap */
  margin-right: 12px;
}

.carousel-track img:last-child {
  margin-right: 0; /* să nu sară prea departe */
}
/* Ascunde galeria din spate când este activ Fancybox */
body.fancybox-active .gallery-section,
body.fancybox-active .gallery-container,
body.fancybox-active .carousel-wrapper {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* Previne scroll-ul în fundal */
body.fancybox-active {
  overflow: hidden;
}
