/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : May 5, 2025, 7:11:40 PM
    Author     : riddick
*/

.kat-text {
    margin-top: 30px;
}

.fotoC
{
    position: relative;
    width: 100%;
}

/* Masonry Grid Layout */
.katalog-gallery-container {
  margin: 40px 0;
}

.katalog-gallery-container h3 {
  margin-bottom: 30px;
  font-size: 1.5rem;
  color: #333;
}

.katalog-masonry-grid {
  column-count: 4;
  column-gap: 15px;
  margin: 0 auto;
}

.katalog-masonry-item {
  break-inside: avoid;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.katalog-masonry-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.katalog-gallery-link {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.katalog-gallery-image {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
  max-width: 350px; /* Zajistit max velikost náhledu */
}

.katalog-masonry-item:hover .katalog-gallery-image {
  transform: scale(1.05);
}

/* Picture element */
.katalog-gallery-link picture {
  display: block;
  width: 100%;
}

/* Overlay with zoom icon */
.katalog-gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.katalog-masonry-item:hover .katalog-gallery-overlay {
  opacity: 1;
}

.zoom-icon {
  color: white;
  width: 40px;
  height: 40px;
}

/* Lightbox */
/* Pro funkční lightbox potřebujete JavaScript. Kód pro lightbox v CSS je v pořádku, ale musíte ho spustit skriptem. */
/* ... (další CSS pro lightbox) ... */

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .katalog-masonry-grid {
    column-count: 3;
  }
}

@media screen and (max-width: 768px) {
  .katalog-masonry-grid {
    column-count: 2;
    column-gap: 10px;
  }
  
  .katalog-masonry-item {
    margin-bottom: 10px;
  }
}

@media screen and (max-width: 480px) {
  .katalog-masonry-grid {
    column-count: 1;
  }
}

/* Empty state */
.katalog-gallery-empty {
  text-align: center;
  padding: 40px;
  color: #999;
  font-style: italic;
}

/* Accessibility */
.katalog-gallery-link:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.katalog-lightbox-close:focus,
.katalog-lightbox-prev:focus,
.katalog-lightbox-next:focus {
  outline: 2px solid white;
  outline-offset: 2px;
}

/* Lightbox styly */
/* Katalog Lightbox Styles */
.katalog-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.katalog-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.katalog-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.katalog-lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.katalog-lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 10px;
  z-index: 10001;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.katalog-lightbox-close:hover {
  opacity: 0.7;
}

.katalog-lightbox-prev,
.katalog-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  font-size: 30px;
  padding: 15px 20px;
  cursor: pointer;
  z-index: 10001;
  transition: background-color 0.3s ease, opacity 0.3s ease;
  border-radius: 3px;
}

.katalog-lightbox-prev {
  left: 20px;
}

.katalog-lightbox-next {
  right: 20px;
}

.katalog-lightbox-prev:hover,
.katalog-lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

#katalog-lightbox-caption {
  margin-top: 20px;
  color: white;
  text-align: center;
  font-size: 16px;
  max-width: 600px;
  line-height: 1.4;
}

.katalog-lightbox-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.katalog-lightbox.loading .katalog-lightbox-loading {
  display: block;
}

.katalog-lightbox.loading .katalog-lightbox-content img {
  display: none;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Gallery cursor pointer */
.katalog-gallery-link {
  cursor: pointer;
  display: block;
  transition: transform 0.3s ease;
}

.katalog-gallery-link:hover {
  transform: scale(1.05);
}

.katalog-gallery-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .katalog-lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 25px;
  }
  
  .katalog-lightbox-prev,
  .katalog-lightbox-next {
    padding: 10px 15px;
    font-size: 25px;
  }
  
  .katalog-lightbox-prev {
    left: 10px;
  }
  
  .katalog-lightbox-next {
    right: 10px;
  }
  
  .katalog-lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .katalog-lightbox img {
    max-height: 70vh;
  }
  
  #katalog-lightbox-caption {
    font-size: 14px;
    margin-top: 15px;
    padding: 0 20px;
  }
}
/* lightbox css end */