/* Mobile portfolio layout only. Keep original images, copy, and previews. */
@media (max-width: 760px) {
  body {
    background: #f4f6fa;
  }
  body:has(#login-view:not([hidden])) .header-actions,
  body:has(#login-view:not([hidden])) .search-panel,
  body:has(#initial-loading:not([hidden])) .header-actions {
    display: none !important;
  }
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 56px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fff;
    border-bottom: 1px solid #eef1f6;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
  }
  .site-header.wrap {
    width: 100%;
    margin: 0;
  }
  .brand-mark,
  .site-header nav {
    display: none !important;
  }
  .brand {
    font: 800 16px/1.2 PortfolioSans, Arial, sans-serif;
    letter-spacing: -0.4px;
    color: #17243c;
  }
  .header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
  }
  .header-icon {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #17243c;
    display: grid;
    place-items: center;
    border-radius: 10px;
    padding: 0;
  }
  .header-icon svg {
    width: 22px;
    height: 22px;
  }
  .search-panel {
    display: none;
    padding: 0 16px 12px;
    background: #fff;
    border-bottom: 1px solid #eef1f6;
  }
  .search-panel.is-open {
    display: block;
  }
  .search-panel input {
    width: 100%;
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 14px;
    background: #f7f9fc;
    font-size: 15px;
  }
  .gallery-intro {
    display: block;
    padding: 28px 0 18px;
  }
  .gallery-intro .eyebrow {
    font-size: 11px;
    letter-spacing: 0.16em;
    font-weight: 700;
  }
  .gallery-intro h1 {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1.4px;
    line-height: 1.25;
    margin: 12px 0 14px;
  }
  .gallery-intro-copy {
    padding: 0;
    min-width: 0;
  }
  .gallery-intro-copy .muted {
    font-size: 14px;
    line-height: 1.65;
    color: #7d8798;
  }
  .portfolio-limitations.wrap,
  .gallery-intro.wrap {
    width: calc(100% - 32px);
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
  }
  .portfolio-limitations {
    display: block;
    margin: 0 auto 20px;
    padding: 16px 18px 18px;
    background: #fff8eb;
    border: 1px solid #f0d7a8;
    border-left: 1px solid #f0d7a8;
    border-radius: 16px;
    color: #704a15;
    box-shadow: none;
  }
  .portfolio-limitations > div {
    min-width: 0;
  }
  .limitations-icon {
    display: none !important;
  }
  .notice-kicker {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    color: #c4841d;
  }
  .notice-kicker svg {
    width: 16px;
    height: 16px;
    flex: none;
  }
  .portfolio-limitations p {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
    color: #6d4a18;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .collection-toolbar {
    flex-wrap: wrap;
  }
  .project-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .project-card {
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 16px;
    overflow: hidden;
    padding-bottom: 8px;
    box-shadow: 0 6px 18px rgba(23, 36, 60, 0.05);
  }
  .project-image {
    border-radius: 0;
  }
  .project-heading,
  .project-subtitle,
  .project-description,
  .project-tags {
    padding-left: 14px;
    padding-right: 14px;
  }
  .project-heading {
    margin-top: 14px;
  }
  .project-description {
    max-width: none;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .contact-banner {
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 16px;
  }
  .site-footer {
    background: #fff;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  .site-footer.wrap {
    width: 100%;
  }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 80;
  }
  .mobile-menu[hidden] {
    display: none !important;
  }
  .mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 28, 46, 0.42);
  }
  .mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: #fff;
    padding: 18px 18px 28px;
    box-shadow: -12px 0 40px rgba(16, 28, 46, 0.16);
    overflow: auto;
  }
  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
  }
  .mobile-menu-panel a,
  .mobile-menu-panel .quiet-button,
  .mobile-menu-panel .filter {
    display: flex;
    width: 100%;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    font-size: 15px;
    font-weight: 650;
    color: #17243c;
  }
  .mobile-menu-panel .filter[aria-pressed="true"] {
    background: #17243c;
    color: #fff;
  }
  .mobile-menu-label {
    display: block;
    margin: 16px 4px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #8a94a6;
  }
}

@media (min-width: 761px) {
  .header-actions,
  .search-panel,
  .notice-kicker,
  .mobile-menu {
    display: none !important;
  }
}
