/* Real photo sizing fixes — the theme's placeholder slots assumed small
   pre-cropped images; these constrain the real photos so they don't
   overflow their containers. */

.main-slider__img img {
    width: auto;
    max-width: 380px;
    max-height: 520px;
    object-fit: cover;
    border-radius: 20px;
}

.cta-one__img img {
    max-width: 320px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}

.about-two__author-img {
    overflow: hidden;
}

.about-two__author-img img {
    height: 100%;
    object-fit: cover;
}

/* Project cards (home, projects.php, about.php) — force every card to the
   same height regardless of the source photo's own orientation. */
.project-one__img {
    height: 441px;
}

.project-one__img img {
    height: 100%;
    object-fit: cover;
}

/* Home services cards ("What We Offer") — same idea, uniform card height. */
.services-two__img {
    height: 220px;
}

.services-two__img img {
    height: 100%;
    object-fit: cover;
}

/* Hero video background — sits behind .main-slider__bg (which keeps the
   dark overlay via its ::before) so the video plays where the image used to. */
.main-slider__video-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-slider .swiper-slide-active .main-slider__video-bg {
    transform: scale(1.1);
    transition: transform 6s ease;
}

/* Contact / newsletter form confirmation message — shown after submit. */
.form-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.form-alert--success {
    background: rgba(40, 167, 69, .12);
    border: 1px solid rgba(40, 167, 69, .35);
    color: #1e7e34;
}

.form-alert--error {
    background: rgba(220, 53, 69, .12);
    border: 1px solid rgba(220, 53, 69, .35);
    color: #c82333;
}

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