/* Apply Titillium Web font to the body */
body {
  font-family: 'Titillium Web', sans-serif;
}

/* Ensure u-sheet-1 has relative positioning */
.u-sheet-1 {
  position: relative;
  overflow: hidden; /* Prevent scroll bar from showing */
}

/* Style the posts container */
.posts-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%; /* Make it responsive */
}

/* Style each post */
.post {
  flex: 0 0 220px;
  width: 220px;
  height: auto;
  margin-right: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  text-decoration: none;
  color: #333;
  scroll-snap-align: start;
  box-sizing: border-box;
}

/* Style the images */
.post img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 8px;
}

/* Style the titles */
.post h2 {
  font-size: 1em;
  margin: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-align: center;
}

/* Hide Scrollbar */
.posts-container::-webkit-scrollbar {
  display: none;
}

/* Arrow Button Styling */
/* Arrow Button Styling */
.u-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 8px 16px;  /* Slightly increased padding for better arrow visibility */
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  opacity: 0.7;
  transition: opacity 0.3s;
  font-size: 20px;    /* Added font size for better arrow visibility */
  line-height: 1;     /* Added to center the arrow vertically */
}

.u-gallery-nav:hover {
  opacity: 1;
}

.u-gallery-nav-prev {
  left: 10px;
}

.u-gallery-nav-next {
  right: 10px;
}