/* Instagram Polaroids */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    padding: 2rem 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

.polaroid {
    background: white;
    padding: 15px;
    padding-bottom: 50px; /* Classic polaroid bottom */
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
    text-align: center;
    color: #333;
    text-decoration: none;
    display: block;
    position: relative;
}

.polaroid:nth-child(2n) {
    transform: rotate(3deg);
}

.polaroid:nth-child(3n) {
    transform: rotate(-1deg);
}

.polaroid:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 10px 10px 25px rgba(0,0,0,0.15);
}

.polaroid-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background-color: #f0f0f0;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-caption {
    font-family: 'Mali', cursive;
    font-size: 1.2rem;
    color: #555;
    margin-top: 15px;
    font-weight: 600;
}

/* Tape effect (optional) */
.polaroid::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 5;
}
