/* Best Nest Academy screenshot gallery. */
:root { color-scheme: light; }
* { box-sizing: border-box; }
body.bna-screenshots {
  --gallery-ink: #173b5c;
  --gallery-muted: #486b80;
  --gallery-blue: #0866e5;
  --gallery-yellow: #ffcf3e;
  margin: 0;
  min-width: 320px;
  color: var(--gallery-ink);
  background: radial-gradient(ellipse 180px 65px at 4% 160px, #ffffffab 0 65%, transparent 66%),
    radial-gradient(ellipse 150px 58px at 94% 270px, #ffffffb8 0 65%, transparent 66%),
    linear-gradient(180deg, #9ee0fc 0, #dff5ff 500px, #f4fbff 1050px);
  font: 16px/1.6 "Trebuchet MS", Arial, sans-serif;
}
.bna-screenshots [hidden] { display: none !important; }
.bna-screenshots a { color: inherit; text-underline-offset: 4px; }
.bna-screenshots button { font: inherit; cursor: pointer; }
.bna-screenshots :is(a, button):focus-visible { outline: 3px solid #126298; outline-offset: 5px; }
.bna-screenshots .skip-link { position: fixed; top: 8px; left: 12px; z-index: 110; padding: 10px 18px; transform: translateY(-170%); border-radius: 12px; background: #fff; color: var(--gallery-ink); font-weight: 800; }
.bna-screenshots .skip-link:focus { transform: translateY(0); }
.gallery-shell { width: min(100% - 64px, 1240px); margin: 0 auto; }
.gallery-hero { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 60px; padding-top: 43px; padding-bottom: 48px; }
.gallery-hero-copy { min-width: 0; }
.gallery-eyebrow { margin: 0 0 10px; color: #245f7d; font-size: 14px; line-height: 1.4; letter-spacing: .085em; font-weight: 900; }
.gallery-hero h1 { margin: 0 0 18px; color: var(--gallery-ink); font-size: clamp(36px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -.045em; font-weight: 900; }
.gallery-hero h1 span { position: relative; display: inline-block; isolation: isolate; }
.gallery-hero h1 span::after { position: absolute; z-index: -1; content: ""; height: 9px; left: 1px; right: 1px; bottom: -4px; background: var(--gallery-yellow); border-radius: 50%; transform: rotate(-1.5deg); }
.gallery-hero-copy > p:not(.gallery-eyebrow) { max-width: 510px; margin: 0 0 20px; color: #355c77; font-size: 18px; line-height: 1.6; }
.gallery-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.gallery-primary-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 10px 22px; border-radius: 14px; color: #173b5c !important; background: #ffcf3e; box-shadow: 0 4px 0 #d9ab20; font-weight: 900; text-decoration: none; }
.gallery-primary-link:hover { background: #ffda68; }
.gallery-secondary-link { font-weight: 800; }
.gallery-hero-art { position: relative; min-width: 0; width: 100%; max-width: 495px; margin: 0 auto; padding: 8px 14px 20px 0; }
.gallery-feature { display: block; position: relative; border: 7px solid #fff; border-radius: 22px; background: #eef8ff; box-shadow: 0 12px 26px #245c7c1f, 0 4px 0 #a9d8eb; overflow: hidden; text-decoration: none; }
.gallery-feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; }
.gallery-feature-large { width: 89%; transform: rotate(-2deg); }
.gallery-feature-small { position: absolute; width: 49%; right: 0; bottom: -4px; transform: rotate(4deg); border-width: 6px; border-radius: 17px; }
.gallery-feature-label { display: block; padding: 5px 11px; background: #fff; color: #264c68; font-size: 14px; line-height: 1.4; font-weight: 900; }
.gallery-photo-badge { position: absolute; top: -8px; right: -4px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 9px 13px; transform: rotate(3deg); border: 2px solid #fff; border-radius: 14px; background: #ffda65; color: #5a4311; box-shadow: 0 3px 0 #d7b54e; font-size: 14px; font-weight: 900; }
.gallery-photo-badge svg { width: 22px; height: 22px; }
.gallery-browse { scroll-margin-top: 24px; padding-bottom: 54px; }
.gallery-toolbar { margin-bottom: 24px; padding: 24px 26px 22px; border: 1px solid #cfe7f2; border-radius: 24px; background: #ffffffed; box-shadow: 0 5px 0 #d0eaf4; }
.gallery-toolbar-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin-bottom: 16px; }
.gallery-toolbar h2 { margin: 0 0 2px; font-size: 27px; line-height: 1.25; letter-spacing: -.035em; font-weight: 900; }
.gallery-toolbar p { margin: 0; color: var(--gallery-muted); }
.gallery-result-count { flex: 0 0 auto; margin-top: 4px !important; padding: 5px 12px; border-radius: 20px; color: #33586d !important; background: #edf7fc; font-size: 14px; font-weight: 800; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-filter { display: inline-flex; align-items: center; gap: 8px; min-height: 43px; padding: 7px 13px; border: 1px solid #cbdfeb; border-radius: 13px; color: #35566d; background: #f7fbfe; font-size: 14px !important; font-weight: 800 !important; line-height: 1.5; }
.gallery-filter > span { display: inline-flex; align-items: center; justify-content: center; min-width: 25px; min-height: 25px; padding: 1px 6px; border-radius: 8px; background: #e6f0f6; color: #416078; font-size: 13px; }
.gallery-filter:hover { background: #e7f5fd; border-color: #a8cfe4; }
.gallery-filter[aria-pressed="true"] { color: #fff; background: #176eaa; border-color: #176eaa; box-shadow: 0 2px 0 #0f5789; }
.gallery-filter[aria-pressed="true"] > span { background: #ffffff25; color: #fff; }
.gallery-noscript { padding: 12px 18px; margin: 16px 0 0; background: #fff7d8; border-radius: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 19px; }
.gallery-card { --category-accent: #65c2e8; --category-bg: #e3f5fd; --category-color: #246a8c; min-width: 0; margin: 0; padding: 7px 7px 0; overflow: hidden; border: 1px solid #d3e6ef; border-radius: 19px; background: #fff; box-shadow: 0 4px 0 #d4e9f2; transition: transform .16s ease, box-shadow .16s ease; }
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #c9e2ed; }
.gallery-card[data-category="math"] { --category-accent: #efb93d; --category-bg: #fff3ca; --category-color: #785514; }
.gallery-card[data-category="reading"] { --category-accent: #ab91df; --category-bg: #efe7fc; --category-color: #654194; }
.gallery-card[data-category="science"] { --category-accent: #6dc69b; --category-bg: #e4f6eb; --category-color: #286346; }
.gallery-card[data-category="bible"] { --category-accent: #f0bd63; --category-bg: #fff2d6; --category-color: #80561b; }
.gallery-card[data-category="community"] { --category-accent: #f49585; --category-bg: #ffede7; --category-color: #944733; }
.gallery-card[data-category="art"] { --category-accent: #e599c0; --category-bg: #fce9f5; --category-color: #8f3c71; }
.gallery-image-link { position: relative; display: block; overflow: hidden; border-radius: 12px; background: #eaf3f7; }
.gallery-image-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; transition: filter .15s; }
.gallery-image-link:hover img { filter: brightness(.97); }
.gallery-zoom { position: absolute; right: 8px; bottom: 8px; display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 1px solid #ffffffa8; border-radius: 10px; background: #173b5ce8; color: #fff; box-shadow: 0 2px 6px #173b5c33; }
.gallery-zoom svg { width: 18px; height: 18px; }
.gallery-card figcaption { position: relative; min-height: 91px; padding: 12px 9px 16px; border-bottom: 4px solid var(--category-accent); }
.gallery-category-label { display: inline-block; margin-bottom: 5px; padding: 2px 8px; border-radius: 6px; color: var(--category-color); background: var(--category-bg); font-size: 14px; font-weight: 900; line-height: 1.5; }
.gallery-card h3 { margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -.015em; font-weight: 900; }
.gallery-card h3 a { text-decoration: none; }
.gallery-card h3 a:hover { text-decoration: underline; }
.gallery-footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 32px; margin-top: 35px; border: 1px solid #ebd18d; border-radius: 24px; background: #fff5d6; box-shadow: 0 4px 0 #eddfa8; }
.gallery-footer-cta h2 { margin: 0 0 3px; font-size: clamp(23px, 2.6vw, 29px); line-height: 1.25; letter-spacing: -.025em; }
.gallery-footer-cta p { margin: 0; color: #695c3e; }
.gallery-cta-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; flex: 0 0 auto; }
.gallery-drive-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; border-radius: 13px; color: #fff !important; background: #e52530; box-shadow: 0 4px 0 #b91c26; font-weight: 900; text-decoration: none; }
.gallery-drive-link:hover { background: #cf1d2a; }
.gallery-site-footer { display: flex; justify-content: space-between; gap: 24px; width: min(100% - 64px, 1240px); margin: 0 auto; padding: 22px 0 35px; border-top: 1px solid #cfe4ee; color: #486b80; font-size: 14px; }
.gallery-site-footer p { margin: 0; }
.gallery-site-footer strong { color: #173b5c; }
.gallery-site-footer nav { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px; font-weight: 800; }
.gallery-lightbox { width: min(1200px, calc(100vw - 40px)); max-width: none; max-height: calc(100dvh - 36px); margin: auto; padding: 0; overflow: auto; border: 0; border-radius: 22px; color: var(--gallery-ink); background: #fff; box-shadow: 0 20px 80px #081d3e66; }
.gallery-lightbox::backdrop { background: #092b4cdb; backdrop-filter: blur(5px); }
.gallery-lightbox-header { display: flex; justify-content: space-between; gap: 20px; padding: 18px 22px 12px; }
.gallery-lightbox-header h2 { margin: 3px 0 0; color: var(--gallery-ink); font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.gallery-lightbox-category { margin: 0; color: #54758c; font-size: 14px; font-weight: 900; }
.gallery-lightbox-close { display: flex; flex: 0 0 auto; width: 43px; height: 43px; align-items: center; justify-content: center; border: 1px solid #d5e4ed; border-radius: 13px; background: #edf6fb; color: #244b67; }
.gallery-lightbox-close:hover { background: #dfedf5; }
.gallery-lightbox-close svg { width: 23px; height: 23px; }
.gallery-lightbox-stage { position: relative; display: grid; place-items: center; min-height: 170px; background: #eaf1f6; }
.gallery-image-status { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; margin: 0; padding: 24px; color: #486b80; text-align: center; }
.gallery-lightbox-image { display: block; width: 100%; height: auto; max-height: calc(100dvh - 245px); object-fit: contain; }
.gallery-lightbox-bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 22px 18px; }
.gallery-lightbox-nav { display: flex; align-items: center; gap: 12px; }
.gallery-lightbox-step { min-height: 43px; padding: 7px 15px; border: 1px solid #d2e2ee; border-radius: 12px; background: #eff7fc; color: #214b6c; font-weight: 800 !important; }
.gallery-lightbox-step:hover { background: #deeffb; }
.gallery-lightbox-count { margin: 0; color: #49677e; font-size: 14px; font-weight: 800; }
.gallery-original-link { font-size: 14px; font-weight: 800; }
.gallery-lightbox-hint { margin: 0; padding: 0 22px 16px; color: #5e788c; font-size: 13px; }
body.gallery-dialog-open { overflow: hidden; }
@media (min-width: 1400px) { .gallery-hero { padding-top: 48px; padding-bottom: 54px; } }
@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-hero { gap: 25px; }
  .gallery-hero h1 { font-size: 43px; }
  .gallery-footer-cta { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 820px) {
  .gallery-shell, .gallery-site-footer { width: min(100% - 36px, 680px); }
  .gallery-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; padding-bottom: 36px; }
  .gallery-hero-copy { text-align: center; }
  .gallery-hero h1 { font-size: clamp(37px, 7.1vw, 50px); }
  .gallery-hero-copy > p:not(.gallery-eyebrow) { margin-left: auto; margin-right: auto; }
  .gallery-hero-actions { justify-content: center; }
  .gallery-hero-art { max-width: 410px; margin-bottom: 6px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .gallery-toolbar { padding: 21px; }
  .gallery-toolbar-top { flex-wrap: wrap; gap: 8px; }
  .gallery-toolbar h2 { font-size: 25px; }
  .gallery-result-count { padding-left: 0; background: none; }
}
@media (max-width: 560px) {
  .gallery-shell, .gallery-site-footer { width: calc(100% - 28px); }
  .gallery-hero { padding-top: 27px; padding-bottom: 31px; }
  .gallery-hero-copy > p:not(.gallery-eyebrow) { font-size: 17px; }
  .gallery-hero-art { width: calc(100% - 15px); max-width: 355px; }
  .gallery-photo-badge { top: -8px; right: -7px; font-size: 14px; padding: 7px 9px; }
  .gallery-feature-label { font-size: 14px; padding: 5px 7px; }
  .gallery-toolbar { padding: 20px 16px; border-radius: 20px; }
  .gallery-filters { gap: 8px; }
  .gallery-filter { padding: 7px 10px; gap: 7px; }
  .gallery-grid { grid-template-columns: 1fr; gap: 20px; }
  .gallery-card { border-radius: 20px; padding: 8px 8px 0; }
  .gallery-card figcaption { min-height: 87px; padding: 12px 10px 15px; }
  .gallery-card h3 { font-size: 19px; }
  .gallery-category-label { font-size: 14px; }
  .gallery-footer-cta { margin-top: 28px; padding: 24px 21px; }
  .gallery-cta-actions { flex-direction: column; align-items: flex-start; }
  .gallery-site-footer { flex-direction: column; gap: 15px; padding-bottom: 28px; }
  .gallery-lightbox { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); border-radius: 16px; }
  .gallery-lightbox-header { padding: 15px; gap: 12px; }
  .gallery-lightbox-header h2 { font-size: 21px; }
  .gallery-lightbox-image { max-height: calc(100dvh - 270px); }
  .gallery-lightbox-bottom { flex-wrap: wrap; gap: 13px; padding: 14px 15px; }
  .gallery-lightbox-nav { justify-content: space-between; width: 100%; gap: 8px; }
  .gallery-original-link { margin: 0 auto; }
  .gallery-lightbox-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-card, .gallery-image-link img { transition: none; }
  .gallery-card:hover { transform: none; }
}
@media print {
  body.bna-screenshots { background: #fff; }
  .bna-site-header, .gallery-hero-art, .gallery-filters, .gallery-footer-cta, .gallery-lightbox, .gallery-zoom { display: none !important; }
  .gallery-hero { display: block; padding: 20px 0; }
  .gallery-hero-actions { display: none; }
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-card { break-inside: avoid; box-shadow: none; }
}

