/* Gallery Grid */
.gallery-container {
  max-width: 960px;
  margin: 20px auto;
  padding: 0 1rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 50px;
}

.media-card {
  background: rgba(0, 133, 255, 0.05);
  border: 1px solid #0085FF;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.media-card:hover {
  transform: translateY(-5px);
  border-color: #FF008A;
}

.thumbnail {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.media-info {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-info h4 {
  margin: 0;
  font-size: 0.9em;
  color: #FF008A;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.1ch;
}

.info-btn {
  background: none;
  color: #0085FF;
  border: 1px solid #0085FF;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.75em;
  transition: all 0.2s;
  text-transform: uppercase;
  font-family: 'FuturaBkBt', sans-serif;
  letter-spacing: 0.1ch;
}

.info-btn:hover {
  background: #FF008A;
  color: #000;
  border-color: #FF008A;
}

/* Loading and Error States */
.loading, .error, .no-media {
  text-align: center;
  padding: 50px 20px;
  color: #0085FF;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 0.2ch;
}

.error {
  color: #FF008A;
}

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

.lightbox-content {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border: 2px solid #FF008A;
}

.lightbox-caption {
  max-width: 800px;
  margin-top: 20px;
  padding: 20px;
  background-color: rgba(0, 133, 255, 0.05);
  border: 1px solid #0085FF;
  text-align: center;
}

.lightbox-caption h3 {
  margin: 0 0 10px 0;
  color: #FF008A;
  font-size: 1.3em;
  text-transform: uppercase;
  letter-spacing: 0.5ch;
}

.lightbox-caption p {
  margin: 0;
  color: #0085FF;
  line-height: 1.6;
  font-size: 0.95em;
  text-transform: none;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #FF008A;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10001;
}

.close:hover {
  color: #0085FF;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .thumbnail {
    height: 200px;
  }

  .close {
    top: 15px;
    right: 20px;
    font-size: 40px;
  }

  .lightbox-content {
    max-width: 95%;
  }
}
