﻿.link-5 {
    background-color: #e7e7df;
}

.mobile-link-5 {
    color: blue;
}

/* Main Wrapper */
.gallery-main-container {
    padding: 40px 5%;
    background-color: #fcfcfc;
}

.social-head {
    text-align: center;
    margin: 2vh 0;
    font-family: Kaushan Script;
    font-size: 40px;
    color: var(---dark_text);
}

.gallery-header-text {
    text-align: center;
    margin-bottom: 40px;
}

/* 🔥 GRID LOGIC: 4 Images per row */
.custom-image-grid {
    display: grid;
    /* Is line se desktop par hamesha 4 columns rahenge */
    grid-template-columns: repeat(4, 1fr);
    gap: 15px; /* Photos ke beech ka gap */
}

.grid-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.media-box {
    position: relative;
    height: 200px; /* Sabhi images ki height barabar rahegi */
    width: 100%;
}

    .media-box img, .media-box video {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Photo stretch nahi hogi, crop hogi adjust hone ke liye */
    }

/* Hover Overlay */
.hover-info {
    position: absolute;
    inset: 0;
    background: rgba(27, 63, 47, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    opacity: 0;
    transition: 0.3s;
}

.grid-card:hover .hover-info {
    opacity: 1;
}

.play-hint {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #C5A059;
    background: rgba(255,255,255,0.8);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
}

/* 📱 RESPONSIVE SETTINGS */

/* Tablet par 2 images ek row mein */
@media (max-width: 1024px) {
    .custom-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile par 1 image ek row mein */
@media (max-width: 600px) {
    .custom-image-grid {
        grid-template-columns: 1fr;
    }

    .media-box {
        height: 250px;
    }
}
