/*
Theme Name: Bernd Child
Theme URI: https://wordpress.mountainthemes.dev/bernd
Description: Bernd Child Theme
Author: Mountain-Themes
Author URI: https://themeforest.net/user/mountain-themes
Template: bernd
Version: 1.0.0
License: GNU General Public License version 3.0 & Envato Regular/Extended License
License URI: http://www.gnu.org/licenses/gpl-3.0.html & http://themeforest.net/licenses
Text Domain: bernd-child
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, featured-images, full-width-template, theme-options, translation-ready
*/

/* Copy any classes from parent theme here. They will override the parent's version. */

/* Bernd's global heading colour uses !important; keep photo-overlay text readable. */
.studio0730-about-hero .elementor-heading-title {
    color: #fff !important;
}

/* Balance Home and About header spacing above their full-width heroes. */
body.home #wrapper,
body.page-id-131 #wrapper {
    padding-top: 40px;
}

@media only screen and (max-width: 1036px) {
    body.home #wrapper,
    body.page-id-131 #wrapper {
        padding-top: 20px;
    }
}

/* Projects tagged "dark-hero": white hero text, menu and logo.
   The white sticky header is excluded, so it keeps its dark menu and logo. */
body.dark-hero .header-cover h4,
body.dark-hero .header-cover h5,
body.dark-hero .header-cover p,
body.dark-hero .header-cover a,
body.dark-hero .header-cover a i,
body.dark-hero .header-cover span,
body.dark-hero .header-cover .mouse i,
body.dark-hero header:not(.sticky) #bernd_menu > ul > li > a,
body.dark-hero header:not(.sticky) #bernd_menu > ul > li > a span {
    color: #fff !important;
}

body.dark-hero header:not(.sticky) .logo-image img {
    filter: invert(1);
}

/* Portfolio grids: on hover, a dark overlay and zoom fade in with a straight, centred project name. */
[data-vp-items-style="bernd_post_style_fade"] .vp-portfolio__item-wrap .vp-portfolio__item-overlay {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(30, 30, 30, 0.8) !important;
    opacity: 0;
    transition: opacity 0.6s ease;
}

[data-vp-items-style="bernd_post_style_fade"] .vp-portfolio__item-wrap .vp-portfolio__item:hover .vp-portfolio__item-overlay {
    opacity: 1;
}

[data-vp-items-style="bernd_post_style_fade"] .vp-portfolio__item-wrap .vp-portfolio__item-meta {
    position: static !important;
    width: 100%;
    transform: none !important;
}

[data-vp-items-style="bernd_post_style_fade"] .vp-portfolio__item-wrap .vp-portfolio__item-meta-title,
[data-vp-items-style="bernd_post_style_fade"] .vp-portfolio__item-wrap .vp-portfolio__item:hover .vp-portfolio__item-meta-title {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    border: 0 !important;
    text-align: center;
    opacity: 1 !important;
    transform: none !important;
}

/* Keep the zoom inside the image. */
[data-vp-items-style="bernd_post_style_fade"] .vp-portfolio__item-wrap .vp-portfolio__item-img {
    overflow: hidden;
}

[data-vp-items-style="bernd_post_style_fade"] .vp-portfolio__item-wrap .vp-portfolio__item-img img {
    transition: transform 0.6s ease !important;
}

[data-vp-items-style="bernd_post_style_fade"] .vp-portfolio__item-wrap .vp-portfolio__item:hover .vp-portfolio__item-img img {
    transform: scale(1.3) !important;
}

/* Fit the overlay to the image in the Tiles grid. */
[data-vp-layout="tiles"] .vp-portfolio__item-wrap .vp-portfolio__item-overlay {
    top: var(--vp-items__gap-vertical);
}
