.news-images,
.news-images > p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2em;
}

.news-images .news-photo-container {
    width: 24em;                   /* fixed width */
    height: 24em;                  /* fixed height */
    overflow: hidden;
    border-radius: 0.5em;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between; /* space for image and caption */
}

.news-images .news-photo-container .imagebox {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0.5em;
}

.news-images .news-photo-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* ensures full image is shown */
    transition: transform 0.3s ease;
}

.news-images .news-photo-container:hover img {
    transform: scale(1.03); /* slight zoom effect */
}

.news-images .news-photo-description,
.news-credits {
    font-size: 75%;
    color: var(--c-ocean);
    line-height: normal;
    text-align: center;
    padding: 0.5em 0.75em;
    width: 100%;
}

.news-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.news-image-container {
  position: relative;
  overflow: hidden;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.news-image-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.news-image-container:hover img {
  transform: scale(1.03);
}

.caption {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  width: 100%;
  padding: 8px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 0.9rem;
}

.news-image-container:hover .caption {
  opacity: 1;
}

details.accordion {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0.5em 1em;
  margin-bottom: 1em;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

details.accordion summary {
  font-weight: bold;
  cursor: pointer;
  position: relative;
  padding-right: 1.5em;
}

details.accordion summary::after {
  content: "▼";
  position: absolute;
  right: 0;
  transition: transform 0.3s ease;
}

details.accordion[open] summary::after {
  transform: rotate(180deg);
}

details.accordion summary:hover {
  color: #007acc;
}


