/* =========================
   GLOBAL STYLES
   ========================= */

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    font-size: large;
}

.activities-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.8;
}

.activity {
    margin-bottom: 60px;
}

.activity h2 {
    color: #7b1e1e;
    margin-bottom: 12px;
}
/* =========================
   FULL IMAGE FIT GALLERY
   (NO CROPPING, NEAT, TITLES)
   ========================= */

/* =========================
   FIXED 300x300 IMAGE GRID
   ========================= */

.activity-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    margin: 24px 0 40px;
}

/* Card */
.activity-gallery a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

/* Fixed image box */
.activity-gallery a img {
    width: 500px;
    height: 500px;
    object-fit: cover;       /* fills box */
    border-radius: 12px;
    background: #eee;
}

/* Title */
.gallery-title {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
    color: #444;
}

/* Mobile: full width but still square */
@media (max-width: 768px) {
    .activity-gallery {
        grid-template-columns: 1fr;
    }

    .activity-gallery a img {
        width: 100%;
        height: 300px;
    }
}

/* Title below image */
.gallery-title {
    margin-top: 12px;
    font-size: 24px;
    color: #444;
    text-align: center;
    line-height: 1.4;
    max-width: 100%;
}


/* =========================
   MOBILE GALLERY FIX
   ========================= */

@media (max-width: 768px) {

    .activity-gallery {
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 20px 0 32px;
    }

    .activity-gallery a {
        padding: 10px;              /* reduce padding */
        border-radius: 12px;
    }

    .activity-gallery a img {
        width: 100%;
        max-height: none;           /* IMPORTANT */
        height: auto;
        object-fit: contain;
    }

    .gallery-title {
        font-size: 13px;
        margin-top: 8px;
    }
}





/* =========================
   TABLE STYLES
   ========================= */

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f4f4f4;
}
