
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f0f7fc;
    min-height: 100vh;
    box-sizing: border-box;
    margin: 0;
    padding: 64px 24px;
    color: #283e50;
}

.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    text-align: center;
    margin-bottom: 56px;
    padding: 24px;
    background: transparent;
    border: none;
    border-radius: 22px;
    box-shadow: none;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.gallery-header h1 {
    font-size: 2.2em;
    font-weight: 400;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #386b90;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.back-link:hover {
    background-color: #285776;
}

.gallery-grid {
    /* Using CSS Columns for masonry/waterfall layout */
    column-count: 3;
    column-gap: 28px;
}

.gallery-item {
    padding: 0;
    background: transparent;
    border: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 28px; /* Space between vertical items */
    break-inside: avoid; /* Prevents images from breaking across columns */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.gallery-item img {
    border-radius: 4px;
    width: 100%;
    height: auto; /* Allow image to have its natural height */
    object-fit: cover;
    display: block;
}

.college-album .gallery-grid {
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .college-album .gallery-grid {
        max-width: 320px;
    }
}

/* Responsive adjustments for different screen sizes */
@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        column-count: 1;
    }
}
