/* Gallery Container */
.gallery-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.gallery-section h2 {
    color: #1565C0;
    margin-bottom: 5px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
    font-size: 16px;
}

/* Grid Layout (Responsive auto-fit cards) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Photo Card styling */
.gallery-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Image Wrapper with Aspect Ratio Crop */
.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px; /* Forces cards to have matching image heights */
    overflow: hidden;
    background-color: #eee;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image neatly without stretching */
    transition: transform 0.5s ease;
}

.gallery-card:hover .card-image-wrapper img {
    transform: scale(1.08); /* Subtle zoom effect on hover */
}

/* Album Badge badge styling */
.album-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(21, 101, 192, 0.9); /* Primary Blue[cite: 1] */
    color: white;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: bold;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Content / Caption styling */
.card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

.photo-caption {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.4;
}

.no-photos {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-top: 50px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
}