body {
  font-family: system-ui, sans-serif;
  margin: 0;
  background: #fafafa;
  color: #333;
}

h1{
  text-align: center;
  margin: 20px 0;
}

h2 {
  margin: 10px 0;
}

/* ===== SLIDER ===== */
.slider {
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.group-ss {
  max-width: 1100px;
  margin: 20px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 10px 15px;

  /* Sticky */
  position: sticky;
  top: 0;
  background: #fff; /* đỏ tươi */
  z-index: 10;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);

  /* transition nhẹ khi hover hoặc scroll */
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Khi hover trên container, nâng nhẹ shadow */
.group-ss:hover {
  box-shadow: 0 6px 15px rgba(0,0,0,0.3);
  transform: translateY(-2px);
}

/* ===== GALLERY ===== */
.gallery {
  max-width: 1100px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 0 15px;
}

.gallery img {
  width: 100%;
  border-radius: 6px;
  cursor: zoom-in;
  transition: transform 0.3s;
}

.gallery img:hover {
  transform: scale(1.05);
}

.gallery .item {
  position: relative;
}

.gallery .index {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 13px;
  padding: 3px 6px;
  border-radius: 4px;
  z-index: 2;
}

.load-more-wrap {
  text-align: center;
  margin: 30px 0;
}

.loadMore {
  padding: 10px 20px;
  border: none;
  background: #111;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  font-size: 14px;
  margin: auto;
	display: block;
}

.loadMore:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  display:none;
  
}


.slides img{
  aspect-ratio: 3 / 2;   /* chỉnh theo tỷ lệ ảnh của bạn */
  background: #eee;
}
.gallery img {
  background: #eee;
}


.gallery .item {
    position: relative;
    display: flex;
    align-items: center;      /* giữa theo chiều dọc */
    justify-content: center;  /* giữa theo chiều ngang */
}

.gallery .item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* giữ nguyên tỉ lệ */
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.lightbox img {
  max-width: 100%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 0 20px #000;
}

.lightbox.show {
  display: flex;
  padding: 20px;
  overflow: auto;
}



body.no-scroll {
  overflow: hidden;
}

#fb-comment-wrapper {
  background: #fff;
  margin-top: 15px;
  padding: 10px;
  border-radius: 6px;
}

/* Nút đóng */
#lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem; /* kích thước lớn */
  color: #fff;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.3s, transform 0.2s;
}

#lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

#lightbox-close:focus {
  outline: none;
}