/* Project pages (/work/<slug>) only. The Kern template's "USE FOR FREE" remix button and
   the "Made in Framer" badge are template promotion, not part of the design. */
[data-framer-name="Remix Link (Delete This)"],
#__framer-badge-container {
    display: none !important;
}

/* The big full-width gallery pictures near the bottom are removed on every project. Where
   the gallery followed "Details 2" directly (no testimonial), that section ends with 0px
   padding and the gallery's own 96px bottom padding made the gap to "More Projects", so it
   takes over those 96px (same at every breakpoint). */
[data-framer-name="Gallery Section"] {
    display: none !important;
}
[data-framer-name="Details 2 Section"]:has(+ [data-framer-name="Gallery Section"]) {
    padding-bottom: 96px !important;
}

/* The template's footer (yellow "GET IN TOUCH" fit text, Instagram/Twitter/Dribbble/Framer
   links, "MAEL KERN 2026©") is removed on every project. */
.framer-98rf53-container {
    display: none !important;
}

/* Hero picture = a screenshot of the project's site: show it from the top so the site's own
   header is in view. The image box starts 50px above the viewport (Kern's parallax), hence
   the 50px. On phones each page swaps in a full-height phone screenshot (inline style written
   by tools/work_pages.py), since a desktop shot would be cropped to a thin middle slice. */
[data-framer-name="Hero Section"] [data-framer-name="Main Image"] img {
    object-position: 50% 50px !important;
}

/* "More Projects" cards look like the homepage grid cards: the project's homepage still
   (16:9, 4px corners, soft shadow) inset at 80% width on a rgb(240,240,247) panel with 16px
   corners. Kern's hover zoom (on the layer inside the panel) now zooms the still. */
#main [data-framer-name="More Projects Section"] [data-framer-name="Image Wrapper"] {
    background-color: rgb(240, 240, 247) !important;
    border-radius: 16px !important;
}
#main [data-framer-name="More Projects Section"] [data-framer-name="Image Wrapper"] img {
    position: absolute !important;
    inset: auto !important;
    left: 10% !important;
    top: 50% !important;
    width: 80% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    transform: translateY(-50%);
    object-fit: cover !important;
    object-position: 50% 50% !important;
    border-radius: 4px;
    box-shadow: rgba(37, 38, 41, 0.1) 0px 1px 4px 1px;
}

/* Kern's testimonial (a quote from a fictional client) is hidden until there are real ones.
   Like the gallery, it supplied the 96px gap after "Details 2", so that section takes it over. */
[data-framer-name="Testimonial Section"] {
    display: none !important;
}
[data-framer-name="Details 2 Section"]:has(+ [data-framer-name="Testimonial Section"]) {
    padding-bottom: 96px !important;
}

/* Hero: "Visit website ↗" (was "Scroll") links to the live site; it keeps the label's look.
   The tablet/phone "VIEW LIVE →" button under the overview is removed (user, 2026-10-08). */
[data-framer-name="Hero Section"] .framer-1nxt6xt a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.25s ease;
}
[data-framer-name="Hero Section"] .framer-1nxt6xt a:hover {
    opacity: 0.6;
}
[data-framer-name="Overview & Live Link"] a {
    display: none !important;
}
