html,
body,
.page-wrapper {
    overflow-x: hidden;
}

.blog-page--grid .blog-card__image,
.blog-one .blog-card__image {
    aspect-ratio: 259 / 170;
}

.blog-page--grid .blog-card__image img,
.blog-one .blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.sidebar__posts__image {
    width: 70px;
    aspect-ratio: 70 / 43;
    overflow: hidden;
}

.sidebar__posts__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shared SEO/performance image rules */
.seo-card-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 310 / 189;
    object-fit: cover;
}

.event-card,
.gallery-page__card {
    contain: layout paint;
}

.event-card .event-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 310 / 189;
    overflow: hidden;
}

.blog-details__inner__text img,
.artdetails img {
    max-width: 100%;
    height: auto;
}

.gallery-page__card img {
    width: 100%;
    height: auto;
    aspect-ratio: 37 / 30;
    object-fit: cover;
}

/* Article details */
.article-trust-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 16px;
    color: #5f5a6f;
    font-size: 14px;
}

.artdetails {
    overflow-wrap: anywhere;
    content-visibility: auto;
    contain-intrinsic-size: 1px 1200px;
}

.artdetails iframe {
    max-width: 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Home page Core Web Vitals */
.main-slider-one__carousel,
.main-slider-one__item {
    min-height: 620px;
}

.main-slider-one__image img {
    max-width: 100%;
    height: auto;
}

.course-card__image img,
.blog-card__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 37 / 25;
    object-fit: cover;
}

.instructor-card__image img {
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 7;
    object-fit: cover;
}

.client-carousel__image {
    width: 160px;
    height: 90px;
    object-fit: contain;
}

@media (max-width: 767px) {
    .section-space {
        padding-top: 45px;
        padding-bottom: 45px;
    }

    .article-trust-meta,
    .avpaddart {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .main-slider-one__carousel,
    .main-slider-one__item {
        min-height: 760px;
    }

    .custom-cursor__cursor,
    .custom-cursor__cursor-two {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wow {
        visibility: visible !important;
        animation: none !important;
    }

    .owl-carousel {
        scroll-behavior: auto !important;
    }
}
