:root{
  --bg: #0f0f12;
  --text: #e8e8ea;
  --muted: #9aa0a6;
  --card: #18181c;
  --accent: #7aa2f7;
  --radius: 14px;
  --maxw: 880px;
  --space: 16px;
}
*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; background:var(--bg); color:var(--text); font:16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Noto Sans', 'Helvetica Neue', Arial, 'Apple Color Emoji', 'Segoe UI Emoji'; }
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

.site-header, .site-footer{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--space);
  display:flex; align-items:center; justify-content:space-between;
}
.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space) 48px;
}
.image-box {
  position: relative;
  width: 60%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  margin: 0 auto;
  border-radius: 12px;
}

.image-box img{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left bottom;

}
section{
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
h1{ font-size: 28px; margin:0; }
h2{ font-size: 20px; margin:0 0 8px; }
p, li{ color: var(--text); }
.site-footer small{ color: var(--muted); }
button{
  background: transparent; border:1px solid var(--muted); color:var(--text);
  border-radius: 999px; padding:8px 12px; cursor:pointer;
}
button:hover{ border-color: var(--accent); }

.nav-button {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
  font-weight: 500;
}

.nav-button:hover {
  border-color: var(--accent);
}

.nav-group{
  position: relative;
  display: inline-block;
}

.nav-dropdown{
  position: absolute;
  top: 110%;
  right:0;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  padding: 6px 0;
  display: none;
  min-width: 140px;
}

.nav-dropdown a {
  display: block;
  padding:  6px 14px;
  color: var(--text);
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: rgba(122,162,247,.1);
}

.nav-group:hover .nav-dropdown {
  display: block;
}


.image-viewer {
  background: var(--card);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  justify-content: center;
}

.viewer-frame {
  width: min(520px, 100%);
  aspect-ratio: 4 / 5;
  background: #0003;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viewer-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewer-frame {
  position: relative;
}

.viewer-frame img{
  display: block;
}

/* slide current image out to the left */
.slide-out-left {
  animation: slideOutLeft 200ms ease forwards;
}

.slide-out-right {
  animation: slideOutRight 200ms ease forwards;
}

.slide-in-left {
  animation: slideInLeft 200ms ease forwards;
}

.slide-in-right {
  animation: slideInRight 200ms ease forwards;
}

@keyframes slideOutLeft {
  from {transform: translateX(0%);}
  to {transform: translateX(-100%)}
}

@keyframes slideOutRight {
  from {transform: translateX(0%);}
  to {transform: translateX(100%)}
}

@keyframes slideInLeft {
  from {transform: translateX(100%);}
  to {transform: translateX(0%)}
}

@keyframes slideInRight {
  from {transform: translateX(-100%);}
  to {transform: translateX(0%)}
}

.viewer-arrow {
  background: rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  width: 76px;
  height: 76px;
  border-radius: 999px;
  font-size: 20px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.viewer-arrow:hover{
  border-color: var(--accent);
}

.viewer-caption{
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}