/* Secondary portfolio styles, scoped to avoid interfering with The7. */
.hspp,
.hspp-page {
    --hspp-accent: var(--accent, #256b65);
    --hspp-text: var(--text, #262b30);
    --hspp-muted: var(--leise, #707981);
    --hspp-line: var(--linie, #e7eaec);
    color: var(--hspp-text);
}

.hspp-page {
    width: 100%;
    padding: clamp(48px, 6vw, 90px) 28px;
}

.hspp-page-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.hspp-page-header {
    margin: 0 0 48px;
}

.hspp-eyebrow {
    margin: 0 0 12px;
    color: var(--hspp-accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.hspp-page-header h1 {
    margin: 0 0 20px;
    font-size: clamp(36px, 4.5vw, 60px);
    line-height: 1.15;
}

.hspp-page-description,
.hspp-intro {
    max-width: 860px;
    color: var(--hspp-muted);
    font-size: 19px;
    line-height: 1.7;
}

.hspp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 34px;
}

.hspp-filter {
    padding: 10px 18px;
    border: 1px solid var(--hspp-line);
    border-radius: 100px;
    background: #fff;
    color: var(--hspp-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.hspp-filter:hover,
.hspp-filter.is-active {
    border-color: var(--hspp-accent);
    background: var(--hspp-accent);
    color: #fff;
}

/* Minimal cards inspired by the original The7 portfolio grid. */
.hspp .hspp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 46px;
    align-items: start;
}

.hspp.hspp-columns-2 .hspp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hspp.hspp-columns-3 .hspp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hspp.hspp-columns-4 .hspp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.hspp.hspp-layout-masonry .hspp-grid {
    display: block;
    columns: 3;
    column-gap: 30px;
}

.hspp.hspp-layout-masonry.hspp-columns-3 .hspp-grid { columns: 3; }
.hspp.hspp-layout-masonry.hspp-columns-4 .hspp-grid { columns: 4; }

.hspp .hspp-card {
    min-width: 0;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.hspp .hspp-card:hover {
    transform: none;
    box-shadow: none;
}

.hspp.hspp-layout-masonry .hspp-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 46px;
    break-inside: avoid;
}

.hspp .hspp-card-image {
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 0;
    background: #f2f2f2;
}

.hspp.hspp-layout-masonry .hspp-card-image {
    aspect-ratio: auto;
}

.hspp .hspp-card-image img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    transition: transform .45s ease;
}

.hspp.hspp-layout-masonry .hspp-card-image img {
    position: static;
    height: auto !important;
}

.hspp .hspp-card:hover .hspp-card-image img {
    transform: scale(1.03);
}

.hspp .hspp-card-placeholder {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.hspp .hspp-card-content {
    padding: 23px 0 0 !important;
    background: transparent;
}

/* A dedicated tag row keeps The7's post metadata styles from hiding it. */
.hspp .hspp-card-tags,
.hspp .hspp-card-meta {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 0 3px !important;
    padding: 0 !important;
    color: #111 !important;
    font-family: 'Manrope', sans-serif;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hspp .hspp-card-title {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 400 !important;
    font-size: clamp(1.1rem, 1.6vw, 1.5rem) !important;
    line-height: 1.45 !important;
    letter-spacing: 0;
    text-transform: none;
}

.hspp .hspp-card-title a {
    color: #111 !important;
    font-weight: inherit !important;
    text-decoration: none !important;
}

.hspp .hspp-card-title a:hover {
    color: #111 !important;
    text-decoration: none !important;
}

.hspp .hspp-card-excerpt {
    margin: 8px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--hspp-muted);
}

.hspp .hspp-card-more {
    display: inline-block;
    margin-top: 16px;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

.hspp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 44px 0 0;
}

.hspp-pagination .page-numbers {
    padding: 9px 14px;
    border: 1px solid var(--hspp-line);
    border-radius: 8px;
    text-decoration: none;
}

.hspp-pagination .current,
.hspp-pagination a:hover {
    color: #fff;
    background: var(--hspp-accent);
    border-color: var(--hspp-accent);
}

.hspp-back { display: inline-block; margin-bottom: 28px; font-weight: 600; }
.hspp-hero { overflow: hidden; margin-bottom: 40px; border-radius: 16px; }
.hspp-hero img { display: block; width: 100%; height: auto; }
.hspp-project-body { font-size: 17px; line-height: 1.7; }
.hspp-project-body::after { content: ''; display: block; clear: both; }
.hspp-project-nav {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 28px;
    margin-top: 55px;
    border-top: 1px solid var(--hspp-line);
    font-weight: 700;
}

@media (max-width: 960px) {
    .hspp.hspp-columns-3 .hspp-grid,
    .hspp.hspp-columns-4 .hspp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hspp.hspp-layout-masonry.hspp-columns-3 .hspp-grid,
    .hspp.hspp-layout-masonry.hspp-columns-4 .hspp-grid { columns: 2; }
}

@media (max-width: 640px) {
    .hspp-page { padding: 42px 20px; }
    .hspp .hspp-grid,
    .hspp.hspp-columns-2 .hspp-grid,
    .hspp.hspp-columns-3 .hspp-grid,
    .hspp.hspp-columns-4 .hspp-grid { grid-template-columns: minmax(0, 1fr); }
    .hspp.hspp-layout-masonry .hspp-grid,
    .hspp.hspp-layout-masonry.hspp-columns-2 .hspp-grid,
    .hspp.hspp-layout-masonry.hspp-columns-3 .hspp-grid,
    .hspp.hspp-layout-masonry.hspp-columns-4 .hspp-grid { columns: 1; }
    .hspp .hspp-card-content { padding-top: 18px !important; }
    .hspp .hspp-card-meta { font-size: 14px !important; }
    .hspp .hspp-card-title { font-size: 21px !important; }
}
