/*
Theme Name: Divi Child
Version: 1.0
Description: Divi Child Theme for nataliaroyo.co
Author: Natalia Royo
Template: Divi
Author URL: https://nataliaroyo.co 
*/
 
@import url("../Divi/style.css");
 
/*-------My Theme Customizations------- */

/* SEARCH BAR */
/* Wrapper to hold both elements side by side */
.search-toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Initially hide the search bar */
.search-bar-hidden {
  display: none;
}

/* Show the search bar when active */
.search-toggle-wrapper.active .search-bar-hidden {
  display: block;
}

/* Style the icon */
.search-toggle {
  cursor: pointer;
  font-size: 18px;
}

/* Style the input */
.search-bar-hidden input[type="search"] {
  font-size: 14px;
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

/* On mobile search icon align to right */
.et_pb_menu .et_pb_menu__search-button {
    margin-left: auto;
}


/* EMAIL NEWSLETTER FORM STYLES */
/* Overall form styles (optional container or spacing) */
form {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

/* Input: Email */
.sib-email-area input[type="email"] {
  width: 100%;
  font-size: 18px;
  padding: 10px 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Input: Name */
.sib-NAME-area input[type="text"] {
  width: 100%;
  font-size: 18px;
  padding: 10px 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Labels */
.sib-email-area label,
.sib-NAME-area label {
  font-size: 16px;
  margin-bottom: 5px;
  display: block;
}

/* Submit Button */
.sib-default-btn {
  background-color: #c5ab6b;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: .3em 1em;
  line-height: 1.7em !important;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s ease;
}

.sib-default-btn:hover {
  background-color: #a48a4f;
}


/* BLOG GROW ON HOVER */
.et_pb_post:hover {
 transform:scale(1.1);
}

.et_pb_post {
 transition-duration: 1s;
 overflow:hidden;
}

.et_pb_blog_grid .et_pb_image_container img {
  height: 250px;
  object-fit: cover;
  width: 100%;
}


/* MENU HOVER */
.et-menu a:hover,
.et_pb_menu .et-menu li a:hover {
  color: #c5ab6b !important;
  text-decoration: underline;
}

.current-menu-item > a {
  color: #c5ab6b !important;
  text-decoration: underline;
}


/* POST IMAGES */
.animated-post-images figure {
  position: relative;
  z-index: 1;
}

.animated-post-images figure:hover {
  z-index: 100; 
}

.animated-post-images img {
  opacity: 0;
  margin-bottom: 20px;
	margin-top: 20px;
  transform: translateX(-40px);
  transition: transform 0.4s ease, opacity 1.5s ease;
  max-width: 100% !important;
	height: auto !important;
  display: block;
  position: relative;
  z-index: 1;
  align-content: center;
}

.animated-post-images img.in-view {
  opacity: 1;
  transform: translateY(0);
}

.animated-post-images img:hover { 
	transform: scale(1.1) !important; 
	z-index: 10; 
}

.wp-block-gallery:not(.has-nested-images) {
	margin: 20px;
}

.wp-caption {
    border: none !important;
    text-align: center;
    background-color: white !important;
}
.wp-caption p.wp-caption-text {
	font-size: 15px;
}

/* Captions existentes "figcaptions" */

.wp-block-gallery.has-nested-images figure.wp-block-image {
  position: relative;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: absolute;
  z-index: 10;
  width: 100%;
	margin-bottom: 20px;
  font-weight: 600;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0));
  box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.1);
}

.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption, .blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption, .wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption, .wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption {
    margin-bottom: 20px !important;
	padding-top: 10px;
    width: 100%;
    z-index: 20;
	text-shadow: 0 0 1.5px #000;
	font-size: 13px;
	font-weight: 600;
	left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2) 70%, rgba(0, 0, 0, 0));
    box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.1);
}

img.wp-image-4600.in-view {
	margin-right: 20px;
}

/* RESPONSIVE STYLES */

@media only screen and (max-width: 768px) {
	  .wp-block-gallery.has-nested-images figure.wp-block-image,
  figure.wp-block-image {
    position: relative; /* reset if needed */
  }

  .wp-block-gallery.has-nested-images figure.wp-block-image figcaption,
  figure.wp-block-image figcaption {
    position: static; /* removes absolute positioning */
    transform: none;
    width: 100%;
    margin-top: 5px;
    padding: 0.5em 0;
    background: none;
    box-shadow: none;
    text-align: center;
    z-index: auto;
	  color: black;
	  text-shadow: none;
  }
	
  .gallery-item {
    width: 100% !important;
    text-align: center !important;
	  margin-left: 5%;
  }
	
	dl {
    margin: 0;
	}
}

/* Header image en posts */
.et_parallax_bg {
    background-position: center;
}

/* FOOTER MENU SIN DROPDOWN */
#footer-menu .et_mobile_nav_menu {
    display: none;
}

#footer-menu .et_pb_menu__menu {
    display: block;
}