/*
Theme Name: Đại học Bạc Liêu 20 năm
Version: 1.1.1
Text Domain: bluni20
*/

.article { max-width: 52rem; padding-block: 3rem; overflow-wrap: anywhere; }
.post-detail-title {
  margin: 0 auto 1.75rem;
  color: var(--brand-blue);
  font-family: Arial, sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}
.article img { max-width: 100%; height: auto; }
.article video { max-width: 100%; }
.article figure { max-width: 100%; margin-inline: 0; }
.article .wp-block-table { overflow-x: auto; }
.article-list { padding-inline-start: 1.5rem; }
.article-list li { margin-block: 1rem; }
.category-article-list { list-style: none; margin: 1.5rem 0; padding: 0; }
.category-article-list > li { margin: 0; padding: 1.25rem 0 2rem; }
.category-article-list > li + li { border-top: 1px solid #e3eaf0; }
.category-article-list h2 { margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.45; text-wrap: wrap; }
.category-article-list h2 a { color: #205c93; text-decoration: none; }
.category-article-list h2 a:hover { text-decoration: underline; }
.category-article-list .article-list-summary { display: flex; align-items: flex-start; gap: clamp(.75rem, 3vw, 1.75rem); }
.category-article-list .article-list-summary > a { order: -1; flex: 0 0 min(36%, 200px); }
.category-article-list .article-list-summary img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 3; object-fit: cover; }
.category-article-list .article-list-excerpt { min-width: 0; flex: 1; }
.category-article-list .article-list-excerpt > :first-child { margin-top: 0; }
.category-article-list .article-list-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
}
.article-list-date { display: none; }
@media (max-width: 40rem) {
  .category-article-list .article-list-summary { display: block; }
  .category-article-list .article-list-summary > a { display: block; margin-top: 1rem; }
  .category-article-list .article-list-summary img { aspect-ratio: auto; }
  .category-article-list .article-list-date { display: block; margin-top: .75rem; color: #526375; font-size: .875rem; }
}
.video-library { aspect-ratio: auto; min-height: 15rem; align-content: center; gap: 1rem; }
.featured-video { width: 100%; min-width: 0; text-align: left; }
.featured-video h3 { margin: 0 0 1rem; }
.featured-video .video-player { min-height: 0; }
.film .video-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: clamp(1rem, 2vw, 1.5rem); }
.video-selection { display: grid; min-width: 0; }
.video-heading { grid-column: 1 / -1; text-align: center; }
.video-heading h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.video-heading p { margin: .65rem auto 0; max-width: 65ch; }
.video-side-list { list-style: none; display: grid; grid-auto-rows: 1fr; gap: .5rem; margin: 0; padding: .65rem; border: 1px solid #dcebf7; border-radius: .8rem; background: #fff; }
@media (max-width: 40rem) { .film .video-columns { grid-template-columns: minmax(0, 1fr); } .video-selection:empty { display: none; } }
.video-side-list li { display: grid; align-items: center; min-width: 0; padding: .4rem; overflow-wrap: anywhere; }
.video-side-list li + li { border-top: 1px solid #dcebf7; padding-top: .65rem; }
.video-choice { display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); gap: .75rem; align-items: center; color: #163d68; text-decoration: none; font-weight: 700; font-size: .95rem; line-height: 1.35; }
.video-choice:hover .video-choice-title, .video-choice[aria-current] .video-choice-title { text-decoration: underline; }
.video-choice-preview { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: .5rem; background: #102948; }
.video-choice-preview img { width: 100%; height: 100%; object-fit: cover; }
.video-choice-play { position: absolute; padding: .2rem .6rem; border-radius: .35rem; background: #b70d22; color: #fff; }
#featured-video-player { scroll-margin-top: 9rem; }
.home-video-viewer { width: min(94vw, 65rem, 140dvh); max-width: none; max-height: 94dvh; padding: clamp(.75rem, 2vw, 1.25rem); border: 1px solid #7d9ab2; border-radius: 1rem; background: #10233b; color: #fff; }
.home-video-viewer::backdrop { background: #071421e6; }
body:has(.home-video-viewer[open]) { overflow: hidden; }
.home-video-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.home-video-toolbar h2 { margin: 0; font-size: clamp(1rem, 2.5vw, 1.4rem); color: #fff; overflow-wrap: anywhere; }
.home-video-toolbar button { flex: none; min-height: 44px; padding: .35rem .75rem; border: 1px solid #7d9ab2; border-radius: .55rem; background: #233d56; color: #fff; font: inherit; cursor: pointer; }
.home-video-viewer .video-player { min-height: 0; }
.video-groups { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.video-groups a { display: block; border: 1px solid currentColor; border-radius: 1.5rem; padding: .35rem .85rem; }
.video-player { display: block; width: 100%; aspect-ratio: 16 / 9; min-height: 200px; border: 0; border-radius: .75rem; background: #102948; }
.video-archive { background: #f1f7fc; }
.video-archive-hero { padding: clamp(2.5rem, 6vw, 5rem) 0; text-align: center; color: #fff; background: radial-gradient(ellipse at 85% 5%, #2b79a7, transparent 60%), linear-gradient(120deg, #102948, #164e76); }
.video-archive-hero h1 { margin: .4rem 0 .65rem; color: #fff; }
.video-archive-hero p { max-width: 60ch; margin: 0 auto; color: #e3f4ff; }
.video-archive-hero .video-archive-kicker { font-size: .9rem; font-weight: 700; letter-spacing: .08em; }
.video-archive-hero a { display: inline-block; margin-top: 1rem; }
.video-archive-content { padding-block: clamp(1.5rem, 4vw, 3rem); }
.video-archive-content .video-groups { margin-bottom: 1.5rem; }
.video-archive-content .video-groups a { background: #fff; color: #164e76; text-decoration: none; }
.video-archive-content .video-groups a:hover { background: #e3f0fa; }
.video-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); margin: 0; padding: 0; list-style: none; }
.video-card { min-width: 0; background: #fff; border: 1px solid #d8e7f3; border-radius: 1rem; box-shadow: 0 .5rem 1.5rem #163d6814; }
.video-card-link { display: flex; flex-direction: column; height: 100%; border-radius: inherit; text-decoration: none; }
.video-card-cover { display: grid; position: relative; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 1rem 1rem 0 0; background: linear-gradient(135deg, #163d68, #205c93); }
.video-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-card-play { position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; color: #fff; background: #102948e8; border: 1px solid #ffffffa0; box-shadow: 0 .25rem 1rem #0005; }
.video-card-body { display: flex; flex: 1; flex-direction: column; gap: .85rem; padding: 1rem 1.1rem; }
.video-card h2 { margin: 0; font-size: 1.1rem; line-height: 1.35; color: #102948; overflow-wrap: anywhere; }
.video-card-action { margin-top: auto; font-size: .9rem; font-weight: 700; color: #205c93; }
.video-card-link:hover .video-card-action, .video-card-link:focus-visible .video-card-action { text-decoration: underline; }
.video-card-link:hover .video-card-play, .video-card-link:focus-visible .video-card-play { background: #b70d22; }
.video-archive-content .pagination, .video-archive-empty { margin-top: 1.5rem; text-align: center; }
.featured-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; list-style: none; padding: 0; }
.featured-photos li { min-width: 0; overflow: hidden; border: 1px solid #dcebf7; border-radius: .75rem; background: #f3faff; }
.featured-photos figure { margin: 0; }
.featured-photos a { display: block; }
.featured-photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.featured-photos figcaption { padding: 1rem; overflow-wrap: anywhere; }
.featured-photos h3 { margin: 0; font-size: 1.1rem; color: #163d68; }
.featured-photos p { margin: .5rem 0 0; }
.album-empty { text-align: center; color: #205c93; }
.album-card-caption { padding: 1rem; overflow-wrap: anywhere; text-align: center; }
.album-cards img { object-fit: contain; background: #e7f0f9; }
.album-card-caption a { text-decoration: none; }
.album-card-caption a:hover { text-decoration: underline; }
.album-cover-placeholder { display: grid; place-items: center; aspect-ratio: 4 / 3; color: #205c93; background: #e3f0fa; font-weight: bold; }
.album-all { text-align: center; }
.album-detail { max-width: 72rem; }
.album-detail-heading { padding: clamp(1.5rem, 5vw, 3.5rem); margin-bottom: 2rem; border-radius: 1rem; color: white; background: radial-gradient(ellipse at top right, #327ca7, transparent 60%), #102948; }
.album-detail-heading h1 { margin: .65rem 0 0; color: white; text-align: center; }
.album-detail figcaption { text-align: center; }
.album-detail .featured-photos img { object-fit: contain; background: #e7f0f9; }
.album-photo-trigger { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.album-detail .featured-photos figure > a { cursor: zoom-in; }
.album-viewer { box-sizing: border-box; width: min(94vw, 72rem); max-width: none; max-height: 96dvh; padding: clamp(.6rem, 2vw, 1.25rem); border: 1px solid #ffffff35; border-radius: 1rem; background: #10233b; color: #fff; }
.album-viewer::backdrop { background: #071421e6; }
body:has(.album-viewer[open]) { overflow: hidden; }
.album-viewer-toolbar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .6rem; }
.album-viewer button { min-height: 44px; min-width: 44px; border: 1px solid #7d9ab2; border-radius: .55rem; padding: .25rem .65rem; background: #233d56; color: white; font: inherit; cursor: pointer; }
.album-viewer button:disabled { opacity: .45; cursor: default; }
.album-viewer button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.album-viewer-stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(.25rem, 1vw, .75rem); }
.album-viewer-stage button { font-size: 1.6rem; }
.album-viewer-stage img { display: block; width: 100%; height: min(64dvh, 46rem); object-fit: contain; touch-action: pan-y pinch-zoom; }
.album-viewer-caption { margin: .5rem 0; text-align: center; }
.album-viewer-thumbs { display: flex; gap: .4rem; overflow-x: auto; padding: .3rem; }
.album-viewer-thumbs button { flex: 0 0 3.5rem; padding: .15rem; }
.album-viewer-thumbs button[aria-current="true"] { border-color: #9de3ff; box-shadow: inset 0 0 0 1px #9de3ff; }
.album-viewer-thumbs img { display: block; width: 100%; height: 2.55rem; object-fit: cover; border-radius: .3rem; }
@media (max-width: 40rem) { .featured-photos { grid-template-columns: 1fr; } }
