/* ============================================
   GALLERY PAGE - ORDINACE
   ============================================ */

/* Gallery Hero Section */
.gallery-hero {
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gray-100) 100%);
  padding: 60px 24px;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-200);
}

.gallery-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C41E3A' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.08;
  pointer-events: none;
}

.gallery-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-hero-content .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(196, 30, 58, 0.1);
  color: var(--red);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.gallery-hero-content h1 {
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.gallery-hero-content h1 span {
  color: var(--red);
  position: relative;
  display: inline-block;
}

.gallery-hero-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(196, 30, 58, 0.2);
  z-index: -1;
  border-radius: 4px;
}

.gallery-hero-content p {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery Section */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}

.gallery-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.6;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Gallery Item */
.gallery-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.gallery-item__image {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: var(--gray-200);
}

.gallery-item__image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item__image img {
  transform: scale(1.05);
}

.gallery-item__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  padding: 24px 20px 20px;
  transition: transform 0.3s ease;
}

.gallery-item__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.gallery-item__desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* ============================================
   LIGHTBOX MODAL
   ============================================ */

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-lightbox.is-open {
  display: flex;
  opacity: 1;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.05);
}

.lightbox-close {
  top: 2rem;
  right: 2rem;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-caption {
  text-align: center;
  color: #fff;
  margin-top: 20px;
  max-width: 600px;
}

.lightbox-caption h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.lightbox-caption p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   GALLERY QUOTE SECTION
   ============================================ */

.gallery-quote {
  position: relative;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
  padding: 80px 24px;
  text-align: center;
  overflow: hidden;
}

.gallery-quote-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C41E3A' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.15;
  pointer-events: none;
}

.gallery-quote-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.gallery-quote-content .quote-icon {
  font-size: 3rem;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
  font-family: serif;
}

.gallery-quote-content blockquote {
  font-size: 1.3rem;
  font-style: italic;
  color: var(--white);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

@media (max-width: 992px) {
  .gallery-hero-content h1 {
    font-size: 2.2rem;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 50px 20px;
  }
  
  .gallery-hero-content h1 {
    font-size: 2rem;
  }
  
  .gallery-hero-content p {
    font-size: 0.9rem;
  }
  
  .gallery-section {
    padding: 40px 20px;
  }
  
  .gallery-description {
    font-size: 0.9rem;
    margin-bottom: 32px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .lightbox-prev {
    left: 1rem;
  }
  
  .lightbox-next {
    right: 1rem;
  }
  
  #lightbox-image {
    max-height: 60vh;
  }
  
  .lightbox-caption h3 {
    font-size: 1rem;
  }
  
  .lightbox-caption p {
    font-size: 0.8rem;
  }
  
  .gallery-quote {
    padding: 50px 20px;
  }
  
  .gallery-quote-content blockquote {
    font-size: 1rem;
  }
  
  .gallery-quote-content .quote-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .gallery-hero {
    padding: 40px 16px;
  }
  
  .gallery-hero-content h1 {
    font-size: 1.6rem;
  }
  
  .gallery-hero-content .hero-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
  }
  
  .gallery-section {
    padding: 32px 16px;
  }
  
  .gallery-description {
    font-size: 0.85rem;
    margin-bottom: 24px;
  }
  
  .gallery-item__overlay {
    padding: 16px 12px 12px;
  }
  
  .gallery-item__title {
    font-size: 0.9rem;
  }
  
  .gallery-item__desc {
    font-size: 0.7rem;
  }
  
  .lightbox-close {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    top: 0.8rem;
    right: 0.8rem;
  }
  
  .lightbox-prev,
  .lightbox-next {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .lightbox-caption h3 {
    font-size: 0.9rem;
  }
  
  .lightbox-caption p {
    font-size: 0.75rem;
  }
  
  .gallery-quote {
    padding: 40px 16px;
  }
  
  .gallery-quote-content blockquote {
    font-size: 0.9rem;
  }
  
  .gallery-quote-content .quote-icon {
    font-size: 1.8rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-hero-content,
.gallery-description,
.gallery-item {
  animation: fadeInUp 0.6s ease forwards;
}

.gallery-item {
  animation-delay: calc(var(--item-index, 0) * 0.05s);
}

/* Stagger animation for gallery items */
.gallery-item:nth-child(1) { --item-index: 1; }
.gallery-item:nth-child(2) { --item-index: 2; }
.gallery-item:nth-child(3) { --item-index: 3; }
.gallery-item:nth-child(4) { --item-index: 4; }
.gallery-item:nth-child(5) { --item-index: 5; }
.gallery-item:nth-child(6) { --item-index: 6; }