/*
 Theme Name:   Pure and Simple Child
 Theme URI:    http://dynevorrevisited.org.uk/pure-simple-child/
 Description:  Pure and Simple Child Theme
 Author:       John Ashley
 Author URI:   http://dynevorrevisited.org.uk
 Template:     pure-simple
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  puresimplechild
*/
/* 
.header-bg {
  display: none;
  background-color: #e63430;
  background-image: url('/images/logo/dynevor-revisited-logo.jpg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@media screen and (min-width: 845px) {
  .header-bg {
    display: block;
  }
} */



/* Default: show mobile version */
/*
.header-bg {
  display: block;
  background-color: #e63430;
  position: relative;
  width: 100%;
  z-index: 1;
}
*/

.home-editor-content {
  display: block;
  margin-bottom: 30px;
  text-align: center;
}
.home-editor-content .row {
  display: block;
  text-align: center;
}
.home-editor-content .row .col-md-12 {
  display: inline-block !important;
  float: none !important;
  width: auto !important;
  max-width: 70% !important;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background-color: #d9f2d0;
  border: 1px solid #000;
}


.header-box {
  display: block;
  width: 100%;
  background-color: #e63430 !important;
}
.header-box .header-image {
  display: block;
  max-width: 1180px;
  padding: 10px 20px; 
  margin: 0 auto; 
  text-align: center;
}
.header-box .header-box img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%; 
}

/*
.primary-navigation ul.nav-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}*/


/* home banner slider */
.home-banner-slider {
  display: block;
  text-align: center;
  padding-bottom: 50px;
  width: 100%;
  margin: 0 auto;
}
.home-banner-slider ul {
    display: block;
    margin: 0 -10px;
    padding: 0;
    list-style-type: none;
}
/*.home-banner-slider ul .slider-track {
  transition: all 1s cubic-bezier(0.7, 0, 0.3, 1);
}*/
.home-banner-slider ul li {
  padding: 10px;
}
.home-banner-slider ul li:before, .home-banner-slider ul li:after {
  display: none;
}
.home-banner-slider ul li .slide-image {
  display: block;
  overflow: hidden; 
}
.home-banner-slider ul li .slide-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  transition: transform 0.4s;
}
/*.home-banner-slider ul li.slick-active img {
  transform: scale(1);
  -webkit-animation: cssAnimation 6s 1 ease-in-out;
  -moz-animation: cssAnimation 6s 1 ease-in-out;
  -o-animation: cssAnimation 6s 1 ease-in-out;
  -ms-animation: cssAnimation 6s 1 ease-in-out;
  animation: cssAnimation 6s 1 ease-in-out;
}*/


/* banner slick dots */
ul.slick-dots {
    position: absolute;
    bottom: -25px;
    display: flex;
    justify-content: center;
}
ul.slick-dots li {
  display: block;
  float: left;
  width: 12px;
  height: 12px;
  margin: 0 5px !important;
  padding: 0;
}
ul.slick-dots li button {
  width: 12px;
  height: 12px;  
}                      
ul.slick-dots li button:before {
  content: "";
  width: 12px;
  height: 12px;
  background: #c9c9a8;
  opacity: 1.0;
}
ul.slick-dots li.slick-active button:before {
  background-color: #000;
  opacity: 1.0;
}


/* home links grid */
.home-links-grid {
  display: block;
  width: 100%;
}
.home-links-grid ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: normal;
  margin: 0 -20px;
  padding: 0;
  list-style-type: none;
}
.home-links-grid ul li {
  flex-basis: 33.33%;
  padding: 20px;
}
.home-links-grid ul li a {
  display: block;
  margin: 0;
  padding: 0;
  text-decoration: none;
  background: rgba(0,0,0,0.1);
  transition: 0.4s;
}
.home-links-grid ul li a:hover {
    background: rgba(128,128,128,0.1);
}
.home-links-grid ul li a .item-container {
  display: block;
  margin: 0;
  padding: 10px;
  text-align: center;
}
.home-links-grid ul li a .item-container .item-image {
  display: block;
  margin-bottom: 20px;
  text-align: center;
  height: 250px;
  overflow: hidden;
}
.home-links-grid ul li a .item-container .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-links-grid ul li a .item-container .item-detail {
  display: block;
  
}
.home-links-grid ul li a .item-container .item-detail h2 {
  font-size: 18px;
  text-align: center;
}

@media screen and (max-width: 992px) {

  .home-links-grid ul li {
    flex-basis: 50%;
  }

}

/* Hide old image on small screens */
@media screen and (max-width: 844px) {
  .header-bg img {
    display: none !important;
  }
  .header-bg {
    background-image: none !important;
  }
}

/* Add logo using pseudo-element on small screens */
@media screen and (max-width: 844px) {
  .header-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 105px;
    height: 105px; 
    background-image: url('https://dynevorrevisited.org.uk/wp-content/uploads/2025/07/dynevor-revisited-logo.jpg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 2;
  }
}

/* On large screens, revert to original desktop header */
@media screen and (min-width: 845px) {
  .header-bg {
    background-color: initial;
    height: auto;
  }

  .header-bg::before {
    content: none;
  }
}

@media screen and (max-width: 768px) {

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  td {
    margin-bottom: 1.5rem;
    text-align: center;
  }

  td img {
    width: 100%;
    height: auto;
    max-width: 300px;
    display: block;
    margin: 0 auto;
  }

  td p {
    text-align: center;
    margin: 0.5rem 0 0;
  }

}

@media screen and (max-width: 600px) {

  header.entry-header span.welcome {
    max-width: 100%;
  }

  .home-links-grid ul li {
    flex-basis: 100%;
  }
  .home-links-grid ul li a .item-container .item-image {
    height: auto;
  }

}