.custom-image-gallery-container {
  max-width: 100%;
}
.custom-image-gallery-container .gallery-title {
  color: #003B7C;
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.custom-image-gallery-container .gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  margin-bottom: 2rem;
}
.custom-image-gallery-container .gallery-grid.news-detail {
  gap: 20px;
}
.custom-image-gallery-container .gallery-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: #f0f0f0;
}
.custom-image-gallery-container .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.custom-image-gallery-container .gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #767a7df5;
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-modal .modal-container {
  display: flex;
  width: 95%;
}
.gallery-modal.active {
  display: flex;
  opacity: 1;
  justify-content: center;
  padding-inline: unset;
  z-index: 9999;
}
.image-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto;
}
.modal-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.modal-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: inherit;
  font-family: "Futura-Bol";
  text-transform: uppercase;
}
.close-btn {
  background: none;
  border: none;
  font-size: 3rem;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: lighter;
}
.close-btn svg {
  fill: #fff;
  width: 24px;
}
.nav-btn {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 3rem;
  font-weight: lighter;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: auto;
  height: auto;
}
.nav-btn svg {
  width: 40px;
  fill: #ccc;
}
.nav-btn:hover {
  color: #ccc;
}
.prev-btn {
  left: -15px;
}
.prev-btn svg {
  transform: rotate(-90deg);
}
.next-btn {
  right: -15px;
}
.next-btn svg {
  transform: rotate(90deg);
}
.image-container {
  position: relative;
  width: 100%;
  text-align: center;
}
.main-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.image-caption {
  width: 100%;
  color: white;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.caption-text {
  margin-bottom: 0;
  color: white;
  font-size: 1rem;
  margin-top: 10px;
  font-weight: bold;
}
.caption-credit {
  font-size: 1rem;
  color: white;
  font-weight: 300;
}
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .prev-btn,
  .next-btn {
    left: unset;
    right: unset;
  }
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-title {
    font-size: 2rem;
  }
  .prev-btn,
  .next-btn {
    left: unset;
    right: unset;
  }
  .close-btn {
    font-size: 2rem;
  }
  .modal-title {
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prev-btn,
  .next-btn {
    left: unset;
    right: unset;
  }
}
