.ngl-page,
.ngl-page * {
    box-sizing: border-box;
}

.ngl-page {
    --ngl-green: #274f43;
    --ngl-gold: #b7975b;
    --ngl-cream: #f7f3ec;
    --ngl-ink: #252525;
    background: #fff;
    color: var(--ngl-ink);
    width: 100%;
}

.ngl-hero {
    background: var(--ngl-cream);
    width: 100%;
    overflow: hidden;
}

.ngl-hero img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: cover;
    object-position: center;
}

.ngl-content {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 90px;
}

.ngl-heading {
    margin: 0 auto 40px;
    text-align: center;
}

.ngl-heading p {
    color: var(--ngl-gold);
    font-size: clamp(0.76rem, 1.5vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin: 0 0 9px;
    text-transform: uppercase;
}

.ngl-heading h1 {
    color: var(--ngl-green);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 4.2vw, 3.65rem);
    font-weight: 500;
    line-height: 1.1;
    margin: 0;
}

.ngl-heading-line {
    background: var(--ngl-gold);
    display: block;
    height: 2px;
    margin: 20px auto 0;
    width: 64px;
}

.ngl-grid {
    column-count: 3;
    column-gap: 18px;
}

.ngl-item {
    break-inside: avoid;
    margin: 0 0 18px;
    overflow: hidden;
    position: relative;
}

.ngl-open {
    appearance: none;
    background: #eee;
    border: 0;
    cursor: zoom-in;
    display: block;
    margin: 0;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.ngl-open::after {
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.28));
    content: '';
    inset: 0;
    opacity: 0;
    position: absolute;
    transition: opacity 180ms ease;
}

.ngl-open img {
    display: block;
    height: auto;
    transform: scale(1.001);
    transition: transform 450ms ease;
    width: 100%;
}

.ngl-open:hover img,
.ngl-open:focus-visible img {
    transform: scale(1.035);
}

.ngl-open:hover::after,
.ngl-open:focus-visible::after {
    opacity: 1;
}

.ngl-open:focus-visible {
    outline: 3px solid var(--ngl-gold);
    outline-offset: 3px;
}

.ngl-zoom {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    bottom: 14px;
    color: var(--ngl-green);
    display: flex;
    font-size: 1.5rem;
    height: 42px;
    justify-content: center;
    opacity: 0;
    position: absolute;
    right: 14px;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
    width: 42px;
    z-index: 1;
}

.ngl-open:hover .ngl-zoom,
.ngl-open:focus-visible .ngl-zoom {
    opacity: 1;
    transform: translateY(0);
}

.ngl-notice {
    align-items: flex-start;
    background: var(--ngl-cream);
    border-left: 4px solid var(--ngl-gold);
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 30px auto;
    max-width: 850px;
    padding: 22px 24px;
}

.ngl-notice code {
    overflow-wrap: anywhere;
}

.ngl-lightbox[hidden] {
    display: none;
}

.ngl-lightbox {
    align-items: center;
    background: rgba(10, 14, 13, 0.96);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 64px 78px 42px;
    position: fixed;
    z-index: 999999;
}

.ngl-lightbox-stage {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.ngl-lightbox-stage img {
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.5);
    display: block;
    max-height: calc(100vh - 135px);
    max-width: 100%;
    object-fit: contain;
}

.ngl-lightbox-stage p {
    color: #fff;
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    margin: 13px 0 0;
}

.ngl-close,
.ngl-nav {
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    position: absolute;
}

.ngl-close {
    font-size: 2rem;
    height: 46px;
    right: 20px;
    top: 18px;
    width: 46px;
}

.ngl-nav {
    font-size: 3rem;
    height: 58px;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
}

.ngl-prev { left: 14px; }
.ngl-next { right: 14px; }

.ngl-close:hover,
.ngl-nav:hover,
.ngl-close:focus-visible,
.ngl-nav:focus-visible {
    background: var(--ngl-gold);
    border-color: var(--ngl-gold);
    outline: none;
}

body.ngl-lightbox-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .ngl-grid { column-count: 2; }
    .ngl-content { padding-top: 48px; }
}

@media (max-width: 600px) {
    .ngl-hero img {
        min-height: 220px;
        object-fit: cover;
    }

    .ngl-content {
        padding: 38px 0 60px;
        width: min(100% - 24px, 1240px);
    }

    .ngl-heading { margin-bottom: 28px; }
    .ngl-grid { column-count: 1; }
    .ngl-item { margin-bottom: 12px; }
    .ngl-zoom { opacity: 1; transform: none; }

    .ngl-lightbox { padding: 65px 10px 75px; }
    .ngl-lightbox-stage img { max-height: calc(100vh - 160px); }
    .ngl-nav {
        bottom: 10px;
        top: auto;
        transform: none;
    }
    .ngl-prev { left: calc(50% - 70px); }
    .ngl-next { right: calc(50% - 70px); }
}

@media (prefers-reduced-motion: reduce) {
    .ngl-open img,
    .ngl-open::after,
    .ngl-zoom { transition: none; }
}

