:root {
  --bg: #000;
  --accent: #94f9ff;
  --accent-hover: #fff;
  --copy: #94f9ff;
  --font: Arial, Helvetica, sans-serif;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--copy);
  font-family: var(--font);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--accent-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(960px, 100%);
  margin: 0 auto;
}

.header img {
  display: block;
  width: 100%;
}

.layout {
  display: flex;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 225px;
  width: 225px;
  min-height: 580px;
  background: url("images/sidebar-lady2.jpg") no-repeat top left;
}

.content {
  flex: 1;
  min-width: 0;
  padding: 0 30px 24px 0;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin: 20px 0;
  padding: 0;
  font-size: 0.83em;
}

.nav a {
  display: block;
  padding: 4px 12px;
  color: var(--accent);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent-hover);
}

.hero {
  text-align: center;
}

.hero img {
  margin: 6px 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1rem;
  margin: 0 0 2rem;
}

.gallery-item {
  margin: 0;
  text-align: center;
}

.gallery-item img {
  margin: 6px 0;
}

.gallery-item figcaption,
.article p {
  color: var(--copy);
  font-size: 12px;
  text-align: left;
  padding: 5px 15px 10px;
}

.gallery-hint {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.contact,
.article {
  max-width: 36rem;
  margin: 2rem auto;
  text-align: center;
}

.article h1 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

.article img {
  margin: 6px 0;
  border: 1px solid #333;
}

.footer {
  margin: 1.5rem 0 0;
  padding: 1rem 0;
  text-align: center;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  opacity: 0.5;
  color: var(--accent);
}

.footer a {
  font-size: 11px;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4.5rem 2rem;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-width: min(80vw, 960px);
  text-align: center;
}

.lightbox img {
  max-height: 80vh;
  background: transparent;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox img.is-visible {
  opacity: 1;
}

.lightbox figcaption {
  color: #ccc;
  font-size: 13px;
  margin-top: 0.75rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox img.is-visible + figcaption {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .lightbox img,
  .lightbox figcaption {
    transition: none;
  }
}

.lightbox button {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  line-height: 1;
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2rem;
  padding: 0.5rem;
  z-index: 1001;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 4rem;
  height: 100%;
  max-height: none;
  font-size: 3.5rem;
  padding: 0;
}

.lightbox-prev {
  left: 0;
}

.lightbox-next {
  right: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-prev:focus,
.lightbox-next:focus {
  background: rgba(148, 249, 255, 0.08);
}

@media (max-width: 800px) {
  .layout {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .content {
    padding: 0 16px 24px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}
