﻿<style>
  .gallery-container {
    max-width: 100%;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .gallery-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px; /* Space between rows */
  }

  .gallery-row a {
    width: 15%; /* Adjusted to fit 6 images in a row */
    display: block;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover effect */
  }

  .gallery-row img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
  }

  /* Hover effect for image */
  .gallery-row a:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2); /* Deeper shadow */
  }

  .gallery-row img:hover {
    border: 2px solid #2980b9; /* Change border color on hover */
    transform: scale(1.1); /* Subtle zoom effect on the image itself */
  }

  /* Optional hover effect: Add overlay text or gradient (fade-in) */
  .gallery-row a::before {
    content: attr(alt); /* Show alt text as title on hover */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 14px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .gallery-row a:hover::before {
    opacity: 1;
  }

  /* Media query to ensure responsiveness */
  @media (max-width: 768px) {
    .gallery-row {
      flex-direction: column;
    }

    .gallery-row a {
      width: 100%; /* Each image takes full width on mobile */
      margin-bottom: 15px;
    }
  }
</style>