.logo img,
.f-logo img,
.fw-logo img {
    max-height: 56px;
}

.nav-logo img {
    max-height: 48px;
    max-width: none;
}

.f-logo img {
    background: #ffffff;
    padding: 10px 16px;
    border-radius: 12px;
}

/* Uniform team member photos */
.team-thumb img,
.team-thumb-two img,
.team-thumb-three img,
.team-thumb-four img,
.team-thumb-five img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.team-thumb-three img {
    border-radius: 10px;
}

.team-thumb-three > a {
    display: block;
}

/* Uniform project card images */
.project-thumb img,
.project-thumb-two img,
.project-thumb-three img,
.project-thumb-four img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Uniform tighter section rhythm across all page-content sections
   (hero banner and breadcrumb keep their larger padding for the fixed header) */
.ck-content section[class*="-area"]:not([class*="banner"]):not([class*="breadcrumb"]) {
    padding-top: 70px;
    padding-bottom: 70px;
}

/* Mobile hero: text before image */
@media (max-width: 991.98px) {
    .banner-area-five .row > .col-lg-5 {
        order: 1 !important;
    }
    .banner-area-five .row > .col-lg-7 {
        order: 2 !important;
    }
    .banner-area-five .banner-img-five {
        margin-top: 45px;
    }
}

/* Slimmer mobile header */
@media (max-width: 991.98px) {
    .logo img,
    .nav-logo img,
    .fw-logo img {
        max-height: 30px;
    }
    header .custom-container,
    header .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    .menu-area {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    .menu-area .mobile-nav-toggler {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
    .custom-header {
        padding-top: 0;
        padding-bottom: 0;
    }
    #header-fixed-height.active-height {
        height: 44px;
    }
}
