/* Family Video Gallery - Frontend Styles */

.fvg-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.fvg-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.fvg-header h2 {
    font-size: 3rem;
    color: #5a4a3a;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: Georgia, serif;
}

.fvg-subtitle {
    font-size: 1.2rem;
    color: #7a6a5a;
    font-style: italic;
    font-family: Georgia, serif;
}

.fvg-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.fvg-photo-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    border-top: 3px solid #8fcaca;
}

.fvg-photo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.fvg-photo-wrapper {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f0e8e0;
}

.fvg-photo-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.fvg-photo-card:hover img {
    transform: scale(1.1);
}

.fvg-photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fvg-photo-card:hover .fvg-photo-overlay {
    opacity: 1;
}

.fvg-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fvg-photo-card:hover .fvg-play-icon {
    opacity: 1;
}

.fvg-play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid #5a4a3a;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 5px;
}

.fvg-photo-info {
    padding: 20px;
    background: white;
}

.fvg-photo-title {
    font-size: 1.1rem;
    color: #5a4a3a;
    margin-bottom: 8px;
    font-weight: bold;
}

.fvg-photo-description {
    font-size: 0.9rem;
    color: #7a6a5a;
    line-height: 1.5;
}

.fvg-video-label {
    display: inline-block;
    background: #8fcaca;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Video Modal */
.fvg-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.fvg-video-modal.active {
    display: flex;
}

.fvg-video-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: black;
}

.fvg-video-container video {
    max-width: 100%;
    max-height: 90vh;
    display: block;
}

.fvg-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: #5a4a3a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.fvg-close-btn:hover {
    transform: scale(1.1);
}

.fvg-video-title {
    color: white;
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Vintage frame effect */
.fvg-photo-wrapper::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .fvg-header h2 {
        font-size: 2rem;
    }

    .fvg-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fvg-video-container {
        max-width: 95%;
    }

    .fvg-close-btn {
        top: -50px;
    }
}
