/* LoomCode layout fixes, layered on top of the Framer export.
 * 1. Section padding: 80px desktop, 48px mobile.
 * 2. Reveal fallback: nothing that Framer starts at opacity 0 stays hidden.
 * 3. Project image frames: 4:3, 1px border, 12px radius. If an image is missing,
 *    the browser shows its alt text (the project title) inside the same frame.
 */

/* 1. Section padding */
#main .framer-1a7eeg4,
#main .framer-evghxu,
#main .framer-1sbjqs4,
#main .framer-1gecc79,
#main .framer-jaf476,
#main .framer-s6d7vw,
#main .framer-exukx3,
#main .framer-1k3qkv3,
#main .framer-aivkr {
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 809.98px) {
  #main .framer-1a7eeg4,
  #main .framer-evghxu,
  #main .framer-1sbjqs4,
  #main .framer-1gecc79,
  #main .framer-jaf476,
  #main .framer-s6d7vw,
  #main .framer-exukx3,
  #main .framer-1k3qkv3,
  #main .framer-aivkr {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* 2. Reveal fallback: Framer's SSR markup starts these at opacity 0.
 * Excludes the hidden textarea and decorative aria-hidden nodes. The terminal
 * window sets its own opacity in script and is not matched (style text has a space). */
#main [style*="opacity:0;"]:not(textarea):not([aria-hidden="true"]) {
  opacity: 1 !important;
  transform: none !important;
}

/* 3. Project image frames */
#main [data-framer-name="Selected work"] img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid #2E2E2E;
  border-radius: 12px;
  background: #171717;
}

/* 4. LoomCode logo: replaces the "loomcode_" wordmark text in the nav and footer.
 * The text is hidden with font-size 0 and the logo is drawn as the element's background,
 * so Framer's re-render can't bring the text back over it. */
#main .framer-9gk531,
#main .framer-p30jhm {
  background-image: url("/assets/loomcode-logo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}
#main .framer-9gk531 {
  width: 120px;
  height: 22px;
  min-width: 120px;
}
#main .framer-p30jhm {
  width: 186px;
  height: 34px;
  min-width: 186px;
}
#main .framer-9gk531 *,
#main .framer-p30jhm * {
  font-size: 0 !important;
  color: transparent !important;
}
