.astrophotography-detail-page {
    background: rgb(249, 248, 245);
    color: rgb(29, 29, 28);
}

.astrophotography-detail {
    padding: calc(var(--site-header-solid-height, 60px) + clamp(3rem, 6vw, 5.5rem)) 0
        clamp(5rem, 9vw, 8rem);
}

.astrophotography-detail__container {
    max-width: 1320px;
}

.astrophotography-detail__eyebrow-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(210, 208, 201);
}

.astrophotography-detail__eyebrow-row a {
    color: rgb(92, 90, 85);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.astrophotography-detail__eyebrow-row a:hover {
    color: rgb(29, 29, 28);
}

.astrophotography-detail__eyebrow-row a:focus-visible {
    outline: 2px solid rgb(29, 29, 28);
    outline-offset: 0.3rem;
}

.astrophotography-detail__cover {
    overflow: hidden;
    width: 100%;
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    background: rgb(225, 224, 220);
}

.astrophotography-detail__cover img {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(76vh, 52rem);
    object-fit: cover;
    object-position:
        var(--astrophotography-cover-focal-x, 50%)
        var(--astrophotography-cover-focal-y, 50%);
    transform: scale(var(--astrophotography-cover-zoom, 1));
    transform-origin:
        var(--astrophotography-cover-focal-x, 50%)
        var(--astrophotography-cover-focal-y, 50%);
}

.astrophotography-detail__header {
    width: min(100%, 52rem);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.astrophotography-detail__header h1 {
    margin: 0;
    color: rgb(25, 25, 24);
    font-family: var(--font-cjk-primary), var(--font-cjk-secondary), sans-serif;
    font-size: clamp(1.75rem, 3.25vw, 3rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.35;
    text-wrap: balance;
}

.astrophotography-detail__header p {
    margin: 1.25rem 0 0;
    color: rgb(83, 81, 77);
    font-family: var(--font-cjk-primary), var(--font-cjk-secondary), sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.95;
}

.astrophotography-detail__metadata {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: 1.5rem clamp(1.5rem, 4vw, 3rem);
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
    border-block: 1px solid rgb(218, 216, 210);
}

.astrophotography-detail__metadata-item {
    min-width: 0;
}

.astrophotography-detail__metadata dt {
    margin: 0 0 0.35rem;
    color: rgb(121, 119, 113);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.astrophotography-detail__metadata dd {
    margin: 0;
    color: rgb(58, 57, 54);
    font-family: var(--font-cjk-primary), var(--font-cjk-secondary), sans-serif;
    font-size: 0.875rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.astrophotography-detail__album-heading {
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding-bottom: 1rem;
    border-bottom: 1px solid rgb(210, 208, 201);
}

.astrophotography-detail__album-heading h2 {
    margin: 0;
    color: rgb(29, 29, 28);
    font-family: var(--font-latin), sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.astrophotography-detail-place-records {
    margin-top: clamp(4.5rem, 8vw, 7rem);
    padding-top: clamp(1.5rem, 3vw, 2.75rem);
    border-top: 1px solid rgb(210, 208, 201);
}

.astrophotography-detail-place-records__heading {
    margin: 0 0 clamp(1.5rem, 3vw, 2.5rem);
    color: rgb(121, 119, 113);
    font-family:
        var(--font-latin),
        var(--font-cjk-primary),
        var(--font-cjk-secondary),
        sans-serif;
    font-size: clamp(1.05rem, 1.2vw, 1.2rem);
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.6;
}

.astrophotography-detail-place-records__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.astrophotography-detail-work-card {
    min-width: 0;
}

.astrophotography-detail-work-card__link {
    display: block;
    color: rgb(35, 35, 33);
    text-decoration: none;
}

.astrophotography-detail-work-card__link:focus-visible {
    outline: 3px solid rgb(35, 35, 33);
    outline-offset: 0.3rem;
}

.astrophotography-detail-work-card__media {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: rgb(226, 225, 221);
}

.astrophotography-detail-work-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.3, 0.1, 0.58, 1);
}

.astrophotography-detail-work-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.2rem 1rem;
    align-items: center;
    margin-top: 0.9rem;
}

.astrophotography-detail-work-card__title,
.astrophotography-detail-work-card__description,
.astrophotography-detail-work-card__date {
    grid-column: 1;
    overflow-wrap: anywhere;
}

.astrophotography-detail-work-card__title {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    font-weight: 500;
    line-height: 1.6;
}

.astrophotography-detail-work-card__description {
    display: -webkit-box;
    margin-top: 0.15rem;
    overflow: hidden;
    color: rgb(86, 84, 80);
    font-size: 0.8125rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.astrophotography-detail-work-card__date {
    color: rgb(112, 110, 105);
    font-size: 0.75rem;
    letter-spacing: 0.025em;
    line-height: 1.6;
}

.astrophotography-detail-work-card__arrow {
    grid-column: 2;
    grid-row: 1 / -1;
    font-family: var(--font-latin), sans-serif;
    transition: transform 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .astrophotography-detail-work-card__link:hover img {
        transform: scale(1.015);
    }

    .astrophotography-detail-work-card__link:hover
        .astrophotography-detail-work-card__arrow {
        transform: translateX(0.25rem);
    }
}

html:lang(ko) .astrophotography-detail__header,
html:lang(ko) .astrophotography-detail__metadata {
    word-break: keep-all;
    overflow-wrap: break-word;
}

html:lang(ja) .astrophotography-detail__header,
html:lang(ja) .astrophotography-detail__metadata {
    line-break: strict;
    overflow-wrap: anywhere;
}

@media (max-width: 991.98px) {
    .astrophotography-detail-place-records__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .astrophotography-detail-place-records__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 500px) {
    .astrophotography-detail__eyebrow-row {
        align-items: flex-start;
    }

    .astrophotography-detail__eyebrow-row a {
        text-align: right;
    }

    .astrophotography-detail__metadata {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .astrophotography-detail-work-card__media img,
    .astrophotography-detail-work-card__arrow {
        transition-duration: 0.01ms !important;
    }
}
