body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
}
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #003366;
    padding: 5px 30px;
    height: 90px;          /* FIXED HEIGHT */
}

/* Logo + School name container */
.school-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* LOGO SIZE CONTROL */
.school-info img {
    max-height: 70px;      /* KEY LINE */
    width: auto;           /* keeps aspect ratio */
    object-fit: contain;
}

/* School name text */
.school-name {
    font-size: 30px;
    font-weight: bold;
    color: #fff;
    line-height: 1.2;
	padding: 130px;
}

/* Home link */
.home-link {
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    font-size: 15px;
}


/* Right: Home link */

.home-link:hover {
    text-decoration: underline;
}


.gallery-container {
    width: 95%;
    margin: auto;
    padding: 20px;
}

.gallery-title {
    text-align: center;
    color: #003366;
    margin-bottom: 20px;
}

.gallery-tabs {
    text-align: center;
    margin-bottom: 20px;
}

.gallery-tabs button {
    padding: 10px 18px;
    margin: 5px;
    border: none;
    background: #0059b3;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
}

.gallery-tabs button.active,
.gallery-tabs button:hover {
    background: #003366;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-item {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.gallery-item p {
    text-align: center;
    padding: 8px;
    font-weight: bold;
    background: #f1f1f1;
}

.function-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 20px;
}

.function-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,.2);
    cursor: pointer;
    transition: transform .3s;
}

.function-card:hover {
    transform: scale(1.05);
}

.function-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.function-card h3, 
.function-card p {
    text-align: center;
    margin: 8px 0;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 999;
}

.modal-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 15px;
    padding: 40px;
}

.modal-content img {
    width: 100%;
    border-radius: 6px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}
