.news-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* max 4 per row */
  padding: 10px;
}

/* Responsive breakpoints */
@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.news-card {
  background: #fff;
  overflow: hidden;
  display: flex;
  position: relative;
  flex-direction: column;
  border: 1px solid rgb(220, 220, 220);
  border-radius: 10px;
}
.news-card:hover {
  scale: 1.02;
}
.news-card:active {
  scale: 1;
}

/* Image */
.news-thumb {
  width: 100%;
  aspect-ratio: 16 / 9; /* keeps uniform height */
  object-fit: cover;
  display: block;
}

.bottom-line {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.image-carousel-thumbnails {
  display: flex;
  align-self: center;
  justify-content: center;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border-radius: 10px;
}

.image-carousel-thumbnails[hidden] {
  display: none;
}

.image-carousel .grid-image {
  height: auto;
}

.image-carousel-thumbnail {
  width: 58px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.65;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  transition:
    opacity 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.image-carousel-thumbnail:hover,
.image-carousel-thumbnail:focus-visible,
.image-carousel-thumbnail.is-active {
  opacity: 1;
  border-color: rgb(0, 0, 0);
}

.image-carousel-thumbnail.is-active {
  transform: translateY(-2px);
}

.image-carousel-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 560px) {
  .image-carousel-thumbnails {
    gap: 5px;
    padding: 5px;
  }

  .image-carousel-thumbnail {
    width: 46px;
    height: 35px;
  }
}

/* Body */
.news-body {
  padding: 14px 16px 16px 16px;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 2px 0 6px;
  color: #111;
}

.news-subtitle {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.45;
  margin: 0 0 25px;
}

/* Tag */
.news-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  position: absolute;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(233, 75, 41);
  color: #ffffff;
  bottom: 10px;
  left: 10px;
}

/* article reference */
.news-reference {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: auto;
}

.news-title-container {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  width: 70%;
  height: 100%;
  gap: 10px;
}

.news-article-title {
  font-size: 4rem;
  font-weight: 500;
}

.news-article-substitle {
  font-size: 1.7rem;
  color: rgb(150, 150, 150);
}

.news-article-date {
  font-size: 1rem;
  color: rgb(150, 150, 150);
}

.news-writer-container {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  width: 30%;
  height: 100%;
  gap: 10px;
}

.news-writer {
  font-size: 1rem;
  font-weight: 500;
}

.news-writer-name {
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(233, 75, 41);
  color: #ffffff;
}

.news-writer-roll {
  font-size: 1rem;
  font-weight: 600;
  color: rgb(233, 75, 41);
}

.news-text-reference {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto;
  padding-top: 50px;
}

.news-text-container {
  display: flex;
  align-items: left;
  flex-direction: column;
  width: 100%;
  height: 100%;
  gap: 10px;
}

.news-article-text-title {
  font-size: 3rem;
  font-weight: 500;
  color: rgb(0, 0, 0);
  width: 100%;
}

.news-article-text-title-small {
  font-size: 2.5rem;
  font-weight: 500;
  color: rgb(0, 0, 0);
  width: 100%;
}

.news-article-text {
  font-size: 1.8rem;
  color: rgb(150, 150, 150);
  width: 100%;
}

.news-article-text-small {
  font-size: 1.3rem;
  color: rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 800px;
}

.director-wrap {
  display: flex;
  gap: 16px;
  height: 100%;
  width: 100%;
}
.director-main {
  flex: 1 1 100%;
}
.director-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex: 1 1 100%;
}
.director-notes .director-note-1 {
  flex: 1 1 calc(50% - 8px);
}

.director-note-1 {
  height: 100%;
}
.director-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
.director-caption {
  text-align: center;
  padding: 5px;
}

@media (max-width: 1024px) {
  .director-main {
    flex: 0 0 calc(50% - 8px);
  }
  .director-notes {
    flex: 0 0 calc(50% - 8px);
  }
  .director-notes .director-note-1 {
    flex: 0 0 calc(50% - 8px);
  }
  .news-reference {
    flex-direction: column;
  }
  .news-writer-container {
    width: 100%;
    padding-top: 15px;
  }
  .news-title-container {
    width: 100%;
  }
  .news-article-title {
    font-size: 2rem;
  }
  .director-wrap {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    width: 100%;
  }
  .director-img {
    border-radius: 0px;
    max-height: 50vh;
  }
  .news-article-substitle {
    font-size: 1.3rem;
  }
  .news-article-text-small {
    max-width: none;
  }
}
