html,
body,
div,
span,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
dialog,
figure,
footer,
header,
hgroup,
nav,
section,
menu,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
    background-color: rgba(0, 0, 0, 0)
}

body {
    line-height: 1
}

article,
aside,
dialog,
figure,
footer,
header,
hgroup,
nav,
section {
    display: block
}

ul {
    list-style: none
}

blockquote,
q {
    quotes: none
}

blockquote::before,
blockquote::after,
q::before,
q::after {
    content: "";
    content: none
}

a {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
    background: rgba(0, 0, 0, 0)
}

hr {
    display: block;
    height: 1px;
    border: 0;
    margin: 0;
    padding: 0
}

input,
button,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: 0;
    border-radius: 0
}

select {
    outline: 0;
    border-radius: 0
}

input,
textarea {
    padding: 0;
    background-color: inherit;
    border: none
}

iframe[name=google_conversion_frame] {
    height: 0 !important;
    width: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    margin-top: -13px
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(var(--dvh, 1vh)*100)
}

@supports(height: 100dvh) {
    .worksWrapper {
        height: 100dvh
    }

    @media screen and (min-width: 835px) {
        .worksWrapper {
            height: 100vh
        }
    }
}

.works {
    padding-top: 157px;
    padding-bottom: 50px
}

@media screen and (min-width: 835px) {
    .works {
        padding-top: 196px
    }
}

.works__tagLink {
    display: inline-block;
    margin-left: 15px;
    padding-right: 25px
}

@media screen and (min-width: 835px) {
    .works__tagLink {
        margin-left: 30px
    }
}

.works__tag {
    display: inline-block;
    font-size: 1.4rem;
    line-height: 2.1rem;
    position: relative
}

@media screen and (min-width: 835px) {
    .works__tag {
        line-height: 1.68rem
    }
}

.works__tag::before,
.works__tag::after {
    content: "";
    position: absolute;
    top: 11.5px;
    right: -18px;
    width: 1px;
    height: 11px;
    background-color: #2c2c2c
}

@media screen and (min-width: 835px) {

    .works__tag::before,
    .works__tag::after {
        top: 9px;
        right: -20px
    }
}

.works__tag::before {
    transform: translate(-50%, -50%) rotate(45deg)
}

.works__tag::after {
    transform: translate(-50%, -50%) rotate(-45deg)
}

.works__titleAndTabMenu {
    display: flex;
    align-items: center;
    gap: 17px
}

@media screen and (min-width: 835px) {
    .works__titleAndTabMenu {
        gap: 18px
    }
}

.works__titleWrapper {
    box-sizing: border-box;
    padding-left: 15px;
    display: flex;
    gap: 2px;
    align-items: center;
    position: relative;
    z-index: 2
}

@media screen and (min-width: 835px) {
    .works__titleWrapper {
        padding-left: 30px
    }
}

.display {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 2
}

.display button,
.display span {
    font-size: 1.5rem
}

@media screen and (min-width: 835px) {

    .display button,
    .display span {
        font-size: 1.4rem
    }
}

.display button[aria-selected=true] {
    position: relative;
    pointer-events: none
}

.display button[aria-selected=true]::after {
    display: block;
    content: "";
    position: absolute;
    width: calc(100% + 2px);
    height: 1px;
    background-color: #2c2c2c;
    top: 8.5px;
    left: 50%;
    transform: translateX(-50%)
}

.works__title {

    font-size: 1.5rem;
    line-height: 2.25rem;
    font-feature-settings: "palt"
}

@media screen and (min-width: 835px) {
    .works__title {
        font-size: 1.4rem;
        line-height: 2.1rem
    }
}

.works__period {
    display: block;

    font-size: 1.5rem;
    line-height: 2.25rem
}

@media screen and (min-width: 835px) {
    .works__period {
        font-size: 1.4rem;
        line-height: 2.1rem
    }
}

.category {
    margin-top: 19px;
    box-sizing: border-box;
    padding: 0 15px;
    width: 100%;
    position: relative;
    z-index: 2
}

@media screen and (min-width: 835px) {
    .category {
        margin-top: 23px;
        padding: 0 6px 0 50px
    }
}

.category.fade-in {
    animation: fade-in .75s cubic-bezier(0.11, 0, 0.5, 0)
}

.category .line {
    width: 8px;
    position: absolute;
    top: 10px;
    left: 28px
}

@media screen and (min-width: 835px) {
    .category .line {
        width: 8px;
        top: 9.5px;
        left: 50px
    }
}

.category.hidden {
    display: none
}

.works__tagLink+.content {
    margin-top: 34px
}

@media screen and (min-width: 835px) {
    .works__tagLink+.content {
        margin-top: 80px
    }
}

.category+.content {
    margin-top: 31px
}

@media screen and (min-width: 835px) {
    .category+.content {
        margin-top: 45px
    }
}

.category__list {
    padding-left: 42px;
    display: inline-grid;
    grid-template-rows: repeat(5, auto);
    grid-auto-flow: column;
    -moz-column-gap: 30px;
    column-gap: 30px
}

@media screen and (min-width: 835px) {
    .category__list {
        padding-left: 36px;
        -moz-column-gap: 31px;
        column-gap: 31px
    }
}

.category__item {
    font-size: 1.3rem;
    line-height: 1.82rem
}

.category__item--current {
    color: #8f8f8f
}

.category__link {
    transition: all .3s
}

.category__link:hover {
    color: #8f8f8f
}

.content__list {
    margin-inline: 15px
}

@media screen and (min-width: 835px) {
    .content__list {
        margin-inline: 30px
    }
}

@media screen and (min-width: 835px) {
    .content__itemImage:hover+.content__itemInfo>* {
        opacity: 1;
    }

    .content__itemInfo:hover>* {
        opacity: 1;
    }

    .content__itemInfo:hover a {
        text-decoration: underline;
    }

    .content__itemInfo a:hover {
        opacity: 0.8;
    }
}

/* Grid container */
.content__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Hai cột: mỗi item là một cột */
    gap: 20px;
    margin-inline: 15px;
}

/* Mỗi item */
.content__gridItem {
    display: flex;
    flex-direction: row;
    /* Chia item thành 2 phần ngang: ảnh bên trái, nội dung bên phải */
    gap: 10px;
    align-items: center;
    /* Căn giữa nội dung theo trục dọc */
    border: 1px solid #ddd;
    /* Tùy chọn: thêm viền để phân tách rõ item */
    padding: 10px;
    border-radius: 5px;
    /* Tùy chọn: bo góc */
}

/* Hình ảnh/video */
.content__itemImage {
    flex: 0 0 60%;
    /* Đảm bảo ảnh chiếm 40% chiều rộng của item */
    max-width: 60%;
    /* Giới hạn chiều rộng */
    display: block;
}

.content__video {
    width: 100%;
    /* Video bao phủ toàn bộ chiều rộng khung ảnh */
    height: auto;
    /* Đảm bảo tỷ lệ video */
    border-radius: 5px;
    /* Tùy chọn: bo góc video */
}

/* Nội dung bài viết */
.content__itemInfo {
    flex: 1;
    /* Nội dung chiếm không gian còn lại */
    text-align: right;
    padding-left: 16px;
}

.content__gridTitle {
    font-size: 2rem;
    /* Kích thước tiêu đề */
    line-height: 1.5;
    /* Tăng khoảng cách dòng để dễ đọc */
    color: #333;
    /* Màu chữ */
}

.content__wrapper {
    display: flex;
    min-width: 100%;
    min-height: 100%;
}

.slideshow-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slide {
    display: none;
    animation: fade 1s;
}

.slide .image-square {
    width: 100%;
    /* Chiếm toàn bộ chiều rộng */
    aspect-ratio: 4 / 3;
    /* Tỷ lệ 4:3 */
    object-fit: cover;
    /* Cắt ảnh để phù hợp với khung */
    display: block;
    /* Đảm bảo không bị ảnh hưởng bởi inline spacing */
    border-radius: 5px;
}

@keyframes fade {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* Responsive: Mobile */
@media screen and (max-width: 834px) {
    .content__grid {
        grid-template-columns: 1fr;
        /* Chuyển sang 1 cột cho mobile */
    }

    .content__gridItem {
        flex-direction: column;
        /* Ảnh trên, nội dung dưới */
        align-items: stretch;
        /* Đảm bảo chiều rộng full cho mobile */
    }

    .content__itemImage {
        flex: 0 0 100%;
        /* Đảm bảo ảnh chiếm 40% chiều rộng của item */
        max-width: 100%;
        /* Ảnh và nội dung rộng 100% */
    }

    .content__itemInfo {
        display: none;
    }
}

.content__image,
.content__video {
    width: 100%;
    display: block;
    aspect-ratio: 4/3;
    -o-object-fit: cover;
    object-fit: cover;
    -webkit-touch-callout: none;
    -moz-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    pointer-events: none
}

@media screen and (min-width: 835px) {
    .content__gridTitle {
        margin-bottom: 10px;
        font-size: 2.4rem;
        font-feature-settings: "palt";
        line-height: 2.4rem;
        overflow: hidden;
        display: -webkit-box;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        transition: all 1s
    }

    .content__itemInfo>* {
        opacity: 0;
        transition: all 1s;
    }
}

.content__listImage,
.content__listVideo {
    height: 100vh;
    width: 100%;
    position: fixed;
    inset: 0;
    -o-object-fit: cover;
    object-fit: cover;
    opacity: 0;
    z-index: 1
}

@media screen and (min-width: 600px) {

    .content__listImage,
    .content__listVideo {
        width: 100% !important;
        transform: none !important;
        left: auto !important
    }
}

.content__listImage.active,
.content__listVideo.active {
    opacity: 1
}

.content__grid.fade-in,
.content__list.fade-in {
    animation: fade-in .75s cubic-bezier(0.11, 0, 0.5, 0)
}

@media screen and (min-width: 600px) {
    .content__list {
        padding-top: 1px
    }
}

.content__grid[hidden],
.content__list[hidden] {
    visibility: hidden;
    opacity: 0;
    height: 0
}

.content__listItem.show-media .content__listImage,
.content__listItem.show-media .content__listVideo {
    opacity: 1
}

.content__listItem.show-media .content__title {
    color: rgba(243, 243, 243, .6)
}

.content__listLink {
    padding: 2px 0;
    position: relative;
    z-index: 2
}

@media screen and (min-width: 835px) {
    .content__listLink {
        display: inline-block;
        padding: 0
    }

    .content__listLink:hover .content__title {
        color: #a0a0a0;
    }
}

.content__title {
    font-feature-settings: "palt";
    font-size: 1.4rem;
    line-height: 2.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 2
}

@media screen and (min-width: 835px) {
    .content__title {
        font-size: 1.4rem;
        line-height: 2.2rem;
        transition: all .2s ease-out
    }
}

.pagination {
    margin-inline: auto;
    padding-bottom: 20px;
    z-index: 2
}

@media screen and (min-width: 835px) {
    .pagination {
        margin-inline: 30px auto;
        padding-bottom: 30px
    }
}

.pagination.list {
    display: none
}

.pagination__links {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 20px;
    font-size: 1.4rem
}

@media screen and (min-width: 835px) {
    .pagination__links {
        height: 21px;
        font-size: 1.3rem
    }
}

.pagination__links .page-numbers {
    padding: 0 5px;
    transition: all .2s ease-out
}

@media screen and (min-width: 835px) {
    .pagination__links .page-numbers:hover {
        color: #bfbfbf
    }
}

.pagination__links .page-numbers.current {
    color: #bfbfbf
}

.pagination__links .page-numbers.prev {
    padding: 2px 12px 0 0;
    box-sizing: border-box;
    height: 100%
}

.pagination__links .page-numbers.next {
    padding: 2px 0 0 12px;
    box-sizing: border-box;
    height: 100%
}

.pagination__prevArrow,
.pagination__nextArrow {
    width: 7px;
    height: auto
}