/* The photo gallery (/gallery/). Phone first, the Unfold palette. */
.ngal {
	--ngal-navy: var(--noel-indigo, #272B63);
	--ngal-cream: #FBF1E3;
	--ngal-coral: var(--noel-coral, #E76F51);
	--ngal-gold: #F4C95D;
	--ngal-line: #E6DCC4;
	--ngal-muted: #5A5A5A;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px 16px 48px;
	color: var(--ngal-navy);
	font-family: var(--noel-font-body, system-ui, sans-serif);
	font-size: 17px;
	line-height: 1.5;
}
.ngal *, .ngal *::before, .ngal *::after { box-sizing: border-box; }
.ngal .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noel-gallery-page { margin: 0; background: #fff; }

.ngal-hero { text-align: center; padding: 28px 12px 20px; border-radius: 24px; background: var(--ngal-cream); margin-bottom: 18px; }
.ngal-hero__kicker { margin: 0; font-family: var(--noel-font-label, "Poppins", sans-serif); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ngal-coral); }
.ngal-hero__title { margin: 4px 0 8px; font-family: var(--noel-font-display, "Fraunces", Georgia, serif); font-size: clamp(34px, 7vw, 56px); line-height: 1.05; color: var(--ngal-navy); }
.ngal-hero__text { max-width: 36rem; margin: 0 auto; }
.ngal-hero__share { margin: 12px 0 0; }
.ngal-hero__share a, .ngal-link { color: var(--ngal-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.ngal-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px; border: 2px solid var(--ngal-navy); border-radius: 999px; background: var(--ngal-navy); color: #fff; font-family: var(--noel-font-label, "Poppins", sans-serif); font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.ngal-btn:hover { background: #1b1e47; }
.ngal-btn--ghost { background: transparent; color: var(--ngal-navy); }
.ngal-btn--ghost:hover { background: var(--ngal-cream); }
.ngal-btn--small { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.ngal button:focus-visible, .ngal a:focus-visible, .ngal input:focus-visible { outline: 3px solid var(--ngal-coral); outline-offset: 2px; }

.ngal-me { padding: 14px 16px; border: 1px solid var(--ngal-line); border-radius: 18px; margin-bottom: 18px; background: #fff; }
.ngal-me__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ngal-me__hello { margin: 0; font-weight: 600; }
.ngal-me__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ngal-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.ngal-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; border: 1px dashed #BDB6A6; color: #777; font-family: var(--noel-font-label, "Poppins", sans-serif); font-size: 13px; }
.ngal-badge.is-earned { border: 1px solid var(--ngal-gold); background: #FFF6DC; color: #3A2A00; font-weight: 600; }
.ngal-badge__icon { font-size: 16px; line-height: 1; color: #BDB6A6; }
.ngal-badge.is-earned .ngal-badge__icon { color: #D9A21B; }

.ngal-spot { display: grid; gap: 14px; margin-bottom: 22px; }
.ngal-potm { margin: 0; position: relative; border-radius: 22px; overflow: hidden; background: var(--ngal-navy); color: #fff; }
.ngal-potm__open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ngal-potm__open img { display: block; width: 100%; max-height: 70vh; object-fit: cover; }
.ngal-potm__cap { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px 16px; }
.ngal-potm__label { font-family: var(--noel-font-label, "Poppins", sans-serif); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ngal-gold); }
.ngal-potm__text { font-family: var(--noel-font-display, "Fraunces", Georgia, serif); font-size: 20px; }
.ngal-potm__credit { font-size: 14px; opacity: .85; }
.ngal-shooter { margin: 0; padding: 14px 18px; border-radius: 18px; background: var(--ngal-cream); }
.ngal-shooter__label { display: block; font-family: var(--noel-font-label, "Poppins", sans-serif); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ngal-coral); }
.ngal-shooter__name { font-family: var(--noel-font-display, "Fraunces", Georgia, serif); font-size: 22px; font-weight: 600; }

.ngal-filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin-bottom: 6px; scrollbar-width: thin; }
.ngal-chip { flex: 0 0 auto; min-height: 40px; padding: 6px 16px; border: 1px solid var(--ngal-line); border-radius: 999px; background: #fff; color: var(--ngal-navy); font-family: var(--noel-font-label, "Poppins", sans-serif); font-size: 14px; cursor: pointer; }
.ngal-chip.is-on { background: var(--ngal-navy); border-color: var(--ngal-navy); color: #fff; }
.ngal-chip[hidden] { display: none; }

.ngal-month { margin-top: 18px; }
.ngal-month[hidden] { display: none; }
.ngal-month__title { margin: 0 0 10px; font-family: var(--noel-font-display, "Fraunces", Georgia, serif); font-size: 24px; }
.ngal-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 640px) { .ngal-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 1000px) { .ngal-grid { grid-template-columns: repeat(4, 1fr); } }
.ngal-tile { position: relative; border-radius: 14px; overflow: hidden; background: var(--ngal-cream); }
.ngal-tile[hidden] { display: none; }
.ngal-tile__open { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ngal-tile__open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ngal-tile__open:hover img { transform: scale(1.03); }
.ngal-tile.is-fan { box-shadow: 0 0 0 3px var(--ngal-gold); }
.ngal-ribbon { position: absolute; top: 8px; left: 8px; padding: 3px 10px; border-radius: 999px; background: var(--ngal-gold); color: #3A2A00; font-family: var(--noel-font-label, "Poppins", sans-serif); font-size: 12px; font-weight: 700; pointer-events: none; }
.ngal-ribbon--inline { position: static; display: inline-block; margin-left: 8px; }
.ngal-tile__new { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px; background: var(--ngal-coral); color: #fff; font-family: var(--noel-font-label, "Poppins", sans-serif); font-size: 12px; font-weight: 700; pointer-events: none; }
.ngal-tile__mine { position: absolute; bottom: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.92); color: #8A5A00; font-size: 13px; font-weight: 700; pointer-events: none; }
.ngal-tile__event { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.55)); color: #fff; font-size: 13px; line-height: 1.25; pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ngal-tile__mine:not([hidden]) ~ .ngal-tile__event { padding-right: 64px; }
.ngal-tile [hidden] { display: none; }
.ngal-empty { padding: 28px; text-align: center; color: var(--ngal-muted); }

.ngal-box, .ngal-save { padding: 0; border: 0; color: var(--ngal-navy); }
.ngal-box { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; background: #111; color: #fff; }
.ngal-box::backdrop, .ngal-save::backdrop { background: rgba(10, 12, 40, .8); }
.ngal-box__inner { display: flex; flex-direction: column; height: 100%; }
.ngal-box__close { position: absolute; top: 8px; right: 8px; z-index: 3; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.15); color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
.ngal-save .ngal-box__close { background: var(--ngal-cream); }
.ngal-box__progress { margin: 0; padding: 14px 60px 0 16px; font-family: var(--noel-font-label, "Poppins", sans-serif); font-size: 14px; color: var(--ngal-gold); }
.ngal-box__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px; }
.ngal-box__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.ngal-box__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.ngal-box__nav:disabled { opacity: .2; cursor: default; }
.ngal-box__nav--prev { left: 6px; }
.ngal-box__nav--next { right: 6px; }
.ngal-box__info { padding: 10px 16px 18px; text-align: center; }
.ngal-box__caption { margin: 0 auto 2px; max-width: 40rem; font-family: var(--noel-font-display, "Fraunces", Georgia, serif); font-size: 18px; }
.ngal-box__caption:empty { display: none; }
.ngal-box__meta { margin: 0 0 8px; font-size: 14px; opacity: .85; }
.ngal-box__credit { display: inline-block; margin-left: 8px; }
.ngal-box__credit::before { content: "\00b7"; margin-right: 8px; }
.ngal-stars { display: inline-flex; gap: 4px; }
.ngal-star { width: 52px; height: 52px; padding: 6px; border: 0; background: none; cursor: pointer; }
.ngal-star svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 1.5; transition: transform .12s; }
.ngal-star.is-on svg { fill: var(--ngal-gold); stroke: var(--ngal-gold); }
.ngal-star:active svg { transform: scale(1.25); }
.ngal-box__thanks { min-height: 1.5em; margin: 4px 0 0; font-size: 15px; }

.ngal-save { width: min(560px, calc(100vw - 24px)); border-radius: 20px; background: #fff; }
.ngal-save__inner { position: relative; padding: 22px 22px 18px; }
.ngal-save__title { margin: 0 44px 8px 0; font-family: var(--noel-font-display, "Fraunces", Georgia, serif); font-size: 26px; }
.ngal-save__sub { margin: 18px 0 6px; font-size: 17px; }
.ngal-code { margin: 10px 0; padding: 12px; border-radius: 12px; background: var(--ngal-cream); font-family: ui-monospace, Menlo, monospace; font-size: 26px; font-weight: 700; letter-spacing: .08em; text-align: center; user-select: all; }
.ngal-save__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ngal-restore label { font-weight: 600; }
.ngal-restore__row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ngal-restore__row input { flex: 1 1 200px; min-height: 44px; padding: 8px 12px; border: 1px solid #B9B2A2; border-radius: 10px; font-size: 18px; text-transform: uppercase; }
.ngal-restore__file { margin: 8px 0 0; font-size: 15px; }
.ngal-restore__msg { min-height: 1.4em; margin: 6px 0 0; font-weight: 600; }

.ngal-toast { position: fixed; left: 50%; bottom: 20px; z-index: 100000; transform: translateX(-50%); max-width: calc(100vw - 24px); padding: 12px 18px; border-radius: 14px; background: var(--ngal-navy); color: #fff; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.ngal-toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
	.ngal-tile__open img, .ngal-star svg { transition: none; }
}
