/* ==========================================================================
   OFFICE GALLERY SECTION - FULL WIDTH 3 COLUMNS
   Path: template-parts/sections/office-gallery/style.css
   ========================================================================== */

.sec-office-gallery {
    padding-top: 50px;
    padding-bottom: 0; /* Xóa padding bottom để ảnh dính sát cạnh dưới nếu cần */
    background-color: var(--color-surface);
    width: 100%;
    box-sizing: border-box;
}

/* Khung tiêu đề giữ căn lề chuẩn hệ thống */
.office-gallery__header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.office-gallery__title {
    font-family: var(--ff-h3);
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    font-weight: var(--fw-h3);
    color: var(--text-title);
    margin-top: 0;
    margin-bottom: var(--space-heading-bottom);
    text-transform: none;
}

/* Lưới 3 ảnh tràn 100% màn hình */
.office-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
    overflow: hidden;
}

.office-gallery__item {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10; /* Tỷ lệ hiển thị ảnh chữ nhật rộng */
    overflow: hidden;
}

.office-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-base);
}

.office-gallery__item:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .sec-office-gallery {
        padding-top: 40px;
    }

    .office-gallery__grid {
        grid-template-columns: 1fr; /* Tự động xếp chồng 1 cột trên Mobile */
    }

    .office-gallery__item {
        aspect-ratio: 16 / 9;
    }

    .office-gallery__title {
        font-size: var(--fs-h4);
    }
}