/* Step 5.5 — CSS trang /gallery/ (REQ-WEB-04).
   Nguyên văn block <style> trang từ content-snapshot/gallery.html
   dòng 153-234 (u-section-2 + responsive), không sửa — kể cả rule
   .u-shortcode-1 (class không dùng lại, giữ verbatim như about.css).
   Nguồn HỎNG (shortcode [immich_gallery] thô, không có grid thật) →
   phần gallery-grid + empty-state DƯỚI LÀ CSS MỚI, tự dựng theo khung
   u-* (log 5.5). */

.u-section-2 {
  background-image: none;
}
.u-section-2 .u-sheet-1 {
  min-height: 400px;
}
.u-section-2 .u-group-1 {
  width: 1130px;
  min-height: 393px;
  margin: 4px 0 4px auto;
}
.u-section-2 .u-container-layout-1 {
  padding-left: 20px;
  padding-right: 20px;
}
.u-section-2 .u-shortcode-1 {
  min-height: 178px;
  margin: 0 -20px 40px 0;
}
/*RESPONSIVE_MEDIA*/
@media (max-width: 1199px) {
  .u-section-2 .u-group-1 {
    width: 932px;
  }
  .u-section-2 .u-container-layout-1 {
    padding-left: 16px;
    padding-right: 16px;
  }
  .u-section-2 .u-shortcode-1 {
    height: auto;
    margin-right: -16px;
  }
}
/*/RESPONSIVE_MEDIA*/

/*RESPONSIVE_MEDIA*/
@media (max-width: 991px) {
  .u-section-2 .u-group-1 {
    width: 714px;
  }
  .u-section-2 .u-container-layout-1 {
    padding-left: 13px;
    padding-right: 13px;
  }
  .u-section-2 .u-shortcode-1 {
    margin-right: -13px;
  }
}
/*/RESPONSIVE_MEDIA*/

/*RESPONSIVE_MEDIA*/
@media (max-width: 767px) {
  .u-section-2 .u-sheet-1 {
    min-height: auto;
  }
  .u-section-2 .u-group-1 {
    width: 540px;
  }
  .u-section-2 .u-container-layout-1 {
    padding-left: 9px;
    padding-right: 9px;
  }
  .u-section-2 .u-shortcode-1 {
    margin-right: -9px;
  }
}
/*/RESPONSIVE_MEDIA*/

/*RESPONSIVE_MEDIA*/
@media (max-width: 575px) {
  .u-section-2 .u-group-1 {
    width: 340px;
  }
  .u-section-2 .u-container-layout-1 {
    padding-left: 6px;
    padding-right: 6px;
  }
  .u-section-2 .u-shortcode-1 {
    margin-right: -6px;
  }
}
/*/RESPONSIVE_MEDIA*/

/* --- Step 5.11 (REQ-WEB-18): lưới gallery namespace `sb-gallery-*` ---
   (Thay toàn bộ block "CSS MỚI (log 5.5)" dùng class trần `.gallery-grid` /
   `.gallery-item` / `.gallery-empty` — `.gallery-item` va chạm style.css:2013.)
   Đổi tên vì `.gallery-item` đã bị CSS vendor chiếm (style.css:2013 — gallery của
   WordPress, port nguyên văn ở 5.1: display:inline-block + max-width:33.33% +
   width:100%). Rule cũ của 5.5 không set max-width nên không có gì "thắng" lại →
   ô lưới 352.66px bị bó còn 117.5px, ảnh chỉ hiện một phần dọc. Cùng namespace
   riêng = hết phụ thuộc thứ tự load và hết va chạm với họ `.gallery-columns-*`.
   Khung 4:5 thay `height:260px`: 14 ảnh của tiệm có AR 0.75→1.13 (ảnh dọc điện
   thoại), ô 352×260 (AR 1.35) cắt đầu/cuối bàn tay. */
.sb-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0 40px;
}
.sb-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}
.sb-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.sb-gallery-empty {
  min-height: 178px;
  margin: 0 -20px 40px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #999;
  font-size: 1.125rem;
}
@media (max-width: 1199px) {
  .sb-gallery-empty { margin-right: -16px; }
}
@media (max-width: 991px) {
  .sb-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sb-gallery-empty { margin-right: -13px; }
}
@media (max-width: 767px) {
  .sb-gallery-empty { margin-right: -9px; }
}
@media (max-width: 575px) {
  .sb-gallery-grid { grid-template-columns: 1fr; }
  .sb-gallery-empty { margin-right: -6px; }
}
