.two{
    position: relative;
    min-height: 100vh;
    z-index: 1;
    background-image: url(js/sectionThree.png);
    background-size: cover;
    background-position: center top;
    background-color: #fff3c1;
    background-repeat: no-repeat;
    font-family: Arial, sans-serif;
    text-align: center;
    padding-top: 60px;
}
.gallery{
    color: hsl(36, 100%, 60%);
    font-size: clamp(20px, 10vw, 150px);
    text-align: center top;
    font-weight: bold;
    text-shadow: 2px 2px 10px hsl(50, 97%, 14%);
}
/* Лявата част със снимки */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 40%;
}

.image-item {
  width: 30%; /* За да има малко разстояние между изображенията */
}

.gallery-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Модален прозорец */
#imageModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

/* Стилове за видео */
#videoModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}


.video-container {
  position: absolute;
  top: 30%; /* колко да е надолу от горе - пробвай 10%, 15% */
  left: 50%;
  transform: translate( 20%, 0); /* центрира и леко измества надясно */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 35%;
}
.video-item {
  width: 45%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.video-thumbnail {
  position: relative;
  display: inline-block;
}

/* Play бутон */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.5);  /* Полупрозрачен фон */
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 30px;
  padding: 15px;
  cursor: pointer;
  z-index: 2;
}

.play-button:hover {
  background-color: rgba(0, 0, 0, 0.8);  /* Малко по-тъмен фон при hover */
}


@media (max-width: 520px) {
  .two {
    background-size: contain;
    background-position: top center;
    padding-top: 40px;
  }

  .image-gallery {
    width: 70%;
    flex-direction: row;
    justify-content: center;
    gap: 10;
    transform: translate( 20%, 10%);
  }

  .image-item {
    width: 40%;
  }

  .gallery-image {
    width: 70%;
  }

  .video-container {
  position: absolute;
  top: 65%; /* колко да е надолу от горе - пробвай 10%, 15% */
  transform: translate( -50%, 0); /* центрира и леко измества надясно */
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 80%;

  }

  .video-item {
  width: 45%;
  height: auto;
  border-radius: 8px; 
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
}
