:root {
  --accent: #71f5b5;
  --bg: #0a0a0a;
}

body {
  background-color: var(--bg);
  color: var(--accent);
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 2rem;
  min-height: 100vh;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 2.5rem auto;
  flex-wrap: wrap;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.back-btn {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.back-btn:hover {
  color: #9fffd1;
}

/* Album grid */
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(113, 245, 181, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 35px rgba(113, 245, 181, 0.5);
}

/* Modal (image preview) */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.modal.show {
  opacity: 1;
  transform: scale(1);
}

.modal img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 1rem;
  box-shadow: 0 0 35px var(--accent);
  animation: zoomIn 0.25s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 2.5rem;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s ease;
  z-index: 1100;
}

.close:hover {
  color: #9fffd1;
}

/* Arrows inside modal */
.arrow {
  position: absolute;
  top: 50%;
  font-size: 3rem;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
  transform: translateY(-50%);
  transition: color 0.3s ease, transform 0.2s ease;
  display: none;
  padding: 0.5rem 1rem;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.25);
  z-index: 1100;
}

.arrow:hover {
  color: #9fffd1;
  transform: translateY(-50%) scale(1.1);
}

.arrow.left {
  left: 1rem;
}

.arrow.right {
  right: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1.5rem;
  }

  .album-grid {
    gap: 1.5rem;
  }

  .photo {
    border-radius: 0.8rem;
  }

  .close {
    font-size: 2rem;
  }

  .arrow {
    font-size: 2.2rem;
    padding: 0.4rem 0.8rem;
  }

  .modal img {
    max-width: 95%;
    max-height: 75%;
  }
}

@media (max-width: 480px) {
  .album-grid {
    grid-template-columns: 1fr;
  }

  .photo {
    width: 100%;
  }

  .arrow {
    font-size: 1.8rem;
    padding: 0.3rem 0.6rem;
  }

  .close {
    font-size: 1.8rem;
  }
}
