@charset "UTF-8";
.works .container .gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  width: 100%;
}
.works .container .gallery .photo {
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform-origin: top;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 0.5s, height 0.5s ease;
}
.works .container .gallery .photo img {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
}
.works .container .gallery .hidden {
  transform: scaleY(0);
  height: 0;
  opacity: 0; /* Make hidden photos fully transparent */
}
.works .container .button-container {
  display: flex;
  justify-content: center;
}
.works .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  align-content: center;
}
.works .modal .dots-container {
  text-align: center;
  position: absolute;
  margin-top: 25px;
  width: 100%;
}
.works .modal .dot {
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.works .modal .dot.active {
  background-color: #F44C17; /* Желаемый цвет для активной точки */
}
.works .modal-content {
  margin: auto;
  display: block;
}
.works .close {
  position: absolute;
  color: #f44c17;
  font-weight: bold;
  cursor: pointer;
}
.works .modal-nav {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 16px;
  margin-top: -50px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}
.works #prevButton {
  left: 25px;
  background-image: url("/src/prev.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: unset;
}
.works #nextButton {
  right: 25px;
  background-image: url("/src/next.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: unset;
}

@media (min-width: 1921px) {
  .gallery {
    gap: 25px;
    margin-bottom: 20px;
  }
  .gallery .photo {
    width: 503px;
    height: 480px;
  }
  .gallery .photo.hidden {
    width: 503px;
    height: 480px;
  }
  .modal-nav {
    width: 75px;
    height: 75px;
  }
  .works .close {
    top: 50px;
    right: 60px;
    font-size: 55px;
  }
  .modal-content {
    width: 1100px;
    height: 800px;
  }
  .works .modal .dots-container {
    display: none;
  }
}
@media (max-width: 1920px) {
  .gallery {
    gap: 25px;
    margin-bottom: 20px;
  }
  .gallery .photo {
    width: 503px;
    height: 480px;
  }
  .gallery .photo.hidden {
    width: 503px;
    height: 480px;
  }
  .modal-nav {
    width: 75px;
    height: 75px;
  }
  .modal-content {
    width: 1100px;
    height: 800px;
  }
  .works .close {
    top: 50px;
    right: 60px;
    font-size: 55px;
  }
  .works .modal .dots-container {
    display: none;
  }
}
@media (max-width: 1600px) {
  .gallery {
    gap: 25px;
    margin-bottom: 20px;
  }
  .gallery .photo {
    width: 440px;
    height: 390px;
  }
  .gallery .photo.hidden {
    width: 440px;
    height: 390px;
  }
  .modal-nav {
    width: 65px;
    height: 65px;
  }
  .modal-content {
    width: 1000px;
    height: 700px;
  }
  .works .close {
    top: 38px;
    right: 48px;
    font-size: 50px;
  }
  .works .modal .dots-container {
    display: none;
  }
}
@media (max-width: 1440px) {
  .gallery {
    gap: 20px;
    margin-bottom: 20px;
  }
  .gallery .photo {
    width: 370px;
    height: 360px;
  }
  .gallery .photo.hidden {
    width: 370px;
    height: 360px;
  }
  .modal-nav {
    width: 60px;
    height: 60px;
  }
  .modal-content {
    width: 800px;
    height: 700px;
  }
  .works .close {
    top: 34px;
    right: 44px;
    font-size: 45px;
  }
  .works .modal .dots-container {
    display: none;
  }
}
@media (max-width: 1200px) {
  .gallery {
    gap: 20px;
    margin-bottom: 20px;
  }
  .gallery .photo {
    width: 440px;
    height: 360px;
  }
  .gallery .photo.hidden {
    width: 440px;
    height: 360px;
  }
  .modal-nav {
    width: 55px;
    height: 55px;
  }
  .modal-content {
    width: 650px;
    height: 600px;
  }
  .works .close {
    top: 30px;
    right: 40px;
    font-size: 38px;
  }
  .works .modal .dots-container {
    display: none;
  }
}
@media (max-width: 992px) {
  .gallery {
    gap: 17px;
    margin-bottom: 17px;
  }
  .gallery .photo {
    width: 330px;
    height: 330px;
  }
  .gallery .photo.hidden {
    width: 330px;
    height: 330px;
  }
  .modal-nav {
    width: 50px;
    height: 50px;
  }
  .modal-content {
    width: 500px;
    height: 400px;
  }
  .works .close {
    top: 20px;
    right: 35px;
    font-size: 35px;
  }
  .works .modal .dots-container {
    display: none;
  }
}
@media (max-width: 768px) {
  .gallery {
    gap: 15px;
    margin-bottom: 15px;
  }
  .gallery .photo {
    width: 252px;
    height: 252px;
  }
  .gallery .photo.hidden {
    width: 252px;
    height: 252px;
  }
  .modal-nav {
    display: none;
  }
  .modal-content {
    width: 500px;
    height: 500px;
  }
  .works .close {
    top: 20px;
    right: 35px;
    font-size: 33px;
  }
  .works .modal .dots-container {
    display: block;
  }
}
@media (max-width: 576px) {
  .gallery {
    gap: 15px;
    margin-bottom: 20px;
  }
  .gallery .photo {
    width: 100%;
    height: 300px;
  }
  .gallery .photo.hidden {
    width: 100%;
    height: 300px;
  }
  .modal-nav {
    display: none;
  }
  .modal-content {
    width: 380px;
    height: 390px;
  }
  .works .close {
    top: 20px;
    right: 35px;
    font-size: 30px;
  }
  .works .modal .dots-container {
    display: block;
  }
}
@media (max-width: 390px) {
  .gallery {
    gap: 12px;
    margin-bottom: 44px;
  }
  .gallery .photo {
    width: 158px;
    height: 158px;
  }
  .gallery .photo.hidden {
    width: 158px;
    height: 158px;
  }
  .modal-nav {
    display: none;
  }
  .modal-content {
    width: 360px;
    height: 360px;
  }
  .works .close {
    top: 20px;
    right: 35px;
    font-size: 30px;
  }
  .works .modal .dots-container {
    display: block;
  }
}

/*# sourceMappingURL=gallery.css.map */
