/**
 * Theme Name:      Steegmueller Wohnbau
 * Theme URI:       https://www.elegantthemes.com/gallery/divi/
 * Description:     A child theme for Divi
 * Author:          steegmueller-wohnbau.de
 * Author URI:      https://steegmueller-wohnbau.de
 * Template:         Divi
 * Version:         1.0.0
 * Text Domain:     steegmueller-wohnbau
 * License:         GPL2
 * License URI:     https://www.gnu.org/licenses/gpl-2.0.html
 */

/* ---------------------- Theme customization starts here ---------------------- */

/* bai-jamjuree-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/bai-jamjuree-v13-latin_latin-ext-regular.woff2')
    format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* bai-jamjuree-500 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 500;
  src: url('assets/fonts/bai-jamjuree-v13-latin_latin-ext-500.woff2')
    format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* bai-jamjuree-600 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 600;
  src: url('assets/fonts/bai-jamjuree-v13-latin_latin-ext-600.woff2')
    format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* bai-jamjuree-700 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Bai Jamjuree';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/bai-jamjuree-v13-latin_latin-ext-700.woff2')
    format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

:root {
  hyphens: auto;
}

.et_pb_module.main_nav nav > ul > li > a {
  padding-bottom: 2rem;
  border-bottom: 1px solid transparent;
  transition: border 0.3s linear;
}

.et_pb_module.main_nav nav > ul > li > a:hover {
  border-bottom: 1px solid #2ea3f2;
}

.et_pb_module.footer_nav .et-menu > li + li > a:before {
  content: '|';
  position: absolute;
  left: -1rem;
  color: #fff;
}

.pa-gallery-text-over-image {
  .et_pb_gallery_item {
    position: relative;
    overflow: hidden;

    & img {
      opacity: 0.7;
      transition: all 0.5s ease-in-out;
      min-height: 300px;
      object-fit: cover;
    }

    &:hover {
      .pa-gallery-text {
        opacity: 1;
      }
      .et_overlay {
        opacity: 0 !important;
      }

      img {
        opacity: 1;
        transform: scale(1.1);
      }
    }
  }

  .et_pb_gallery_title {
    margin: 0 !important;
  }

  .et_overlay {
    z-index: 1;
    pointer-events: all !important;
  }

  .pa-gallery-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    align-self: flex-end;
    background: white;
    opacity: 1;
    transition: all 0.5s ease-in-out;

    @media (min-width: 981px) {
      opacity: 0;
    }
  }
}

/* Image Zoom Effect */

.entry-content {
  & .et_pb_image_wrap {
    overflow: hidden;

    & img {
      transition: transform 0.5s ease;

      &:hover {
        transform: scale(1.1);
      }
    }
  }
}
