/* ============================================
   VINTAGE INSTAGRAM STYLE
   ============================================ */

.vintage-instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px 0;
}

.vintage-photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.vintage-photo-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 8px;
    padding-bottom: 35px;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-radius: 2px;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
}

.vintage-photo-item {
    cursor: pointer;
}

.vintage-photo-frame::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    height: 25px;
    background: #f5f5f5;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.vintage-photo-frame:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.vintage-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: sepia(10%) contrast(1.05) brightness(0.98) saturate(0.95);
    transition: all 0.3s ease;
}

.vintage-photo-frame:hover .vintage-photo-img {
    filter: sepia(5%) contrast(1.1) brightness(1.02) saturate(1);
    transform: scale(1.05);
}

.vintage-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 35px;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

.vintage-photo-overlay i {
    pointer-events: auto;
}

.vintage-photo-frame:hover .vintage-photo-overlay {
    opacity: 1;
}

.vintage-photo-overlay i {
    color: white;
    font-size: 24px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.vintage-photo-overlay i:hover {
    transform: scale(1.2);
}

.vintage-photo-overlay .fa-heart:hover {
    color: #ff3040;
}

.vintage-photo-overlay .fa-comment:hover {
    color: #0078D7;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .vintage-instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 10px 0;
    }
    
    .vintage-photo-frame {
        padding: 6px;
        padding-bottom: 30px;
    }
    
    .vintage-photo-frame::after {
        bottom: 6px;
        left: 6px;
        right: 6px;
        height: 22px;
    }
    
    .vintage-photo-overlay {
        bottom: 30px;
        gap: 15px;
    }
    
    .vintage-photo-overlay i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .vintage-instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .vintage-photo-frame {
        padding: 4px;
        padding-bottom: 25px;
    }
    
    .vintage-photo-frame::after {
        bottom: 4px;
        left: 4px;
        right: 4px;
        height: 20px;
    }
    
    .vintage-photo-overlay {
        bottom: 25px;
        gap: 12px;
    }
    
    .vintage-photo-overlay i {
        font-size: 18px;
    }
}

/* ============================================
   PHOTO LIGHTBOX (FULL SCREEN)
   ============================================ */

.photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex !important;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.photo-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    display: flex !important;
}

.photo-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.photo-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.photo-lightbox-img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.photo-lightbox.active .photo-lightbox-close {
    opacity: 1;
    transform: scale(1);
}

.photo-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
    .photo-lightbox-content {
        max-width: 100%;
        max-height: 100%;
        padding: 10px;
    }
    
    .photo-lightbox-img {
        max-height: 100vh;
        border-radius: 0;
    }
    
    .photo-lightbox-close {
        top: 20px;
        bottom: auto;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .photo-lightbox.active .photo-lightbox-close {
        transform: translateX(-50%) scale(1);
    }
    
    .photo-lightbox-close:hover {
        transform: translateX(-50%) scale(1.1);
    }
}

