body, html {
    overflow-x: hidden;
    background: #f5f7fb;
}

/* ================= PAGE WRAPPER ================= */
.picture-section {
    width: 100%;
    padding: 30px 40px;
}

/* ================= PAGE HEADING ================= */
.page-heading {
    text-align: center;
    margin: 25px 0 35px;
}

.page-heading h5 {
    font-size: 22px;
    font-weight: 700;
    color: #0b3c91;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.page-heading h5::after {
    content: "";
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #0b3c91, #4a7cff);
    position: absolute;
    bottom: 0;
    left: 20%;
    border-radius: 10px;
}

/* ================= GALLERY ================= */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ================= CARD ================= */
.photo-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    transition: all 0.35s ease;
    display: flex;
    flex-direction: column;
}

/* ================= IMAGE (FULL VISIBLE) ================= */
.photo-card img {
    width: 100%;
    height: auto;       /* auto height for full image */
    object-fit: contain; /* ensure full image shows */
    background: #eef2f8;
    transition: transform 0.4s ease;
}

/* ================= HOVER EFFECT ================= */
.photo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.photo-card:hover img {
    transform: scale(1.04);
}

/* ================= TEXT ================= */
.photo-description {
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
    color: #1f2937;
    background: linear-gradient(180deg, #f8faff, #eef3ff);
    border-top: 1px solid #e2e8f0;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .picture-section {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .page-heading h5 {
        font-size: 19px;
    }

    .photo-description {
        font-size: 13px;
        padding: 12px 14px;
    }

    .picture-section {
        padding: 20px;
    }

    /* Remove hover effects on mobile */
    .photo-card:hover {
        transform: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    }

    .photo-card:hover img {
        transform: none;
    }
}
