.powdni
{
  margin: 40px auto;
  max-width: 1200px;
  text-align: center;
  padding: 20px;
}

.powdni h2 
{
  margin-bottom: 20px;
  font-size: 1.8em;
}

.gallery 
{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 20px auto;
  max-width: 1200px;
  padding: 10px;
}

.gallery img 
{
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.gallery img:hover 
{
  transform: scale(1.05);
}

.gallery .center-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.gallery .center-row img 
{
  width: calc(50% - 10px);
  max-width: 560px;
  height: auto;
  object-fit: cover;
}

.powdni-video 
{
  margin: 40px auto;
  max-width: 1400px;
  padding: 20px;
  text-align: center;
}

.powdni-video h2 
{
  margin-bottom: 25px;
  font-size: 1.8em;
}

.video-row 
{
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
}

.video-row video 
{
  width: 18%;
  max-width: 240px;
  aspect-ratio: 9 / 16;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(240, 6, 90, 0.5);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-row video:hover
{
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(240, 6, 90, 0.7);
}

.video-row.row-3 video,
.video-row.row-5 video 
{
  width: 18%;
  max-width: 240px;
}

.video-row.row-5 
{
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 1100px) 
{
  .video-row video 
  {
    width: 22%;
  }
}

@media (max-width: 900px) 
{
  .video-row 
  {
    flex-wrap: wrap;
    justify-content: center;
  }

  .video-row video 
  {
    width: 45%;
  }
}

@media (max-width: 700px) 
{
  .video-row 
  {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .video-row video 
  {
    width: 90%;
    max-width: 380px;
    aspect-ratio: 9 / 16;
    border-radius: 15px;
  }

  .video-row.row-3 video,
  .video-row.row-5 video 
  {
    width: 90%;
    max-width: 380px;
  }
}

@media (max-width: 800px) 
{
  .gallery .center-row 
  {
    flex-direction: column;
    align-items: center;
  }

  .gallery .center-row img 
  {
    width: 90%;
    max-width: none;
  }
}

@media (max-width: 600px) 
{
  .gallery 
  {
    grid-template-columns: 1fr;
  }

  .gallery img 
  {
    width: 100%;
  }
}
