.featured-image {
    position: relative;
    max-width: 100%;
}

.featured-image__glow {
    pointer-events: none;
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    z-index: 0;
    width: 85%;
    height: 85%;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(73, 147, 142, 0.28) 0%, rgba(73, 147, 142, 0.08) 45%, rgba(52, 63, 82, 0.12) 100%);
}

@media (max-width: 767.98px) {
    .featured-image__glow {
        right: 0;
        bottom: 0;
    }
}

.featured-image__frame {
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 1.25rem 3rem rgba(30, 34, 40, 0.14);
    outline: 1px solid rgba(164, 174, 198, 0.22);
    background: #fff;
}

.featured-image__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.featured-image__frame:hover .featured-image__img {
    transform: scale(1.02);
}

.featured-image__overlay {
    pointer-events: none;
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(to top, rgba(52, 63, 82, 0.12) 0%, transparent 55%);
    transition: opacity 0.3s ease;
}

.featured-image__frame:hover .featured-image__overlay {
    opacity: 1;
}

.featured-image--portrait .featured-image__img {
    aspect-ratio: 4 / 5;
}

.featured-image--compact {
    max-width: 220px;
}

.team-photo-wrap {
    width: 10rem;
    height: 10rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.team-photo {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center 20%;
}

.blog-card-grid {
    align-items: stretch;
}

.blog-card-grid > article.item {
    display: flex;
    flex-direction: column;
}

.blog-card-grid .card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.blog-card-grid .card-img-top {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-card-grid .card-img-top > a {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.blog-card-grid .card-img-top img,
.blog-card-grid .card-img-top .bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.blog-card-grid .card-body {
    flex: 1 1 auto;
}

.blog-card-grid .card-footer {
    margin-top: auto;
}

.blog-card-grid .post-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-swiper .swiper-wrapper {
    align-items: stretch;
}

.blog-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
}

.blog-swiper .related-post-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-swiper .related-post-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
}

.blog-swiper .related-post-media > a {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.blog-swiper .related-post-media img,
.blog-swiper .related-post-media .bg {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
}

.blog-swiper .post-header {
    flex: 1 1 auto;
}

.blog-swiper .post-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-swiper .post-footer {
    margin-top: auto;
}

@media (max-width: 767.98px) {
    .why-us-photos__item {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
        margin-left: 0 !important;
    }

    .why-us-photos__item .featured-image,
    .why-us-photos__item .featured-image--compact,
    .why-us-photos__item .featured-image__frame,
    .why-us-photos__item .featured-image__img {
        width: 100% !important;
        max-width: none !important;
    }

    .why-us-photos__item .featured-image__img {
        aspect-ratio: 4 / 5;
        height: auto;
        object-fit: cover;
    }
}
