/* ========================================================================== 
   ASTRONOMY / ASTRORANE RESTORATION — sourced from v46.1.16.6
   Loaded only on the Astronomy page so the original rich visual system,
   galleries and interactions are preserved without changing the v48 shell.
   ========================================================================== */
.astronomy-page {
    --shadow-sm: 0 8px 26px rgba(10, 44, 88, .07);
    --shadow-md: 0 18px 55px rgba(10, 44, 88, .11);
}
.astronomy-page .container-wide {
    width: min(calc(100% - 48px), 1550px);
    margin-inline: auto;
}
.astronomy-page .sg-icon { width: 1.15em; height: 1.15em; flex: none; }
.astronomy-page .section-heading {
    display: flex; align-items: center; gap: 10px; margin-bottom: 17px;
}
.astronomy-page .section-heading__icon { color: var(--blue); }
.astronomy-page .section-heading__icon .sg-icon { width: 21px; height: 21px; }
.astronomy-page .section-heading h2 {
    margin: 0; font-family: var(--serif); font-size: clamp(1.12rem, 1.5vw, 1.42rem);
    font-weight: 400; letter-spacing: -.02em;
}
.astronomy-page .section-heading__line {
    width: 42px; height: 1px; background: linear-gradient(90deg, var(--blue), transparent);
}
.astronomy-page .interactive-card {
    position: relative; isolation: isolate; overflow: hidden;
    border: 1px solid rgba(171, 191, 216, .38);
    background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(250, 252, 255, .79));
    box-shadow: 0 6px 18px rgba(16, 57, 103, .04);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.astronomy-page .interactive-card::after {
    content: ""; position: absolute; inset: -1px; z-index: -1; opacity: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(55, 143, 237, .14), transparent 36%);
    transition: opacity .3s ease;
}
.astronomy-page .interactive-card:hover {
    transform: translateY(-5px); border-color: rgba(57, 130, 210, .35); box-shadow: var(--shadow-sm);
}
.astronomy-page .interactive-card:hover::after { opacity: 1; }
/* Third identity: astronomy and scientific outreach */
.identity-card--astronomy .identity-card__icon {
    color: #fff;
    background: linear-gradient(145deg, #243c8f, #101d4d 72%);
    box-shadow: 0 9px 24px rgba(22, 39, 104, .2), inset 0 0 0 1px rgba(255, 255, 255, .12);
}

.button--astronomy {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #334fb5, #16265f 72%);
    box-shadow: 0 12px 25px rgba(22, 38, 95, .2);
}

.button--astronomy:hover {
    box-shadow: 0 16px 34px rgba(22, 38, 95, .3);
}

.astronomy-section {
    position: relative;
    padding: 24px 0 22px;
    overflow: hidden;
    border-bottom: 1px solid rgba(163, 184, 211, .28);
    background:
        radial-gradient(circle at 92% 12%, rgba(72, 92, 183, .10), transparent 23%),
        linear-gradient(180deg, rgba(247, 249, 255, .92), rgba(255, 255, 255, .76));
}

.astronomy-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .26;
    background-image:
        radial-gradient(circle, rgba(38, 57, 128, .8) 0 1px, transparent 1.5px),
        radial-gradient(circle, rgba(58, 105, 182, .5) 0 1px, transparent 1.5px);
    background-size: 120px 120px, 170px 170px;
    background-position: 15px 10px, 60px 55px;
    mask-image: linear-gradient(90deg, transparent, #000 15%, #000 88%, transparent);
}

.astronomy-section .container-wide {
    position: relative;
    z-index: 1;
}

.astronomy-heading__icon {
    color: #263f9f;
}

.astronomy-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
    padding: 16px 18px;
    border-left: 3px solid #344fae;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, rgba(52, 79, 174, .09), rgba(52, 79, 174, .025));
}

.astronomy-intro p {
    max-width: 1100px;
    margin: 0;
    color: #43536f;
    font-size: .9rem;
    line-height: 1.58;
}

.astronomy-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.astronomy-card {
    position: relative;
    min-height: 300px;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(244,247,255,.90));
    box-shadow: 0 14px 32px rgba(22, 38, 95, .07);
}

.astronomy-card__media {
    position: relative;
    height: 132px;
    overflow: hidden;
    border-bottom: 1px solid rgba(180, 196, 225, .45);
}

.astronomy-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.astronomy-card__icon {
    position: absolute;
    top: 106px;
    left: 16px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(145deg, #324fb0, #1b2d73);
    border: 3px solid rgba(255, 255, 255, .96);
    box-shadow: 0 12px 24px rgba(27, 45, 115, .22);
}

.astronomy-card__content {
    padding: 28px 16px 18px;
}

.astronomy-card__icon .sg-icon {
    width: 24px;
    height: 24px;
}

.astronomy-card h3 {
    margin: 0 0 8px;
    color: #142457;
    font-family: var(--serif);
    font-size: 1.02rem;
    font-weight: 400;
    line-height: 1.16;
}

.astronomy-card p {
    margin: 0;
    color: #5b6982;
    font-size: .75rem;
    line-height: 1.55;
}

/* Dedicated Astronomy page */
.astronomy-page {
    overflow: hidden;
    background: #fbfcfe;
}

.astronomy-hero {
    position: relative;
    min-height: clamp(640px, 78vh, 820px);
    padding: 116px 0 92px;
    overflow: hidden;
    border-bottom: 1px solid rgba(20, 48, 95, .08);
    background: #f3f7fb;
    isolation: isolate;
}

.astronomy-hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc, #edf3f8);
}

.astronomy-hero__background::before,
.astronomy-hero__background::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.astronomy-hero__background::before {
    background:
        linear-gradient(90deg, rgba(248, 251, 254, .98) 0%, rgba(247, 250, 253, .95) 31%, rgba(244, 249, 252, .70) 49%, rgba(239, 246, 251, .22) 72%, rgba(238, 245, 250, .08) 100%),
        linear-gradient(180deg, rgba(248, 251, 253, .70) 0%, transparent 26%, rgba(235, 243, 249, .44) 100%);
}

.astronomy-hero__background::after {
    opacity: 1;
    background:
        linear-gradient(180deg, rgba(236, 245, 251, .26), transparent 30%, rgba(229, 239, 247, .30)),
        linear-gradient(90deg, rgba(239, 246, 251, .12), transparent 46%, rgba(220, 235, 246, .15));
    box-shadow: inset 0 0 120px rgba(230, 239, 246, .34);
}

.astronomy-hero__background-media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(.88) contrast(.97) brightness(1.07) hue-rotate(-3deg);
    transform: scale(1.014);
    transition: opacity .45s ease, transform 3.5s ease;
}

.astronomy-hero__background:not(.is-video-ready) .astronomy-hero__background-media {
    opacity: .98;
}

.astronomy-hero__background.is-video-ready .astronomy-hero__background-media {
    opacity: 1;
    transform: scale(1.005);
}

.astronomy-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .30), transparent 42%, rgba(235, 244, 255, .42)),
        radial-gradient(circle at 24% 68%, rgba(255, 255, 255, .66), transparent 34%);
}

.astronomy-hero__grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(420px, .78fr) minmax(520px, 1.22fr);
    gap: clamp(38px, 5vw, 82px);
    align-items: center;
}

.astronomy-hero__content {
    max-width: 680px;
    text-shadow: 0 1px 18px rgba(255, 255, 255, .82);
}

.astronomy-hero__content h1 {
    margin: 0 0 24px;
    color: #071d3f;
    font-family: var(--serif);
    font-size: clamp(3.7rem, 5.8vw, 7rem);
    font-weight: 400;
    line-height: .88;
    letter-spacing: 0;
}

.astronomy-hero__lead {
    max-width: 620px;
    margin: 0 0 28px;
    color: #344866;
    font-size: clamp(1.02rem, 1.35vw, 1.24rem);
    line-height: 1.62;
}

.astronomy-orbit-map {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgba(35, 64, 128, .10);
    border-radius: 8px;
    background:
        radial-gradient(circle at 50% 48%, rgba(52, 74, 174, .15), transparent 28%),
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(235,241,255,.88));
    box-shadow: 0 26px 72px rgba(18, 42, 82, .13);
    isolation: isolate;
}

.astronomy-orbit-map::before,
.astronomy-orbit-map::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.astronomy-orbit-map::before {
    inset: 10%;
    border: 1px solid rgba(50, 77, 160, .16);
    border-radius: 50%;
    transform: rotate(-11deg);
}

.astronomy-orbit-map::after {
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255,255,255,.40), transparent 34%, rgba(26, 45, 108, .07)),
        radial-gradient(circle at 72% 24%, rgba(112, 91, 218, .13), transparent 25%);
    z-index: 5;
}

.astronomy-orbit-map__main {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    width: min(68%, 500px);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(18, 42, 82, .14);
    transform: translate(-50%, -50%);
}

.astronomy-orbit-map__tile {
    position: absolute;
    z-index: 3;
    width: min(38%, 280px);
    height: auto;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(18, 42, 82, .12);
}

.astronomy-orbit-map__tile--photo {
    right: 6%;
    top: 9%;
}

.astronomy-orbit-map__tile--events {
    left: 7%;
    bottom: 8%;
}

.astronomy-orbit-map__node {
    position: absolute;
    z-index: 4;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 5px rgba(50, 78, 180, .16), 0 0 24px rgba(50, 78, 180, .36);
}

.astronomy-orbit-map__node--one {
    left: 19%;
    top: 24%;
}

.astronomy-orbit-map__node--two {
    right: 24%;
    bottom: 19%;
}

.astronomy-orbit-map__node--three {
    left: 52%;
    top: 12%;
}

.astronomy-pathway,
.astronomy-community {
    padding: 84px 0;
}

.astronomy-pathway {
    border-bottom: 1px solid rgba(20, 48, 95, .08);
    background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
}

.astronomy-pathway__grid {
    display: grid;
    grid-template-columns: 1.16fr repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.astronomy-pathway__item {
    width: 100%;
    min-width: 0;
    min-height: 276px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 28px;
    appearance: none;
    color: #10234d;
    text-align: left;
    font: inherit;
    border: 1px solid rgba(14, 53, 99, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.astronomy-pathway__item:focus-visible {
    outline: 3px solid rgba(43, 91, 190, .38);
    outline-offset: 4px;
}

.astronomy-pathway__item.is-active:not(.astronomy-pathway__item--featured) {
    border-color: rgba(43, 82, 176, .48);
    background: #fff;
    box-shadow: 0 18px 44px rgba(20, 48, 95, .11);
}

.astronomy-pathway__topline {
    display: flex;
    min-height: 54px;
    margin-bottom: 22px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.astronomy-pathway__icon {
    display: grid;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    place-items: center;
    color: #21449b;
    border-radius: 8px;
    background: #e8f1ff;
}

.astronomy-pathway__icon .sg-icon {
    width: 25px;
    height: 25px;
}

.astronomy-pathway__badge {
    display: inline-flex;
    max-width: 150px;
    padding: 7px 10px;
    align-items: center;
    justify-content: center;
    color: #b84d2e;
    font-size: .69rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    border: 1px solid rgba(223, 104, 68, .28);
    border-radius: 999px;
    background: rgba(223, 104, 68, .08);
}

.astronomy-pathway__title {
    display: block;
    margin-bottom: 10px;
    color: inherit;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.22;
}

.astronomy-pathway__summary {
    display: block;
    color: #58677f;
    line-height: 1.62;
}

.astronomy-pathway__action {
    display: flex;
    width: 100%;
    margin-top: auto;
    padding-top: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #21449b;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
}

.astronomy-pathway__action .sg-icon {
    width: 19px;
    height: 19px;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.astronomy-pathway__item:hover .astronomy-pathway__action .sg-icon,
.astronomy-pathway__item.is-active .astronomy-pathway__action .sg-icon {
    transform: translateX(4px);
}

.astronomy-pathway__details {
    display: grid;
    margin-top: 22px;
    scroll-margin-top: 112px;
}

.astronomy-detail {
    grid-area: 1 / 1;
    min-width: 0;
    visibility: hidden;
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    pointer-events: none;
    transition:
        opacity .42s cubic-bezier(.16, 1, .3, 1),
        transform .48s cubic-bezier(.16, 1, .3, 1),
        visibility 0s linear .48s;
}

.astronomy-detail.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
    transition-delay: .06s, .06s, 0s;
}

.astronomy-detail:focus-visible {
    outline: 3px solid rgba(43, 91, 190, .32);
    outline-offset: 5px;
}

.astronomy-detail__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(340px, .78fr);
    min-height: 610px;
    overflow: hidden;
    border: 1px solid rgba(15, 55, 104, .08);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 52px rgba(20, 48, 95, .09);
}

.astronomy-detail--featured .astronomy-detail__inner {
    border-color: rgba(223, 104, 68, .22);
    box-shadow: 0 24px 60px rgba(16, 42, 74, .12);
}

.astronomy-detail__content {
    padding: clamp(34px, 4vw, 58px);
}

.astronomy-detail__content .eyebrow {
    margin-bottom: 14px;
}

.astronomy-detail--featured .astronomy-detail__content .eyebrow {
    color: #bd4f30;
}

.astronomy-detail__content h3 {
    max-width: 820px;
    margin: 0 0 20px;
    color: #071d3f;
    font-family: var(--serif);
    font-size: clamp(2.25rem, 3.2vw, 4rem);
    font-weight: 400;
    line-height: 1.02;
}

.astronomy-detail__lead {
    max-width: 850px;
    margin: 0;
    color: #4d5e76;
    font-size: 1rem;
    line-height: 1.72;
}

.astronomy-detail__steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 30px;
    margin-top: 34px;
}

.astronomy-detail__step {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(20, 48, 95, .12);
}

.astronomy-detail__step > span {
    color: #d65d3a;
    font-family: var(--serif);
    font-size: 1.06rem;
    line-height: 1.3;
}

.astronomy-detail__step h4 {
    margin: 0 0 7px;
    color: #10234d;
    font-size: .96rem;
    line-height: 1.35;
}

.astronomy-detail__step p {
    margin: 0;
    color: #627087;
    font-size: .84rem;
    line-height: 1.58;
}

.astronomy-detail__media {
    position: relative;
    min-width: 0;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: #0d2345;
}

.astronomy-detail__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 48%, rgba(4, 15, 34, .82) 100%);
}

.astronomy-detail__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: transform 1.1s cubic-bezier(.16, 1, .3, 1), filter .6s ease;
}

.astronomy-detail__media-trigger {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #0d2345;
    cursor: zoom-in;
}

.astronomy-detail__media-trigger:focus-visible {
    outline: 3px solid #79aef8;
    outline-offset: -5px;
}

.astronomy-detail__media-trigger:hover img {
    transform: scale(1.06);
}

.astronomy-detail.is-active .astronomy-detail__media img {
    transform: scale(1.035);
}

.astronomy-detail__media[data-astronomy-photo-slot="spectroscopy"] img {
    object-position: 72% center;
    filter: saturate(.95) contrast(1.04);
}

.astronomy-detail__media figcaption {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: #fff;
    font-size: .78rem;
    line-height: 1.45;
    pointer-events: none;
}

.astronomy-detail__media-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 8px;
    background: rgba(7, 27, 55, .46);
}

.astronomy-detail__media-icon .sg-icon {
    width: 18px;
    height: 18px;
}

.astronomy-community__content h2 {
    margin: 0 0 18px;
    color: #071d3f;
    font-family: var(--serif);
    font-size: clamp(2.4rem, 3.8vw, 4.6rem);
    font-weight: 400;
    line-height: .98;
}

.astronomy-community__content p {
    margin: 0 0 22px;
    color: #4d5e76;
    font-size: 1rem;
    line-height: 1.68;
}

.astronomy-community__grid {
    display: grid;
    grid-template-columns: minmax(360px, .82fr) minmax(420px, 1fr);
    gap: clamp(34px, 5vw, 74px);
    align-items: center;
}

.astronomy-community__media {
    overflow: hidden;
    border: 1px solid rgba(15, 55, 104, .08);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.astronomy-community__media img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1180px) {
    .astronomy-hero__grid,
    .astronomy-community__grid {
        grid-template-columns: 1fr;
    }

    .astronomy-hero__content,
    .astronomy-community__content {
        max-width: 760px;
    }

    .astronomy-hero__background-media {
        object-position: 58% center;
    }

    .astronomy-orbit-map {
        min-height: 470px;
    }
}

@media (max-width: 1280px) {
    .astronomy-pathway__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .astronomy-detail__inner {
        grid-template-columns: 1fr;
    }

    .astronomy-pathway__item {
        min-height: 230px;
    }

    .astronomy-detail__media {
        min-height: auto;
        aspect-ratio: 16 / 7;
    }
}

@media (max-width: 760px) {
    .astronomy-hero {
        min-height: 620px;
        padding: 86px 0 58px;
    }

    .astronomy-hero__background::before {
        background:
            linear-gradient(90deg, rgba(248, 251, 254, .98) 0%, rgba(247, 250, 253, .94) 60%, rgba(240, 247, 251, .68) 100%),
            linear-gradient(180deg, rgba(247, 251, 253, .88) 0%, transparent 34%, rgba(235, 243, 249, .58) 100%);
    }

    .astronomy-hero__background-media {
        object-position: 56% center;
    }

    .astronomy-hero__content h1 {
        font-size: clamp(3.1rem, 15vw, 4.6rem);
    }

    .astronomy-orbit-map {
        min-height: 360px;
    }

    .astronomy-orbit-map__main {
        width: 78%;
    }

    .astronomy-orbit-map__tile {
        width: 42%;
    }

    .astronomy-pathway,
    .astronomy-community {
        padding: 62px 0;
    }

    .astronomy-pathway__item {
        min-height: 0;
        padding: 22px;
    }

    .astronomy-pathway__grid {
        grid-template-columns: 1fr;
    }

    .astronomy-pathway__topline {
        margin-bottom: 18px;
    }

    .astronomy-detail__content {
        padding: 26px 22px 30px;
    }

    .astronomy-detail__content h3 {
        font-size: clamp(2rem, 10vw, 2.85rem);
    }

    .astronomy-detail__steps {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 28px;
    }

    .astronomy-detail__media {
        aspect-ratio: 4 / 3;
    }

    .astronomy-detail__media figcaption {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }
}

/* Photographic archive: desktop and mobile */
.astronomy-pathway__action > span {
    display: grid;
    gap: 4px;
}

.astronomy-pathway__action small {
    color: #6b7890;
    font-size: .67rem;
    font-weight: 600;
}

.astronomy-page .astronomy-pathway__item--featured .astronomy-pathway__action small {
    color: rgba(255, 226, 214, .7);
}

.astronomy-detail[aria-hidden="true"] {
    display: none;
}

.astronomy-gallery {
    padding: clamp(30px, 4vw, 48px) 0 8px;
}

.astronomy-gallery__header {
    display: flex;
    margin-bottom: 20px;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.astronomy-gallery__header .eyebrow {
    margin-bottom: 6px;
}

.astronomy-gallery__header h4 {
    margin: 0;
    color: #071d3f;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 2.7vw, 2.8rem);
    font-weight: 400;
    line-height: 1.05;
}

.astronomy-gallery__count {
    flex: none;
    padding: 7px 10px;
    color: #445773;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid rgba(17, 54, 100, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
}

.astronomy-gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 238px), 1fr));
    grid-auto-rows: 210px;
    gap: 12px;
}

.astronomy-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    color: #fff;
    text-align: left;
    border: 0;
    border-radius: 6px;
    background: #07172f;
    box-shadow: 0 10px 28px rgba(8, 29, 60, .11);
    cursor: zoom-in;
    isolation: isolate;
}

.astronomy-gallery__item:focus-visible {
    outline: 3px solid rgba(44, 104, 211, .5);
    outline-offset: 3px;
}

.astronomy-gallery__image {
    position: absolute;
    inset: 0;
    display: block;
}

.astronomy-gallery__image::after {
    content: "";
    position: absolute;
    inset: 34% 0 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(2, 11, 26, .86));
}

.astronomy-gallery__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.002);
    transition: transform .75s cubic-bezier(.16, 1, .3, 1), filter .45s ease;
}

.astronomy-gallery__item:hover .astronomy-gallery__image img,
.astronomy-gallery__item:focus-visible .astronomy-gallery__image img {
    filter: saturate(1.06) contrast(1.02);
    transform: scale(1.045);
}

.astronomy-gallery__caption {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 14px;
    left: 16px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.astronomy-gallery__caption strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: .83rem;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .36);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.astronomy-gallery__caption > span {
    color: rgba(255, 255, 255, .7);
    font-family: var(--serif);
    font-size: .76rem;
}

@media (min-width: 900px) {
    .astronomy-gallery--events .astronomy-gallery__item:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

.astronomy-community__media--gallery {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.astronomy-community__gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 12px;
}

.astronomy-community__gallery .astronomy-gallery__item:first-child {
    grid-row: span 2;
}

body.has-astronomy-lightbox {
    overflow: hidden;
}

.astronomy-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    padding: clamp(54px, 6vw, 86px) clamp(58px, 7vw, 112px) 38px;
    place-items: center;
    color: #fff;
    background: rgba(2, 9, 22, .94);
    backdrop-filter: blur(16px) saturate(115%);
    isolation: isolate;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility 0s linear .22s;
}

.astronomy-lightbox[hidden] {
    display: none;
}

.astronomy-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.astronomy-lightbox__figure {
    position: relative;
    z-index: 1;
    width: min(100%, 1500px);
    max-height: 100%;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 18px;
    margin: 0;
}

.astronomy-lightbox__media {
    min-height: 0;
    display: grid;
    place-items: center;
    background: #020916;
}

.astronomy-lightbox__media img {
    display: block;
    max-width: 100%;
    max-height: min(74svh, 860px);
    object-fit: contain;
    opacity: 1 !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    background: #020916;
    border-radius: 4px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}

.astronomy-lightbox__caption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: start;
}

.astronomy-lightbox__caption h2 {
    margin: 0 0 6px;
    color: #fff;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.2vw, 2.25rem);
    font-weight: 400;
    line-height: 1.1;
}

.astronomy-lightbox__caption p {
    max-width: 900px;
    margin: 0;
    color: rgba(235, 241, 250, .72);
    font-size: .84rem;
    line-height: 1.55;
}

.astronomy-lightbox__caption > span {
    padding-top: 5px;
    color: rgba(255, 255, 255, .62);
    font-family: var(--serif);
}

.astronomy-lightbox__close,
.astronomy-lightbox__nav {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 46px;
    height: 46px;
    padding: 0;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.astronomy-lightbox__close:hover,
.astronomy-lightbox__nav:hover {
    border-color: rgba(255, 255, 255, .48);
    background: rgba(255, 255, 255, .16);
}

.astronomy-lightbox__close:focus-visible,
.astronomy-lightbox__nav:focus-visible {
    outline: 3px solid rgba(133, 181, 255, .58);
    outline-offset: 3px;
}

.astronomy-lightbox__close {
    top: 22px;
    right: 24px;
}

.astronomy-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
}

.astronomy-lightbox__nav:hover {
    transform: translateY(-50%) scale(1.04);
}

.astronomy-lightbox__nav--previous {
    left: 24px;
}

.astronomy-lightbox__nav--previous .sg-icon {
    transform: rotate(180deg);
}

.astronomy-lightbox__nav--next {
    right: 24px;
}

.astronomy-lightbox__close .sg-icon,
.astronomy-lightbox__nav .sg-icon {
    width: 22px;
    height: 22px;
}

@media (max-width: 760px) {
    .astronomy-gallery__header {
        align-items: start;
    }

    .astronomy-gallery__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 170px;
        gap: 8px;
    }

    .astronomy-community__gallery {
        grid-auto-rows: 150px;
        gap: 8px;
    }

    .astronomy-lightbox {
        padding: 62px 14px 24px;
    }

    .astronomy-lightbox__figure {
        gap: 14px;
    }

    .astronomy-lightbox__media img {
        max-height: 68svh;
    }

    .astronomy-lightbox__caption {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .astronomy-lightbox__caption p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .astronomy-lightbox__close {
        top: 12px;
        right: 12px;
    }

    .astronomy-lightbox__nav {
        top: auto;
        bottom: 18px;
        transform: none;
    }

    .astronomy-lightbox__nav:hover {
        transform: scale(1.04);
    }

    .astronomy-lightbox__nav--previous {
        left: 14px;
    }

    .astronomy-lightbox__nav--next {
        right: 14px;
    }
}

@media (max-width: 460px) {
    .astronomy-gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }

    .astronomy-gallery__count {
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .astronomy-gallery__image img,
    .astronomy-lightbox,
    .astronomy-lightbox__close,
    .astronomy-lightbox__nav {
        transition-duration: .01ms !important;
    }
}

/* ========================================================================== 
   V48.2.4 — Astronomy shell integration
   Preserve the v46 Astrorane media/gallery system, but align the opening
   section with the visual language used by Home / Professional / Projects.
   ========================================================================== */
.astronomy-page {
    background: var(--paper);
    color: var(--ink);
}

.astronomy-page .container-wide {
    width: var(--shell);
}

.astronomy-hero {
    min-height: 100svh;
    padding: 150px 0 58px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.astronomy-hero__background {
    background: var(--paper);
}

.astronomy-hero__background::before {
    background:
        linear-gradient(90deg,
            rgba(243, 240, 233, .995) 0%,
            rgba(243, 240, 233, .985) 25%,
            rgba(243, 240, 233, .91) 43%,
            rgba(243, 240, 233, .48) 63%,
            rgba(243, 240, 233, .16) 82%,
            rgba(243, 240, 233, .08) 100%),
        linear-gradient(180deg, rgba(243, 240, 233, .80) 0%, transparent 26%, rgba(243, 240, 233, .35) 100%);
}

.astronomy-hero__background::after {
    opacity: 1;
    background-image:
        linear-gradient(rgba(16,23,34,.038) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16,23,34,.038) 1px, transparent 1px),
        linear-gradient(180deg, rgba(243,240,233,.44), transparent 32%, rgba(243,240,233,.42));
    background-size: 80px 80px, 80px 80px, auto;
    mask-image: linear-gradient(to bottom, #000, rgba(0,0,0,.7) 72%, transparent 100%);
    box-shadow: none;
}

.astronomy-hero::before {
    background:
        radial-gradient(circle at 23% 68%, rgba(255,255,255,.36), transparent 31%),
        linear-gradient(180deg, transparent 58%, rgba(243,240,233,.40));
}

.astronomy-hero__background-media {
    object-position: 58% center;
    filter: saturate(.78) contrast(.98) brightness(1.02);
    transform: scale(1.01);
}

.astronomy-hero__grid {
    min-height: calc(100svh - 235px);
    grid-template-columns: minmax(400px, .88fr) minmax(520px, 1.12fr);
    gap: 3vw;
    align-items: center;
}

.astronomy-hero__content {
    max-width: 690px;
    text-shadow: none;
}

.astronomy-hero__content .eyebrow {
    color: var(--muted);
}

.astronomy-hero__content .eyebrow span {
    color: var(--ink);
}

.astronomy-hero__content h1 {
    margin: 0 0 2rem;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(4rem, 7.2vw, 8rem);
    font-weight: 400;
    line-height: .88;
    letter-spacing: -.035em;
}

.astronomy-hero__lead {
    max-width: 650px;
    margin: 0 0 2rem;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.35vw, 1.3rem);
    line-height: 1.62;
}

.astronomy-hero .button-row {
    align-items: center;
}

.astronomy-hero .text-link {
    color: var(--ink);
}

/* The astronomy area can retain its own content identity without looking
   like a separate website: use the current site's paper and neutral borders. */
.astronomy-pathway {
    background: var(--paper-light);
    border-bottom: 1px solid var(--line);
}

.astronomy-page .section-heading h2 {
    color: var(--ink);
    font-family: var(--serif);
}

.astronomy-page .section-heading__icon,
.astronomy-heading__icon {
    color: var(--amber);
}

.astronomy-page .section-heading__line {
    background: linear-gradient(90deg, var(--amber), transparent);
}

@media (max-width: 1180px) {
    .astronomy-hero__grid {
        grid-template-columns: minmax(0, 760px) 1fr;
    }
}

@media (max-width: 760px) {
    .astronomy-hero {
        min-height: 100svh;
        padding: 118px 0 54px;
    }

    .astronomy-hero__grid {
        min-height: calc(100svh - 172px);
        grid-template-columns: 1fr;
    }

    .astronomy-hero__background::before {
        background:
            linear-gradient(90deg, rgba(243,240,233,.985) 0%, rgba(243,240,233,.94) 66%, rgba(243,240,233,.58) 100%),
            linear-gradient(180deg, rgba(243,240,233,.84) 0%, transparent 30%, rgba(243,240,233,.52) 100%);
    }

    .astronomy-hero__background-media {
        object-position: 63% center;
    }

    .astronomy-hero__content h1 {
        font-size: clamp(3.7rem, 16vw, 6rem);
    }
}
