/* Минимальные стили для страницы "Наши работы" */

/* Стили для карточек работ */
.card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    padding: 0;
    margin: 0;
 }
  
.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

  /* .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover;
    padding: 0;
    margin: 0;
  } */

.card-title {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 10px;
}

.card-text {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

/* Стиль для кнопки */
.card .btn-primary {
  background-color: #2c3e50;
  border-color: #2c3e50;
  color: white;
  text-transform: uppercase;
  font-size: 12px;
  padding: 8px 15px;
  border-radius: 0;
}

.card .btn-primary:hover {
  background-color: #1e5799;
  border-color: #1e5799;
}

/* Стиль для всей секции */
.works {
  background-color: #f8fbff;
  padding: 60px 0;
}

/* Эффект при наведении на карточку */
.card {
  border-radius: 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.flex-grow-1 {
  flex-grow: 1;
}

/* Стили для полной страницы работы */
.work-description {
  line-height: 1.7;
  font-size: 16px;
  color: #444;
}

.work-description img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
  border-radius: 5px;
}

.background-desc {
  background-color: #ffffff !important;
}

/* Адаптивные стили */
@media (max-width: 992px) {
  .row-cols-lg-4>* {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .row-cols-lg-4>* {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.gallery-post-center {
  text-align: center;
}

.gallery-post-center img {
  max-width: 100%;
  height: auto;
}
