html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.font-select-happy {
  --site-font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, Helvetica, sans-serif;
}

.font-select-spooky {
  --site-font-family: Georgia, "Times New Roman", Times, serif;
}

.font-select-whacky {
  --site-font-family: "Comic Sans MS", "Trebuchet MS", Arial, Helvetica, sans-serif;
}

.font-select-classic {
  --site-font-family: Garamond, Georgia, "Times New Roman", Times, serif;
}

.font-select-clean {
  --site-font-family: Verdana, Helvetica, Arial, sans-serif;
}

body.elvis-site {
  margin: 0;
  padding: 28px;
  background: #181733;
  color: #e5e6da;
  font-family: var(--site-font-family, Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif);
}

body.elvis-site a {
  color: #ffffff;
  transition: color 150ms ease;
}

body.elvis-site a:visited {
  color: #c2c2ff;
}

body.elvis-site a:hover,
body.elvis-site a:focus {
  color: #f1c45b;
}

body.elvis-site a:visited:hover,
body.elvis-site a:visited:focus {
  color: #e5d487;
}

body.elvis-site a:active {
  color: #f1c45b;
}

.elvis-site .page-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
  background: #22234f;
  border: 1px solid #9d8849;
  border-radius: 22px;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(241, 196, 91, 0.16);
}

.elvis-site .nav-frame {
  display: block;
  width: 150px;
  height: 380px;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

.modern-page .site-layout {
  display: flex;
  gap: 34px;
  align-items: flex-start;
}

.modern-page .sidebar {
  width: 150px;
  flex: 0 0 150px;
}

.modern-page .main-content {
  flex: 1 1 auto;
  min-width: 0;
}

.modern-page .page-title {
  margin: 0 0 12px;
  padding-bottom: 6px;
  color: #f1c45b;
  border-bottom: 1px solid rgba(241, 196, 91, 0.45);
  font-size: 30px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(117, 238, 255, 0.22);
}

.page-intro {
  margin: 0 0 20px;
  color: #d0cee8;
  font-size: 16px;
  line-height: 1.45;
}

.hero-image,
.artifact-card {
  background: #f2eddc;
  border: 1px solid #c8ae61;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.hero-image {
  padding: 10px;
}

.hero-image {
  margin: 0 0 22px;
}

.artifact-card {
  padding: 10px;
}

.story .artifact-card {
  margin-top: 10px;
}

.hero-image img,
.artifact-card img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 12px;
}

.more-link {
  margin: 22px 0 0;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
}

.page-note {
  margin: 24px 0 0;
  color: #b9b7d7;
  font-size: 11px;
  line-height: 1.35;
}

.site-footer {
  display: block;
  margin: 28px auto 0;
  clear: both;
  color: #757e7e;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.caption {
  margin: 8px 0 0;
  padding: 5px 7px;
  background: rgba(35, 37, 79, 0.9);
  border-radius: 11px;
  color: #f2eddc;
  font-size: 12px;
}

.intro-grid,
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.story-single {
  grid-template-columns: 1fr;
}

.intro-grid {
  margin-bottom: 24px;
}

.story > div {
  padding: 6px;
  border-left: 2px solid rgba(241, 196, 91, 0.45);
  border-radius: 14px;
}

.intro-grid h2,
.story h2,
.artifact-section h2 {
  margin: 0 0 4px;
  color: #f1c45b;
  font-size: 18px;
}

.artifact-section > h2 + p {
  margin: 0 0 12px;
}

.intro-grid p,
.story p,
.source-list {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.5;
}

.source-list {
  padding-left: 18px;
  font-size: 12px;
}

.article-list {
  margin: 0 0 18px 18px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.6;
}

.article-list li {
  position: relative;
  margin: 0 0 7px;
  padding-left: 30px;
}

.article-list li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 23px;
  height: 18px;
  background: url("images/buttoncrown.gif") no-repeat 0 0;
  background-size: 23px 18px;
  filter: var(--article-crown-filter, hue-rotate(55deg) saturate(16) brightness(1.35));
}

.artifact-section {
  padding-top: 22px;
  border-top: 1px solid rgba(241, 196, 91, 0.45);
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* NO-CROP RULE (all minisites, Nov 8, 2026): card pictures are shown WHOLE (object-fit: contain), never cropped,
   so faces and subjects are not cut off. A taller fixed box keeps the grid even; short or narrow pictures get
   empty space at the sides, not a crop. Do not switch these back to cover. */
.artifact-card img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center;
}

.artifact-grid-crop .artifact-card img {
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.artifact-grid-crop-med .artifact-card img {
  width: 100%;
  object-fit: contain;
  object-position: center;
}

.artifact-grid-contain .artifact-card img {
  width: auto;
  height: auto;
  max-width: 125px;
  object-fit: contain;
}

.elvis-site .artifact-card a {
  display: block;
  margin-top: 7px;
  color: #1a1b3d;
  font-size: 12px;
  line-height: 1.3;
  font-weight: bold;
}

.elvis-site .artifact-card a:visited {
  color: #34305f;
}

.artifact-card p {
  margin: 5px 0 0;
  color: #22234f;
  font-size: 11px;
  line-height: 1.35;
}

.elvis-site table,
.elvis-site iframe,
.modern-page .main-content blockquote {
  border-radius: 14px;
}

.elvis-site table,
.elvis-site iframe {
  overflow: hidden;
}



body.nav-page {
  margin: 0;
  padding: 0;
  background: #23254f;
  color: #e5e6da;
  font-family: var(--site-font-family, Verdana, Helvetica, Arial, sans-serif);
}

.nav-page a {
  color: #ffffff;
  transition: color 150ms ease;
}

.nav-page a:visited {
  color: #c2c2ff;
}

.nav-page a:hover,
.nav-page a:focus {
  color: #f1c45b;
}

.nav-page a:visited:hover,
.nav-page a:visited:focus {
  color: #e5d487;
}

.nav-wrap {
  width: 150px;
  padding: 6px 0 0;
}

.brand {
  display: block;
  width: 124px;
  margin: 0 0 18px 8px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 70px;
  height: 70px;
  margin: 0 0 -3px 31px;
  border: 0;
  border-radius: 10px;
}

.brand-title {
  display: inline-block;
  margin-top: 0;
  min-width: 116px;
  padding: 6px 14px 8px;
  background: #4d19b8;
  border-radius: 999px;
  color: #ffffff;
  font-family: var(--site-font-family, Arial, Helvetica, sans-serif);
  font-size: 22px;
  font-weight: bold;
  font-style: italic;
  line-height: 0.9;
  text-align: center;
}

.home-brand-intro .brand img {
  transform-origin: 50% 90%;
  animation: elvisHeadNod 760ms cubic-bezier(.2,.8,.2,1) both;
}

.home-brand-intro .brand-title {
  animation: elvisTitlePop 560ms ease-out 160ms both, elvisTitleGlow 900ms ease-out 620ms both;
}

@keyframes elvisHeadNod {
  0% {
    opacity: 0;
    transform: translateY(-18px) rotate(-8deg);
  }
  48% {
    opacity: 1;
    transform: translateY(2px) rotate(4.5deg);
  }
  70% {
    opacity: 1;
    transform: translateY(0) rotate(-2.4deg);
  }
  86% {
    opacity: 1;
    transform: translateY(0) rotate(1.1deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

@keyframes elvisTitlePop {
  0% {
    opacity: 0;
    transform: translateY(7px) scale(.94);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.035);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes elvisTitleGlow {
  0% {
    box-shadow: 0 0 0 rgba(117, 238, 255, 0);
  }
  45% {
    box-shadow: 0 0 13px rgba(117, 238, 255, .72);
  }
  100% {
    box-shadow: 0 0 0 rgba(117, 238, 255, 0);
  }
}

.nav {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--site-font-family, Verdana, Helvetica, Arial, sans-serif);
  font-size: 11px;
  font-weight: bold;
  line-height: 1.35;
}

.nav-prep .nav {
  visibility: hidden;
}

.nav li {
  margin: 0 0 8px;
  padding-left: 19px;
  background: url("images/buttoncrown.gif") no-repeat 0 3px;
}

.nav-timesync {
  position: relative;
  background: none;
}

.nav-timesync::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 0;
  width: 17px;
  height: 13px;
  background: url("images/buttoncrown.gif") no-repeat 0 0;
  filter: hue-rotate(55deg) saturate(16) brightness(1.35);
}

.nav .sub {
  margin-top: 4px;
  padding-left: 12px;
  color: #ff4f64;
  font-size: 10px;
  font-weight: normal;
}

.nav .sub a {
  font-weight: normal;
}

.feature-note {
  display: block;
  color: #ff4f64;
  font-style: italic;
  font-size: 10px;
  font-weight: normal;
}

.current,
.current:visited,
.current a {
  color: #75eeff;
}

body.animation-index {
  margin: 0;
  background: #1d1f43;
  color: #e5e6da;
  font-family: var(--site-font-family, Arial, Helvetica, Geneva, Swiss, SunSans-Regular, sans-serif);
}

body.animation-index a {
  color: #ffffff;
}

body.animation-index a:visited {
  color: #c2c2ff;
}

body.animation-index a:active {
  color: #d64d65;
}

body.popup-page {
  margin: 8px;
  background: #000000;
  color: #ffffff;
  text-align: center;
}

body.popup-page a,
body.popup-page a:visited {
  color: #c0c0c0;
}

body.popup-page a:active {
  color: #ff0000;
}

body.popup-page img {
  max-width: 100%;
  height: auto;
  border-radius: 14px;
}

body.ascii-popup {
  margin: 8px;
  background: #ffffff;
  color: #000000;
  font-family: "Courier New", Courier, Monaco, monospace;
  font-size: 10px;
  line-height: 1;
}


/* Start: Mobile / narrow screen styles */

/* Hide the phone badge until the narrow-screen rules turn it on. */

#mobile-indicator { display: none; }


/* Stack the page and loosen spacing for smaller screens. */
@media (max-width: 760px) {   
  #mobile-indicator {
    display: block;
  }
  
  body.elvis-site {
    padding: 12px;
  }

  .elvis-site .page-container {
    padding: 18px;
  }

  .modern-page .site-layout {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  .modern-page .sidebar {
    width: 100%;
    flex: none;
    margin-bottom: 0;
  }

  .modern-page .nav-frame {
    width: 100%;
    height: 250px;
  }

  /* Let main content and grid sections use the full phone width. */
  .modern-page .main-content {
    width: 100%;
  }

  .intro-grid,
  .story {
    display: block;
  }

  .artifact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .artifact-card {
    margin-bottom: 14px;
  }

  /* Keep images and old table layouts from overflowing sideways. */
  .modern-page .main-content > img,
  .modern-page .main-content table {
    max-width: 100%;
    height: auto;
  }

  .modern-page .main-content blockquote {
    margin-left: 0;
    margin-right: 0;
  }

}

/* Mobile nav: only use mobile-only Timesync/nav styling when the frame is wide enough. */
@media (min-width: 300px) {
  .parent-is-narrow .nav-timesync {
    opacity: 0.45;
    filter: grayscale(1);
  }

  .parent-is-narrow .nav-timesync a {
    color: #9a99ad;
    text-decoration: none;
  }

  .parent-is-narrow .nav-timesync::after {
    content: "(not available on mobile)";
    display: block;
    margin-top: 2px;
    color: #6f6e82;
    font-size: 9px;
    font-weight: normal;
    line-height: 1.2;
  }

  .parent-is-narrow .nav-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: auto;
    padding-top: 4px;
  }

  .parent-is-narrow .brand {
    flex: 0 0 124px;
    margin-bottom: 0;
  }

  .parent-is-narrow .nav {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
  }
}

/* Compact the nav frame for very short browser windows. */
@media (max-height: 180px) {
  .nav-wrap {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    width: auto;
    padding-top: 4px;
  }

  .brand {
    flex: 0 0 124px;
    margin-bottom: 0;
  }

  .nav {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 2px;
  }

}

/* Mobile indicator badge: small fixed lozenge in the corner. */

#mobile-indicator {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 9500;      /* above page chrome, below lightbox overlay */
    box-sizing: border-box;
    max-width: 34px;
    overflow: hidden;
    padding: 4px 10px 4px 8px; /* added 6/15 top/right/bottom/left */
    font-size: 13px;
    line-height: 1.2;
    font-family: helvetica, arial, sans-serif;
    white-space: nowrap;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    opacity: 0.5;  /* added 6/15 */
    pointer-events: none;     /* inert on touch devices */
    transition: max-width 180ms ease-out, background-color 180ms ease-out, opacity 180ms ease-out;
}


/* desktop/mouse only: rolling over the lozenge reveals the text label */

@media (max-width: 760px) and (hover: hover) and (pointer: fine) {
  #mobile-indicator {
    pointer-events: auto;
    cursor: default;
  }

  #mobile-indicator:hover {
    max-width: 190px;
    background: rgba(0, 0, 0, 0.74);
    opacity: .8;
  }

  #mobile-indicator:hover::after {
    content: " Viewing MOBILE Settings";
    font-size: 10px;
    letter-spacing: 0.05em;
  }
}

/* Mini lightbox: a simple in-page image viewer for desktop and mobile. */

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

.mini-lightbox-trigger,
.mini-lightbox-card > img {
  cursor: zoom-in;
}

.mini-lightbox-trigger {
  overflow: hidden;
}

.mini-lightbox-trigger img,
.mini-lightbox-card > img {
  transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.mini-lightbox-trigger:hover img,
.mini-lightbox-trigger:focus img,
.mini-lightbox-card > img:hover,
.mini-lightbox-card > img:focus {
  filter: brightness(1.06) contrast(1.04);
  transform: scale(1.012);
  box-shadow: 0 0 0 2px rgba(214, 176, 75, 0.45), 0 6px 16px rgba(0, 0, 0, 0.22);
}

.mini-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 54px 72px 34px;
  color: #f8f1d6;
  background: rgba(0, 0, 0, 0.88);
}

.mini-lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1100px;
  max-height: 100%;
  margin: 0;
}

.mini-lightbox-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border: 2px solid #d6b04b;
  border-radius: 18px;
  background: #060606;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.62);
  object-fit: contain;
}

.mini-lightbox-caption {
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  min-height: 1.4em;
  margin-top: 12px;
  color: #f8f1d6;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.mini-lightbox button {
  border: 1px solid #d6b04b;
  color: #f8f1d6;
  background: rgba(28, 28, 52, 0.86);
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
}

.mini-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 12px;
  border-radius: 999px;
}

.mini-lightbox-nav {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 58px;
  margin-top: -29px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
}

.mini-lightbox-prev {
  left: 16px;
}

.mini-lightbox-next {
  right: 16px;
}

.mini-lightbox button:hover,
.mini-lightbox button:focus-visible {
  background: rgba(63, 57, 95, 0.96);
  outline: 2px solid #fff4bd;
}

@media (max-width: 760px) {
  .mini-lightbox {
    padding: 48px 12px 28px;
  }

  .mini-lightbox-image {
    max-height: calc(100vh - 138px);
    border-radius: 12px;
  }

  .mini-lightbox-caption {
    padding: 0 42px;
    font-size: 12px;
  }

  .mini-lightbox-nav {
    width: 36px;
    height: 36px;
    margin-top: -18px;
    font-size: 22px;
  }

  .mini-lightbox-prev {
    left: 12px;
  }

  .mini-lightbox-next {
    right: 12px;
  }
}
