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: 1150px;
  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;
    padding: 18px 25px;
    position: sticky;
    top: 0;
    z-index: 10;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Background đẹp */
    background: linear-gradient(135deg, #ffefba, #ffffff);

    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);

    transition: 
        box-shadow 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

/* Hover nhẹ */
.group-ss:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* Tiêu đề */
.group-ss h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #b12a34;
    letter-spacing: 0.5px;
    text-align: center;
}

/* Gạch trang trí dưới tiêu đề */
.group-ss h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #b12a34, #ff7a7a);
    margin: 8px auto 0;
    border-radius: 3px;
}

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

.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;
}