/* Tour (module/feature-tour.php). Phần lớn dùng class của beer + chung (custom.css: swipe-s, card-link). Ở đây chỉ phần riêng. */

.tv-tour-img{display:block;inline-size:100%;aspect-ratio:4 / 3;object-fit:cover}
.tv-tour-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1.5rem;block-size:3rem}  /* tên luôn chiếm 2 dòng: giá các thẻ thẳng hàng */
.tv-tour-meta{color:var(--on-surface-variant)}
.tv-tour-meta > i{color:var(--outline)}

/* Lịch trình theo ngày (modules/content.php): .accordion của beer (mũi tên bên phải); mở ngày thì ẩn ảnh nhỏ (nội dung có ảnh riêng) */
.tv-days > section > button > img.medium{max-inline-size:none;max-block-size:none}   /* beer giới hạn ảnh trong nút 1.5rem; cỡ lấy theo class medium */
.tv-days > section.active > button > img{display:none}
.accordion.tv-days > section{border:.0625rem solid var(--outline-variant)}   /* mỗi ngày có viền (beer bỏ viền ở accordion *-space) */
.tv-days > section > button > span{font-size:1.25rem;line-height:1.75rem}   /* tiêu đề ngày to hơn chữ nút (1rem), đậm bằng class bold */

/* Gallery (modules/tour-gallery.php). Lưới, ô, nhãn +N dùng class của beer; ở đây chỉ phần beer chưa có.
   Từ m: hàng cao cố định (không theo tỉ lệ ảnh), ảnh đầu chiếm 2 hàng bên trái, mọi ảnh phủ kín ô → các cạnh luôn thẳng hàng */
@media (min-width:601px){
  .tv-gallery{grid-auto-rows:12rem}
  .tv-gallery > :first-child{grid-row:span 2}
  .tv-gallery img.responsive{block-size:100%}   /* thắng img.responsive.medium (12rem) của beer */
}
@media (min-width:993px){.tv-gallery{grid-auto-rows:15rem}}
/* Chỉ có 4 ảnh (3 ảnh nhỏ): ảnh nhỏ cuối kéo hết chỗ trống của hàng */
.tv-gallery > :nth-child(4):last-child{grid-column:span 12}
@media (min-width:601px){.tv-gallery > :nth-child(4):last-child{grid-column:span 6}}

/* Dialog xem ảnh: ảnh hiện trọn, vừa chiều cao màn hình (chừa tiêu đề + chú thích + chấm) */
#tour-gallery img{block-size:calc(100dvh - 10rem);object-fit:contain}
/* Khung ảnh ôm sát ảnh (rộng theo tỉ lệ ảnh, không quá ô) để bo góc nằm đúng góc ảnh, không bo vào khoảng trống của contain */
#tour-gallery img.responsive{inline-size:auto;max-inline-size:100%;object-fit:cover}
/* Màn l: không tràn toàn màn hình mà gọn bằng khổ trang (main.responsive, 75rem), cách trên 2rem, bo góc; nền trang mờ phía sau */
@media (min-width:993px){
  #tour-gallery.max{inset:2rem 0 auto;margin-inline:auto;inline-size:min(75rem, 100% - 2rem);block-size:auto;border-radius:.75rem}
  #tour-gallery img{block-size:calc(100dvh - 14rem)}
}
