.contacts {
  background: #fafafa;
}

.contacts .container {
  display: flex;
}

.contacts__text {
  padding: 30px;
  padding-top: 0px;
  background: white;
}

.contacts h3 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
}

.contacts a {
  font-size: 13px;
}

.messangers img,
.contacts-socials img {
  width: 34px;
  height: 34px;
}

.messangers,
.contacts-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.dzen {
  height: 30px !important;
  width: 30px !important;
}

.map {
  width: 100%;
}

.map iframe {
  border: none;
}

.gallery {
  background: #fafafa;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding-top: 0px;
}

.gallery-preview {
  width: 48%;
  max-height: 400px;
  object-fit: cover;
}

.gallery img {
  transition: transform 0.2s ease;
  cursor: pointer;
}

.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);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  width: 90%;
  max-height: 100vh;
  box-sizing: border-box;
}

.modal-content img {
  width: 100%;

  height: 80vh;
  object-fit: cover;
  transition: 1s ease-in-out;
}

.thumbnails {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.thumbnails img {
  width: 150px;
  height: auto;
  margin-right: 10px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.thumbnails img:hover,
.thumbnails img.active {
  opacity: 1;
}

.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 25px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.gallery .section-subtitle {
  margin-top: 50px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .contacts .container {
    flex-direction: column;
  }

  .map {
    height: 500px;
  }
}

@media (max-width: 560px) {
  .gallery-preview {
    width: 100%;
  }
}
