/* showcase.css - Gallery Grid Styles */

/* --- Container Alignment --- */
.gallery-content {
    padding-top: 0px; 
    padding-bottom: 80px;
    margin: 0 auto;  /* Centers the gallery on the page */
    width: 100%;
    max-width: 1100px; /* Uses full width of the container */
}

/* Reusing global title styles */
.page-title {
    color: #ffffff;
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 10px;
}

.divider {
    width: 100%;
    height: 3px;
    background: #e7e7e7ff; 
    margin: 10px 0 40px 0;
    border-radius: 2px;
}

/* --- The Grid --- */
.gallery-grid {
    display: grid;
    
    /* 3 Equal Columns */
    grid-template-columns: repeat(3, 1fr); 
    
    /* 10px gap between images */
    gap: 10px; 
}

/* --- Individual Image Styling --- */
.gallery-item {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 4px; /* Optional: Slight rounding */
    background-color: #333; /* Placeholder color if image loads slow */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    
    /* FORCES SQUARE ASPECT RATIO */
    aspect-ratio: 1 / 1;
    
    /* Ensures image fills the square without stretching (crops if needed) */
    object-fit: cover; 
    
    transition: transform 0.3s ease;
}

/* Optional Hover Effect */
.gallery-item:hover img {
    transform: scale(1.05); /* Subtle zoom on hover */
    cursor: pointer;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .gallery-grid {
        /* On mobile, switch to 2 columns or 1 column? 
           Let's do 2 columns for a better view */
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        /* On very small screens, 1 column */
        grid-template-columns: 1fr;
    }
}