#posts-container {
    margin-top: 20px;
    padding: 5px;
}

/* расположение полей формы в ряд на десктопной версии */
.form-row {
  display: flex;
  flex-wrap: wrap;
}

/* стили для каждого поля формы */
.form-field {
  flex-basis: calc(33.33% - 10px); /* каждый блок занимает 50% ширины родительского контейнера с учетом отступов */
  margin: 5px;
}

/* медиа-запрос для мобильных устройств */
@media (max-width: 767px) {
  /* расположение полей формы одно под другим */
  .form-row {
    flex-direction: column;
  }
  /* каждый блок занимает 100% ширины на мобильных устройствах */
  .form-field {
    flex-basis: 100%;
    margin: 5px 0;
  }
}



/* контейнер для плитки */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-template-rows: auto;
  grid-gap: 20px;
}

/* стили для каждого элемента плитки */
.grid-item {
  background-color: #fff;
  padding: 20px;
  text-align: center;
  position: relative;
}
}

/* медиа-запрос для планшетов */
@media (max-width: 991px) {
  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-gap: 10px;
  }
}

/* медиа-запрос для мобильных устройств */
@media (max-width: 575px) {
  .grid-container {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    grid-gap: 5px;
  }
}

/*modal*/

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  margin:5% auto;
  position: relative;
  width: 45%;
  text-align: center;
  /*height: 70%; */
  max-width: 800 px;
  /*max-height: 700 px;*/
  overflow: auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


@media (max-width: 991px) {
  .modal-content {
    width: 65%;
    margin:5% auto;
  }
}

@media (max-width: 575px) {
  .modal-content {
    width: 85%;
    margin:10% auto;
  }
}

.modal-content p{
  text-align: left;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 10px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.slider {
   width: 250px;
   height: 250px;
   position: relative;
   margin: 0 auto;
   overflow: hidden;
  }

  .slider-img {
   width: 250px;
   height: 250px;
   position: absolute;
   top: 0;
   left: 0;
   opacity: 0;
   transition: opacity 1s ease-in-out;
  }

  .slider-img.active {
   opacity: 1;
  }

  .slider-controls {
   position: relative;
   margin-top: 10px;
   text-align: center;
  }

  .slider-control {
   display: inline-block;
   width: 10px;
   height: 10px;
   background-color: #999;
   border-radius: 50%;
   margin-right: 5px;
   cursor: pointer;
  }

  .slider-control.active {
   background-color: #333;
  }


.image-icons {
  display: flex;
  justify-content: right;
  align-items: center;
}

.image-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
 /*border-radius: 50%;*/
  margin-left: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.image-link:hover {
  transform: scale(1.2);
}

.image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-link.vk {
  /*background-color: #000;*/
}

.image-link.youtube {
  /*background-color: #000;*/
}

.image-link.rutube {
  /*background-color: #000;*/
}

.image-link:hover.vk img {
  filter: grayscale(0%) brightness(110%);
}

.image-link:hover.youtube img {
  filter: grayscale(0%) brightness(110%);
}

.image-link:hover.rutube img {
  filter: grayscale(0%) brightness(150%);
}

@media (max-width: 768px) {
  .image-link {
    margin-left: none;
    margin-right: 10px;
  }
  .image-icons {
  justify-content: center;
  }
}

.footer_text_1 p{
  text-align: right; 
  font-size: 22px; 
  color: #fff;
}
.footer_text_1{
  justify-content: right;
}

@media (max-width: 768px) {
.footer_text_1 p{
  text-align: center; 
}
.footer_text_1{
  justify-content: center;
}
}

.ajax-loader {
  margin:0 auto;
  padding-top:25px;
  width:100%;
  text-align: center;
}

.main-footer a:hover {
    color: #960001 !important;
}

.zagbut {
  text-align:center;
  margin-top:20px;
}

button {
  background:#a5a5a5 !important;
  color:white !important;
}

button:hover {
  background:#b00000 !important;
}