.photo-grid {
  columns: 1;
  column-gap: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 620px) {
  .photo-grid {
    columns: 2;
    max-width: 100%;
  }
}

@media (min-width: 900px) {
  .photo-grid {
    columns: 3;
  }
}

.photo-item {
  position: relative;
  margin-bottom: 1.25rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: zoom-in;
}

.photo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(7, 12, 23, 0.65);
}

.photo-item img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.photo-item img.loaded {
  opacity: 1;
}

/* Lightbox Component Styles */
/* Lightbox Component Styles */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 17, 0.8);
  display: grid;
  place-items: center;
  z-index: 90;
  padding: 2rem;
}

@media (max-width: 620px) {
  .modal-backdrop {
    padding: 1rem 0;
  }
}

.modal {
  position: relative;
  width: min(1200px, 95vw);
  height: 90vh;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(10, 14, 24, 0.95);
  box-shadow: 0 40px 70px rgba(7, 12, 23, 0.65);
  display: grid;
  grid-template-rows: 1fr auto;
}

@media (max-width: 620px) {
  .modal {
    width: 100vw;
    height: calc(100vh - 2rem);
    border-radius: 16px 16px 0 0;
  }
}

.modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  width: 100%;
}

.modal img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: rgba(226, 232, 240, 0.9);
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
}

.close-btn:hover {
  background: rgba(59, 130, 246, 0.35);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.75);
  border: none;
  color: rgba(226, 232, 240, 0.9);
  width: 3rem;
  height: 5rem;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.nav-button:hover {
  background: rgba(59, 130, 246, 0.5);
}

.nav-prev {
  left: 1rem;
  border-radius: 0 8px 8px 0;
}

.nav-next {
  right: 1rem;
  border-radius: 8px 0 0 8px;
}

.photo-counter {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.75);
  color: rgba(226, 232, 240, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  backdrop-filter: blur(8px);
}

.thumbnail-strip {
  background: rgba(15, 23, 42, 0.95);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
  height: 120px;
}

.thumbnail-strip::-webkit-scrollbar {
  height: 6px;
}

.thumbnail-strip::-webkit-scrollbar-track {
  background: transparent;
}

.thumbnail-strip::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.3);
  border-radius: 6px;
}

.thumbnail {
  flex: 0 0 auto;
  width: 90px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  background: rgba(0, 0, 0, 0.2);
}

.thumbnail:hover {
  opacity: 0.8;
}

.thumbnail.active {
  opacity: 1;
  border-color: rgba(59, 130, 246, 0.5);
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.badge {
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 2px 4px rgba(7, 12, 23, 0.1);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 12px;
}

.badge:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.3);
}
