:root {
    font-family:
        'Inter',
        'SF Pro Text',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        sans-serif;
    color: #111827;
}

.gallery-hero {
    background: linear-gradient(135deg, #e0f2ff 0%, #f8fbff 60%, #ffffff 100%);
    border-radius: 32px;
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.08);
}

.gallery-hero {
    padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 6vw, 6rem);
}

.hero-content {
    max-width: 900px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: #0aa0d2;
    margin-bottom: 0.5rem;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: #0f172a;
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #475569;
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.hero-link,
.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
}

.hero-link {
    color: #0aa0d2;
}

.hero-button {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 25px rgba(10, 160, 210, 0.25);
}

.gallery-content {
    padding: 2rem clamp(1.25rem, 4vw, 4rem) 3rem;
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: #475569;
}

.gallery-controls label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.gallery-controls select {
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
}

.gallery-status {
    text-align: center;
    margin: 2rem 0;
    color: #475569;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.style-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.05);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
}

.style-card__preview {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(120deg, #f8fafc, #e2e8f0 50%, #cbd5f5 50%, #94a3b8);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
}

.style-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.style-card__fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: #334155;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.style-card__preview[data-empty='true'] .style-card__fallback {
    opacity: 1;
}

.style-card__actions {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.35rem;
}

.style-card__actions button {
    border: none;
    background: rgba(15, 23, 42, 0.8);
    color: #f8fafc;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 0.15s ease,
        background 0.15s ease;
}

.style-card__actions button:hover {
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.95);
}

.style-card__body {
    padding: 1.25rem 1.5rem 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: #f8fafd;
}

.style-card__body h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f172a;
}

.style-card__description {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.style-card__footer {
    padding: 0.75rem 1.5rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #f8fafd;
}

.style-card__author {
    font-weight: 600;
}

@media (max-width: 720px) {
    .style-card {
        min-height: 360px;
    }
}
