/* Blue Sky School — Gallery Page Collage */

.gallery-page-wrap {
    padding: 60px 0 100px;
    background: #f8fafc;
}

.gallery-nav-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 2px solid rgba(201, 162, 39, 0.3);
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.08);
    margin-bottom: 48px;
}

.gallery-nav-bar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 1170px;
    margin: 0 auto;
    padding: 14px 20px;
}

.gallery-nav-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a5f;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.25s;
    border: 1px solid transparent;
}

.gallery-nav-link:hover,
.gallery-nav-link.active {
    background: #c9a227;
    color: #fff;
    border-color: #c9a227;
}

.gallery-section-block {
    padding: 48px 0 32px;
    max-width: 1170px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.gallery-section-desc {
    max-width: 640px;
    margin: 12px auto 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
}

.gallery-album {
    margin-bottom: 48px;
}

.album-title {
    font-size: 22px;
    color: #1e3a5f;
    margin-bottom: 20px;
    padding-left: 12px;
    border-left: 4px solid #c9a227;
    font-weight: 700;
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
}

.collage-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.collage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(30, 58, 95, 0.18);
}

.collage-item.layout-normal { grid-column: span 1; grid-row: span 1; }
.collage-item.layout-wide { grid-column: span 2; grid-row: span 1; }
.collage-item.layout-tall { grid-column: span 1; grid-row: span 2; }
.collage-item.layout-large { grid-column: span 2; grid-row: span 2; }

.collage-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.collage-item img,
.collage-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.collage-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(30, 58, 95, 0.85) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    color: #fff;
    text-align: center;
}

.collage-item:hover .collage-overlay {
    opacity: 1;
}

.collage-overlay i {
    font-size: 2rem;
    color: #dbb94a;
    margin-bottom: 8px;
}

.collage-overlay span {
    font-size: 14px;
    font-weight: 600;
}

.collage-placeholder {
    background: linear-gradient(135deg, #1e3a5f, #244a7c);
}

.collage-placeholder-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    gap: 12px;
}

.collage-placeholder-inner i {
    font-size: 2.5rem;
    color: #c9a227;
}

@media (max-width: 991px) {
    .collage-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
    }
    .collage-item.layout-large,
    .collage-item.layout-wide {
        grid-column: span 2;
    }
}

@media (max-width: 575px) {
    .collage-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .collage-item.layout-wide,
    .collage-item.layout-tall,
    .collage-item.layout-large {
        grid-column: span 1;
        grid-row: span 1;
    }
}
