.gallery-item {
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover img {
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.gallery-fullscreen-modal {
  background: rgba(0,0,0,0.9) !important;
}

.gallery-fullscreen-modal .modal-backdrop {
  background-color: rgba(0,0,0,0.9) !important;
}

.gallery-fullscreen-modal .gallery-fullscreen-dialog {
  max-width: 80vw !important;
  max-height: 80vh !important;
  margin: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 80vh !important;
  width: 80vw !important;
  height: 80vh !important;
}

.gallery-fullscreen-modal .gallery-fullscreen-content {
  background: transparent;
  border: none;
  border-radius: 0;
  max-width: 100%;
  max-height: 100%;
  position: relative;
}

.gallery-fullscreen-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  max-height: calc(80vh - 100px);
}

.gallery-fullscreen-img {
  /* Usunięto max-width, max-height i object-fit - wszystko kontrolowane przez JavaScript */
  display: block;
}

.modal-body {
  max-height: 80vh;
}

.gallery-fullscreen-modal .modal-body {
  max-height: none !important;
}

.gallery-fullscreen-modal .gallery-modal-dialog {
  width: auto !important;
  height: auto !important;
  padding: 10mm !important;
  margin: 0 !important;
  max-width: none !important;
  max-height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.gallery-fullscreen-modal .gallery-modal-content {
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  background: rgba(0,0,0,0.9) !important;
}

.gallery-modal-body {
  max-height: 80vh;
}

.gallery-fullscreen-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* Style dla venobox (galeria produktów) - teraz kontrolowane przez JavaScript */

.gallery-fullscreen-footer {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  border-radius: 8px;
  padding: 10px;
  border: none;
}

.btn-primary{
    color: #fff;
    background-color: var(--main-color);
    border-color: var(--primary);
    box-shadow: none;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 20px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
}

.gallery-nav-prev {
  left: 20px;
}

.gallery-nav-next {
  right: 20px;
}

.gallery-nav:hover {
  background: rgba(0,0,0,0.7);
}

.gallery-product-btn {
  max-width: 100%;
  word-wrap: break-word;
  white-space: normal;
}