/* About Section Gallery Paged Grid */
.about-gallery-slider {
    width: 100%;
}

.about-gallery-page {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    height: auto;
    /* Remove fixed height to let images define size */
    margin-bottom: 20px;
}

.about-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Slightly boosted shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    /* Ensure card fills the grid cell */
    background: #fff;
    display: flex;
    /* Remove extra space below image */
}

.about-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.about-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* First item large (Left column) */
.about-grid-item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* Second and Third in middle column */
.about-grid-item:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.about-grid-item:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

/* Fourth and Fifth in right column */
.about-grid-item:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.about-grid-item:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* Hide any extra items in a chunk beyond 5 */
.about-grid-item:nth-child(n+6) {
    display: none;
}

/* Force hide navigation arrows if they appear */
.about-gallery-grid .owl-nav {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .about-gallery-page {
        height: auto;
        /* Remove fixed height */
        gap: 10px;
    }
}

@media (max-width: 575px) {
    .about-gallery-page {
        grid-template-columns: repeat(3, 1fr);
        height: auto;
        /* Remove fixed height */
        gap: 5px;
    }

    .about-grid-item {
        border-radius: 8px;
    }
}