﻿/* /billeder/{imageId}: server-rendered version of the former JS image stage. */
/* Loaded after mo-searchdiscovery.css. The search results page is not affected. */
.mo-sd.mo-image-detail .image-detail-shell.is-page {
    max-width: 1450px;
    padding: 20px 24px 80px;
}

.mo-sd.mo-image-detail .image-detail-frame {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .65fr);
    align-items: stretch;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
    overflow: visible;
}

.mo-sd.mo-image-detail .image-stage {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: min(760px, calc(100dvh - 155px));
    background: #111;
    color: #fff;
    overflow: hidden;
}

.mo-sd.mo-image-detail .stage-header {
    background: #111;
    padding: 16px 18px;
    min-height: 100px;
}

.mo-sd.mo-image-detail .stage-kicker {
    color: #aaa;
}

.mo-sd.mo-image-detail .stage-title {
    color: #fff;
    font-size: clamp(21px, 2vw, 28px);
}

.mo-sd.mo-image-detail .stage-header-actions {
    white-space: nowrap;
}

/* Override the old demo's fixed 640:430 SVG stage geometry. Real images vary in aspect ratio. */
.mo-sd.mo-image-detail .stage-media {
    position: relative;
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    overflow: hidden;
    background: #f0f0f0;
}

.mo-sd.mo-image-detail .stage-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    cursor: default;
}

    .mo-sd.mo-image-detail .stage-picture img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

.mo-sd.mo-image-detail .stage-no-image {
    padding: 2rem;
    text-align: center;
    color: #444;
}

.mo-sd.mo-image-detail .stage-footer {
    min-height: 67px;
    padding: 10px 12px;
    background: #111;
}

.mo-sd.mo-image-detail .stage-icon {
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-family: var(--sans);
}

.mo-sd.mo-image-detail .stage-context {
    color: #aaa;
    font-size: 11px;
    letter-spacing: .03em;
}

.mo-sd.mo-image-detail .image-detail-info {
    min-width: 0;
    padding: 24px 26px 32px;
    border-left: 1px solid #e2e2e2;
    overflow: auto;
    max-height: min(760px, calc(100dvh - 155px));
    background: #fff;
    scroll-margin-top: 1rem;
}

.mo-sd.mo-image-detail .image-detail-heading {
    padding: 0 0 18px;
    border-bottom: 1px solid #ddd;
}

    .mo-sd.mo-image-detail .image-detail-heading .eyebrow {
        font-size: 11px;
        margin-bottom: 12px;
        text-transform: uppercase;
        letter-spacing: .09em;
    }

    .mo-sd.mo-image-detail .image-detail-heading .section-copy {
        color: #414141;
        font-size: 14px;
        line-height: 1.65;
        overflow-wrap: anywhere;
    }

.mo-sd.mo-image-detail .detail-meta-grid {
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    gap: 0;
}

    .mo-sd.mo-image-detail .detail-meta-grid > div {
        padding: 16px 0;
        border-bottom: 1px solid #ddd;
        min-width: 0;
    }

    .mo-sd.mo-image-detail .detail-meta-grid dt {
        margin-bottom: 9px;
        color: #5e5e5e;
        font-weight: 750;
        font-size: 11px;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .mo-sd.mo-image-detail .detail-meta-grid dd {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

.mo-sd.mo-image-detail .image-detail-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.mo-sd.mo-image-detail .image-detail-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid #ddd;
    border-radius: 99px;
    background: #fff;
    color: #161616;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.25;
}

.mo-sd.mo-image-detail a.image-detail-pill:hover,
.mo-sd.mo-image-detail a.image-detail-pill:focus-visible {
    border-color: #333;
    background: #f4f4f4;
}

.mo-sd.mo-image-detail .image-detail-pill--plain {
    cursor: default;
}

.mo-sd.mo-image-detail .detail-follow {
    max-width: none;
    margin-top: 24px;
}

    .mo-sd.mo-image-detail .detail-follow .modal-actions-title {
        margin: 0 0 12px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .mo-sd.mo-image-detail .detail-follow .modal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

        .mo-sd.mo-image-detail .detail-follow .modal-actions a {
            display: flex;
            align-items: center;
            min-height: 80px;
            border: 1px solid #ddd;
            border-radius: 10px;
            padding: 12px;
            color: #111;
            background: #fff;
            font-size: 13px;
            text-decoration: none;
            overflow-wrap: anywhere;
        }

            .mo-sd.mo-image-detail .detail-follow .modal-actions a:hover,
            .mo-sd.mo-image-detail .detail-follow .modal-actions a:focus-visible {
                background: #f4f4f4;
                border-color: #777;
            }

@media (max-width: 980px) {
    .mo-sd.mo-image-detail .image-detail-frame {
        grid-template-columns: minmax(0, 1fr);
    }

    .mo-sd.mo-image-detail .image-stage {
        min-height: 570px;
    }

    .mo-sd.mo-image-detail .image-detail-info {
        max-height: none;
        overflow: visible;
        border-left: 0;
        border-top: 1px solid #ddd;
    }
}

@media (max-width: 600px) {
    .mo-sd.mo-image-detail .image-detail-shell.is-page {
        padding: 0 0 48px;
    }

    .mo-sd.mo-image-detail .image-stage {
        min-height: 65dvh;
    }

    .mo-sd.mo-image-detail .stage-header {
        min-height: 84px;
        padding: 12px;
    }

    .mo-sd.mo-image-detail .stage-title {
        font-size: 21px;
    }

    .mo-sd.mo-image-detail .stage-media {
        min-height: 40dvh;
    }

    .mo-sd.mo-image-detail .stage-context {
        display: none;
    }

    .mo-sd.mo-image-detail .image-detail-info {
        padding: 22px 18px 36px;
    }
}
