/*
Theme Name:   Astra Child
Template:     astra
*/

/* main header */
@media screen and (min-width: 1000px) {
    .ast-theme-transparent-header #masthead {
    position: relative !important; }
}
.ast-theme-transparent-header #masthead

.n2-ss-slider .n2-ow, .n2-ss-slider .n2-ow:before, .n2-ss-slider .n2-ow:after, .n2-ss-slider .n2-ow-all *, .n2-ss-slider .n2-ow-all :before, .n2-ss-slider .n2-ow-all :after {
	padding-top:10px;
}

.spider_popup_wrap {
    background-color: #515250 !important;
}

.mCSB_inside>.mCSB_container {
text-align: center !important;
}

/* WPForms fixes */
/* Initial field looks */
.wpforms-container input[type=date],
.wpforms-container input[type=datetime],
.wpforms-container input[type=datetime-local],
.wpforms-container input[type=email],
.wpforms-container input[type=month],
.wpforms-container input[type=number],
.wpforms-container input[type=password],
.wpforms-container input[type=range],
.wpforms-container input[type=search],
.wpforms-container input[type=tel],
.wpforms-container input[type=text],
.wpforms-container input[type=time],
.wpforms-container input[type=url],
.wpforms-container input[type=week],
.wpforms-container select,
.wpforms-container textarea {
    background: #fff;
    border-width: 0 0 1px 0;
    color: var(--ast-global-color-2);
    opacity: 0.5;
}

.wpforms-container ::-webkit-input-placeholder  { /* Chrome and Safari */
   color: #000 !important;
}
 
.wpforms-container :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
   color: #000 !important;
}
 
.wpforms-container ::-moz-placeholder { /* Mozilla Firefox 19+ */
   color: #000;
   opacity: 1;
}
 
.wpforms-container :-ms-input-placeholder { /* Internet Explorer 10-11 */
   color: #000;
}
 
.wpforms-container ::-ms-input-placeholder { /* Microsoft Edge */
   color: #000;
}
 
.wpforms-container ::placeholder {
   color: #000;
}

/* On focus */
.wpforms-container input:focus,
.wpforms-container select:focus,
.wpforms-container textarea:focus {
    outline: none;
    opacity: 1;
    border-color: var(--ast-global-color-0);
}
/* Don't allow resizing the Message box */
.wpforms-container textarea {
    resize: none;
}
/* Message box fixed height */
.wpforms-container .wpforms-field-textarea textarea.wpforms-field-medium {
    height: 136px;
}
/* Button size & font size */
.wpforms-container button {
    padding: 15px 34px;
    font-size: 15px;
}
/* WPForms done */
/* Footer 2 big columns on sides and 1 small one in the middle */
.ast-builder-grid-row-3-equal .ast-builder-grid-row {
    grid-template-columns: 3fr 1fr 3fr;
}

/*Photo Gallery*/

.bwg_image_info {
    background: rgba(255, 255, 255, 0) !important;
    border: 1px none #000000;
    border-radius: 0px;
    bottom: 0 !important;
    width: 100%;
    padding: 0 !important;
    word-break: break-word;
}

.spider_popup_close_fullscreen {
        color: #fff !important;
        font-size: 20px;
}

.bwg_image_title {
    color: #fff !important;
    font-family: Ubuntu;
    font-size: 16px;
	padding-top: 0 !important;
    font-weight: bold;
    word-wrap: break-word;
}

.bwg_slide_bg img { max-height: max-height: calc(100% - 40px); }

/* Best WordPress Gallery Fixes  */
/* remove overlay */
#bwg_container1_0 #bwg_container2_0 #spider_popup_overlay_0 { background-color: transparent !important; }
/* remove ajax loader */
.bwg_spider_popup_loading, .footer-list-block .bwp_gallery .bwg_spider_popup_loading, .footer-list-block .bwp_gallery_tags .bwg_spider_popup_loading
{ background-image: none !important; }
/* increase thumbnail padding */
#bwg_container1_0 #bwg_container2_0 .bwg-container-0.bwg-masonry-thumbnails .bwg-item, #bwg_container1_0 #bwg_container2_0 .bwg-container-temp0.bwg-masonry-thumbnails .bwg-item { padding: 10px !important; }
/* remove zoom on thumbnail image hover */
.bwg-item1:hover { background: #000 !important; }
.bwg-item1 img:hover { opacity: 0.7 !important; background: #000 !important; transform: none !important; }
#bwg_container1_0 { margin: 0; }

.bwg_image_info { background: rgba(0,0,0,0.6) !important; }

#bwg_thumbnails_masonry_0 { width: 100% !important; }

/* home slider 
.home-slideshow { max-width: 90%; }
.home-slideshow .n2-ss-slide-background-image { margin: 0 auto !important; text-align: center !important; }
.home-slideshow .n2-ss-slide-background-image img { max-width: 90% !important; max-height: 90% !important; width: auto !important; height: auto !important; }*/

/* modula galleries */

html body .modula-fancybox-bg, .modula-fancybox-container { background-color: #817E7D !important; }

html body .modula-fancybox-show-caption .modula-fancybox-caption, html body .modula-fancybox-show-infobar .modula-fancybox-infobar, html body .modula-fancybox-show-nav .modula-fancybox-navigation .modula-fancybox-button, html body .modula-fancybox-show-toolbar .modula-fancybox-toolbar { background-image: none; }

html body .modula-fancybox-can-zoomIn .modula-fancybox-content { cursor: default; pointer-events: none; }

.modula-gallery .filters a { color: #fff !important; }

/* modula albums */
.modula-album .modula-items > .modula-item > .modula-item-content > .figc>.figc-inner { padding: 0 !important; bottom: 30px !important; position: absolute !important; line-height: 100% !important; width: 100% !important; }
.modula-album .modula-item .figc-inner h2 { width: 100% !important; padding: 8px; background-color: rgba(0,0,0,0.8) }

.modula-fancybox-stage img { padding: 10px !important; }

/* breadcrumbs */
.ast-breadcrumbs-wrapper { display: none; }

/* MOBILE */
@media only screen and (max-width: 1199px) {
    .n2-ss-slide { height: auto !important; width: 100% !important; }
    .n2-ss-slide img { height: auto !important; width: 100% !important; }
    }
@media only screen and (max-width: 1024px) {
    footer p { text-align: center !important; }
}
@media only screen and (max-width: 1000px) {
    /* header */
    .ast-theme-transparent-header #masthead { position: relative !important; min-height: 85px !important; }
    .ast-mobile-header, .ast-above-header-wrap, .ast-above-header-bar { min-height: 85px !important; }
    .ast-theme-transparent-header #masthead img { margin-top: 40px !important; }
    /* main menu hamburger */
    [data-section="section-header-mobile-trigger"] .ast-button-wrap .menu-toggle {
    margin-top: 0 !important; }
}

@media (max-width: 900px){
  /* Make the Elementor row a 2-col grid */
  .elementor-section.elementor-element-a278eda > .elementor-container{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  /* Neutralize Elementor’s fixed widths */
  .elementor-element-a278eda .elementor-column{
    width: auto !important;
    max-width: none !important;
    flex: initial !important;
    min-width: 0;
  }

  /* FIRST column = full width at the top */
  .elementor-element-a278eda .elementor-element-e60e27b{
    grid-column: 1 / -1 !important;     /* span both columns */
    order: 0;                            /* ensure it stays first if something reorders */
  }

  /* (Optional) tighten typography inside the first column */
  .elementor-element-e60e27b .elementor-heading-title{
    margin: 0 0 8px;
    line-height: 1.25;
  }
  .elementor-5700 .elementor-element.elementor-element-a278eda {
                transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
                margin-top: 0px;
                margin-bottom: 0px;
                padding: 0px 40px 0px 40px !important;
            }
}

/* Below 600px: single column layout */
@media (max-width: 600px) {
  .elementor-section.elementor-element-a278eda > .elementor-container {
    grid-template-columns: 1fr;
  }
}

/* Between 600px and 900px: stay at 2 columns */
@media (min-width: 600px) and (max-width: 900px) {
  .elementor-section.elementor-element-a278eda > .elementor-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}