.yg-gallery-page {
    --yg-blue: #1B5190;
    --yg-ink: #10243D;
    --yg-text: #536277;
    --yg-muted: #7A889B;
    --yg-line: #E4ECF5;
    --yg-soft: #F6FAFE;
    background: #fff;
    color: var(--yg-ink);
}

.yg-gallery-page,
.yg-gallery-page * { box-sizing: border-box; }
.yg-gallery-page a { text-decoration: none; }
.yg-gallery-page img { display: block; max-width: 100%; }

.yg-gallery-hero {
    padding: 28px 0 48px;
    background: linear-gradient(180deg, #F7FBFE 0%, #fff 100%);
    border-bottom: 1px solid var(--yg-line);
}

.yg-gallery-hero .container,
.yg-gallery-list-section .container { max-width: 1120px; }

.yg-gallery-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 28px;
    color: var(--yg-muted);
    font-size: 13px;
    font-weight: 500;
}

.yg-gallery-breadcrumb a { color: var(--yg-muted); }
.yg-gallery-breadcrumb a:hover,
.yg-gallery-breadcrumb span { color: var(--yg-blue); }
.yg-gallery-breadcrumb i { color: #A7B4C5; font-size: 16px; }

.yg-gallery-hero-inner span {
    display: block;
    color: var(--yg-blue);
    font-size: 13px;
    font-weight: 600;
}

.yg-gallery-hero h1 {
    margin: 8px 0 0;
    color: var(--yg-ink);
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.08;
}

.yg-gallery-hero p {
    margin: 14px 0 0;
    color: var(--yg-text);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.65;
}

.yg-gallery-list-section {
    padding: 52px 0 90px;
    background: #F5F8FB;
}

.yg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.yg-gallery-item {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--yg-soft);
    border: 1px solid var(--yg-line);
    border-radius: 16px;
}

.yg-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.28s ease;
}

.yg-gallery-item:hover img { transform: scale(1.035); }

.yg-gallery-empty {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 70px 20px;
    color: var(--yg-muted);
    background: #fff;
    border: 1px solid var(--yg-line);
    border-radius: 16px;
}

.yg-gallery-empty i { color: var(--yg-blue); font-size: 36px; }
.yg-gallery-empty h2 { margin: 0; color: var(--yg-ink); font-size: 24px; font-weight: 700; }

@media (max-width: 991px) {
    .yg-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .yg-gallery-hero { padding: 26px 0 42px; }
    .yg-gallery-list-section { padding: 36px 0 58px; }
    .yg-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
