/*
 Theme Name:   GeneratePress Child
 Template:     generatepress
 Version:      1.0
*/

body {
    /* Aquí puedes agregar estilos personalizados */
}

/* INICIO BUSCADOR */
.search-container {   
	width: 100%;
    justify-content: center;
    align-items: center;
    /* Puedes añadir altura o padding si es necesario */
    height: 150px; /* Ajusta según tus necesidades */
}

.search-form {    
    width: 100%;
    max-width: 600px;
}

.search-fieldx {
    flex-grow: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #000000 !important;
    border-radius: 24px 0 0 24px;
    outline: none;
	width: 400px;
	padding-bottom:15px;
}

.search-submit {
    padding: 10px 20px !important;
    background: #f8f9fa;
    border: 1px solid #dfe1e5;
    border-left: none;
    border-radius: 0 24px 24px 0;
    cursor: pointer;
}

.search-submit:hover {
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
}


/* FIN BUSCADOR */

.custom-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.custom-grid-item {
    border: 1px solid #000000;
    padding: 0px;
    background: #fff;
    text-align: center;
    box-shadow: 0 0 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    min-height: 300px;
    max-height: 300px;
}

.custom-grid-item:hover {
    transform: scale(1.02);
}

.xcustom-grid-item img {
    width: auto !important;
    height: 197px !important;
    margin-bottom: 5px;  
}

.custom-img-container {
  width: 300px;
  height: 197px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin: 0 auto; /* Centra el contenedor horizontalmente dentro del grid */
}

.custom-img-container img.custom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}


.custom-grid-item h2 {
    text-transform: none;
    margin-top: 10px;
    font-size: 20px;
    line-height: 24px;
    color: #111;
    font-weight: 400;
    text-decoration: none;
}

.custom-grid-item a {
    text-transform: none;
    font-size: 20px;
    line-height: 24px;
    color: #111;
    font-weight: 400;
    text-decoration: none;
}

.custom-grid-item .meta {
    font-size: 13px;
    color: #777;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.custom-grid-item .meta i {
    margin-right: 3px;
}


/* Responsive spacing for smaller screens */
@media (max-width: 768px) {
    .custom-grid-wrapper {
        gap: 0px;
    }

    .custom-grid-item h3 {
        font-size: 15px;
    }

    .custom-grid-item .meta {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .custom-grid-wrapper {
        grid-template-columns: 1fr;
    }

    .custom-grid-item {
        margin: 0 auto;
        width: 100%;
        margin-bottom: 10px;
        border: 1px solid #000000 !important;
    }

    .custom-grid-item h3 {
        font-size: 14px;
    }
  
  .custom-grid-item img {
    width: auto !important;
    height: auto !important;
    margin-bottom: 5px;  
}
}