/* Element Customs static site: styles the Duda runtime used to inject at load time. */
.ec-anim-wait { visibility: hidden; }
@keyframes flipInHorizontally {
  0%   { transform: perspective(400px) rotateY(90deg); opacity: 0; }
  40%  { transform: perspective(400px) rotateY(-10deg); }
  70%  { transform: perspective(400px) rotateY(10deg); }
  100% { transform: perspective(400px) rotateY(0deg); opacity: 1; }
}
.animated.flipInHorizontally { animation-name: flipInHorizontally; animation-duration: 1s; animation-fill-mode: both; backface-visibility: visible; }
@media (prefers-reduced-motion: reduce) { .animated { animation: none !important; } }
/* drawer: keep the page from scrolling behind the open menu */
body.ec-drawer-open { overflow: hidden; }
[data-grab^="accordion-item-title-wrap"] { cursor: pointer; }
.ec-invalid { outline: 2px solid #9200fa !important; outline-offset: 1px; }
.ec-form-note { margin: 12px 0 0; color: #fff; font-size: 15px; }

/* ---- Klatte sample 2 additions ---- */
/* The template's abstract hexagon background loop is red; shift it to Klatte purple (#9200FA). */
video.videobgframe[poster*="seamless-red-neon"], video.videobgframe[data-video-src*="seamless-red-neon"] {
  filter: hue-rotate(272deg) saturate(1.15);
}
/* Klatte logo is wider than Element's mark; keep it inside the same header slot */
img[src^="/brand/klatte-logo"] { object-fit: contain; }
.klatte-policy h3 { margin: 1.4em 0 .4em; }
.klatte-policy a { color: inherit; text-decoration: underline; }

/* /gallery: Mason's photos in a responsive grid */
.klatte-gallery { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; width:100%; }
.klatte-gallery figure { margin:0; border-radius:12px; overflow:hidden; aspect-ratio:4/5; background:#111; }
.klatte-gallery img { width:100%; height:100%; object-fit:cover; display:block; }
@media (max-width:1024px){ .klatte-gallery { grid-template-columns:repeat(3,1fr); } }
@media (max-width:767px){ .klatte-gallery { grid-template-columns:repeat(2,1fr); gap:8px; } }
