
/*

Theme Name:     Riverbank Child
Template:       riverbank
Author:         Fiddly Lily
Version         2.2

*/
/* 1. Let the slider container resize based on image */
.wp-block-themeisle-blocks-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto !important; /* Allow slide height to adjust to image */
  overflow: visible;       /* Prevent hidden image parts */
}

/* 2. Prevent image from being cropped */
.wp-block-themeisle-blocks-slider img {
  max-width: 100%;
  max-height: 400px;     /* or any size you prefer */
  width: auto;
  height: auto;
  object-fit: contain !important; /* Ensure entire image fits */
  display: block;
  margin: 0 auto;
}
/*styling for brands results page*/

/*

.brand-variations-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}
.brand-variations-grid a {
    text-align: center;
    text-decoration: none;
}
/* added code 



.brand-variation-thumb {
  display: inline-block;
  margin: 10px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.brand-variation-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.brand-variation-thumb img {
  display: block;
  max-width: 100%;
  border-radius: 10px;
}
//////////////////////////////end
 
.brand-variation-thumb-wrapper {
  text-align: center;
  width: 150px;
  margin: 10px;
  display: inline-block;
}

.brand-variation-thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.brand-variation-thumb:hover {
  transform: scale(1.5);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.brand-variation-thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

.brand-variation-sku {
  margin-top: 5px;
  font-size: 14px;
}
/*
//////////////
/* Grid container for brand variations */
.brand-variations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    margin-top: 12px;
    padding: 0 5px;
}

/* Each thumbnail card */
.variation-item {
    text-align: center;
    border: 1px solid #ccc;
    padding: 12px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* On hover: scale and shadow pop */
.variation-item:hover {
    transform: scale(1.5);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}

/* Image inside brand card */
.variation-item img {
    max-width: 75%;
    height: auto;
    margin: 0 auto 10px;
    display: block;
    border-radius: 8px;
}

/* SKU text below image */
.variation-item .variation-sku {
    font-size: 14px;
    color: #444;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Also make SKU text pop on hover */
.variation-item:hover .variation-sku {
    color: #111;
}

/* Mobile responsive tweaks */
@media (max-width: 767px) {
    .brand-variations-grid {
        padding: 0 1px;
        gap: 2px;
    }

    .variation-item {
        padding: 8px;
    }

    .variation-item img {
        max-width: 85%;
    }
}


