/* Reset i bazowe style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

/* Container - Mobile First */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

/* Header */
header {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Plakat na stronie głównej */
.poster {
  margin-bottom: 3rem;
}

.poster img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Nawigacja galerii */
.gallery-nav {
  margin-bottom: 3rem;
}

.gallery-nav h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  text-align: center;
}

.gallery-list {
  list-style: none;
}

.gallery-list li {
  margin-bottom: 1rem;
}

.gallery-list a {
  display: block;
  padding: 1.25rem;
  background: white;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.gallery-list a:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  background: #fafafa;
}

/* Breadcrumb nawigacja */
.breadcrumb {
  margin-bottom: 2rem;
  padding: 1rem 0;
}

.breadcrumb a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #333;
}

.breadcrumb span {
  margin: 0 0.5rem;
  color: #999;
}

/* Tytuł galerii */
.gallery-title {
  text-align: center;
  margin-bottom: 2rem;
}

.gallery-title h2 {
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Siatka galerii - Mobile First */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* Item galerii */
.gallery-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item figcaption {
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  background: white;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
}

/* Media Queries - Tablet */
@media (min-width: 768px) {
  .container {
    padding: 2rem;
    max-width: 1200px;
  }

  header h1 {
    font-size: 2.5rem;
  }

  .poster {
    max-width: 600px;
    margin: 0 auto 3rem;
  }

  .gallery-list {
    max-width: 600px;
    margin: 0 auto;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .gallery-title h2 {
    font-size: 2rem;
  }
}

/* Media Queries - Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 3rem;
  }

  header h1 {
    font-size: 3rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .gallery-nav h2 {
    font-size: 1.75rem;
  }
}

/* Media Queries - Large Desktop */
@media (min-width: 1440px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  margin: auto;
  display: block;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
  }
  to {
    transform: scale(1);
  }
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  font-size: 1.1rem;
  padding: 1rem 2rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  max-width: 80%;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  font-size: 30px;
  padding: 16px 20px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 4px;
  z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

/* Kursor wskaźnika na zdjęciach */
.gallery-item img {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.gallery-item img:hover {
  opacity: 0.9;
}

/* Responsywność lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 80vh;
  }

  .lightbox-caption {
    font-size: 0.9rem;
    bottom: 10px;
    padding: 0.75rem 1.5rem;
  }

  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 35px;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 24px;
    padding: 12px 16px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}
