/* Full-width mobile photos in their original proportions. */
@media(max-width:820px){
  .mobile-photo-gallery.mobile-photo-gallery{display:flex;flex-wrap:nowrap;align-items:flex-start;gap:14px;min-width:0;width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:0;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:var(--gold-light,#ab9270) transparent;padding-bottom:12px;box-sizing:border-box}
  .mobile-photo-gallery.mobile-photo-gallery > :is(figure,.frame,.archive-card),
  .mobile-photo-gallery.mobile-photo-gallery > :is(figure,.frame,.archive-card):first-child{flex:0 0 100%;min-width:0;max-width:none;margin:0;grid-column:auto;grid-row:auto;aspect-ratio:auto;height:auto;min-height:0;scroll-snap-align:start;scroll-snap-stop:always;border:0;border-radius:0;overflow:hidden;position:relative;background:transparent}
  .mobile-photo-gallery.mobile-photo-gallery > .frame{display:block;padding:0}
  .mobile-photo-gallery.mobile-photo-gallery > figure > a{display:block;width:100%;height:auto}
  .mobile-photo-gallery.mobile-photo-gallery > :is(figure,.frame,.archive-card) img{display:block;position:static;width:100%!important;height:auto!important;max-height:none;aspect-ratio:var(--photo-ratio,auto);object-fit:contain;border:0;border-radius:0}
  .mobile-photo-gallery::-webkit-scrollbar{height:4px}
  .mobile-photo-gallery::-webkit-scrollbar-thumb{background:var(--gold-light,#ab9270);border-radius:4px}
}

.action-video-grid{display:flex;gap:24px;align-items:flex-start}
.action-video-grid .action-video-placeholder{flex:1;min-width:0}
.action-video-grid .action-video-placeholder video{width:100%}
.action-video-swipe-hint{display:none}
@media(max-width:760px){.action-video-grid{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}.action-video-grid::-webkit-scrollbar{display:none}.action-video-grid .action-video-placeholder{flex:0 0 calc(100vw - 32px);scroll-snap-align:start}}
@media(max-width:760px){.action-video-section .wrap{position:relative}.action-video-grid .action-video-placeholder{flex-basis:calc(100vw - 2px)}.action-video-swipe-hint{display:grid;place-items:center;position:absolute;right:10px;top:50%;width:40px;height:40px;border-radius:50%;background:rgba(23,21,18,.78);color:#fff;font:500 24px/1 Georgia,serif;pointer-events:none;box-shadow:0 4px 12px rgba(0,0,0,.18)}}
@media(max-width:760px){.action-video-grid{width:calc(100vw - 2px);margin-left:calc(50% - 50vw + 1px);margin-right:0}.action-video-grid .action-video-placeholder{width:calc(100vw - 2px)!important;min-width:calc(100vw - 2px)!important;max-width:none!important;flex:0 0 calc(100vw - 2px)!important}.action-video-grid .action-video-category{margin-left:20px!important}}
@media(max-width:760px){.action-video-grid .action-video-placeholder:first-child .action-video-category{margin-left:clamp(120px,38vw,220px)!important}}
body:has(img[src*="project-037-29d679283e60"]) .mobile-photo-gallery > :nth-child(3){display:none!important}
body.gallery-video-only main>section:not(#video-gallery),body.gallery-photo-only main>section:not(#project-archive){display:none!important}
@media(max-width:820px){
  .mobile-photo-viewer{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#111;color:#fff;overflow:hidden}
  .mobile-photo-viewer::backdrop{background:#111}
  body:has(.mobile-photo-viewer[open]){overflow:hidden}
  .mobile-photo-viewer img{display:block;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;touch-action:pan-y pinch-zoom}
  .mobile-photo-viewer button{position:absolute;z-index:2;display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:24px;cursor:pointer}
  .mobile-photo-viewer button[hidden]{display:none}
  .mobile-photo-viewer .photo-viewer-close{top:max(16px,env(safe-area-inset-top));right:16px}
  .mobile-photo-viewer .photo-viewer-prev{left:12px;top:calc(50% - 20px)}
  .mobile-photo-viewer .photo-viewer-next{right:12px;top:calc(50% - 20px)}
  .mobile-photo-viewer .photo-viewer-count{position:absolute;top:max(24px,env(safe-area-inset-top));left:20px;font:500 13px Inter,sans-serif;text-shadow:0 1px 4px #000}
}
/* Project title, photos, and a short expandable description on phones. */
@media(max-width:820px){
  .mobile-project-host.mobile-project-host{display:block}
  .mobile-project-original{display:none!important}
  .mobile-project-card{width:100%;min-width:0}
  .mobile-project-heading{margin:0 0 18px}
  .mobile-project-heading h1,.mobile-project-heading h2{font-size:clamp(25px,6vw,32px);line-height:1.15;margin:8px 0 0}
  .mobile-project-heading .tag,.mobile-project-heading .eyebrow{font-size:11px;line-height:1.5}
  .mobile-project-card>.mobile-photo-gallery{margin:0}
  .mobile-project-description{margin-top:16px;color:var(--gray);font-size:14.5px;line-height:1.6}
  .mobile-project-description p{display:block;margin:0 0 12px;font:inherit;color:inherit}
  .mobile-project-description .mobile-project-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin-bottom:0}
  .mobile-project-description [hidden]{display:none!important}
  .mobile-project-more{display:inline-flex;align-items:center;justify-content:center;margin-top:16px;padding:10px 20px;min-height:44px;border:1px solid var(--gold);border-radius:999px;background:transparent;color:var(--gold);font:600 12px Inter,sans-serif;cursor:pointer}
}
/* Project photos reach the phone's edges, without a surrounding card. */
@media(max-width:820px){
  .mobile-photo-gallery.mobile-photo-gallery.mobile-photo-gallery{width:100vw;max-width:none;margin:0 calc(50% - 50vw);padding:0;gap:0;border:0;border-radius:0;box-shadow:none;background:transparent;scrollbar-width:none}
  .mobile-photo-gallery.mobile-photo-gallery.mobile-photo-gallery::-webkit-scrollbar{display:none}
  .mobile-photo-gallery.mobile-photo-gallery > :is(figure,.frame,.archive-card),
  .mobile-photo-gallery.mobile-photo-gallery > :is(figure,.frame,.archive-card):first-child,
  .mobile-photo-gallery.mobile-photo-gallery > figure > a,
  .mobile-photo-gallery.mobile-photo-gallery img{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
}
@media(max-width:820px){
  .mobile-photo-hint{position:absolute;inset:0;pointer-events:none;z-index:3}
  .mobile-photo-gallery .mobile-photo-hint-count{position:absolute;top:12px;right:12px;padding:5px 9px;border-radius:999px;background:rgba(18,16,12,.58);color:#fff;font:500 11px/1.3 Inter,sans-serif;letter-spacing:.04em;backdrop-filter:blur(4px)}
  .mobile-photo-hint button{position:absolute;top:calc(50% - 18px);width:36px;height:36px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(18,16,12,.48);color:#fff;pointer-events:auto;cursor:pointer;backdrop-filter:blur(4px)}
  .mobile-photo-hint-next{right:10px}.mobile-photo-hint-prev{left:10px}
  .mobile-photo-hint svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
}
.action-video-grid .action-video-placeholder:first-child .action-video-category{margin-left:0!important;text-align:center;width:100%}
@media(max-width:820px){.sammamish-panels-gallery{display:flex!important;flex-wrap:nowrap!important;gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important}.sammamish-panels-gallery>figure{flex:0 0 100%!important;scroll-snap-align:start!important;grid-column:auto!important}.sammamish-panels-gallery>figure img{width:100%!important;height:auto!important;object-fit:contain!important}}
@media(max-width:820px){.entire-room-gallery{display:flex!important;flex-wrap:nowrap!important;gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important}.entire-room-gallery>figure{flex:0 0 100%!important;scroll-snap-align:start!important;grid-column:auto!important}.entire-room-gallery>figure img{width:100%!important;height:auto!important;object-fit:contain!important}}
@media(max-width:820px){body .accent-wall-gallery,body .accent-wall-project-gallery,body .accent-textured-project-gallery{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;grid-template-columns:none!important}body .accent-wall-gallery>figure,body .accent-wall-project-gallery>figure,body .accent-textured-project-gallery>figure{display:block!important;flex:0 0 100%!important;width:100%!important;scroll-snap-align:start!important;grid-column:auto!important}body .accent-wall-gallery>figure img,body .accent-wall-project-gallery>figure img,body .accent-textured-project-gallery>figure img{width:100%!important;height:auto!important;object-fit:contain!important}}
