/* Gallery Polaroid Styles */
.gallery-card-polaroid {
    background: #ffffff;
    padding: 15px 15px 25px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    /* transform: rotate(-1deg); Removed rotation */
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    cursor: pointer; /* Indicate clickable */
}

.gallery-card-polaroid:hover {
    /* transform: rotate(0deg) scale(1.02) translateY(-5px); Updated hover */
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Removed alternate rotation */
/*
.col-md-6:nth-child(even) .gallery-card-polaroid {
    transform: rotate(1deg);
}

.col-md-6:nth-child(even) .gallery-card-polaroid:hover {
    transform: rotate(0deg) scale(1.02) translateY(-5px);
}
*/

.polaroid-image-container {
    background: #000;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

.polaroid-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-card-polaroid:hover .polaroid-image-container img {
    transform: scale(1.1);
}

.polaroid-caption {
    text-align: center;
    color: #333;
}

.gallery-tags .badge {
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative; 
    z-index: 20; /* Ensure tags are clickable above card link */
}

.gallery-tags .badge:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Lightbox Styles */
.lightbox-img {
    max-height: 85vh;
    object-fit: contain;
    width: 100%;
}
