/* ===== Portrait Galerie ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: url("hg/vikhg.png") no-repeat center center fixed;
  background-size: cover;
  color: white;
  text-align: center;
}

.title {
  margin: 20px 0;
  font-size: 2rem;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

/* Galeriewand */
.gallery-wall-frame {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 60px;
  flex-wrap: wrap;
}

.gallery-wall-frame .frame {
  display: inline-block;
  position: relative;
  background: #222;
  border: 6px solid #444;
  box-shadow: 0 5px 20px rgba(0,0,0,0.7);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  border-radius: 6px;
  cursor: pointer;
}

.gallery-wall-frame .frame img {
  display: block;
  max-width: 280px;
  height: auto;
  border-radius: 3px;
}

/* Glow hinter dem Rahmen */
.gallery-wall-frame .frame::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  background: radial-gradient(circle, rgba(0,255,100,0.15) 0%, transparent 70%);
  z-index: -1;
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 0.6;
  border-radius: 12px;
}

/* Hover-Effekt */
.gallery-wall-frame .frame:hover {
  transform: scale(1.07);
  box-shadow: 0 20px 50px rgba(0,0,0,0.9);
}

.gallery-wall-frame .frame:hover::before {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
  background: radial-gradient(circle, rgba(0,255,100,0.3) 0%, transparent 80%);
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  cursor: pointer;
}

.controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 40px;
}

.controls span {
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

/* Smartphone: Grid */
@media (max-width: 768px) {
  .gallery-wall-frame {
    gap: 20px;
    padding: 20px;
  }
  .gallery-wall-frame .frame {
    max-width: 45%;
  }
  .gallery-wall-frame .frame img {
    max-width: 100%;
  }
}
