/*
Theme Name: Sydney Child
Theme URI: http://athemes.com/theme/sydney
Author: aThemes
Author URI: http://athemes.com
Template: sydney
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sydney
*/

:root {
  --wp--preset--font-size--small: 12px;
}

.home .shfb-main_header_row {
  background-color: transparent;
}

@media (min-width: 1199px) {
  .stretch-right .wp-block-image {
    margin-right: calc((100vw - 1140px) / -2) !important;
    width: calc(100% + calc((100vw - 1140px) / 2));
  }

  .stretch-left .wp-block-image {
    margin-left: calc((100vw - 1140px) / -2);
    width: calc(100% + calc((100vw - 1140px) / 2));
  }
}

.syd-contact div.wpforms-container-full .wpforms-form button[type=submit] {
  width: 100%;
  display: block;
  color: #00102E;
  background: #FFD00A;
  border: 0;
}

.grecaptcha-badge {
  visibility: hidden;
}

.s-contact-form p, .s-contact-form .row {
  margin-bottom: 40px;
}

.footer-widget ul {
  padding: 0;
  list-style: none;
}

.footer-widget .widget-title {
  font-size: 16px;
  text-transform: uppercase;
}

.at-block-flex-container.has-background-image-overlay:before {
  opacity: 0.9;
}

.shfb .header-search-form {
  background-color: var(--sydney-global-color-6);
}

button, .wp-block-button__link {
  letter-spacing: 2px;
}

.wp-block-button.is-style-outline a:hover {
  background-color: #fff;
  color: #00102E !important;
}

.zindex10 {
  overflow: visible;
}

@media (max-width: 780px) {
  .center-mobile {
    text-align: center;
    justify-content: center !important;
  }
}

@media (max-width: 991px) {
  .main-page-title {
    font-size: 42px !important;
  }
}

.dont-show {
  display: none !important;
}

/* Ensure images with captions are positioned properly */
.wp-block-image {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wp-block-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background-color: rgba(231, 229, 228, 0.8);
  color: #000;
  text-align: center;
  font-size: 16px;
  line-height: 1.375;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, bottom 0.3s ease;
  margin-bottom: 0 !important;
}

.wp-block-image:hover img {
  transform: scale(1.05);
}

.wp-block-image:hover figcaption {
  opacity: 1;
  bottom: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
}

/* For mobile and tablet responsiveness */
@media (max-width: 780px) {
  .wp-block-image figcaption {
    font-size: 14px;
  }
}

/* Base heading link style */
.wp-block-heading a {
  color: var(--wp--preset--color--primary, #6b4e3d);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.25);
  background-image: linear-gradient(var(--sydney-global-color-1), var(--sydney-global-color-1));
  background-size: 0% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.25s ease, background-size 0.25s ease, border-color 0.25s ease;
}

/* Hover / focus state */
.wp-block-heading a:hover, .wp-block-heading a:focus {
  color: var(--sydney-global-color-1);
  background-size: 100% 2px;
  border-color: var(--sydney-global-color-1);
}

/* Make the off-canvas menu full-width for 1024px and below */
@media (max-width: 1024px) {
  .sydney-offcanvas-menu {
    max-width: 100% !important;
    width: 100% !important;
    padding: 40px 30px 30px !important;
  }

  .sydney-offcanvas-menu .menu-item {
    width: 100% !important;
  }
}
