/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f9f4ff;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-family: 'Pacifico', cursive;
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.container {
    display: flex;
    justify-content: center;
}


/* Gallery Styles */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    flex-grow: 1;
    max-width: 1800px;
}

.gallery-item {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);
    color: white;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .title {
    font-weight: bold;
    font-size: 1.2rem;
}

.gallery-item .attribution {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.4;
}

.gallery-item .attribution a {
    color: #c6a8ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gallery-item .attribution a:hover {
    color: white;
    text-decoration: underline;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #6a11cb;
    color: white;
    margin-top: auto;
    position: relative;
}
footer {
  background-color: #6a11cb;
  color: white;
  padding: 20px;
  text-align: center;
}

footer a {
  color: #c2e59c;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

footer a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #ffeb3b; /* Yellow underline */
  transition: width 0.3s ease;
}

footer a:hover {
  color: #ffffff;
}

footer a:hover::after {
  width: 100%;
}

.grape-bounce {
  font-size: 1.5rem;
  margin-top: 10px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10px);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .gallery-item {
        height: 250px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item .attribution {
        font-size: 0.7rem;
    }
}
