.subpage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.subpage-item {
  flex: 1 1 calc(100% - 5px);
  margin: 0;
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subpage-image-container {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.subpage-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.subpage-image-container img {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.subpage-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  border-radius: 10px;
}

.subpage-image-title {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  font-size: 1em;
  z-index: 1;
  text-decoration: none;
}

.subpage-image-title a {
  color: #fff;
  text-decoration: none;
}

.subpage-image-container a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.latest-subpage-item {
  flex: 1 1 calc(100% - 5px);
  margin: 0;
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.latest-subpage-image-container {
  position: relative;
  width: 100%;
  height: 120px;
  border-radius: 10px;
}

.latest-subpage-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.latest-subpage-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  border-radius: 10px;
}

.latest-subpage-image-title {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #fff;
  font-size: 1em;
  z-index: 1;
  text-decoration: none;
}

.latest-subpage-image-title a {
  color: #fff;
  text-decoration: none;
}

.latest-subpage-image-container a {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

@media (max-width: 350px) {
  .subpage-item, .latest-subpage-item {
    flex: 1 1 calc(100% - 5px);
  }
}

@media (min-width: 351px) and (max-width: 768px) {
  .subpage-item, .latest-subpage-item {
    flex: 1 1 calc(50% - 5px);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .subpage-item, .latest-subpage-item {
    flex: 1 1 calc(33.33% - 5px);
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .subpage-item, .latest-subpage-item {
    flex: 1 1 calc(25% - 5px);
  }
}

@media (min-width: 1281px) {
  .subpage-item, .latest-subpage-item {
    flex: 1 1 calc(20% - 5px);
  }
}

.latest-subpage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.latest-subpage-item {
  flex: 1 1 calc(50% - 5px);
  margin: 0;
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
