/* AUTO NEŠA — prilagođeno prikazivanje slika */

/* Galerija radova */
.project-one__img {
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  background-color: #ececec;
}

.project-one__img img {
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.project-one__single:hover .project-one__img img {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .project-one__img {
    max-height: 280px;
  }
}

/* O nama */
.about-one__img {
  padding-bottom: 100px;
  padding-right: 110px;
}

.about-one__img-img1 {
  mask: none;
  -webkit-mask: none;
  width: 88%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.about-one__img-img2 {
  width: 46%;
  max-width: 260px;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 5px solid var(--automart-white, #fff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-one__img-img1 img,
.about-one__img-img2 img {
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.9);
}

.about-one__img-img1:hover img,
.about-one__img-img2:hover img {
  filter: saturate(1);
  transform: scale(1.03);
}

@media only screen and (max-width: 767px) {
  .about-one__img {
    padding-bottom: 0;
    padding-right: 0;
  }

  .about-one__img-img1 {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .about-one__img-img2 {
    width: 85%;
    max-width: 400px;
    margin-left: auto;
    margin-right: 0;
    aspect-ratio: 4 / 3;
  }
}

.contact-form-validated .result {
  margin-top: 18px;
}

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--automart-bdr-radius, 20px);
  font-size: 15px;
  line-height: 1.5;
  animation: formAlertFadeIn 0.35s ease;
}

.form-alert i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
}

.form-alert--success {
  background-color: rgba(var(--automart-base-rgb, 22, 163, 74), 0.1);
  border: 1px solid rgba(var(--automart-base-rgb, 22, 163, 74), 0.35);
  color: var(--automart-black, #0f2419);
}

.form-alert--success i {
  color: var(--automart-base, #16a34a);
}

.form-alert--error {
  background-color: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--automart-black, #0f2419);
}

.form-alert--error i {
  color: #dc2626;
}

@keyframes formAlertFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
