/* Gallery Fix CSS - Uniform tile sizes */

/* Fix gallery grid for consistent tile sizes */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 60px;
    justify-items: center;
    align-items: stretch;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px; /* Fixed height for all items */
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    opacity: 0;
    transform: scale3d(0.9,0.9,1);
    aspect-ratio: 4/3; /* Consistent aspect ratio */
}

.gallery-item.animate {
    animation: fadeInScaleUp 0.6s ease-out forwards;
}

.gallery-item picture {
    width: 100%;
    height: 100%;
    display: block;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s, opacity 0.5s;
    opacity: 0.8;
    display: block;
}

.gallery-item:hover img {
    transform: scale3d(1.05,1.05,1);
    opacity: 0.9;
}

/* Responsive gallery adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .gallery-item {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .gallery-item {
        height: 280px;
        border-radius: 8px;
    }
}

/* Hero section fixes */
.hero {
    padding: 140px 20px 80px !important;
    min-height: 100vh !important;
    background-attachment: scroll !important;
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 60px !important;
        min-height: 100vh !important;
    }
}