﻿/* --- GALLERY DETAIL PREMIUM --- */

/* 1. Phần nội dung bài viết */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563; /* Xám đậm dễ đọc */
}

    .article-content p {
        margin-bottom: 1.5rem;
    }

/* 2. Lưới ảnh (Grid System) */
.gallery-grid-item {
    display: block;
    position: relative;
    border-radius: 16px; /* Bo góc lớn hiện đại */
    overflow: hidden;
    background-color: #f3f4f6; /* Nền xám nhẹ chờ ảnh load */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Tỷ lệ khung hình cố định (Ví dụ 4:3) để lưới đều tăm tắp */
    aspect-ratio: 4/3;
}

    .gallery-grid-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Cắt ảnh vừa khung */
        transition: transform 0.7s ease; /* Zoom chậm rãi */
    }

    /* 3. Hiệu ứng Hover */
    .gallery-grid-item:hover {
        transform: translateY(-5px); /* Nhấc ảnh lên */
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

        .gallery-grid-item:hover img {
            transform: scale(1.1); /* Zoom ảnh bên trong */
        }

/* 4. Overlay & Icon (Lớp phủ khi hover) */
.item-overlay {
    position: absolute;
    inset: 0; /* top:0, right:0, bottom:0, left:0 */
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center; /* Căn giữa icon */
    justify-content: center;
}

.gallery-grid-item:hover .item-overlay {
    opacity: 1;
}

.icon-zoom {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px); /* Kính mờ */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transform: scale(0.5);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-grid-item:hover .icon-zoom {
    transform: scale(1);
    opacity: 1;
}

/* 5. Meta Info (Ngày tháng/Danh mục) */
.meta-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: #e0f2fe; /* Xanh nhạt */
    color: #0369a1; /* Xanh đậm */
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
