.instagram-section{background:#fff;padding:85px 32px 80px;color:#1d1d1f}
.instagram-inner{max-width:1136px;margin:auto}
.instagram-heading{display:flex;justify-content:space-between;gap:28px;align-items:center;margin-bottom:34px}
.instagram-heading h2{margin:18px 0 16px;font-size:clamp(34px,4.3vw,54px);line-height:1.08;letter-spacing:-2px}
.instagram-heading p{margin:0;font-size:19px;line-height:1.5;color:#737378}
.instagram-profile{display:inline-flex;align-items:center;gap:10px;color:#0071e3;font-size:15px;white-space:nowrap}
.instagram-profile svg{flex:none;color:#1d1d1f}
.instagram-posts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.instagram-post{position:relative;display:block;width:100%;aspect-ratio:4/5;overflow:hidden;border:0;border-radius:20px;background:#f5f5f7;padding:0;cursor:pointer;isolation:isolate}
/* Display only the photograph from each supplied screenshot, hiding the social UI. */
.instagram-post img{position:absolute;max-width:none;width:240.9877%;height:auto;left:-35.1852%;top:-13.84%;display:block;transition:transform .8s cubic-bezier(.22,.61,.36,1);transform-origin:41% 50%;user-select:none;-webkit-user-drag:none}
.instagram-post:hover img{transform:none}
.instagram-post--reel img{width:328.0672%;left:-66.3866%;top:-37.75%}
.instagram-play{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.instagram-play>span{display:grid;place-items:center;width:62px;height:62px;border:2px solid #fff;border-radius:50%;background:#0003;backdrop-filter:blur(6px);color:#fff}
.instagram-reel-mark{position:absolute;top:18px;right:18px;color:white;filter:drop-shadow(0 1px 4px #0005)}
.instagram-more{display:flex;justify-content:center;margin-top:28px;font-size:16px;color:#0071e3;gap:12px;align-items:center}
.instagram-dialog{width:min(560px,calc(100% - 28px));max-height:92dvh;border:0;border-radius:20px;padding:18px;background:#fff;color:#1d1d1f;overflow:auto}
.instagram-dialog::backdrop{background:#000a;backdrop-filter:blur(8px)}
.instagram-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.instagram-dialog-head h2{font-size:20px;letter-spacing:-.4px;margin:0}
.instagram-close{border:0;border-radius:50%;background:#f5f5f7;width:40px;height:40px;cursor:pointer;font-size:24px;color:#1d1d1f}
.instagram-frame{display:block;width:100%;height:min(660px,68dvh);border:1px solid #eee;border-radius:12px;background:#fff}
.instagram-dialog>a{display:inline-block;margin-top:16px;color:#0071e3;font-size:14px}
.instagram-section+#kontakt{background:#f5f5f7;border-top:0}
@media(max-width:760px){.instagram-section{padding:60px 22px}.instagram-heading{display:block;margin-bottom:26px}.instagram-heading h2{letter-spacing:-1.4px;font-size:36px}.instagram-heading p{font-size:17px}.instagram-profile{margin-top:22px;font-size:14px}.instagram-posts{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}.instagram-posts::-webkit-scrollbar{display:none}.instagram-post{flex:0 0 83%;scroll-snap-align:start;border-radius:16px}.instagram-more{font-size:14px;margin-top:24px}}
@media(prefers-reduced-motion:reduce){.instagram-post img{transition:none}.instagram-post:hover img{transform:none}}

/* Instagram-style cards; engagement figures are snapshots supplied by the client. */
.instagram-posts{align-items:stretch}
.instagram-card{min-width:0;overflow:hidden;border:1px solid #e6e6e9;border-radius:16px;background:#fff;display:flex;flex-direction:column;color:#1d1d1f;scroll-snap-align:start}
.instagram-card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px}
.instagram-card-profile{display:flex;align-items:center;gap:10px;font-size:12px;min-width:0}
.instagram-avatar{display:grid;place-items:center;width:34px;height:34px;flex:none;border-radius:50%;background:#111;color:#fff;font-size:23px;font-weight:500;letter-spacing:-2px;padding-right:3px}
.instagram-card-profile strong{display:block;font-weight:600}
.instagram-card-profile small{display:block;font-size:10px;margin-top:3px;color:#737378}
.instagram-card-options{font-size:15px;letter-spacing:1px;padding:8px}
.instagram-card .instagram-post{border-radius:0;flex:none}
.instagram-card-body{padding:13px 14px 17px}
.instagram-card-actions{display:flex;align-items:center;gap:14px;margin-bottom:13px}
.instagram-card-actions a{display:grid;place-items:center;width:23px;height:25px}
.instagram-card-actions a:last-child{margin-left:auto}
.instagram-card-actions svg{display:block;width:23px;height:23px}
.instagram-card-actions a:hover{color:#737378}
.instagram-card-likes{display:block;font-size:12px;font-weight:600;margin-bottom:9px}
.instagram-card-caption{font-size:12px;line-height:1.6;margin:0 0 10px}
.instagram-card-caption strong{font-weight:600}
.instagram-card-caption>a,.instagram-card-comments{color:#737378;font-size:12px}
.instagram-card-date{display:block;color:#8b8b91;font-size:10px;margin-top:12px}
@media(max-width:760px){.instagram-card{flex:0 0 86%;border-radius:14px}.instagram-card .instagram-post{width:100%}.instagram-card-header{padding:13px}.instagram-card-body{padding:13px}.instagram-card-caption{font-size:13px}.instagram-card-profile{font-size:13px}}

/* Local Reel plays inline, without the Instagram embed or its controls. */
.instagram-video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0}
.instagram-post--reel.is-video-ready .instagram-video{opacity:1}
.instagram-post--reel.is-video-ready .instagram-video-poster{visibility:hidden}
.instagram-card .instagram-post--reel{cursor:default}
.instagram-video-toggle{position:absolute;right:14px;bottom:14px;width:38px;height:38px;border:1px solid #ffffff80;border-radius:50%;display:grid;place-items:center;color:white;background:#0006;backdrop-filter:blur(8px);cursor:pointer}
.instagram-video-toggle .ig-video-pause{display:none}
.instagram-post--reel.is-playing .ig-video-play{display:none}
.instagram-post--reel.is-playing .ig-video-pause{display:block}

.instagram-social{display:flex;flex-direction:column;align-items:flex-end;gap:12px;flex-shrink:0}
.instagram-qr{display:block;width:128px;height:128px;background:white;border-radius:10px;overflow:hidden}
.instagram-qr img{display:block;width:100%;height:100%}
.instagram-social .instagram-profile{font-size:13px;margin-top:0;gap:7px}
.instagram-social .instagram-profile svg{width:19px;height:19px}
@media(max-width:760px){.instagram-social{flex-direction:column;align-items:flex-end;gap:14px;margin-top:22px}.instagram-qr{width:94px;height:94px}.instagram-social .instagram-profile{font-size:14px}}

/* Original white brand monogram on a black Instagram avatar. */
.instagram-avatar{padding:0;background:#000;overflow:hidden}
.instagram-avatar img{display:block;width:100%;height:100%;object-fit:contain}

/* Full crea:space wordmark in the Instagram profile circle. */
.instagram-avatar img{width:88%;height:auto;object-fit:contain}

/* On phones, the viewport scrolls horizontally and the posts stay in document order. */
.instagram-controls{display:none}
@media(min-width:761px){
 .instagram-section .instagram-window.native-slider-window{overflow:visible;scroll-snap-type:none;cursor:auto}
}
@media(max-width:760px){
 .instagram-window{width:100%;min-width:0;border-radius:14px;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;touch-action:pan-x pan-y;overscroll-behavior-x:contain}
 .instagram-window::-webkit-scrollbar{display:none}
 .instagram-posts{overflow:visible;gap:16px}
 .instagram-card{flex:0 0 100%;width:100%;box-sizing:border-box}
 .instagram-section .instagram-card .instagram-post{height:auto}
 .instagram-section .instagram-controls{display:flex}
 .instagram-dots{max-width:100%;gap:2px}
 .instagram-dots button{width:clamp(24px,7vw,28px)}
 .instagram-more{margin-top:8px}
 .instagram-card-header,.instagram-card-body{padding:10px}
 .instagram-card-actions{margin-bottom:8px}
 .instagram-card-likes,.instagram-card-caption{margin-bottom:6px}
 .instagram-card-caption{line-height:1.4}
 .instagram-card-date{margin-top:8px}
}

/* Keep the mobile QR beside the introduction instead of on a separate row. */
@media(max-width:760px){
 .instagram-heading{display:grid;grid-template-columns:minmax(0,1fr) 64px;column-gap:14px;row-gap:16px;align-items:start}
 .instagram-heading>div:first-child{grid-column:1;grid-row:1;min-width:0}
 .instagram-heading h2{font-size:clamp(28px,7.7vw,34px);letter-spacing:-1.2px}
 .instagram-heading .eyebrow{line-height:1.5}
 .instagram-social{display:contents}
 .instagram-qr{grid-column:2;grid-row:1;width:64px;height:64px;border-radius:6px}
 .instagram-social .instagram-profile{grid-column:1 / -1;grid-row:2;justify-self:start;margin:0}
}

/* Follow the mobile introduction down to the account name, below the navbar. */
@media(max-width:760px){
 .instagram-heading .instagram-qr{
  position:sticky;top:calc(72px + env(safe-area-inset-top,0px));
  grid-row:1 / 3;align-self:start;z-index:1;
 }
}

@keyframes instagram-scroll-progress{
 from{transform:translate3d(0,0,0)}
 to{transform:translate3d(var(--instagram-slide-end),0,0)}
}
@keyframes instagram-following-arrival{
 from{transform:translateY(var(--instagram-row-height))}
 to{transform:none}
}
@keyframes instagram-heading-departure{
 from{transform:none}
 to{transform:translateY(var(--instagram-heading-exit))}
}
/* Desktop uses the approved hero sequence; mobile retains its existing flow. */
@media(min-width:761px){
 .instagram-page-scroll-rail{position:relative;display:flow-root}
 .instagram-page-scroll-rail::after{content:"";display:block;height:var(--instagram-travel)}
 .instagram-page-scroll-content{position:sticky;top:var(--instagram-page-pin-top,0px);display:flow-root}
 .instagram-following{display:flow-root}
 .instagram-desktop-scroll .instagram-window{position:relative;z-index:1;pointer-events:none;display:flex;justify-content:flex-end;overflow:hidden;width:100%;scroll-snap-type:none}
 /* Include every card in the track's painted bounds as it crosses the viewport. */
 .instagram-desktop-scroll .instagram-posts{position:relative;direction:rtl;display:flex;flex:none;width:max-content;min-width:100%;gap:20px;will-change:transform}
 .instagram-desktop-scroll .instagram-card{pointer-events:auto;direction:ltr;flex:0 0 var(--instagram-card-width);width:var(--instagram-card-width);contain:paint;transform:translateZ(0)}
 .instagram-desktop-scroll{--instagram-card-width:calc((min(1136px,calc(var(--instagram-screen-width,100vw) - 64px)) - 40px)/3)}
 /* Keep the scroll distance fixed while the posts leave and the next heading rises. */
 .instagram-desktop-scroll .instagram-flow-row{height:0;overflow:visible;display:flow-root}
 .instagram-page-scroll-content #architektura{position:relative;background:transparent}
 .instagram-page-scroll-content #architektura>.section-head{position:relative;z-index:1;background:transparent}
 @supports (animation-timeline:scroll(root block)) and (animation-range:0px 1px){
  .instagram-desktop-native .instagram-posts{
   animation:instagram-scroll-progress 1s linear both;
   animation-timeline:scroll(root block);
   animation-range:var(--instagram-scroll-start) var(--instagram-scroll-end);
  }
  .instagram-desktop-native .instagram-heading,
  .instagram-desktop-native+.instagram-following{
   animation:instagram-heading-departure 1s linear both;
   animation-timeline:scroll(root block);
   animation-range:var(--instagram-close-start) var(--instagram-close-end);
  }
  .instagram-desktop-native+.instagram-following{animation-name:instagram-following-arrival;animation-timing-function:var(--instagram-arrival-easing,linear)}
 }
}

/* New uploads are original photographs, without the screenshot crop. */
.instagram-card .instagram-post--photo img{inset:0;left:0;top:0;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:center;transform-origin:center}

/* Reserve room for reactions, captions and dates; shorten only the photograph. */
.instagram-card .instagram-post{height:var(--instagram-card-photo-height,auto)}
.instagram-card-header,.instagram-card-body{flex-shrink:0}

/* Fill every image area edge to edge, preserving the original photo proportions. */
.instagram-card .instagram-post{background:#f5f5f7}
.instagram-photo-frame{position:absolute;display:block;width:100%;height:auto;aspect-ratio:4/5;left:0;top:50%;transform:translateY(-50%);overflow:hidden}
.instagram-card .instagram-post--photo img{object-fit:cover;object-position:center;background:#f5f5f7}
.instagram-video{object-fit:cover;object-position:center;background:#f5f5f7}

/* Let the row travel from one screen edge to the other, like the hero gallery. */
@media(min-width:761px){
 .instagram-desktop-scroll .instagram-flow-row{
  width:var(--instagram-screen-width,100vw);
  margin-inline:calc((100% - var(--instagram-screen-width,100vw))/2);
 }
}
.instagram-card-compact .instagram-card-header{padding:10px}
.instagram-card-compact .instagram-card-body{padding:10px}
.instagram-card-compact .instagram-card-actions{margin-bottom:8px}
.instagram-card-compact .instagram-card-likes{margin-bottom:6px}
.instagram-card-compact .instagram-card-caption{margin-bottom:6px;line-height:1.4}
.instagram-card-compact .instagram-card-date{margin-top:8px}
.instagram-card .instagram-post--photo img{object-fit:contain}
.instagram-photo-frame{top:0;transform:none}

/* Align the first Instagram card with the opening hero image. */
.instagram-desktop-scroll .instagram-posts{padding-inline-start:var(--instagram-start-inset,0px);box-sizing:border-box}

/* Touch and hover never zoom the photo while its card is sliding. */
.instagram-section .instagram-post img{transition:none}
.instagram-section .instagram-post:hover img{transform:none}

/* Match the taller bedroom photograph to the standard 4:5 post frame. */
.instagram-card .instagram-post--standard{height:auto;aspect-ratio:4/5}
.instagram-card .instagram-post--standard img{object-fit:cover}
.instagram-desktop-scroll .instagram-card .instagram-post--standard{height:var(--instagram-card-photo-height,auto)}
.instagram-card-cropped .instagram-post--photo img{object-fit:cover}

/* Keep comments and dates aligned at the bottom, regardless of caption length. */
.instagram-card-body{display:flex;flex-direction:column;flex-grow:1}
.instagram-card-comments{margin-top:auto}
/* Measure natural content height while fitting cards to the viewport. */
.instagram-card-sizing .instagram-card-body{flex-grow:0}

/* The desktop scroll timeline owns the row. Trackpad gestures must not also
   scroll a second horizontal box or trigger focus-driven repositioning. */
@media(min-width:761px){
 .instagram-desktop-scroll .instagram-window{overflow:clip;overflow-anchor:none;overscroll-behavior-x:none;touch-action:pan-y}
 .instagram-desktop-scroll .instagram-flow-row{overflow-anchor:none}
 .instagram-desktop-scroll .instagram-card{scroll-snap-align:none}
}

/* Let the next heading follow the Instagram link without a large empty gap. */
@media(max-width:760px){
 .instagram-section{padding-bottom:20px}
}

/* A short, wide phone still browses Instagram with a horizontal gesture. */
@media(orientation:landscape) and (max-height:500px) and (max-width:1100px){
 .home-page .instagram-section{
  --instagram-landscape-gap:14px;
  --instagram-landscape-columns:1;
 }
 .home-page .instagram-section .instagram-window.native-slider-window{
  width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x mandatory;
  cursor:grab;
 }
 .home-page .instagram-posts{
  display:flex;
  width:100%;
  overflow:visible;
  gap:var(--instagram-landscape-gap);
 }
 .home-page .instagram-card{
  flex:0 0 calc((100% - (var(--instagram-landscape-columns) - 1) * var(--instagram-landscape-gap)) / var(--instagram-landscape-columns));
  width:auto;
 }
 .home-page .instagram-controls{display:flex}
}
@media(orientation:landscape) and (min-width:540px) and (max-height:500px) and (max-width:1100px){
 .home-page .instagram-section{--instagram-landscape-columns:2}
}
@media(orientation:landscape) and (min-width:850px) and (max-height:500px) and (max-width:1100px){
 .home-page .instagram-section{--instagram-landscape-columns:3}
}

/* Align visible QR modules and profile ink to the introduction's text edges. */
@media(min-width:761px), (orientation:landscape) and (min-width:540px) and (max-height:500px) and (max-width:1100px){
 .instagram-heading{display:flex;align-items:stretch}
 .instagram-heading>div:first-child{min-width:0;flex:1}
 .instagram-heading>.instagram-social{display:flex;position:relative;flex:0 0 150px;min-height:0;margin-top:0;gap:0}
 .instagram-social>.instagram-qr{position:absolute;right:0;width:var(--instagram-qr-size,128px);height:var(--instagram-qr-size,128px);top:var(--instagram-qr-align-top,-10px);overflow:visible}
 .instagram-social>.instagram-profile{position:absolute;right:0;top:var(--instagram-profile-align-top,calc(100% - 19px));margin:0}
}

@media(orientation:landscape) and (min-width:540px) and (max-height:500px) and (max-width:1100px){
 .instagram-heading>.instagram-social{flex-basis:145px}
 .instagram-social>.instagram-profile{font-size:12px;gap:6px}
 .instagram-social>.instagram-profile svg{width:16px;height:16px}
}

/* The QR box follows its printed modules, excluding the built-in quiet zone. */
.instagram-qr{position:relative;border-radius:0;overflow:visible;background:transparent}
.instagram-qr>img{
 position:absolute;left:calc(-12.121212% - 32px);top:calc(-12.121212% - 32px);
 width:calc(124.242424% + 64px);height:calc(124.242424% + 64px);max-width:none;
 box-sizing:border-box;padding:32px;transform:translateZ(0);backface-visibility:hidden;
}
@media(max-width:760px) and (orientation:portrait){
 .instagram-heading .instagram-qr{
  position:sticky;width:51.512195px;height:51.512195px;justify-self:end;
  margin-top:var(--instagram-qr-portrait-start,0px);
  margin-bottom:var(--instagram-qr-portrait-end,0px);
 }
}
@media(min-width:761px), (orientation:landscape) and (min-width:540px) and (max-height:500px) and (max-width:1100px){
 .instagram-social>.instagram-qr{position:absolute;overflow:visible;border-radius:0}
}

/* Transparent gutters keep Safari blur away from the link surface boundaries. */
.instagram-more{overflow:visible}
.instagram-more.instagram-follow-hidden{visibility:hidden}
.instagram-more-content{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:32px;margin:-32px;position:relative;transform:translateZ(0);backface-visibility:hidden}
