﻿/*Gallery*/
.tac{text-align:center}
.m-b-10{margin-bottom:10px}
.ml20{margin-left:20px}
.ptb29{padding:29px 0}
.card .header{color:#444;padding:20px;position:relative;box-shadow:none}
.card .header h2 small{display:block;font-size:13px;color:#999;line-height:15px}
.card .header h2{font-size:16px;color:#444;position:relative}
.card .header h2 small a{font-weight:700;color:#777}
.card .p-15{padding:15px !important}
.card .body{color:#444;padding:20px;font-weight:400}
.clearfix::after{display:block;clear:both;content:""}
/*min*/
    
#gallery .parent .group .item {text-align: center; margin-bottom: 10px;margin-right: 10px;width: 24%;float:left}
#gallery .parent .group .item:nth-child(4n) {margin-right: 0;}
#gallery .parent .group .item:nth-child(4n+1) {clear:both}
#gallery .parent .group .item .wImage {border-radius:5px;  border: 1px solid transparent; overflow: hidden;margin-bottom:10px}
#gallery .parent .group .item .wImage:hover {border-color: #e57802}
#gallery .parent .group .item .wImage:before {padding-bottom: 66.67%}
/*#gallery .parent .group .item .wImage img{width:100%}*/
#gallery .parent .group .item .name { display: block; font-weight: bold;}
#gallery .parent .group .item .name:hover {color: #e57802}
#galleryother .group .item .name { display: block; font-weight: bold;;padding-top:10px}
#galleryother .group .item .name:hover {color: #e57802}

.gal-other .owl-next,.gal-other .owl-prev { border: none; width: 20px; height: 20px; background: #d6d6d6; font-family: FontAwesome; font-weight: 900; outline: none; cursor: pointer; border-radius: 50%; display: inline-block; margin-left: 8px; text-align: center; top: 0; position: static;transform: none}
.gal-other .owl-next:before { content: "\f054"; text-align: center; line-height: 20px; color: #fff; font-size: inherit; margin: 0; font-size: 14px}
.gal-other .owl-prev:before { content: "\f053"; text-align: center; line-height: 20px;color: #fff; font-size: inherit;margin: 0; font-size: 14px}
.gal-other .owl-next:hover,.gal-other .owl-prev:hover {background: #c40002}
.gal-other .owl-nav {position: absolute; top: -45px; right: 0}

/* ============================================================
   Giao dien moi 2026-09 cho /gallery va /gallery/detail/{id}.html.
   Soi theo trang video (VideoStyle.css) cho dong bo. Cac luat duoi
   day de SAU nen ghi de phan cu o tren, khong can !important.
   ============================================================ */

/* Inter dam that. TCNNTrangchu.scss moi chi khai Inter-Regular nen moi cho
   font-weight: 600/700 deu la chu dam GIA. Duong dan phai tuyet doi vi file
   css nay nam o /Assets/custom/css/. */
@font-face {
    font-family: 'Inter';
    src: url('/GiaoDien/public/Font/Inter/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/GiaoDien/public/Font/Inter/Inter-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Layout .inside chi duoc gan khi action != "Index" (xem _LayoutFull.cshtml),
   nen .inside .detail { width: 1330px } khong an o trang danh sach. Dat lai o day
   de 2 trang gallery rong bang nhau va bang trang video. */
#gallery {
    width: 1330px;
    max-width: 100%;
    margin: 0 auto;
}

/* --- Tieu de --- */
#gallery .galleryTitle {
    margin: 34px 0 18px;
}

#gallery .galleryOther {
    margin: 34px 0 18px;
}

#gallery .section-issue__title {
    line-height: 1.35;
}

/* --- Khoi dau trang chi tiet: anh bia + thong tin album --- */
#gallery .bg-gallery {
    display: flex;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 6px;
}

    #gallery .bg-gallery .bound {
        width: 68%;
    }

        #gallery .bg-gallery .bound .wImage {
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
        }

            #gallery .bg-gallery .bound .wImage:before {
                padding-bottom: 56.25%;
            }

#gallery .infogallery {
    display: flex;
    flex-direction: column;
    width: calc(32% - 20px);
    box-sizing: border-box;
    background: #f7f8fa;
    border: 1px solid #ececec;
    border-radius: 10px;
    padding: 18px 20px;
}

/* Album khong co anh bia thi khoi thong tin an het be ngang */
#gallery .bg-gallery.no-bia .infogallery {
    width: 100%;
}

    /* Ten album. Bo chu hoa + RobotoB + gach chan cua .cateName cho de doc,
       phia tren da co h1 "THU VIEN ANH" mau do chu hoa roi. */
    #gallery .infogallery .cateName {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-family: 'Inter', 'RobotoB', Arial, sans-serif;
        font-size: 19px;
        font-weight: 700;
        line-height: 1.45;
        max-height: none;
        text-transform: none;
        border-bottom: none;
        color: #111;
        margin: 0 0 14px;
    }

#gallery .dateview {
    color: #76787a;
    font-size: 14px;
    margin: 0 0 14px;
}

    #gallery .dateview .update {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: #fff;
        border: 1px solid #e3e5e9;
        border-radius: 999px;
        padding: 5px 16px;
    }

#gallery .infogallery .mota {
    flex: 1 1 auto;
    min-height: 0; /* thieu dong nay thi flex item khong chiu co lai, overflow vo tac dung */
    overflow-y: auto;
    border-top: 1px solid #e6e8ec;
    padding-top: 14px;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    text-align: justify;
}

/* --- Luoi anh trong album --- */
#gallery .lstImg {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 22px;
}

    #gallery .lstImg .wImage {
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #ededed;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        transition: transform 0.25s ease, box-shadow 0.25s ease;
    }

        #gallery .lstImg .wImage:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
        }

        #gallery .lstImg .wImage img {
            transition: transform 0.45s ease;
        }

        #gallery .lstImg .wImage:hover img {
            transform: scale(1.06);
        }

    #gallery .lstImg .over {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 6;
        margin: 0;
        padding: 28px 12px 10px;
        color: #fff;
        font-size: 13px;
        text-align: center;
        background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0));
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
    }

    #gallery .lstImg .wImage:hover .over {
        opacity: 1;
    }

    #gallery .lstImg .cb {
        display: none;
    }

/* --- Luoi album (trang danh sach + "Thu vien anh khac") --- */
#gallery .parent.photo .group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px 20px;
    margin-top: 0;
}

#gallery .parent .group .item {
    width: 100%;
    float: none;
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

    #gallery .parent .group .item:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
        border-color: #e0e0e0;
    }

    #gallery .parent .group .item .wImage {
        border: none;
        border-radius: 0;
        margin-bottom: 0;
    }

        #gallery .parent .group .item .wImage:hover {
            border-color: transparent;
        }

        #gallery .parent .group .item .wImage:before {
            padding-bottom: 56.25%;
        }

        #gallery .parent .group .item .wImage img {
            transition: transform 0.45s ease;
        }

    #gallery .parent .group .item:hover .wImage img {
        transform: scale(1.06);
    }

    #gallery .parent .group .item .info {
        padding: 14px 16px 16px;
    }

    #gallery .parent .group .item .name {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        font-family: 'Inter', 'RobotoR', Arial, sans-serif;
        font-size: 15px;
        font-weight: 600;
        line-height: 1.5;
        color: #111;
        min-height: 4.5em;
        margin: 0;
        padding-top: 0;
    }

        #gallery .parent .group .item .name:hover {
            color: #e53935;
        }

#gallery .khongcodulieu {
    grid-column: 1 / -1;
    padding: 30px 0;
    color: #777;
}

#gallery .total_pagingvz {
    margin-top: 10px;
}

/* --- Man hep --- */
@media (max-width: 1199.98px) {
    #gallery .parent.photo .group,
    #gallery .lstImg {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991.98px) {
    #gallery .bg-gallery {
        flex-direction: column;
    }

    #gallery .bg-gallery .bound,
    #gallery .infogallery {
        width: 100%;
    }

    #gallery .infogallery .mota {
        overflow: visible;
    }

    #gallery .parent.photo .group,
    #gallery .lstImg {
        grid-template-columns: repeat(2, 1fr);
    }

    #gallery .galleryTitle,
    #gallery .galleryOther {
        margin-top: 18px;
    }
}

@media (max-width: 575.98px) {
    #gallery .parent.photo .group,
    #gallery .lstImg {
        grid-template-columns: 1fr;
    }
}




/* --- Tieu de la lien ve trang danh sach ---
   The <a> toan cuc da co color: inherit (TCNNTrangchu.scss) nhung ReStyle.css/Common.css
   nap sau co the ghi de o vai trang, nen dat lai cho chac. */
#gallery .section-issue__header a.section-issue__title {
    color: inherit;
}

    #gallery .section-issue__header a.section-issue__title:hover {
        color: #b71c1c;
        text-decoration: underline;
    }
