/* 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*/

/* --- CSS MỚI (log 5.5): lưới ảnh gallery + empty-state — nguồn không có baseline --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 40px;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 4px;
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.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) {
  .gallery-empty {
    margin-right: -16px;
  }
}
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-empty {
    margin-right: -13px;
  }
}
@media (max-width: 767px) {
  .gallery-empty {
    margin-right: -9px;
  }
}
@media (max-width: 575px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-empty {
    margin-right: -6px;
  }
}
