/*
Theme Name:   Boschfilm
Theme URI:    https://boschfilm.nl
Description:  Child Theme of the Allmighty Divi themebuilder
Author:       vascofialho.nl
Author URI:   https://www.vascofialho.nl/
Template:     Divi
Version:      2.0.0
Tags:         
Text Domain:  Boschfilm_2 
*/
 
/* =Theme customization starts here
------------------------------------------------------------------------------------------------------------------------------------------------------  */

    /* -------------------------------------------------------------- */
    /* Menu separators and hover borders                              */
    /* -------------------------------------------------------------- */
        /* Reset menu item spacing and align contents */
            .et_pb_menu .et-menu > li { display: flex; align-items: center; padding-left: 0; padding-right: 0; }

        /* Apply the border to the link, not the menu item */
            .et_pb_menu .et-menu > li > a { border: 1px solid transparent; padding: 8px 12px; box-sizing: border-box; transition: border-color 0.2s ease; }

        /* White border on hover and keyboard focus */
            .et_pb_menu .et-menu > li > a:hover,
            .et_pb_menu .et-menu > li > a:focus-visible { border-color: #FFFFFF; }

        /* Separators between menu items */
            .et_pb_menu--without-logo .et_pb_menu__menu > nav > ul > li:not(:last-child)::after,
            .et_pb_menu--with-logo .et_pb_menu__menu nav > ul > li:not(:last-child)::after { content: "\002D"; position: relative; display: inline-block; padding: 0 1em 0 0.8em; text-align: center; width: 5px; height: auto; line-height: 1; align-self: center; transform: translateY(0); color: #FFFFFF; font-size: 20pt; pointer-events: none; transition: border-color 0.3s ease-in-out; }

        /* Separator following a logo slot */
            .et_pb_menu--with-logo .et_pb_menu__menu nav > ul > li.et_pb_menu__logo-slot:not(:last-child)::after { top: 3px; }

    /* -------------------------------------------------------------- */  

    /* -------------------------------------------------------------- */
    /* Divi Loop - alternating layout producties                      */
    /* -------------------------------------------------------------- */

        /* Reverse every second post. */
        .alternating-posts [data-loop-item]:nth-child(even) { flex-direction: row-reverse; }
    /* -------------------------------------------------------------- */

    /* -------------------------------------------------------------- */
    /* Divi Loop - productions backgrounds                            */
    /* -------------------------------------------------------------- */

        /* Background 1: posts 1 and 6 of every 8-post cycle. */
        .alternating-posts [data-loop-item]:nth-child(8n + 1) .loop-content,
        .alternating-posts [data-loop-item]:nth-child(8n + 6) .loop-content { background-image: var(--loop-bg-1); }

        /* Background 2: posts 3 and 5 of every 8-post cycle. */
        .alternating-posts [data-loop-item]:nth-child(8n + 3) .loop-content,
        .alternating-posts [data-loop-item]:nth-child(8n + 5) .loop-content { background-image: var(--loop-bg-2); }

        /* Background 3: posts 2 and 8 of every 8-post cycle. */
        .alternating-posts [data-loop-item]:nth-child(8n + 2) .loop-content,
        .alternating-posts [data-loop-item]:nth-child(8n) .loop-content     { background-image: var(--loop-bg-3); }

        /* Background 4: posts 4 and 7 of every 8-post cycle. */
        .alternating-posts [data-loop-item]:nth-child(8n + 4) .loop-content,
        .alternating-posts [data-loop-item]:nth-child(8n + 7) .loop-content { background-image: var(--loop-bg-4); }

        /* Shared background settings for the content column. */
        .alternating-posts .loop-content { background-size: cover; background-position: center center; background-repeat: no-repeat; align-self: stretch; }

    /* -------------------------------------------------------------- */

    /* -------------------------------------------------------------------------- */
    /* Loop container  HOVER POSTS LOOP                                           */
    /* -------------------------------------------------------------------------- */

        /*
         * Divi places the repeated Loop rows inside a column within .hover-posts.
         *
         * This column therefore needs to become the flex container rather than
         * .hover-posts itself.
         */
            .hover-posts > .et_pb_column { display: flex !important; flex-direction: row !important; flex-wrap: wrap !important; }


        /* -------------------------------------------------------------------------- */
        /* Individual Loop item                                                       */
        /* -------------------------------------------------------------------------- */

        /*
         * Each repeated Loop row occupies half of the available width.
         *
         * This creates a two-column layout:<strong></strong>
         *
         *     Item 1 | Item 2
         *     Item 3 | Item 4
         *
         * position: relative is required because the content layer will be
         * positioned absolutely inside this individual Loop item.
         */
            .hover-posts > .et_pb_column > .hover-loop-item { position: relative; flex: 0 0 50% !important; width: 50% !important; max-width: 50% !important; margin: 0 !important; }


        /* -------------------------------------------------------------------------- */
        /* Featured Image layer                                                       */
        /* -------------------------------------------------------------------------- */

            /*
             * The image column fills the complete Loop item.
             */
            .hover-posts .hover-loop-item > .loop-image { position: relative; flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; z-index: 1; }

            /*
             * Make the Divi Featured Image module and its wrapper fill the
             * complete image column.
             */
            .hover-posts .loop-image .et_pb_image,
            .hover-posts .loop-image .et_pb_image_wrap { display: block; width: 100% !important; max-width: 100% !important; }

            /*
             * Make the actual Featured Image fill the available width.
             */
            .hover-posts .loop-image img { display: block; width: 100% !important; max-width: 100% !important; height: auto; }


        /* -------------------------------------------------------------------------- */
        /* Content overlay                                                            */
        /* -------------------------------------------------------------------------- */

            /*
             * The content column is positioned directly over the Featured Image.
             *
             * Because .hover-loop-item has position: relative, inset: 0 restricts
             * the overlay to the dimensions of this individual Loop item.
             */
            .hover-posts .hover-loop-item > .loop-content { position: absolute !important; inset: 0; flex: none !important; width: 100% !important; max-width: 100% !important; height: 100% !important; opacity: 0; visibility: hidden; z-index: 2;

            /*
             * These settings are used by the decorative ACF background images.
             */
            background-size: cover; background-position: center center; background-repeat: no-repeat;

            /*
             * Smoothly fade the content into view.
             */
            transition: opacity 0.35s ease, visibility 0.35s ease;
            }


        /* -------------------------------------------------------------------------- */
        /* Hover state                                                                */
        /* -------------------------------------------------------------------------- */

            /*
             * Reveal only the content belonging to the Loop item currently
             * being hovered.
             */
            .hover-posts .hover-loop-item:hover > .loop-content { opacity: 1; visibility: visible; }


        /* -------------------------------------------------------------------------- */
        /* Mobile                                                                     */
        /* -------------------------------------------------------------------------- */

            @media (max-width: 767px) {

                /*
                 * Display one Loop item per row on smaller screens.
                 */
                .hover-posts > .et_pb_column > .hover-loop-item { flex: 0 0 100% !important; width: 100% !important; max-width: 100% !important; }

            }

      /* ========================================================================== */
      /* PRODUCTIONS PAGE ARROW ON HOVER 
      /* It sits in civi in the hover state before the loop post title     
      /* <span class="production-title-arrow">&gt;</span>     
      /* ========================================================================== */

            /* Productions – title hover arrow
            -------------------------------------------------- */
            .production-title-arrow { display: inline-block; font-size: 0; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); margin-right: 10px; vertical-align: 1px; }


            /* Production titles – white on hover
            -------------------------------------------------- */
            .et_pb_column[data-loop-source="loop-9s4jlp009k"] .et_pb_text_inner p,
            .et_pb_column[data-loop-source="loop-nijyjwj7ot"] .et_pb_text_inner p {
                transition: color 0.3s ease;
            }

            .et_pb_column[data-loop-source="loop-9s4jlp009k"]:hover .et_pb_text_inner p,
            .et_pb_column[data-loop-source="loop-nijyjwj7ot"]:hover .et_pb_text_inner p {
                color: #ffffff !important;
            }




      /* ========================================================================== */
      /* AUTOMATIC POST CONTENT COLUMNS
      /* ========================================================================== */

          /*
           * Main Divi Post Content module.
           *
           * This variable controls how far the second column
           * is positioned below the first column.
           */
          .boschfilm-columns {  --boschfilm-column-offset: 0; }


          /* FULL-WIDTH INTRODUCTION
          /* -------------------------------------------------------------------------- */

          /*
           * JavaScript moves the first content element containing <strong>
           * into this wrapper.
           *
           * Because it sits outside the column wrapper, the introduction
           * naturally pushes both columns down.
           */
          .boschfilm-content-intro { width: 100%; margin: 0 0 40px 0; padding: 0; }


          /*
           * Prevent the first and last elements inside the introduction
           * from adding unexpected spacing to the wrapper.
           */
          .boschfilm-content-intro > :first-child   { margin-top: 0; }
          .boschfilm-content-intro > :last-child    { margin-bottom: 0; }


          /* TWO-COLUMN WRAPPER
          /* -------------------------------------------------------------------------- */

          /*
           * This wrapper is generated by JavaScript and contains only
           * the left and right content columns.
           */
          .boschfilm-columns-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 60px; row-gap: 0; align-items: start; width: 100%; }


          /* INDIVIDUAL COLUMNS
          /* -------------------------------------------------------------------------- */

          .boschfilm-content-column { min-width: 0; margin: 0; padding: 0; }


          /*
           * Don't allow the first content element in either column
           * to introduce additional top spacing.
           */
          .boschfilm-content-column > :first-child { margin-top: 0 !important; }


          /*
           * Apply the required vertical offset only to column two.
           *
           * Because this is padding, its height is already included when
           * JavaScript measures and balances the rendered columns.
           */
          .boschfilm-content-column-right { padding-top: var(--boschfilm-column-offset); }


          /* SPLIT CONTENT
          /* -------------------------------------------------------------------------- */

          /*
           * JavaScript can split one text-containing element across both
           * columns. Those two fragments are still logically one element.
           *
           * Therefore there should be no bottom spacing after the left
           * fragment and no top spacing before its continuation.
           */
          .boschfilm-split-first    { margin-bottom: 0 !important; padding-bottom: 0 !important; }
          .boschfilm-split-second   {  margin-top: 0 !important; padding-top: 0 !important; }


          /*
           * Additional safeguard when the continuation is the first
           * element in the right-hand column.
           */
          .boschfilm-content-column-right > .boschfilm-split-second:first-child { margin-top: 0 !important; padding-top: 0 !important; }


          /* MOBILE
          /* -------------------------------------------------------------------------- */

          @media (max-width: 767px) {

          S    /*
               * Return the content to a normal single-column layout.
               */
              .boschfilm-columns-wrapper { display: block; }

              /*
               * The vertical offset only belongs to the desktop layout.
               */
              .boschfilm-content-column-right { padding-top: 0; }
          }


        /* ========================================================================== */
        /* CONTACT FORM
        /* ========================================================================== */

            .input.et_pb_contact_captcha          { padding: 11px !important;  }    
            .et_pb_button.et_pb_contact_submit    { width: 150px !important; padding: .1em 1em !important; }


        /* ========================================================================== */
        /* CONTACT DETAILS
        /* ========================================================================== */

            .bosch-contact {
                margin-top: 25pt;
            }


            /* Remove the default paragraph spacing.
            -------------------------------------------------------------- */
            .bosch-contact p {
                display: flex;
                align-items: center;
                margin: 0;
                padding: 0;
            }


            /* Telephone icon.
            -------------------------------------------------------------- */
            .bosch-contact img {
                display: block;
                width: 25px;
                height: 25px;
                margin: 0 0 0 0;
                padding: 0;
            }


            /* E-mail @ icon.
            -------------------------------------------------------------- */
            .bosch-at {
                display: inline-flex;
                align-items: center;
                justify-content: center;

                width: 24px;
                margin-right: 10px;

                font-family: Arial, sans-serif;
                font-size: 19px;
                font-weight: 700;
                line-height: 1;
            }
    /* -------------------------------------------------------------- */


    /* -------------------------------------------------------------- */
    /* Homepage - In ontwikkeling - Hover overlay                     */
    /* -------------------------------------------------------------- */
        .development-hover > .et_pb_column {
            position: relative;
            isolation: isolate;
        }

        .development-hover > .et_pb_column::after {
            content: "";
            position: absolute;
            inset: 0;
            background: #fff;
            opacity: 0;
            z-index: 2;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }

        .development-hover:hover > .et_pb_column::after {
            opacity: 0.70;
        }

        .development-hover > .loop-content > .et_pb_module {
            position: relative;
            z-index: 3;
        }
    /* -------------------------------------------------------------- */


    /* -------------------------------------------------------------- */
    /* Email link footer                                              */
    /* -------------------------------------------------------------- */
        a.boschfilm-email {
            color: #ffffff;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        a.boschfilm-email:hover {
            color: #2ea3f2; 
        }
    /* -------------------------------------------------------------- */

    /* -------------------------------------------------------------- */
    /* All in one wp security Lock page:                              */
    /* -------------------------------------------------------------- */
        font-face { font-family: work-sans; src: url('https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');}
            
        .aiowps-site-lockout-body         { line-height: 2.7em; background-color: #DDD5C7 !important; position: absolute; height: 100vh; width: 100%;}
        .aiowps-site-lockout-box          {  }       
        .aiowps-site-lockout-body-content {  }
        .aiowps-site-lockout-box          { margin-right: auto; margin-left: auto; max-width: 800px; margin-top: 100px; padding: 30px; border: 0; }
        .aiowps-site-lockout-msg p        { font-family: "work-sans", sans-serif; color: #2E4E3F; font-size: 20pt; font-weight: normal; text-align: center; }
    /* -------------------------------------------------------------- */


/* ---------------------------------------------------------------------------------------------------------------------------------------------------  */