.gallery-redesign {
    --gallery-ink: #e6eef9;
    --gallery-ink-soft: #96acc5;
    --gallery-line: rgba(149, 173, 201, 0.14);
    --gallery-surface: linear-gradient(180deg, rgba(10, 21, 35, 0.96), rgba(12, 25, 40, 0.92));
    --gallery-shadow: 0 24px 54px rgba(0, 0, 0, 0.26);
    --gallery-title: #f4f8fd;
    --gallery-teal: #29c6b4;
    --gallery-blue: #7d9dff;
    position: relative;
    overflow: hidden;
    padding: 24px 0 72px;
    color: var(--gallery-ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(41, 198, 180, 0.1), transparent 22%),
        radial-gradient(circle at 88% 12%, rgba(125, 157, 255, 0.1), transparent 24%),
        linear-gradient(180deg, #07111c 0%, #091522 46%, #0a1726 100%);
    color-scheme: dark;
}

.gallery-redesign::before,
.gallery-redesign::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.gallery-redesign::before {
    left: -130px;
    top: 140px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(41, 198, 180, 0.12), transparent 70%);
}

.gallery-redesign::after {
    right: -120px;
    top: 360px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(125, 157, 255, 0.12), transparent 70%);
}

.gallery-redesign .container {
    position: relative;
    z-index: 1;
}

.gallery-redesign h1,
.gallery-redesign h2,
.gallery-redesign h3,
.gallery-redesign strong {
    margin: 0;
    color: var(--gallery-title);
    font-family: 'Outfit', sans-serif;
}

.gallery-redesign p {
    margin: 0;
}

.gallery-hero,
.gallery-section {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gallery-line);
    border-radius: 28px;
    background: var(--gallery-surface);
    box-shadow: var(--gallery-shadow);
}

.gallery-hero::before,
.gallery-section::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(125, 157, 255, 0.5), transparent);
}

.gallery-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 24px;
    padding: 38px;
    background:
        linear-gradient(135deg, rgba(12, 24, 39, 0.96), rgba(9, 18, 31, 0.94)),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: auto, 26px 26px, 26px 26px;
}

.gallery-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--gallery-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gallery-ink-soft);
    font-size: 12px;
    font-weight: 700;
}

.gallery-breadcrumb a {
    color: var(--gallery-ink-soft);
    text-decoration: none;
}

.gallery-breadcrumb a:hover {
    color: #ffffff;
}

.gallery-kicker,
.section-chip,
.panel-label,
.gallery-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gallery-kicker {
    margin-top: 18px;
    background: rgba(41, 198, 180, 0.12);
    color: #9beee3;
}

.section-chip,
.panel-label,
.gallery-count {
    background: rgba(125, 157, 255, 0.12);
    color: #aec2ff;
}

.gallery-hero-title {
    margin-top: 18px;
    max-width: 700px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.gallery-hero-text,
.gallery-panel-point span,
.gallery-card p,
.gallery-empty p {
    color: var(--gallery-ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

.gallery-hero-text {
    max-width: 560px;
    margin-top: 18px;
}

.gallery-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.gallery-hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--gallery-line);
    color: #d7e3f0;
    font-size: 12px;
    font-weight: 700;
}

.gallery-hero-badges i {
    color: var(--gallery-teal);
}

.gallery-hero-panel {
    display: flex;
}

.gallery-panel-card {
    width: 100%;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid var(--gallery-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.gallery-panel-points {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.gallery-panel-point {
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid var(--gallery-line);
    background: rgba(255, 255, 255, 0.03);
}

.gallery-panel-point strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.gallery-panel-point span {
    display: block;
    margin-top: 6px;
}

.gallery-section {
    margin-top: 28px;
    padding: 30px;
}

.section-head {
    margin-bottom: 22px;
}

.section-title {
    margin-top: 12px;
    font-size: clamp(24px, 2.7vw, 36px);
    line-height: 1.14;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    grid-auto-flow: dense;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    grid-column: span 4;
    border: 1px solid var(--gallery-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
    isolation: isolate;
}

.gallery-card:nth-child(5n + 1),
.gallery-card:nth-child(5n + 4) {
    grid-column: span 6;
    min-height: 340px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.34s ease;
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 9, 16, 0.02), rgba(4, 9, 16, 0.24) 48%, rgba(4, 9, 16, 0.88) 100%);
    z-index: 1;
}

.gallery-card-body {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 2;
}

.gallery-count {
    min-height: 28px;
    padding: 0 10px;
}

.gallery-card h3 {
    margin-top: 12px;
    font-size: 22px;
    line-height: 1.18;
}

.gallery-card p {
    margin-top: 10px;
    max-width: 92%;
}

.gallery-empty {
    padding: 34px 30px;
    text-align: center;
    border: 1px solid var(--gallery-line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

.empty-icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(41, 198, 180, 0.16), rgba(125, 157, 255, 0.14));
    color: #9beee3;
    font-size: 24px;
}

.gallery-empty h3 {
    margin-top: 16px;
    font-size: 24px;
}

.gallery-empty p {
    margin-top: 10px;
}

@media (max-width: 1199px) {
    .gallery-card,
    .gallery-card:nth-child(5n + 1),
    .gallery-card:nth-child(5n + 4) {
        grid-column: span 6;
    }
}

@media (max-width: 991px) {
    .gallery-hero {
        grid-template-columns: 1fr;
    }

    .gallery-hero,
    .gallery-section {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .gallery-redesign {
        padding: 18px 0 60px;
    }

    .gallery-hero,
    .gallery-section {
        padding: 20px;
        border-radius: 24px;
    }

    .gallery-hero-title {
        font-size: clamp(30px, 10vw, 42px);
    }

    .section-title {
        font-size: clamp(22px, 7vw, 30px);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-card,
    .gallery-card:nth-child(5n + 1),
    .gallery-card:nth-child(5n + 4) {
        grid-column: span 1;
        min-height: 280px;
    }

    .gallery-card h3 {
        font-size: 20px;
    }
}
