/* ── SỰ KIỆN U-HOME (trang chủ, kiểu Zalo) ── */
.uh-sk-swiper {
  padding: 4px 2px 0;
  cursor: grab;
}

.uh-sk-swiper > .swiper-pagination {
  position: static;
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.uh-sk-swiper .swiper-pagination-bullet-active {
  background: var(--uh-color-primary);
}

.uh-sk-swiper .uh-sk-slide {
  display: flex;
  height: auto;
}

.uh-sk-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 6px 24px rgba(20, 32, 46, 0.06);
}

.uh-sk-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.uh-sk-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #e5e9ef;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uh-sk-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uh-sk-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.uh-sk-name {
  font-size: 15px;
  font-weight: 700;
  color: #14202e;
}

.uh-sk-time {
  font-size: 13px;
  color: #4a5a6b;
}

/* Vùng chữ cố định 2 dòng (mọi card cao bằng nhau). Chữ dài: "… Xem thêm" nằm cuối dòng 2 như Zalo */
.uh-sk-body {
  position: relative;
  height: 48px;
  margin-bottom: 12px;
  overflow: hidden;
  font-size: 15px;
  line-height: 24px;
  color: #14202e;
}

.uh-sk-body::before {
  content: "";
  float: right;
  width: 0;
  height: 24px;
}

.uh-sk-toggle {
  display: none;
  float: right;
  clear: right;
  height: 24px;
  margin: 0;
  padding: 0 0 0 22px;
  border: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 22px);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  color: #4a5a6b;
  cursor: pointer;
}

.uh-sk-toggle::before {
  content: "… ";
  color: #14202e;
}

.uh-sk-toggle:hover {
  color: #e4181f;
}

.uh-sk-card.has-more .uh-sk-toggle {
  display: block;
}

.uh-sk-body.is-open {
  display: flex;
  flex-direction: column;
  height: auto;
  overflow: visible;
}

.uh-sk-body.is-open::before {
  display: none;
}

.uh-sk-body.is-open .uh-sk-toggle {
  order: 2;
  float: none;
  align-self: flex-start;
  padding: 0;
  background: none;
  font-weight: 700;
  color: #e4181f;
}

.uh-sk-body.is-open .uh-sk-toggle::before {
  display: none;
}

.uh-sk-title {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
}

.uh-sk-title {
  color: #14202e;
}





/* Video sự kiện: khung vuông như lưới ảnh */
.uh-sk-video {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #14202e;
}

.uh-sk-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; /* crop lấp đầy khung, không để viền đen */
  object-position: center;
}

/* Toàn màn hình thì xem đủ khung hình, không crop */
.uh-sk-video video:fullscreen {
  object-fit: contain;
}

/* Lưới ảnh tự xếp theo số lượng (tối đa 6 ô, ảnh dư hiện "+N") */
.uh-sk-gallery {
  display: grid;
  gap: 4px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
}

.uh-sk-tile {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #e5e9ef;
  overflow: hidden;
  cursor: zoom-in;
}

.uh-sk-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.uh-sk-tile:hover img {
  transform: scale(1.05);
}

.uh-sk-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 32, 46, 0.6);
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}

.uh-sk-gallery[data-count="2"] {
  grid-template-columns: 1fr 1fr;
}

.uh-sk-gallery[data-count="3"] {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.uh-sk-gallery[data-count="3"] .uh-sk-tile:first-child {
  grid-row: 1 / 3;
}

.uh-sk-gallery[data-count="4"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.uh-sk-gallery[data-count="5"] {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr;
}

.uh-sk-gallery[data-count="5"] .uh-sk-tile:nth-child(-n + 2) {
  grid-column: span 3;
}

.uh-sk-gallery[data-count="5"] .uh-sk-tile:nth-child(n + 3) {
  grid-column: span 2;
}

.uh-sk-gallery[data-count="6"] {
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr 0.8fr;
}

.uh-sk-gallery[data-count="6"] .uh-sk-tile:nth-child(1) {
  grid-column: 1 / 5;
  grid-row: 1 / 3;
}

.uh-sk-gallery[data-count="6"] .uh-sk-tile:nth-child(2) {
  grid-column: 5 / 7;
  grid-row: 1;
}

.uh-sk-gallery[data-count="6"] .uh-sk-tile:nth-child(3) {
  grid-column: 5 / 7;
  grid-row: 2;
}

.uh-sk-gallery[data-count="6"] .uh-sk-tile:nth-child(n + 4) {
  grid-column: span 2;
  grid-row: 3;
}

.uh-sk-foot {
  margin-top: auto;
  padding-top: 12px;
}

.uh-sk-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #e4181f;
}

.uh-sk-link:hover {
  color: #b3141a;
  text-decoration: underline;
}

/* Lightbox xem ảnh to (có chuyển ảnh) */
.uh-sk-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 56px 64px 24px;
  background: rgba(20, 32, 46, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.uh-sk-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.uh-sk-lb-stage {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uh-sk-lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.uh-sk-lb-caption {
  flex: none;
  max-width: 720px;
  max-height: 22vh;
  overflow-y: auto;
  text-align: center;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}

.uh-sk-lb-caption strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.uh-sk-lb-count {
  position: absolute;
  top: 18px;
  left: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.uh-sk-lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.uh-sk-lb-btn:hover {
  background: #e4181f;
}

.uh-sk-lb-close {
  top: 12px;
  right: 16px;
}

.uh-sk-lb-prev,
.uh-sk-lb-next {
  top: 50%;
  transform: translateY(-50%);
}

.uh-sk-lb-prev {
  left: 12px;
}

.uh-sk-lb-next {
  right: 12px;
}

.uh-sk-lightbox.is-single .uh-sk-lb-prev,
.uh-sk-lightbox.is-single .uh-sk-lb-next,
.uh-sk-lightbox.is-single .uh-sk-lb-count {
  display: none;
}

@media (max-width: 640px) {
  .uh-sk-lightbox {
    padding: 56px 12px 16px;
  }

  .uh-sk-lb-prev {
    left: 6px;
  }

  .uh-sk-lb-next {
    right: 6px;
  }
}
