.nlrel-open-house {
    margin: 0;
    background: #081222;
}

.nlrel-display {
    --display-gold: #ecd297;
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: end;
    box-sizing: border-box;
    min-height: clamp(480px, 62vw, 650px);
    overflow: hidden;
    border: 1px solid #ae8d51;
    border-radius: 14px;
    background: #081222 url("/NLREL/assets/coastal-poster.jpg") center / cover;
    color: var(--display-gold);
    font-family: Georgia, serif;
}

.nlrel-display video,
.nlrel-display::before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.nlrel-display video {
    z-index: -2;
    object-fit: cover;
    object-position: 64% center;
}

.nlrel-display video[data-failed] {
    visibility: hidden;
}

.nlrel-display::before {
    z-index: -1;
    content: "";
    background: linear-gradient(0deg, #081222 0%, #081222de 18%, #08122279 42%, transparent 70%);
}

.nlrel-display-copy {
    padding: 2rem clamp(1.25rem, 6vw, 6rem) 5rem;
    text-shadow: 0 2px 16px #081222;
}

.nlrel-display h1 {
    max-width: 18ch;
    margin: 0;
    color: var(--display-gold);
    font-size: clamp(2.3rem, 5.4vw, 5.4rem);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.025em;
    text-wrap: balance;
}

.nlrel-display-tagline {
    margin: .9rem 0 1.55rem;
    color: #f4e8cf;
    font-size: clamp(1.05rem, 2.2vw, 1.65rem);
    font-style: italic;
}

.nlrel-display-domain,
.nlrel-display-credit {
    margin: .15rem 0;
    line-height: 1.45;
}

.nlrel-display-domain {
    font-size: 1.1rem;
    letter-spacing: .12em;
}

.nlrel-display-credit {
    color: #f4e8cf;
    font-size: .9rem;
}

.nlrel-display-actions {
    position: absolute;
    inset: auto 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
    font: .8rem/1.25 system-ui, sans-serif;
}

.nlrel-display-actions a,
.nlrel-display-actions button {
    padding: .65rem .8rem;
    border: 1px solid #bc9b60;
    border-radius: 5px;
    background: #081222e8;
    color: var(--display-gold);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.nlrel-display-actions [hidden] {
    display: none;
}

.nlrel-display-actions :is(a, button):hover,
.nlrel-display-actions :is(a, button):focus-visible {
    background: #26364c;
    outline: 2px solid var(--display-gold);
    outline-offset: 2px;
}

.nlrel-open-house .nlrel-display {
    min-height: 100vh;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
}

.nlrel-open-house .nlrel-display:fullscreen {
    width: 100%;
    height: 100%;
    min-height: 0;
}

.nlrel-open-house .nlrel-display-actions {
    transition: opacity .2s ease;
}

.nlrel-open-house [data-idle] .nlrel-display-actions:not(:focus-within):not(:hover) {
    opacity: 0;
}

@media (max-width: 540px) {
    .nlrel-display-copy {
        padding-bottom: 7rem;
    }

    .nlrel-display-actions {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nlrel-open-house .nlrel-display-actions {
        transition: none;
    }
}
