/* ======================================================= */
/* ====== COMPANY ENVIRONMENT CSS ======================== */
/* ======================================================= */

.environment-section {
  background-color: #f9fafb; /* bg-gray-50 */
  padding: 5rem 0;
}
.environment-container {
  max-width: 64rem; /* max-w-5xl */
  margin: 0 auto;
  padding: 0 1rem;
}
.environment-container .section-heading {
  text-align: center;
}
@media (min-width: 1024px) {
  /* lg:text-left */
  .environment-container .section-heading {
    text-align: left;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem; /* gap-4 */
}
@media (min-width: 640px) {
  /* sm:grid-cols-2 for tablets, your code had md: */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  /* md:grid-cols-4 */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); /* shadow-sm */
  transition: box-shadow 0.3s;
}
.gallery-item:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1); /* hover:shadow-xl */
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9; /* aspect-video */
  transition: transform 0.3s;
}
.gallery-item:hover .gallery-image {
  transform: scale(1.05); /* group-hover:scale-105 */
}

/* --- LIGHTBOX STYLES (Slightly modified from certification lightbox) --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox.lightbox--visible {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  background-color: white;
  padding: 0.5rem; /* p-2 */
  border-radius: 0.5rem;
  max-width: 56rem; /* max-w-4xl */
  width: 100%;
}
#lightbox-image {
  width: 100%;
  height: 100%;
  max-height: 80vh;
  object-fit: cover;
  border-radius: 0.375rem;
}
.lightbox-close {
  position: absolute;
  top: -1rem;
  right: -1rem; /* -top-4 -right-4 */
  background-color: white;
  color: #1f2937;
  border-radius: 9999px;
  padding: 0.5rem;
  border: none;
  cursor: pointer;
  line-height: 0;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  transition: background-color 0.2s;
}
.lightbox-close:hover {
  background-color: #e5e7eb;
}
