* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000;
  color: #bbb;
  font-family: "Goudy Bookletter 1911", Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
  min-height: 100vh;
  padding-bottom: 70px;
}

a {
  color: #bbb;
  text-decoration: none;
}

a:hover {
  color: #666;
}

.bottom-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.2rem 1rem;
  background: #000;
  z-index: 100;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.center-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
}

.center-page h1 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 480px;
  margin-top: 2rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #bbb;
  text-align: left;
}

.contact-form textarea,
.contact-form input {
  background: #111;
  border: 1px solid #333;
  color: #bbb;
  padding: 0.6rem;
  font-size: 0.9rem;
  font-family: inherit;
  border-radius: 0;
  outline: none;
}

.contact-form textarea:focus,
.contact-form input:focus {
  border-color: #bbb;
}

.contact-form button {
  background: #bbb;
  color: #000;
  border: none;
  padding: 0.6rem 1.3rem;
  font-size: 0.8rem;
  cursor: pointer;
  align-self: flex-start;
}

.contact-form button:hover {
  background: #666;
}

.list-page {
  padding: 3rem 2rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gallery-list li {
  font-size: 0.9rem;
}

.gallery-list a:hover {
  color: #666;
}

.gallery-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-page h1 {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1.2rem;
}

.back-arrow {
  font-size: 1.2rem;
}

.back-arrow:hover {
  color: #666;
}

.gallery-section {
  margin-bottom: 6rem;
}

.gallery-section h2 {
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  color: #888;
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.thumb-link {
  display: block;
  overflow: hidden;
}

.thumb-link img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.thumb-link:hover img {
  opacity: 0.7;
}

.slideshow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
}

.slideshow .ss-img {
  max-width: 100%;
  height: 80vh;
  width: auto;
  object-fit: contain;
}

.slideshow .ss-prev,
.slideshow .ss-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  color: #bbb;
  user-select: none;
  z-index: 10;
}

.slideshow .ss-prev:hover,
.slideshow .ss-next:hover {
  color: #666;
}

.slideshow .ss-prev {
  left: 0;
}

.slideshow .ss-next {
  right: 0;
}

.horizontal-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.horizontal-row img {
  height: 80vh;
  width: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay.hidden {
  display: none;
}

.overlay-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.overlay-content img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.overlay-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 210;
  color: #bbb;
  line-height: 1;
}

.overlay-close:hover {
  color: #666;
}

.overlay-prev,
.overlay-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
  color: #bbb;
  user-select: none;
  z-index: 210;
}

.overlay-prev:hover,
.overlay-next:hover {
  color: #666;
}

.overlay-prev {
  left: 0.5rem;
}

.overlay-next {
  right: 0.5rem;
}

@media (max-width: 600px) {
  .thumb-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }
  .list-page {
    padding: 1.5rem 1rem 1rem;
  }
  .gallery-page {
    padding: 1rem;
  }
  .bottom-menu {
    gap: 1.5rem;
    font-size: 0.9rem;
  }
  .horizontal-row img {
    height: 50vh;
  }
}