/* Hero - menší verzia pre podstránky */
.hero--small {
  min-height: max(400px, 700px);
  padding-top: 80px;
}

/* Galerie layout */
.galerie {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* Zpět tlačidlo */
.galerie__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 2rem;
  transition: color 0.3s ease;
}

.galerie__back:hover {
  color: #2ab53a;
}

/* ==================== ALBUMS ==================== */
.albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.album {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.album:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.album__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.album__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.album:hover .album__cover img {
  transform: scale(1.05);
}

.album__count {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.album__info {
  padding: 1.25rem 1.5rem;
}

.album__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: #212529;
}

.album__description {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* ==================== GALLERY GRID ==================== */
.galerie__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.galerie__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.galerie__item:hover {
  transform: scale(1.02);
}

.galerie__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.galerie__item:hover img {
  transform: scale(1.05);
}

/* Empty state */
.galerie__empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #999;
}

.galerie__empty i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.galerie__empty p {
  font-size: 1.1rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .galerie {
    padding: 2rem 1rem;
  }

  .albums {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .galerie__grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .galerie__grid {
    grid-template-columns: 1fr;
  }

  .galerie__item {
    aspect-ratio: 4 / 3;
  }
}
