/* Gallery Homepage Styles */
.gallery-featured-section {
    position: relative;
    overflow: hidden;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 25px 20px 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.video-item {
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #f8f9fa;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.custom-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #6c757d;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
}

/* Button Styles */
.gallery-btn {
    background: #d32f2f;
    border-color: #d32f2f;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.gallery-btn:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
    color: white;
    text-decoration: none;
}

/* Badge Styles */
.platform-badge {
    padding: 5px 12px;
    border-radius: 15px;
    text-transform: capitalize;
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.source-badge {
    background: #d32f2f;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    text-transform: capitalize;
    margin-top: 8px;
    display: inline-block;
    color: white;
}

.source-badge.light {
    background: #f1f3f4;
    color: #5f6368;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .video-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .video-item {
        padding: 20px;
    }
    
    .photo-overlay {
        padding: 20px 15px 15px;
    }
    
    .gallery-featured-section .sec-title h3 {
        font-size: 28px;
    }
    
    .gallery-featured-section h4 {
        font-size: 22px;
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .video-item {
        padding: 15px;
    }
    
    .gallery-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .gallery-featured-section .sec-title h3 {
        font-size: 24px;
    }
    
    .gallery-featured-section h4 {
        font-size: 20px;
    }
    
    .video-info h5 {
        font-size: 16px !important;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-featured-section .photo-item,
.gallery-featured-section .video-item {
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-featured-section .photo-item:nth-child(2) {
    animation-delay: 0.1s;
}

.gallery-featured-section .photo-item:nth-child(3) {
    animation-delay: 0.2s;
}

.gallery-featured-section .photo-item:nth-child(4) {
    animation-delay: 0.3s;
}

.gallery-featured-section .video-item:nth-child(2) {
    animation-delay: 0.1s;
}
