/* Second display face the original used for letters Impact lacks (č, ř, ě...). */
@font-face {
    font-family: "Impacted Regular";
    src: url("/assets/fonts/impacted-regular.woff2") format("woff2");
    font-display: swap;
}

/* Without JavaScript, show everything instead of leaving animated elements hidden. */
html:not(.js) .transition,
html:not(.js) .transition [data-animation-role] {
    opacity: 1 !important;
    transform: none !important;
}

.block-blog-list-item[hidden] {
    display: none !important;
}

/* Map placeholder until the visitor agrees to load Google Maps. */
.np-map-load {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 24px);
    z-index: 3;
    padding: 12px 26px;
    border: 0;
    border-radius: 999px;
    background: rgb(80, 49, 38);
    color: #fff;
    font-family: "Hero Light Regular", sans-serif;
    font-size: 15px;
    cursor: pointer;
}
.np-map-load:hover {
    background: rgb(62, 37, 28);
}
.np-map-load:focus-visible {
    outline: 2px solid rgb(80, 49, 38);
    outline-offset: 3px;
}

/* Gallery lightbox. */
.np-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 13, 11, 0.92);
    padding: 48px 64px;
}
.np-lightbox[hidden] {
    display: none;
}
.np-lightbox__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.np-lightbox button {
    position: absolute;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    padding: 12px 16px;
}
.np-lightbox button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.np-lightbox__close { top: 8px; right: 12px; }
.np-lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.np-lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
    .np-lightbox { padding: 56px 12px; }
    .np-lightbox__prev, .np-lightbox__next { top: auto; bottom: 8px; transform: none; }
}

/* The site fonts come in a single weight. Headings set to bold (Impact at 700/900) were
   being thickened artificially by the browser, which smeared the letters; render the
   fonts as they are instead. Italics are left alone. */
*, *::before, *::after {
    font-synthesis: style;
}
/* Text set bold in Hero Light Regular uses the family's real bold cut. */
@font-face {
    font-family: "Hero Light Regular";
    src: url("/assets/fonts/hero-light-bold-regular.woff2") format("woff2");
    font-weight: 600 900;
    font-display: swap;
}

/* Instagram feed on phones: as wide as the blog posts above it. */
@media screen and (max-width: 920px) {
    #ziZUZd .block-layout {
        max-width: none;
        padding-left: 16px;
        padding-right: 16px;
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Blog page title, in the same style as the other page titles. */
.np-page-title {
    margin: 0 0 40px;
    font-family: "Impact Regular", sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.3;
    color: rgb(80, 49, 38);
    text-align: center;
}

/* ASCENT credit under the footer. */
.np-credit {
    display: flex;
    justify-content: center;
    padding: 0 16px 28px;
}
.np-credit a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Hero Light Regular", sans-serif;
    font-size: 14px;
    color: rgb(26, 26, 26);
    text-decoration: none;
}
.np-credit img {
    height: 13px;
    width: auto;
    opacity: 0.8;
}
.np-credit a:hover img {
    opacity: 1;
}

/* Gallery photos open full screen on click. */
.grid-gallery .image,
.slideshow img.slide {
    cursor: zoom-in;
}
.np-lightbox:focus {
    outline: none;
}
