/* NMR Photo Gallery slideshow */
.npg-show { margin: 1rem 0 2rem; max-width: 100%; }
.npg-show__slide { display: grid; grid-template-columns: repeat(var(--npg-per, 1), minmax(0, 1fr)); gap: .6rem; }
.npg-show__slide[hidden] { display: none; }
.npg-show__slide.is-in { animation: npg-fade .6s ease; }
@keyframes npg-fade { from { opacity: 0; } to { opacity: 1; } }
.npg-show__photo { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #1E1E1E; }
.npg-show__slide.is-square .npg-show__photo { aspect-ratio: 1 / 1; border-radius: 10px; }
.npg-show__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.npg-show__photo figcaption {
	position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
	padding: 2.2rem .9rem .7rem; color: #fff; font-size: .9rem; line-height: 1.3;
	background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
}
.npg-show__controls { display: flex; align-items: center; gap: .5rem; margin-top: .6rem; flex-wrap: wrap; }
.npg-show__controls[hidden] { display: none; }
.npg-show__controls button {
	font: inherit; cursor: pointer; border: 1px solid #C31E39; background: #fff; color: #C31E39;
	border-radius: 999px; min-height: 44px; min-width: 44px; padding: 0 .9rem; font-weight: 600; line-height: 1;
}
.npg-show__controls button:hover { background: #C31E39; color: #fff; }
.npg-show__controls button:focus-visible { outline: 3px solid #355E99; outline-offset: 2px; }
.npg-show__arrow { font-size: 1.5rem !important; padding: 0 !important; }
.npg-show__dots { display: flex; gap: .15rem; flex-wrap: wrap; }
.npg-show__controls .npg-show__dot { min-width: 44px; padding: 0; border: 0; background: transparent; position: relative; }
.npg-show__controls .npg-show__dot::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
	border-radius: 50%; border: 2px solid #C31E39; background: #fff; box-sizing: border-box;
}
.npg-show__controls .npg-show__dot[aria-current="true"]::before { background: #C31E39; }
.npg-show__controls .npg-show__dot:hover { background: transparent; }
@media (prefers-reduced-motion: reduce) { .npg-show__slide.is-in { animation: none; } }
@media (max-width: 600px) { .npg-show__photo { border-radius: 10px; } }

/* Photos page */
.npg-photos .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.npg-photos__count { color: #5F6368; margin: 0 0 .8rem; }
.npg-photos__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .8rem; }
.npg-photos__grid li { margin: 0; }
.npg-photos__grid figure { margin: 0; }
.npg-photos__grid a { display: block; border-radius: 12px; overflow: hidden; background: #1E1E1E; }
.npg-photos__grid img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; transition: transform .25s ease; }
.npg-photos__grid a:hover img { transform: scale(1.03); }
.npg-photos__grid a:focus-visible { outline: 3px solid #355E99; outline-offset: 3px; }
.npg-photos__grid figcaption { font-size: .9rem; color: #3C4043; margin-top: .35rem; line-height: 1.35; }
.npg-photos__pager ul { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.npg-photos__pager li { margin: 0; }
.npg-photos__pager a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .8rem; border: 1px solid #C31E39; border-radius: 999px; color: #C31E39; text-decoration: none; font-weight: 600; box-sizing: border-box; }
.npg-photos__pager a:hover { background: #C31E39; color: #fff; }
.npg-photos__pager a[aria-current="page"] { background: #C31E39; color: #fff; }
.npg-photos__pager a:focus-visible { outline: 3px solid #355E99; outline-offset: 2px; }

/* Photo viewer */
.npg-view { padding: .8rem; border: 0; border-radius: 14px; background: #111; color: #fff; max-width: min(96vw, 1200px); max-height: 96vh; overflow: visible; }
.npg-view::backdrop { background: rgba(0, 0, 0, .86); }
.npg-view figure { margin: 0; }
.npg-view img { display: block; max-width: min(96vw, 1200px); max-height: calc(96vh - 7rem); width: auto; height: auto; margin: 0 auto; border-radius: 10px; }
.npg-view figcaption { color: #fff; text-align: center; margin-top: .5rem; font-size: 1rem; }
.npg-view__bar { display: flex; justify-content: center; align-items: center; gap: .6rem; margin-top: .7rem; }
.npg-view__bar button { font: inherit; font-weight: 600; min-width: 44px; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.npg-view__bar button:hover { background: #fff; color: #1E1E1E; }
.npg-view__bar button:focus-visible { outline: 3px solid #FFD54F; outline-offset: 2px; }
.npg-view__prev, .npg-view__next { font-size: 1.5rem !important; padding: 0 !important; }
.npg-view__pos { color: #fff; min-width: 8rem; text-align: center; }

/* Share your photos form */
.npg-share { margin: 2.5rem 0 1rem; padding: 1.4rem 1.5rem 1.2rem; border: 1px solid #D5DBE1; border-radius: 14px; background: #fff; }
.npg-share h2 { margin-top: 0; }
.npg-share__form p { margin: 0 0 1rem; }
.npg-share__form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.npg-share__check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.npg-share__check input { margin-top: .3rem; flex: none; width: 1.1rem; height: 1.1rem; }
.npg-share__req, .npg-share__opt { font-weight: 400; color: #5F6368; font-size: .9em; }
.npg-share__hint { display: block; color: #5F6368; font-size: .9rem; margin-bottom: .3rem; }
.npg-share__form input[type=text], .npg-share__form input[type=email], .npg-share__form input[type=file] { display: block; width: 100%; box-sizing: border-box; padding: .6rem .75rem; border: 1px solid #8A9099; border-radius: 8px; font: inherit; background: #fff; color: #1E1E1E; }
.npg-share__form input:focus-visible { outline: 3px solid #355E99; outline-offset: 1px; }
.npg-share__form [aria-invalid="true"] { border-color: #C31E39 !important; }
.npg-share__two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1rem; }
.npg-share__err { display: block; color: #A1182F; font-weight: 600; font-size: .9rem; margin-top: .3rem; }
.npg-share__errors { border-left: 5px solid #C31E39; background: #FDECEE; border-radius: 8px; padding: .6rem 1rem; margin: 0 0 1rem; }
.npg-share__errors ul { margin: .3rem 0 0 1.1rem; }
.npg-share__done { border-left: 5px solid #355E99; background: #EEF3FA; border-radius: 10px; padding: .8rem 1.1rem; }
.npg-share__btn { box-sizing: border-box; background: #C31E39; color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.8rem; font: inherit; font-weight: 700; cursor: pointer; min-height: 44px; }
.npg-share__btn:hover { background: #9A1730; }
.npg-share__btn:focus-visible { outline: 3px solid #355E99; outline-offset: 2px; }
.npg-share__small { font-size: .85rem; color: #5F6368; }
.npg-share__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.npg-show__photo a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.npg-show__photo a:focus-visible { outline: 3px solid #355E99; outline-offset: -3px; }
.npg-photos__grid a { cursor: zoom-in; }
html.npg-view-open { overflow: hidden; }
.npg-view__bar button[hidden] { display: none; }

/* Share form: photo picker and phone layout */
.npg-share__pick { margin: 0 0 1.1rem; position: relative; }
.npg-share__label { display: block; font-weight: 600; margin-bottom: .25rem; }
.npg-share__form .npg-share__file { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; overflow: hidden; padding: 0 !important; border: 0 !important; }
.npg-share__pickbtn { box-sizing: border-box; display: inline-flex !important; align-items: center; justify-content: center; gap: .55rem; min-height: 52px; padding: 0 1.4rem; border: 2px dashed #C31E39; border-radius: 12px; background: #FFF5F6; color: #A1182F; font-weight: 700 !important; cursor: pointer; margin: .2rem 0 0 !important; }
.npg-share__pickbtn:hover { background: #FDE7EA; }
.npg-share__file:focus-visible + .npg-share__pickbtn { outline: 3px solid #355E99; outline-offset: 2px; }
.npg-share__pick.is-invalid .npg-share__pickbtn { border-style: solid; }
.npg-share__picked { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: .6rem; }
.npg-share__picked li { margin: 0; border: 1px solid #D5DBE1; border-radius: 10px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.npg-share__picked img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.npg-share__picked span { font-size: .8rem; color: #5F6368; padding: .3rem .5rem 0; }
.npg-share__rm { margin: .35rem .5rem .5rem; min-height: 40px; border: 1px solid #8A9099; border-radius: 999px; background: #fff; color: #1E1E1E; font: inherit; font-size: .9rem; cursor: pointer; }
.npg-share__rm:hover { border-color: #C31E39; color: #C31E39; }
.npg-share__rm:focus-visible { outline: 3px solid #355E99; outline-offset: 2px; }
.npg-share__status { margin: .5rem 0 0 !important; color: #3C4043; font-size: .95rem; }
.npg-share__status:empty { display: none; }
.npg-share__btn[disabled] { opacity: .7; cursor: progress; }
/* 16px+ text stops iPhones zooming in when a field is tapped. */
.npg-share__form input[type=text], .npg-share__form input[type=email] { font-size: max(16px, 1rem) !important; min-height: 48px; }
/* Some themes restyle every text box; keep these visible. */
body .npg-share__form input[type=text], body .npg-share__form input[type=email] { display: block !important; width: 100% !important; box-sizing: border-box !important; padding: .6rem .75rem !important; border: 1px solid #8A9099 !important; border-radius: 8px !important; background: #fff !important; color: #1E1E1E !important; }
body .npg-share__form input[aria-invalid="true"] { border-color: #C31E39 !important; }
.npg-share__check input { width: 1.4rem; height: 1.4rem; }
@media (max-width: 600px) {
	.npg-share { padding: 1.1rem 1rem 1rem; }
	.npg-share__pickbtn, .npg-share__btn { width: 100%; }
	.npg-share__btn { min-height: 52px; font-size: 1.05rem; }
}
.npg-photos__event { display: block; color: #5F6368; font-size: .82rem; margin-top: .15rem; }
.npg-share__form select { display: block !important; width: 100% !important; box-sizing: border-box !important; min-height: 48px; padding: .5rem .75rem !important; border: 1px solid #8A9099 !important; border-radius: 8px !important; background: #fff !important; color: #1E1E1E !important; font: inherit; font-size: max(16px, 1rem) !important; }
.npg-share__form select:focus-visible { outline: 3px solid #355E99; outline-offset: 1px; }
.npg-share__form select[aria-invalid="true"] { border-color: #C31E39 !important; }
.npg-ev-searchbox { margin: 0 0 .35rem; }
.npg-ev-searchlabel { font-weight: 600 !important; font-size: .9rem; display: block; margin-bottom: .2rem; }
body .npg-share__form .npg-ev-searchbox input[type=search] { display: block !important; width: 100% !important; box-sizing: border-box !important; min-height: 44px; padding: .5rem .75rem !important; border: 1px solid #8A9099 !important; border-radius: 8px !important; background: #fff !important; color: #1E1E1E !important; font-size: max(16px, 1rem) !important; }
.npg-ev-searchnote { display: block; color: #3C4043; font-size: .85rem; margin-top: .2rem; }
.npg-ev-searchnote:empty { display: none; }
