/* ==========================================================================
   Nosegay Public School - Theme
   Palette is the school's existing red/maroon identity:
     #c62020 navbar red | #820101 menu maroon | #fd4c4c accent | #ff0031 alert
   Every new homepage section is built from these variables so the whole
   site stays one colour family.
   ========================================================================== */

:root {
    --npg-primary: #c62020;
    --npg-primary-dark: #a01a1a;
    --npg-maroon: #820101;
    --npg-maroon-deep: #5c0000;
    --npg-accent: #fd4c4c;
    --npg-alert: #ff0031;
    --npg-tint: #fdf1f1;
    --npg-tint-2: #f7e6e6;
    --npg-gold: #d9a520;
    --npg-ink: #2b2b2b;
    --npg-muted: #6d6d6d;
    --npg-line: #e6d5d5;
    --npg-shadow: 0 2px 10px rgba(130, 1, 1, .12);
    --npg-shadow-lg: 0 8px 24px rgba(130, 1, 1, .18);
}

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */

.npg-section {
    padding: 40px 0;
}

.npg-section--tint {
    background: var(--npg-tint);
}

.npg-head {
    text-align: center;
    margin-bottom: 30px;
}

.npg-head h2 {
    color: var(--npg-maroon);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 10px;
    font-size: 28px;
}

.npg-head p {
    color: var(--npg-muted);
    margin: 0;
    font-size: 15px;
}

.npg-head .npg-rule {
    width: 90px;
    height: 3px;
    margin: 12px auto;
    background: var(--npg-primary);
    position: relative;
    border-radius: 3px;
}

.npg-head .npg-rule:after {
    content: "";
    position: absolute;
    top: -3px;
    left: 50%;
    margin-left: -5px;
    width: 9px;
    height: 9px;
    background: var(--npg-gold);
    border-radius: 50%;
}

.npg-head--left {
    text-align: left;
}

.npg-head--left .npg-rule {
    margin-left: 0;
}

/* Buttons ---------------------------------------------------------------- */

.npg-btn {
    display: inline-block;
    padding: 11px 26px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    border: 2px solid transparent;
    transition: all .25s ease;
    line-height: 1.4;
}

.npg-btn--solid {
    background: var(--npg-primary);
    color: #fff !important;
    box-shadow: var(--npg-shadow);
}

.npg-btn--solid:hover,
.npg-btn--solid:focus {
    background: var(--npg-maroon);
    color: #fff !important;
    box-shadow: var(--npg-shadow-lg);
}

.npg-btn--ghost {
    background: transparent;
    color: var(--npg-maroon) !important;
    border-color: var(--npg-primary);
}

.npg-btn--ghost:hover,
.npg-btn--ghost:focus {
    background: var(--npg-primary);
    color: #fff !important;
}

.npg-btn--gold {
    background: var(--npg-gold);
    color: #3a2a00 !important;
    box-shadow: var(--npg-shadow);
}

.npg-btn--gold:hover,
.npg-btn--gold:focus {
    background: #c08f13;
    color: #fff !important;
}

/* --------------------------------------------------------------------------
   Top contact bar (above the navbar)
   -------------------------------------------------------------------------- */

.npg-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1032; /* above .navbar-fixed-top (1030) */
    background: var(--npg-maroon-deep);
    color: #f3dcdc;
    font-size: 13px;
    line-height: 32px;
    height: 32px;
    overflow: hidden;
}

/* Pre-JS default so the navbar does not cover the topbar on first paint.
   npgOffsetHeader() replaces this with the measured height. */
.navbar-fixed-top {
    top: 32px;
}

.npg-topbar a {
    color: #f3dcdc;
    text-decoration: none;
}

.npg-topbar a:hover {
    color: #fff;
    text-decoration: none;
}

.npg-topbar .npg-topbar-left span + span {
    margin-left: 18px;
    padding-left: 18px;
    border-left: 1px solid rgba(255, 255, 255, .2);
}

.npg-topbar .npg-topbar-right {
    text-align: right;
}

.npg-topbar .npg-topbar-right a {
    display: inline-block;
    margin-left: 10px;
}

.npg-topbar .npg-topbar-right img {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
}

/* --------------------------------------------------------------------------
   Header CTA buttons (desktop, inside navbar-header)
   -------------------------------------------------------------------------- */

.npg-header-cta {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    justify-content: flex-end;
}

/* gap fallback for browsers without flex-gap */
.npg-header-cta a + a {
    margin-left: 8px;
}

@supports (gap: 8px) {
    .npg-header-cta a + a {
        margin-left: 0;
    }
}

.npg-header-cta a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .2s ease;
}

.npg-header-cta .npg-cta-apply {
    background: #fff;
    color: var(--npg-maroon) !important;
}

.npg-header-cta .npg-cta-apply:hover {
    background: var(--npg-gold);
    color: #3a2a00 !important;
}

.npg-header-cta .npg-cta-fee {
    background: rgba(255, 255, 255, .18);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .55);
}

.npg-header-cta .npg-cta-fee:hover {
    background: #fff;
    color: var(--npg-maroon) !important;
}

/* Mobile-only CTA rows inside the collapsed nav menu */
.navbar-nav > li.npg-nav-cta {
    display: none;
}

.navbar-nav > li.npg-nav-cta > a {
    background: var(--npg-primary);
    color: #fff !important;
    border-top: 1px solid rgba(255, 255, 255, .25);
}

.navbar-nav > li.npg-nav-cta > a:hover,
.navbar-nav > li.npg-nav-cta > a:focus {
    background: var(--npg-gold) !important;
    color: #3a2a00 !important;
}

@media (max-width: 991px) {
    .navbar-nav > li.npg-nav-cta {
        display: block;
    }
}

/* --------------------------------------------------------------------------
   Hero CTA strip (below the slider)
   -------------------------------------------------------------------------- */

.npg-cta-strip {
    background: linear-gradient(90deg, var(--npg-maroon) 0%, var(--npg-primary) 100%);
    padding: 18px 0;
}

.npg-cta-strip .npg-cta-text {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 44px;
}

.npg-cta-strip .npg-cta-text small {
    display: block;
    font-weight: 400;
    font-size: 13px;
    color: #f6d9d9;
    line-height: 1.4;
}

.npg-cta-strip .npg-cta-actions {
    text-align: right;
}

.npg-cta-strip .npg-cta-actions .npg-btn {
    margin: 4px 0 4px 8px;
}

.npg-cta-strip .npg-btn--ghost {
    color: #fff !important;
    border-color: #fff;
}

.npg-cta-strip .npg-btn--ghost:hover {
    background: #fff;
    color: var(--npg-maroon) !important;
}

/* --------------------------------------------------------------------------
   News ticker / marquee
   -------------------------------------------------------------------------- */

.npg-ticker {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--npg-line);
    border-left: 4px solid var(--npg-primary);
    border-radius: 4px;
    box-shadow: var(--npg-shadow);
    overflow: hidden;
    margin: 20px 0;
}

.npg-ticker .npg-ticker-label {
    flex: 0 0 auto;
    background: var(--npg-primary);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 12px 18px;
    white-space: nowrap;
}

.npg-ticker .npg-ticker-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 12px 15px;
    overflow: hidden;
}

.npg-ticker .div-marquee a {
    color: var(--npg-maroon);
}

/* --------------------------------------------------------------------------
   Welcome + Vision/Mission
   -------------------------------------------------------------------------- */

.npg-welcome-text {
    text-align: justify;
    font-size: 16px;
    line-height: 1.9;
    color: var(--npg-ink);
    background: var(--npg-tint);
    border: 1px solid var(--npg-line);
    border-left: 4px solid var(--npg-primary);
    border-radius: 8px;
    padding: 20px 24px;
    box-shadow: var(--npg-shadow);
}

.npg-welcome-text p:last-child {
    margin-bottom: 0;
}

.npg-welcome-text .npg-affil {
    display: block;
    font-size: 13px;
    color: var(--npg-muted);
    margin-bottom: 14px;
}

.npg-stats {
    margin-top: 22px;
}

.npg-stat {
    text-align: center;
    padding: 14px 6px;
    background: #fff;
    border: 1px solid var(--npg-line);
    border-radius: 6px;
    margin-bottom: 12px;
}

.npg-stat strong {
    display: block;
    font-size: 26px;
    color: var(--npg-primary);
    line-height: 1.2;
}

.npg-stat span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--npg-muted);
}

/* Equal-height cards: stretch the columns, then let the card fill its column. */
.npg-vm-row {
    display: flex;
    flex-wrap: wrap;
}

.npg-vm-row > [class*="col-"] {
    display: flex;
}

.npg-vm-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--npg-primary);
    box-shadow: var(--npg-shadow);
    margin-bottom: 20px;
}

.npg-vm-card h3 {
    color: var(--npg-maroon) !important;
    text-align: left !important;
    margin: 0 0 12px;
    font-weight: 800;
    font-size: 20px;
    text-transform: uppercase;
}

.npg-vm-card p,
.npg-vm-card li {
    text-align: justify;
    color: var(--npg-ink);
    line-height: 1.8;
}

.npg-vm-card ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.npg-vm-card .npg-vm-icon {
    float: right;
    font-size: 34px;
    color: var(--npg-tint-2);
    margin-left: 10px;
}

/* Collapsed body is clipped to a fixed height so both cards match, with a
   fade + ellipsis marking the cut. flex:1 makes the shorter card fill too. */
.npg-vm-body {
    position: relative;
    overflow: hidden;
    flex: 1 1 auto;
    transition: max-height .3s ease;
}

.npg-vm-card:not(.is-open) .npg-vm-body {
    max-height: 170px;
}

.npg-vm-card:not(.is-open).has-overflow .npg-vm-body:after {
    content: "…";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.6em;
    display: flex;
    align-items: flex-end;
    padding-left: 2px;
    font-size: 17px;
    font-weight: 700;
    color: var(--npg-muted);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #fff 62%);
    pointer-events: none;
}

.npg-vm-toggle {
    align-self: flex-start;
    margin-top: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--npg-primary);
    font-weight: 700;
    font-size: 14px;
}

.npg-vm-toggle:hover,
.npg-vm-toggle:focus {
    color: var(--npg-maroon);
    text-decoration: underline;
}

.npg-vm-toggle:after {
    content: " \25be"; /* caret down */
}

.npg-vm-card.is-open .npg-vm-toggle:after {
    content: " \25b4"; /* caret up */
}

/* Nothing to expand - JS only adds .has-overflow when the text is clipped. */
.npg-vm-card:not(.has-overflow) .npg-vm-toggle {
    display: none;
}

/* --------------------------------------------------------------------------
   News & Events cards
   -------------------------------------------------------------------------- */

.npg-news-card {
    background: #fff;
    border: 1px solid var(--npg-line);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    transition: box-shadow .25s ease, transform .25s ease;
}

.npg-news-card:hover {
    box-shadow: var(--npg-shadow-lg);
    transform: translateY(-3px);
}

.npg-news-card .npg-news-date {
    flex: 0 0 74px;
    background: var(--npg-maroon);
    color: #fff;
    text-align: center;
    padding: 14px 6px;
}

.npg-news-card .npg-news-date b {
    display: block;
    font-size: 26px;
    line-height: 1;
}

.npg-news-card .npg-news-date span {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.npg-news-card .npg-news-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
    text-align: left;
}

.npg-news-card .npg-news-body h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--npg-maroon);
    text-align: left;
}

.npg-news-card .npg-news-body p {
    margin: 0;
    font-size: 14px;
    color: var(--npg-muted);
    line-height: 1.6;
    max-height: 4.8em;
    overflow: hidden;
}

.npg-empty {
    text-align: center;
    color: var(--npg-muted);
    padding: 24px;
    font-style: italic;
}

/* Inside a topper/birthday widget the empty state should sit in the middle
   of the card rather than hugging the top. */
.npg-widget .npg-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 182px;
    margin: 0;
    padding: 0 4px;
}

/* --------------------------------------------------------------------------
   Leadership cards
   -------------------------------------------------------------------------- */

/* Equal-height cards. Bootstrap 3's .row clearfix pseudo-elements would become
   stray flex items, so they are switched off on this row only. */
.npg-leader-row {
    display: flex;
    flex-wrap: wrap;
}

    .npg-leader-row:before,
    .npg-leader-row:after {
        display: none;
    }

    .npg-leader-row > [class*="col-"] {
        display: flex;
    }

.npg-leader {
    background: #fff;
    border-radius: 8px;
    text-align: center;
    padding: 22px 16px;
    margin-bottom: 22px;
    border-bottom: 4px solid var(--npg-primary);
    box-shadow: var(--npg-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.npg-leader:hover {
    transform: translateY(-4px);
    box-shadow: var(--npg-shadow-lg);
}

.npg-leader img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--npg-tint-2);
    margin-bottom: 14px;
    /* The card is a flex column, so text-align does not centre a fixed-width
       image - it has to centre itself along the cross axis. */
    align-self: center;
}

.npg-leader h4 {
    margin: 0 0 4px;
    font-weight: 800;
    color: var(--npg-maroon);
    font-size: 17px;
}

.npg-leader .npg-leader-role {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--npg-primary);
    margin-bottom: 10px;
}

.npg-leader p {
    font-size: 13.5px;
    color: var(--npg-muted);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 8px;
}

/* Collapsed to three lines so every card starts the same height. */
.npg-leader-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

    .npg-leader-text.is-expanded {
        display: block;
        overflow: visible;
    }

.npg-more {
    display: inline-block;
    align-self: center;
    background: none;
    border: 0;
    padding: 0;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--npg-primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

    .npg-more:hover,
    .npg-more:focus {
        color: var(--npg-maroon);
    }

/* Pushes the button to the bottom so it lines up across all three cards. */
.npg-leader .npg-btn {
    margin-top: auto;
    align-self: center;
}

/* --------------------------------------------------------------------------
   Facilities grid
   -------------------------------------------------------------------------- */

.npg-facility {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: var(--npg-shadow);
    background: var(--npg-maroon);
}

.npg-facility img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, opacity .3s ease;
    opacity: .92;
}

.npg-facility:hover img {
    transform: scale(1.07);
    opacity: 1;
}

.npg-facility .npg-facility-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 14px 12px;
    background: linear-gradient(to top, rgba(92, 0, 0, .92) 0%, rgba(92, 0, 0, 0) 100%);
    color: #fff;
    text-align: left;
}

.npg-facility .npg-facility-cap h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    text-align: left;
}

/* --------------------------------------------------------------------------
   School activities carousel
   -------------------------------------------------------------------------- */

.npg-activity .item {
    position: relative;
}

/* Albums mix wide event photos with portrait posters, so contain (not cover)
   keeps every slide readable instead of cropping the middle out of a poster. */
.npg-activity .carousel-inner > .item > img {
    width: 100%;
    height: 430px;
    object-fit: contain;
    background: var(--npg-tint-2);
    border-radius: 8px;
    display: block;
    max-width: 100%;
}

.npg-activity .npg-activity-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 20px 16px;
    background: linear-gradient(to top, rgba(92, 0, 0, .9) 0%, rgba(92, 0, 0, 0) 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 8px 8px;
}

.npg-activity .carousel-control {
    background-image: none;
    text-shadow: none;
    width: 8%;
    font-size: 26px;
}

@media (max-width: 767px) {
    .npg-activity .carousel-inner > .item > img {
        height: 260px;
    }
}

/* --------------------------------------------------------------------------
   Toppers / Birthdays widgets
   -------------------------------------------------------------------------- */

.npg-widget {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--npg-shadow);
    margin-bottom: 22px;
}

.npg-widget .npg-widget-head {
    background: var(--npg-maroon);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 14px;
    padding: 10px 14px;
    text-align: center;
}

.npg-widget .npg-widget-body {
    padding: 14px 10px;
    min-height: 210px;
    position: relative;
}

/* Calendar widget: jalendar ships width:280px + margin:10px auto, which leaves
   a wide, uneven gap inside the card. Let it fill instead, and keep an even
   5px all round. Its internals are percentage-based, so 100% is safe. */
.npg-widget--calendar .npg-widget-body {
    padding: 5px;
}

#schoolCalendar.jalendar {
    width: 100%;
    margin: 0;
    display: block;
}

    #schoolCalendar.jalendar .jalendar-container .jalendar-pages {
        padding: 12px;
    }

.npg-widget .carousel-control {
    background-image: none;
    color: var(--npg-maroon);
    text-shadow: none;
    opacity: .6;
    width: 30px;
}

.npg-widget .carousel-control:hover {
    opacity: 1;
    color: var(--npg-primary);
}

/* Keep names clear of the prev/next arrows on both sides. */
.npg-widget .item {
    padding: 0 32px;
}

.npg-widget .carousel-inner > .item > img {
    height: 120px;
    width: 120px;
    border-radius: 50%;
    border: 3px solid var(--npg-primary);
    object-fit: cover;
    margin: 0 auto 8px;
    display: block;
    max-width: none;
}

.npg-widget .item .sname {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--npg-maroon);
    margin: 0;
    font-size: 14px;
}

.npg-widget .item .sclass,
.npg-widget .item .scgpa {
    font-weight: 600;
    color: var(--npg-muted);
    margin: 0;
    font-size: 13px;
}

.npg-widget--birthday .npg-widget-body {
    background: url('../images/demo/birthday.png') no-repeat bottom right;
    background-size: 92px;
}

/* --------------------------------------------------------------------------
   Photo gallery grid
   -------------------------------------------------------------------------- */

/* Horizontal album marquee on the home page. jquery.marquee wraps the strip in
   .js-marquee, so the cards must sit inline for it to scroll as one row. */
.npg-gallery-marquee {
    overflow: hidden;
    margin-bottom: 26px;
}

    .npg-gallery-marquee .js-marquee {
        display: flex;
    }

    .npg-gallery-marquee .npg-gallery-item {
        flex: 0 0 auto;
        width: 260px;
        margin: 0 10px 0 0;
    }

.npg-gallery-item {
    display: block;
    position: relative;
    height: 165px;
    margin-bottom: 20px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--npg-tint-2);
    box-shadow: var(--npg-shadow);
}

.npg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.npg-gallery-item:hover img {
    transform: scale(1.08);
}

.npg-gallery-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 10px 8px;
    background: linear-gradient(to top, rgba(92, 0, 0, .9) 0%, rgba(92, 0, 0, 0) 100%);
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --------------------------------------------------------------------------
   Floating action buttons + back to top
   -------------------------------------------------------------------------- */

.npg-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1030;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* gap fallback for browsers without flex-gap */
.npg-float > * + * {
    margin-top: 10px;
}

@supports (gap: 10px) {
    .npg-float > * + * {
        margin-top: 0;
    }
}

.npg-float a,
.npg-float button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    font-size: 19px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
    text-decoration: none !important;
    transition: transform .2s ease;
    padding: 0;
}

.npg-float a:hover,
.npg-float button:hover {
    transform: scale(1.1);
    color: #fff !important;
}

.npg-float .npg-float-wa {
    background: #25d366;
}

.npg-float .npg-float-call {
    background: var(--npg-primary);
}

.npg-float .npg-float-top {
    background: var(--npg-maroon-deep);
    display: none;
}

.npg-float .npg-float-top.is-visible {
    display: flex;
}

/* --------------------------------------------------------------------------
   Fee QR popup
   -------------------------------------------------------------------------- */

.npg-qr {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 1029;
    width: 160px;
    background: #fff;
    border: 2px solid var(--npg-primary);
    border-radius: 8px;
    padding: 10px 10px 8px;
    box-shadow: var(--npg-shadow-lg);
    text-align: center;
}

.npg-qr img {
    width: 100%;
    display: block;
}

.npg-qr .npg-qr-title {
    display: block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--npg-maroon);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: .3px;
}

.npg-qr .npg-qr-close {
    position: absolute;
    top: -11px;
    right: -11px;
    width: 24px;
    height: 24px;
    line-height: 22px;
    border-radius: 50%;
    background: var(--npg-primary);
    color: #fff;
    border: 0;
    font-size: 14px;
    padding: 0;
    opacity: 1;
    text-shadow: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 991px) {
    .npg-cta-strip .npg-cta-actions,
    .npg-cta-strip .npg-cta-text {
        text-align: center;
        line-height: 1.5;
    }

    .npg-cta-strip .npg-cta-actions {
        margin-top: 12px;
    }

    .npg-header-cta {
        display: none;
    }
}

@media (max-width: 767px) {
    .npg-topbar {
        height: auto;
        line-height: 1.9;
        padding: 6px 0;
        text-align: center;
        font-size: 12px;
    }

    .npg-topbar .npg-topbar-left span + span {
        margin-left: 8px;
        padding-left: 8px;
    }

    .npg-topbar .npg-topbar-right {
        text-align: center;
    }

    /* Taller stacked topbar on phones - JS still measures the real value. */
    .navbar-fixed-top {
        top: 62px;
    }

    .npg-section {
        padding: 26px 0;
    }

    .npg-head h2 {
        font-size: 22px;
    }

    .npg-qr {
        width: 116px;
        left: 12px;
        bottom: 12px;
    }

    .npg-float {
        right: 12px;
        bottom: 12px;
    }

    .npg-float a,
    .npg-float button {
        width: 42px;
        height: 42px;
        font-size: 17px;
    }

    .npg-facility img {
        height: 160px;
    }

    .npg-ticker {
        display: block;
    }

    .npg-ticker .npg-ticker-label {
        display: block;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Photo gallery: album / photo grid + full-screen viewer
   Shared by PhotoGallery.cshtml and photo-album.cshtml (js/npg-gallery.js).
   -------------------------------------------------------------------------- */

.npg-gallery-title {
    color: var(--npg-maroon);
    font-weight: 800;
    margin: 0 0 22px;
}

.npg-grid {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -9px;
}

.npg-grid-item {
    width: 25%;
    padding: 9px;
}

.npg-photo {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f1eaea;
    box-shadow: var(--npg-shadow);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .npg-photo:hover,
    .npg-photo:focus {
        transform: translateY(-3px);
        box-shadow: var(--npg-shadow-lg);
        text-decoration: none;
    }

    .npg-photo img {
        width: 100%;
        height: 190px;
        object-fit: cover;
        display: block;
    }

    .npg-photo span {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 26px 10px 8px;
        background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.82));
        color: #fff;
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.npg-gallery-msg {
    padding: 45px 0;
    text-align: center;
    color: var(--npg-muted);
}

/* ---------------- full-screen viewer ---------------- */

.npg-lb {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    /* Above the fixed navbar (1030) and the floating WhatsApp/call buttons. */
    z-index: 99999;
    background-color: rgba(18, 6, 6, .95);
    text-align: center;
    /* Lightbox-style entrance: fade the backdrop, then the photo scales up.
       visibility (not display) so the opacity transition can actually run. */
    visibility: hidden;
    opacity: 0;
    transition: opacity .28s ease, visibility 0s linear .28s;
}

    .npg-lb.is-open {
        visibility: visible;
        opacity: 1;
        transition: opacity .28s ease, visibility 0s linear 0s;
    }

    /* Photo pops in slightly, the way Lightbox2 resizes into place. */
    .npg-lb .npg-lb-stage img {
        opacity: 0;
        transform: scale(.94);
        transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .3, 1), filter .3s ease;
    }

    .npg-lb.is-open .npg-lb-stage img {
        opacity: 1;
        transform: scale(1);
    }

    /* Cross-fade while the next photo is being swapped in. */
    .npg-lb.is-swapping .npg-lb-stage img {
        opacity: 0;
        transform: scale(.97);
    }

    /* Controls and captions drift in just after the photo. */
    .npg-lb .npg-lb-btn,
    .npg-lb .npg-lb-cap,
    .npg-lb .npg-lb-count,
    .npg-lb .npg-lb-album {
        opacity: 0;
        transition: opacity .25s ease .12s;
    }

    .npg-lb.is-open .npg-lb-btn,
    .npg-lb.is-open .npg-lb-cap,
    .npg-lb.is-open .npg-lb-count,
    .npg-lb.is-open .npg-lb-album {
        opacity: 1;
    }

@media (prefers-reduced-motion: reduce) {
    .npg-lb,
    .npg-lb .npg-lb-stage img,
    .npg-lb .npg-lb-btn,
    .npg-lb .npg-lb-cap {
        transition: none;
    }
}

    .npg-lb .npg-lb-stage {
        position: absolute;
        top: 58px;
        left: 70px;
        right: 70px;
        bottom: 62px;
    }

    .npg-lb img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        border-radius: 4px;
        box-shadow: 0 10px 40px rgba(0,0,0,.6);
    }

    /* While the full-size photo downloads, the thumbnail is on screen blurred
       up, with a spinner over it. */
    .npg-lb.is-loading .npg-lb-stage img {
        filter: blur(8px);
    }

    .npg-lb.is-loading .npg-lb-stage:after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 38px;
        height: 38px;
        margin: -19px 0 0 -19px;
        border: 3px solid rgba(255,255,255,.25);
        border-top-color: #fff;
        border-radius: 50%;
        animation: npg-spin .8s linear infinite;
    }

@keyframes npg-spin {
    to {
        transform: rotate(360deg);
    }
}

.npg-lb-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;
    color: #f0e6e6;
    font-size: 14px;
    padding: 0 70px;
}

.npg-lb-count {
    position: absolute;
    top: 18px;
    left: 22px;
    color: #f0e6e6;
    font-size: 14px;
}

.npg-lb-album {
    position: absolute;
    top: 18px;
    left: 90px;
    right: 260px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.npg-lb-btn {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.13);
    color: #fff;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    font-size: 22px;
    line-height: 46px;
    padding: 0;
    cursor: pointer;
    transition: background .18s ease;
}

    .npg-lb-btn:hover {
        background: var(--npg-primary);
    }

.npg-lb-close {
    top: 16px;
    right: 20px;
}

.npg-lb-play {
    top: 16px;
    right: 76px;
    width: auto;
    border-radius: 23px;
    padding: 0 16px;
    font-size: 14px;
}

.npg-lb-prev {
    left: 14px;
    top: 50%;
    margin-top: -23px;
}

.npg-lb-next {
    right: 14px;
    top: 50%;
    margin-top: -23px;
}

@media (max-width: 991px) {
    .npg-grid-item {
        width: 33.3333%;
    }
}

@media (max-width: 767px) {
    .npg-grid-item {
        width: 50%;
    }

    .npg-photo img {
        height: 130px;
    }

    .npg-lb .npg-lb-stage {
        left: 12px;
        right: 12px;
        top: 62px;
        bottom: 70px;
    }

    .npg-lb-cap {
        padding: 0 14px;
    }

    .npg-lb-album {
        display: none;
    }
}

/* Chevron on the gallery "Load More" button - nudges downward to hint that
   more albums appear below. */
.npg-more-caret {
    margin-left: 6px;
    animation: npg-caret-nudge 1.6s ease-in-out infinite;
}

@keyframes npg-caret-nudge {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(3px); }
}

#loadmore:hover .npg-more-caret {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .npg-more-caret { animation: none; }
}
