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

body {
  background-color: rgb(25, 25, 25);
  color: rgb(140, 140, 140);
  font-family: -apple-system, "system-ui", Inter, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(50, 50, 50, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0 20px;
  border-radius: 6px;
  margin-top: 12px;
  position: relative;
}

.nav-info {
  position: absolute;
  right: 20px;
}

.top-nav a:hover {
  color: #fff;
}

/* Site Header */
.site-header {
  text-align: center;
  padding: 30px 0 10px;
}

.site-header h1 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
  color: rgb(100, 100, 100);
}

/* Home Gallery - Freeform Layout */
.gallery-freeform {
  position: relative;
  width: 100%;
  height: 80vh;
  margin: 0 auto;
}

.folder-item {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--scale) * 100%);
  transform: rotate(var(--rotation));
  display: block;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.folder-item:hover {
  z-index: 10;
}

.folder-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 0 60px;
}

.more-info-link {
  font-size: 14px;
  color: rgb(120, 120, 120);
  transition: color 0.2s;
}

.more-info-link:hover {
  color: #fff;
}

/* Page Header (subpages) */
.page-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: rgb(100, 100, 100);
  padding: 25px 0 20px;
  font-style: italic;
}

/* Description text (about page) */
.page-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 14px;
  line-height: 1.6;
  color: rgb(160, 160, 160);
  padding: 0 20px;
}

/* Image Grid (subpages) */
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 0 30px 60px;
  max-width: 1500px;
  margin: 0 auto;
}

.image-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

/* Single column layout (about page) */
.image-single {
  max-width: 750px;
  margin: 0 auto;
  padding: 0 30px 60px;
}

.image-single img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* Info Overlay */
.info-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
}

.info-overlay.active {
  display: block;
}

.info-content {
  background: rgb(25, 25, 25);
  padding: 20px 30px;
  max-width: 100%;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.info-title {
  font-size: 14px;
  color: rgb(180, 180, 180);
}

.info-close {
  font-size: 14px;
  color: rgb(140, 140, 140);
  cursor: pointer;
}

.info-close:hover {
  color: #fff;
}

.info-body {
  font-size: 13px;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.info-labels {
  min-width: 0;
}

.info-labels p,
.info-values p {
  margin-bottom: 2px;
  line-height: 1.5;
}

.info-name {
  color: rgb(160, 160, 160);
}

.info-values a {
  color: rgb(160, 160, 160);
}

.info-values a:hover {
  color: #fff;
}

.info-divider {
  border: none;
  border-top: 1px solid rgb(60, 100, 200);
  margin: 15px 0;
}

.info-updated {
  margin-top: 15px;
  font-size: 12px;
  color: rgb(100, 100, 100);
}

/* Responsive */
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 15px 40px;
  }

  .gallery-freeform {
    height: auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .folder-item {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
  }

  .folder-item:hover {
    transform: scale(1.02);
  }

  .info-row {
    flex-direction: column;
    gap: 5px;
  }
}
