.portfolio-main { padding-bottom: 76px; }
.portfolio-hero { padding-block: 36px 80px; }
.portfolio-breadcrumb { display: flex; align-items: center; gap: 12px; color: #6e6e73; font-size: 13px; line-height: 1.6; margin-bottom: 64px; }
.portfolio-breadcrumb a { color: #6e6e73; }
.portfolio-breadcrumb a:hover { color: #0066cc; text-decoration: underline; text-underline-offset: 4px; }
.portfolio-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.portfolio-heading h1 { color: #1d1d1f; font-size: clamp(44px, 5.7vw, 72px); font-weight: 650; line-height: 1.15; letter-spacing: -.055em; margin-top: 16px; }
.portfolio-heading p { max-width: 400px; color: #6e6e73; font-size: 18px; line-height: 1.7; letter-spacing: -.025em; padding-bottom: 4px; }
.portfolio-label { display: inline-flex; align-items: center; color: #6e6e73; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.portfolio-label .dot { display: none; }
.portfolio-collection { border-top: 1px solid #d2d2d7; }
.portfolio-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.portfolio-toolbar h2 { display: inline-flex; align-items: center; gap: 10px; color: #1d1d1f; font-size: 18px; font-weight: 600; line-height: 1.5; letter-spacing: -.025em; margin: 0; }
.portfolio-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding-inline: 7px; background: #f5f5f7; color: #6e6e73; border-radius: 50px; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.portfolio-toolbar p { color: #6e6e73; font-size: 13px; }
.portfolio-empty { display: flex; flex-direction: column; align-items: center; padding: 88px 32px; border: 0; border-radius: 28px; background: #f5f5f7; text-align: center; }
.portfolio-folder { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 22px; background: #fff; color: #0066cc; margin-bottom: 28px; }
.portfolio-folder .icon { width: 36px; height: 36px; stroke-width: 1.4; }
.portfolio-empty h3 { color: #1d1d1f; font-size: 26px; font-weight: 600; letter-spacing: -.04em; line-height: 1.45; }
.portfolio-empty p { max-width: 470px; font-size: 16px; line-height: 1.8; margin-top: 16px; color: #6e6e73; }
.portfolio-empty .text-link { color: #0066cc; margin-top: 22px; font-size: 15px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.portfolio-card { display: flex; flex-direction: column; min-width: 0; background: #f5f5f7; border: 0; border-radius: 24px; overflow: hidden; }
.portfolio-cover { aspect-ratio: 1.8; overflow: hidden; background: #ececef; }
.portfolio-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.portfolio-cover-fallback { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 38px; color: #6e6e73; background: #ececef; }
.portfolio-cover-fallback .icon { width: 54px; height: 54px; flex-shrink: 0; stroke-width: 1.1; }
.portfolio-cover-fallback span { font-size: 11px; letter-spacing: .07em; }
.portfolio-card-body { display: flex; flex-direction: column; flex: 1; padding: 32px; }
.portfolio-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; color: #6e6e73; font-size: 12px; line-height: 1.5; }
.portfolio-meta>span { color: #6e6e73; font-weight: 500; }
.portfolio-card h3 { color: #1d1d1f; font-size: 26px; font-weight: 600; letter-spacing: -.035em; line-height: 1.4; margin-top: 18px; overflow-wrap: anywhere; }
.portfolio-card h3 a { color: inherit; }
.portfolio-card h3 a:hover { color: #0066cc; }
.portfolio-card-body>p { color: #6e6e73; font-size: 15px; line-height: 1.8; margin-block: 14px 28px; overflow-wrap: anywhere; }
.portfolio-card-body>.text-link { align-self: flex-start; justify-content: flex-start; gap: 8px; color: #0066cc; font-size: 14px; min-height: 44px; margin-top: auto; border: 0; padding: 0; }
.portfolio-card-body>.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.portfolio-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 48px; }
.portfolio-pagination a, .portfolio-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 50px; background: #f5f5f7; color: #1d1d1f; font-size: 14px; }
.portfolio-pagination [aria-current] { background: #1d1d1f; color: #fff; }
.portfolio-pagination a:hover { background: #e8e8ed; }
.portfolio-pagination .pagination-gap { background: transparent; color: #6e6e73; min-width: 20px; padding-inline: 0; }
.portfolio-manage { display: flex; justify-content: flex-end; margin-top: 28px; }
.portfolio-manage a { color: #6e6e73; font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; gap: 7px; }
.portfolio-manage a:hover { color: #0066cc; }
@media (max-width: 960px) {
  .portfolio-hero { padding-bottom: 64px; }
  .portfolio-breadcrumb { margin-bottom: 48px; }
  .portfolio-heading { gap: 28px; }
  .portfolio-heading p { font-size: 16px; }
  .portfolio-grid { gap: 22px; }
  .portfolio-card-body { padding: 26px; }
  .portfolio-card h3 { font-size: 23px; }
}
@media (max-width: 700px) {
  .portfolio-main { padding-bottom: 44px; }
  .portfolio-hero { padding-block: 24px 48px; }
  .portfolio-breadcrumb { margin-bottom: 40px; font-size: 12px; }
  .portfolio-heading { display: block; }
  .portfolio-heading h1 { font-size: 44px; margin-top: 12px; }
  .portfolio-heading p { font-size: 16px; margin-top: 22px; padding: 0; }
  .portfolio-label { font-size: 11px; }
  .portfolio-toolbar { padding-block: 24px; }
  .portfolio-toolbar h2 { font-size: 17px; }
  .portfolio-toolbar p { font-size: 12px; }
  .portfolio-grid { grid-template-columns: 1fr; gap: 24px; }
  .portfolio-card { border-radius: 22px; }
  .portfolio-card-body { padding: 26px; }
  .portfolio-card h3 { font-size: 25px; }
  .portfolio-cover-fallback { padding: 28px; }
  .portfolio-cover-fallback .icon { width: 44px; height: 44px; }
  .portfolio-cover-fallback span { font-size: 10px; }
  .portfolio-empty { padding: 56px 24px; border-radius: 22px; }
  .portfolio-empty h3 { font-size: 23px; }
  .portfolio-empty p { font-size: 15px; }
  .portfolio-empty p br { display: none; }
  .portfolio-pagination { margin-top: 32px; }
}
