.photo-page {
    --photo-panel: rgba(255, 255, 255, .035);
    --photo-border: rgba(255, 255, 255, .12);
    --photo-muted: rgba(234, 234, 234, .72);
    padding-bottom: 2rem;
}

.photo-breadcrumbs {
    margin: .35rem 0 1.5rem;
    font-size: .9rem;
    color: var(--photo-muted);
}

.photo-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
}

.photo-breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: .45rem;
    opacity: .55;
}

.photo-breadcrumbs a:hover,
.photo-breadcrumbs a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.photo-page__header {
    max-width: 900px;
    margin-bottom: 1.4rem;
}

.photo-page__header h1 {
    margin: .25rem 0 .65rem;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.photo-page__kicker {
    margin: 0 0 .45rem;
    color: #D9823B;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.photo-page__summary {
    max-width: 780px;
    color: var(--photo-muted);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.65;
}

.photo-page__figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--photo-border);
    border-radius: 18px;
    background: #06070a;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.photo-page__image {
    width: 100%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 0 !important;
    background: #050608;
}

.photo-page__figure figcaption {
    padding: .85rem 1rem 1rem;
    border-top: 1px solid var(--photo-border);
    color: var(--photo-muted);
    font-size: .92rem;
    line-height: 1.55;
}

.photo-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
    margin: 1rem 0 2rem;
}

.photo-page__actions .me-save-image {
    position: static;
    min-height: 40px;
}

.photo-page__primary-action {
    border-color: rgba(217, 130, 59, .72);
    background: rgba(217, 130, 59, .16);
}

.photo-page__primary-action:hover,
.photo-page__primary-action:focus-visible {
    background: rgba(217, 130, 59, .26);
}

.photo-page__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(260px, .75fr);
    gap: 1.5rem;
    align-items: start;
}

.photo-page__copy {
    display: grid;
    gap: 1.25rem;
}

.photo-page__section,
.photo-page__details {
    border: 1px solid var(--photo-border);
    border-radius: 16px;
    background: var(--photo-panel);
}

.photo-page__section {
    padding: clamp(1.15rem, 3vw, 1.75rem);
}

.photo-page__section h2,
.photo-page__details h3,
.photo-page__related h3 {
    margin: 0 0 .9rem;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.photo-page__section p {
    margin: 0 0 1rem;
    color: rgba(234, 234, 234, .86);
    font-size: 1rem;
    line-height: 1.75;
}

.photo-page__section p:last-child {
    margin-bottom: 0;
}

.photo-page__details {
    position: sticky;
    top: 88px;
    padding: 1.25rem;
}

.photo-page__detail-list {
    display: grid;
}

.photo-page__detail-list > div {
    display: grid;
    grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr);
    gap: .8rem;
    padding: .75rem 0;
    border-top: 1px solid var(--photo-border);
}

.photo-page__detail-list dt {
    color: var(--photo-muted);
    font-size: .84rem;
    font-weight: 700;
}

.photo-page__detail-list dd {
    margin: 0;
    text-align: right;
    overflow-wrap: anywhere;
}

.photo-page__link-group {
    margin-top: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--photo-border);
}

.photo-page__link-group h4 {
    margin: 0 0 .65rem;
    font-size: .95rem;
    font-weight: 800;
}

.photo-page__link-group ul {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.photo-page__link-group a {
    display: inline-flex;
    color: rgba(234, 234, 234, .82);
    font-size: .84rem;
}

.photo-page__link-group a:hover,
.photo-page__link-group a:focus-visible {
    border-color: rgba(217, 130, 59, .72);
    color: #fff;
}

.photo-page__related {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--photo-border);
}

.photo-page__related-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.photo-page__related-heading h3 {
    margin-bottom: 0;
}

.photo-page__related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.photo-related-card {
    overflow: hidden;
    border: 1px solid var(--photo-border);
    border-radius: 14px;
    background: var(--photo-panel);
}

.photo-related-card a {
    display: block;
    height: 100%;
}

.photo-related-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0 !important;
    transition: transform 180ms ease;
}

.photo-related-card span {
    display: block;
    padding: .85rem .9rem 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.photo-related-card a:hover img,
.photo-related-card a:focus-visible img {
    transform: scale(1.015);
}

.photo-related-card a:hover span,
.photo-related-card a:focus-visible span {
    color: #D9823B;
}

.photo-page__copyright {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--photo-border);
    color: var(--photo-muted);
    font-size: .82rem;
    line-height: 1.55;
}


@media (max-width: 860px) {
    .photo-page__layout {
        grid-template-columns: 1fr;
    }

    .photo-page__details {
        position: static;
    }

    .photo-page__related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .photo-page__header h1 {
        font-size: clamp(2rem, 11vw, 3rem);
    }

    .photo-page__actions {
        align-items: stretch;
    }

    .photo-page__actions > * {
        justify-content: center;
        width: 100%;
        text-align: center;
    }

    .photo-page__detail-list > div {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .photo-page__detail-list dd {
        text-align: left;
    }

    .photo-page__related-heading {
        align-items: start;
        flex-direction: column;
    }

    .photo-page__related-grid {
        grid-template-columns: 1fr;
    }
}

@media print {
    .photo-breadcrumbs,
    .photo-page__actions,
    .photo-page__related {
        display: none !important;
    }

    .photo-page__layout {
        display: block;
    }

    .photo-page__details {
        margin-top: 1rem;
    }
}
