.balinot-fancybox-gallery {
  display: grid;
  gap: 1rem;
}

.balinot-fancybox-gallery__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.balinot-fancybox-gallery__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-primary, #111111);
  color: var(--color-secondary, #ffffff);
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.balinot-fancybox-gallery__trigger:hover {
  opacity: 0.92;
}

.balinot-fancybox-gallery__grid {
  display: grid;
  gap: 0.9rem;
}

.balinot-fancybox-gallery__grid.is-hidden {
  display: none;
}

.balinot-fancybox-gallery--cols-1 .balinot-fancybox-gallery__grid {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.balinot-fancybox-gallery--cols-2 .balinot-fancybox-gallery__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.balinot-fancybox-gallery--cols-3 .balinot-fancybox-gallery__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.balinot-fancybox-gallery--cols-4 .balinot-fancybox-gallery__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.balinot-fancybox-gallery--cols-5 .balinot-fancybox-gallery__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.balinot-fancybox-gallery--cols-6 .balinot-fancybox-gallery__grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.balinot-fancybox-gallery__item {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: 1rem;
  background: #f7f7f6;
  text-decoration: none;
  aspect-ratio: 1 / 1;
}

.balinot-fancybox-gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fancybox__container {
  --fancybox-bg: rgba(17, 17, 17, 0.88);
  --fancybox-color: #ffffff;
}

.fancybox__toolbar .f-button,
.fancybox__nav .f-button {
  --f-button-bg: rgba(255, 255, 255, 0.14);
  --f-button-hover-bg: rgba(255, 255, 255, 0.22);
  --f-button-active-bg: rgba(255, 255, 255, 0.28);
  --f-button-color: #ffffff;
  --f-button-svg-stroke-width: 1.6;
}

.fancybox__caption {
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .balinot-fancybox-gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
