.hero-header {
    min-height: 250px; 
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImage {
  max-height: 80vh;
  object-fit: contain;
}

.hero-header h1 {
    font-size: 3.5rem; 
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6); 
    color: white;
    padding: 15px;
    transform: translateY(100%); 
    transition: transform 0.3s ease-in-out;
    opacity: 0; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0); 
    opacity: 1; 
}

.gallery-overlay h5 {
    margin-bottom: 5px;
    font-size: 1.25rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
}
