/* Loaded only by the Reading template; keep shared location styles untouched. */
.reading-page .hero-loc__content {
    padding-bottom: 51px;
    align-self: flex-start;
}

.reading-page__hero-media {
    position: relative;
    flex: 0 1 778px;
    min-width: 0;
    height: 596px;
    isolation: isolate;
}

.reading-page__hero-media::before {
    content: "";
    position: absolute;
    inset: 163px 29px 0 48px;
    border-radius: 350.5px 350.5px 0 0;
    background: var(--color-primary-blue);
    z-index: -1;
}

.reading-page .reading-page__hero-media .hero-loc__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: fill;
}

.reading-page .hero-loc-info {
    padding-top: 38px;
}

.reading-page .item-services__image {
    min-height: 0;
    position: absolute;
    inset: 0;
    width: 46%;
    height: 100%;
}

.reading-page .item-services:nth-child(odd) .item-services__image {
    left: auto;
}

.reading-page .item-services:nth-child(even) .item-services__image {
    right: auto;
}

.reading-page .item-services__text p {
    margin: 0;
}

.reading-page .item-services__text p + p {
    margin-top: 40px;
}

.reading-page .reading-botttom__image {
    height: 765.33px;
    overflow: hidden;
    border-radius: 999px 999px 0 0;
}

.reading-page .reading-botttom__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center top;
    transform: translateY(-6.52%);
}

.reading-page .reading-botttom__under-image {
    width: 49.25%;
    max-width: none;
    height: auto;
    left: 4.24%;
    top: -12%;
    bottom: auto;
}

@media (max-width: 1200px) {
    .reading-page .hero-loc__content {
        padding-bottom: 32px;
    }

    .reading-page__hero-media {
        height: auto;
        aspect-ratio: 778 / 596;
        align-self: flex-end;
    }

    .reading-page__hero-media::before {
        inset: 27.35% 3.73% 0 6.17%;
    }

    .reading-page .reading-botttom__image {
        height: auto;
        aspect-ratio: 625 / 765;
    }
}

@media (max-width: 1024px) {
    .reading-page .hero-loc__container {
        flex-direction: column;
    }

    .reading-page .hero-loc__content {
        flex-basis: auto;
        width: 100%;
        padding-bottom: 0;
    }

    .reading-page__hero-media {
        flex-basis: auto;
        width: min(100%, 778px);
        align-self: center;
    }

    .reading-page .item-services__image {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        object-fit: cover;
    }

    .reading-page .item-services {
        direction: ltr;
        grid-template-columns: minmax(0, 1fr) !important;
        border-radius: 25px;
    }

    .reading-page .item-services .item-services__image {
        order: 0;
    }

    .reading-page .item-services__content {
        min-width: 0;
    }

    .reading-page .reading-botttom__under-image {
        position: relative;
        width: min(90%, 600px);
        top: auto;
        left: auto;
        margin: -60px auto 0;
    }

    .reading-page .bottomsection__container {
        flex-direction: column;
    }

    .reading-page .bottomsection__content,
    .reading-page .reading-botttom__image {
        flex-basis: auto;
    }

    .reading-page .reading-botttom__image {
        width: min(100%, 625px);
        margin-bottom: 0 !important;
    }

    .reading-page .reading-botttom {
        padding-bottom: 0;
    }

    .reading-page .reading-botttom__under {
        position: relative;
        inset: auto;
        transform: none;
        flex-direction: column-reverse;
        align-items: center;
        padding: 40px 0 0;
        border-radius: 48px;
        row-gap: 30px;
    }

    .reading-page .reading-botttom__under-content {
        max-width: none;
        padding-inline: 24px;
    }
}

@media (max-width: 600px) {
    .reading-page .hero-loc__title {
        font-size: 36px;
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .reading-page .hero-loc-info {
        padding-block: 32px;
    }

    .reading-page .item-services__text p + p {
        margin-top: 24px;
    }
}
