/* css/item_grid.css */

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.item-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 0 12px 2px rgba(1, 1, 1, 1), 0 0 30px rgba(51, 51, 51, 0.3);
}

.item-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Control cropping of image for Harvinder Gill */
.item-card[data-item="harvinder-gill"] img {
    object-position: 50% 20%;
    /* You can use values like 'bottom', 'center', 'left', 'right', or percentages like '50% 25%' */
}

/* Control cropping of image for Gaurav Joshi */
.item-card[data-item="gaurav-joshi"] img {
    object-position: 50% 0%;
    /* You can use values like 'bottom', 'center', 'left', 'right', or percentages like '50% 25%' */
}

.item-card:hover img {
    transform: scale(1.05);
}

.card-content p {
    font-size: 1rem;
    color: #555;
}

/* --- Modal Styles --- */
body.modal-open {
    overflow: hidden;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2.2rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    border: none;
    background: none;
    line-height: 1;
}

.modal-body {
    display: flex;
    gap: 35px;
}

.modal-img {
    width: 250px;
    height: 250px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.modal-text h2 {
    font-size: 2.2rem;
    color: #111;
}

.modal-text h4 {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.modal-links {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.gill-press-down-button {
    /* Basic styling for the button */
    padding: 2px;
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;

    /* --- Key Properties for the Effect --- */

    /* 1. The "lifted" shadow when not hovered */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    /* 2. Set the initial position slightly up */
    transform: translateY(-2px);

    /* 3. Make the change smooth */
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gill-press-down-button:hover {
    /* 1. On hover, move the button down to its "natural" position */
    transform: translateY(0);

    /* 2. On hover, make the shadow smaller and tighter, as if pressed */
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-img {
        width: 100%;
        height: 220px;
        margin-bottom: 20px;
    }

    .modal-links {
        justify-content: center;
    }
}