/* 
Modern Image Styling for Goodlyftrend
This stylesheet adds contemporary design elements to image containers
including curves, shadows, hover effects and transitions
*/

/* Base styling for all image containers */
.img-container {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  transform: translateY(0);
  margin-bottom: 1.5rem;
}

/* Image styling within containers */
.img-container img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease-in-out;
  object-fit: cover;
}

/* Hover effects for image containers */
.img-container:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.img-container:hover img {
  transform: scale(1.05);
}

/* Overlay for text on image hover */
.img-container .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  padding: 1.5rem 1rem 1rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  opacity: 0;
}

.img-container:hover .overlay {
  transform: translateY(0);
  opacity: 1;
}

/* Caption styling */
.img-container .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background-color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-weight: 500;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

.img-container:hover .caption {
  transform: translateY(-5px);
}

/* Product image specific styling */
.product-img-container {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease;
  background-color: #fff;
}

.product-img-container img {
  transition: all 0.5s ease;
}

.product-img-container:hover img {
  transform: scale(1.08);
}

/* Gallery image specific styling */
.gallery-img-container {
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

.gallery-img-container img {
  width: 100%;
  display: block;
  transition: all 0.5s ease;
}

.gallery-img-container:hover img {
  transform: scale(1.1) rotate(2deg);
}

.gallery-img-container .icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-img-container:hover .icon-overlay {
  opacity: 1;
}

/* Blog post image specific styling */
.blog-img-container {
  border-radius: 10px 10px 0 0;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.blog-img-container img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.blog-img-container:hover img {
  transform: scale(1.06);
}

/* Team member/profile image styling */
.profile-img-container {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  position: relative;
  margin: 0 auto;
  transition: all 0.4s ease;
  border: 5px solid rgba(255, 255, 255, 0.8);
}

.profile-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-img-container:hover {
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.18);
  transform: translateY(-5px);
}

.profile-img-container:hover img {
  transform: scale(1.08);
}

/* Featured image with accent border */
.featured-img-container {
  border-radius: 12px;
  padding: 5px;
  background: linear-gradient(45deg, #f53f85, #6a6af8);
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.featured-img-container img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.4s ease;
}

.featured-img-container:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .img-container, .product-img-container, 
  .gallery-img-container, .blog-img-container {
    margin-bottom: 1rem;
  }
  
  .profile-img-container {
    width: 180px;
    height: 180px;
  }
  
  .img-container .overlay {
    padding: 1rem 0.75rem 0.75rem;
  }
  
  .img-container .caption {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}