.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.gallery-grid figure {
  margin: 0;
  text-align: center;
}

.gallery-grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.gallery-grid figcaption {
  margin-top: 8px;
  font-size: 0.95rem;
  color: #004aad;
  font-weight: bold;
}



/* Head Teacher's Photo and Signature Box */
.headteacher-box {
    width: 250px;            /* Fixed width for the box */
    height: auto;            /* Let the height adjust automatically */
    margin: 40px auto 0;     /* Center the box horizontally and give it space at top */
    padding: 20px;
    background-color: #f4f4f4; /* Light grey background for the box */
    border: 2px solid #ccc;  /* Border around the box */
    border-radius: 8px;      /* Rounded corners */
    text-align: center;      /* Center everything inside the box */
}

/* Head Teacher Photo */
.headteacher-photo {
    width: 120px;           /* Fixed size for the photo (passport size) */
    height: 120px;          /* Height must match width for square image */
    border-radius: 50%;     /* Make it circular */
    object-fit: cover;      /* Maintain aspect ratio without distortion */
    margin-bottom: 10px;    /* Space between image and signature */
}

/* Signature */
.signature {
    width: 150px;           /* Limit signature size */
    height: auto;           /* Maintain aspect ratio */
    margin-bottom: 10px;    /* Space between signature and name */
}

/* Head Teacher Name */
.headteacher-name {
    font-weight: bold;
    font-size: 16px;        /* Make the name a bit bigger for readability */
    color: #333;            /* Darker color for contrast */
}




.logo-card {
    width: 120px;
    height: 105px;
    margin: auto;.image-gallery {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

/* Flip animation */
.logo-card.flip {
    transform: rotateY(180deg);
}

.logo-front, .logo-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
}

/* Back face */
.logo-back {
    transform: rotateY(180deg);
}

/* IMAGE STYLE: Soft edges + glow */
.school-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;

    /* Soft rounded edges */
    border-radius: 20px;

    /* Glow effect */
    box-shadow: 
        0 0 10px rgba(0, 174, 255, 0.6),
        0 0 20px rgba(0, 174, 255, 0.4),
        0 0 30px rgba(0, 174, 255, 0.3);

    /* Smooth appearance */
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Optional: stronger glow on hover */
.school-logo:hover {
    box-shadow: 
        0 0 15px rgba(0, 174, 255, 0.9),
        0 0 30px rgba(0, 174, 255, 0.7),
        0 0 50px rgba(0, 174, 255, 0.5);

    transform: scale(1.05);
}



/* Container for each image */
.image-box {
    max-width: 350px;          /* Controls size (makes it smaller) */
    margin: 20px auto;         /* Centers the image */
    text-align: center;
}

/* Image styling */
.facility-img {
    width: 100%;               /* Fits inside container */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* soft shadow */
    transition: transform 0.3s ease;
}

/* Subtle hover effect */
.facility-img:hover {
    transform: scale(1.03);
}

/* Caption styling */
.image-caption {
    font-size: 0.75rem;        /* smaller font */
    color: #555;
    margin-top: 6px;
    font-style: italic;
    line-height: 1.4;
}