.gallery-page {
    padding: 0 0 64px;
}
.gallery-header {
    margin-bottom: 24px;
    margin-top: 24px;
}

.gallery-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.gallery-description-wrap {
    width: 100%;
    max-width: 100%;
}

.gallery-description-truncated,
.gallery-description-full {
    color: #555;
    line-height: 1.6;
}

.gallery-description-truncated p,
.gallery-description-full p {
    margin-bottom: 12px;
}

.gallery-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: #c73e16;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gallery-read-more:hover {
    color: #a32a0e;
}

/* ---- Gallery Info Card ---- */
.gallery-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.gallery-info-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gallery-info-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

.gallery-info-value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1a1a1a;
}

.gallery-info-action .th-btn {
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
}

.gallery-info-action .th-btn:hover {
    text-decoration: none;
}

.gallery-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* ---- Gallery Layout (Sidebar + Main) ---- */
.gallery-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 24px;
}

/* ---- Sidebar ---- */
.gallery-sidebar {
    position: sticky;
    top: 24px;
}

.gallery-sidebar-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px;
}

.gallery-sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: #1a1a1a;
}

.gallery-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-sidebar-children {
    padding-left: 14px;
    margin-top: 6px;
    margin-bottom: 10px;
    border-left: 2px solid #e0e0e0;
}

.gallery-sidebar-item {
    margin-bottom: 2px;
}

.gallery-sidebar-link {
    display: block;
    padding: 8px 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.2s;
}

.gallery-sidebar-link:hover {
    color: #c73e16;
}

.gallery-sidebar-link.is-active {
    color: #c73e16;
}

/* ---- Gallery Items ---- */
.gallery-items-section {
    margin-bottom: 48px;
}

.gallery-items-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: #1a1a1a;
}

.gallery-item-media {
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 16 / 10;
}

.gallery-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item-card:hover .gallery-item-media img {
    transform: scale(1.05);
}

.gallery-item-title {
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
}

.gallery-item-desc {
    display: block;
    font-size: 0.8125rem;
    color: #617188;
    text-align: center;
    margin-top: 4px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Product Gallery List Grid ---- */
.gallery-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.gallery-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(16, 27, 40, 0.08);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(16, 27, 40, 0.12);
}

.gallery-product-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-product-card:hover .gallery-product-media img {
    transform: scale(1.05);
}

.gallery-product-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery-product-kicker {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f26522;
    margin-bottom: 6px;
}

.gallery-product-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #162033;
    line-height: 1.28;
    margin: 0 0 8px;
}

.gallery-product-card:hover .gallery-product-title {
    color: #f26522;
}

.gallery-product-desc {
    font-size: 0.875rem;
    color: #617188;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1199px) {
    .gallery-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .gallery-product-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Product Gallery Grid (existing) ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 16 / 10;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-empty {
    text-align: center;
    color: #777;
    padding: 48px 0;
}

/* Responsive */
@media (max-width: 991px) {
    .gallery-layout {
        grid-template-columns: 1fr;
    }
    .gallery-sidebar {
        position: static;
        margin-bottom: 24px;
    }
    .gallery-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .gallery-items-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-header h1 {
        font-size: 1.5rem;
    }
}
