.gl-slider {
  width: 100%;
}
.gl-head {
  text-align: center;
  margin: 0 0 16px;
}
.gl-title {
  margin: 0 0 8px;
  font-family: 'KoPub Batang', serif;
  font-weight: 400;
  font-style: normal;
  font-size: 22px !important;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-align: center;
}
.gl-excerpt {
  margin: 0 auto;
  font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: 16px;
  line-height: 140%;
  letter-spacing: -0.01em;
  text-align: center;
}
.gl-main {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
}
/* Fixed aspect ratio for consistency (e.g., 16:9). Adjust as needed */
.gl-main::before {
  content: "";
  display: block;
  padding-top: 56.25%;
  width: 100%;
}
.gl-main > img,
.gl-main > picture,
.gl-main > div {
  position: absolute;
  inset: 0;
}
.gl-main img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.gl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.gl-thumbs {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 8px;
  margin: 8px 0 0;
  scroll-behavior: smooth;
  /* Mobile scrolling improvements */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}
.gl-thumbs::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}
.gl-thumb {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: 0.6;
  outline: none;
  border-radius: 4px;
}
.gl-thumb.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px #333 inset;
}
.gl-thumb {
  flex: 0 0 120px; /* Fixed width for each thumbnail */
}
.gl-thumb img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
}
.gl-prev,
.gl-next {
  background: none;
  border: 0;
  padding: 6px 10px;
  cursor: pointer;
  flex: 0 0 auto;
}
.gl-prev img,
.gl-next img {
  width: 27px;
  height: 8px;
}

/* Fade animation */
.gl-fade-enter {
  opacity: 0;
}
.gl-fade-enter.gl-fade-enter-active {
  opacity: 1;
  transition: opacity 250ms ease;
}
.gl-fade-leave {
  opacity: 1;
}
.gl-fade-leave.gl-fade-leave-active {
  opacity: 0;
  transition: opacity 200ms ease;
}
