/* Portfolio archive - premium minimal style */

body.post-type-archive-portfolio {
    background: #f7f5f1;
}

body.post-type-archive-portfolio #secondary,
body.post-type-archive-portfolio .sidebar,
body.post-type-archive-portfolio .widget-area,
body.post-type-archive-portfolio aside {
    display: none !important;
}

body.post-type-archive-portfolio .site-main.portfolio-archive-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 24px 100px;
}

body.post-type-archive-portfolio .page-header {
    margin: 0 0 48px;
    text-align: center;
}

body.post-type-archive-portfolio .page-title {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: #1d1b18;
}

body.post-type-archive-portfolio .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

body.post-type-archive-portfolio .portfolio-card {
    position: relative;
    margin: 0;
    background: #ffffff;
    border: 1px solid rgba(29, 27, 24, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.post-type-archive-portfolio .portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(29, 27, 24, 0.18);
    box-shadow: 0 24px 60px rgba(29, 27, 24, 0.12);
}

body.post-type-archive-portfolio .portfolio-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

body.post-type-archive-portfolio .portfolio-card img {
    width: 100%;
    height: 360px;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

body.post-type-archive-portfolio .portfolio-card:hover img {
    transform: scale(1.04);
    filter: brightness(0.92);
}

body.post-type-archive-portfolio .portfolio-card h2 {
    min-height: 84px;
    margin: 0;
    padding: 22px 24px 26px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #1d1b18;
}

body.post-type-archive-portfolio .portfolio-card h2::before {
    content: "";
    display: block;
    width: 42px;
    height: 1px;
    margin-bottom: 16px;
    background: #b89b65;
}

body.post-type-archive-portfolio .portfolio-card .entry-summary,
body.post-type-archive-portfolio .portfolio-card .entry-content,
body.post-type-archive-portfolio .portfolio-card p {
    display: none !important;
}

body.post-type-archive-portfolio .navigation,
body.post-type-archive-portfolio .pagination,
body.post-type-archive-portfolio .posts-navigation {
    margin-top: 56px;
    text-align: center;
}

@media (max-width: 1100px) {
    body.post-type-archive-portfolio .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.post-type-archive-portfolio .portfolio-card img {
        height: 340px;
    }
}

@media (max-width: 640px) {
    body.post-type-archive-portfolio .site-main.portfolio-archive-page {
        padding: 48px 16px 72px;
    }

    body.post-type-archive-portfolio .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.post-type-archive-portfolio .portfolio-card img {
        height: 300px;
    }

    body.post-type-archive-portfolio .portfolio-card h2 {
        min-height: auto;
        padding: 20px;
        font-size: 18px;
    }
}
/* Same premium grid style for stone categories */

body.category-mramor,
body.category-granit,
body.category-kvarcit {
    background: #f7f5f1;
}

body.category-mramor #secondary,
body.category-granit #secondary,
body.category-kvarcit #secondary,
body.category-mramor .sidebar,
body.category-granit .sidebar,
body.category-kvarcit .sidebar,
body.category-mramor .widget-area,
body.category-granit .widget-area,
body.category-kvarcit .widget-area,
body.category-mramor aside,
body.category-granit aside,
body.category-kvarcit aside {
    display: none !important;
}

body.category-mramor .site-main.portfolio-archive-page,
body.category-granit .site-main.portfolio-archive-page,
body.category-kvarcit .site-main.portfolio-archive-page {
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 24px 100px;
}

body.category-mramor .page-header,
body.category-granit .page-header,
body.category-kvarcit .page-header {
    margin: 0 0 48px;
    text-align: center;
}

body.category-mramor .page-title,
body.category-granit .page-title,
body.category-kvarcit .page-title {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -0.04em;
    color: #1d1b18;
}

body.category-mramor .portfolio-grid,
body.category-granit .portfolio-grid,
body.category-kvarcit .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px;
}

body.category-mramor .portfolio-card,
body.category-granit .portfolio-card,
body.category-kvarcit .portfolio-card {
    position: relative;
    margin: 0;
    background: #ffffff;
    border: 1px solid rgba(29, 27, 24, 0.08);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

body.category-mramor .portfolio-card:hover,
body.category-granit .portfolio-card:hover,
body.category-kvarcit .portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(29, 27, 24, 0.18);
    box-shadow: 0 24px 60px rgba(29, 27, 24, 0.12);
}

body.category-mramor .portfolio-card a,
body.category-granit .portfolio-card a,
body.category-kvarcit .portfolio-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

body.category-mramor .portfolio-card img,
body.category-granit .portfolio-card img,
body.category-kvarcit .portfolio-card img {
    width: 100%;
    height: 360px;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

body.category-mramor .portfolio-card:hover img,
body.category-granit .portfolio-card:hover img,
body.category-kvarcit .portfolio-card:hover img {
    transform: scale(1.04);
    filter: brightness(0.92);
}

body.category-mramor .portfolio-card h2,
body.category-granit .portfolio-card h2,
body.category-kvarcit .portfolio-card h2 {
    min-height: 84px;
    margin: 0;
    padding: 22px 24px 26px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #1d1b18;
}

body.category-mramor .portfolio-card h2::before,
body.category-granit .portfolio-card h2::before,
body.category-kvarcit .portfolio-card h2::before {
    content: "";
    display: block;
    width: 42px;
    height: 1px;
    margin-bottom: 16px;
    background: #b89b65;
}

@media (max-width: 1100px) {
    body.category-mramor .portfolio-grid,
    body.category-granit .portfolio-grid,
    body.category-kvarcit .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.category-mramor .portfolio-card img,
    body.category-granit .portfolio-card img,
    body.category-kvarcit .portfolio-card img {
        height: 340px;
    }
}

@media (max-width: 640px) {
    body.category-mramor .site-main.portfolio-archive-page,
    body.category-granit .site-main.portfolio-archive-page,
    body.category-kvarcit .site-main.portfolio-archive-page {
        padding: 48px 16px 72px;
    }

    body.category-mramor .portfolio-grid,
    body.category-granit .portfolio-grid,
    body.category-kvarcit .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    body.category-mramor .portfolio-card img,
    body.category-granit .portfolio-card img,
    body.category-kvarcit .portfolio-card img {
        height: 300px;
    }

    body.category-mramor .portfolio-card h2,
    body.category-granit .portfolio-card h2,
    body.category-kvarcit .portfolio-card h2 {
        min-height: auto;
        padding: 20px;
        font-size: 18px;
    }
}