/* ===== PHOTOS MODERN CSS - RODA ===== */

/* Import elegant fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Portfolio Filter */
.grid-filter-wrap {
    text-align: center;
    margin-bottom: 60px;
    padding: 0;
    background: none;
    border: none;
}

.grid-filter {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    border: none !important;
    outline: none !important;
}

.grid-filter li {
    margin: 0;
}

.grid-filter a {
    display: inline-block !important;
    padding: 10px 24px !important;
    background: white !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    border: none !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.grid-filter a:hover {
    background: #1e40af !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4) !important;
    border: none !important;
    border-radius: 25px !important;
}

.grid-filter .activeFilter a {
    background: #1e40af !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.4) !important;
    border: none !important;
    border-radius: 25px !important;
}


/* Portfolio Grid */
.portfolio {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .portfolio {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .portfolio {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px);
}

.grid-inner {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.grid-inner:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

/* Portfolio Image */
.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.portfolio-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

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

/* Overlay */
.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.portfolio-item:hover .bg-overlay {
    opacity: 1;
}

.overlay-trigger-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white !important;
    color: #1e40af !important;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.overlay-trigger-icon:hover {
    background: #1e40af !important;
    color: white !important;
    transform: scale(1.1);
}

/* Video Items */
.portfolio-item iframe {
    width: 100%;
    height: 250px;
    border-radius: 20px 20px 0 0;
}

/* Title Section */
.portfolio-title {
    padding: 20px;
    text-align: center;
}

.portfolio-title h4 {
    margin: 0;
    color: #1e40af;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

.portfolio-title p {
    margin: 8px 0 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .grid-filter a {
        width: 200px;
        text-align: center;
    }
    
    .portfolio-image img,
    .portfolio-item iframe {
        height: 200px;
    }
    
    /* Mobile responsive fixes for photos page */
    .standard-section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .portfolio-title h4 {
        font-size: 1rem;
    }
    
    .portfolio-title p {
        font-size: 0.85rem;
    }
    
    .overlay-trigger-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Additional mobile fixes for very small screens */
@media (max-width: 480px) {
    .standard-section {
        padding: 30px 0;
    }
    
    .grid-filter-wrap {
        margin-bottom: 40px;
    }
    
    .grid-filter a {
        width: 150px;
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
    
    .portfolio {
        gap: 15px;
    }
    
    .portfolio-image img,
    .portfolio-item iframe {
        height: 180px;
    }
    
    .portfolio-title {
        padding: 15px;
    }
    
    .portfolio-title h4 {
        font-size: 0.9rem;
    }
    
    .portfolio-title p {
        font-size: 0.8rem;
    }
    
    .overlay-trigger-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

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

.portfolio-item {
    animation: fadeInUp 0.6s ease forwards;
}

.portfolio-item:nth-child(1) { animation-delay: 0.1s; }
.portfolio-item:nth-child(2) { animation-delay: 0.2s; }
.portfolio-item:nth-child(3) { animation-delay: 0.3s; }
.portfolio-item:nth-child(4) { animation-delay: 0.4s; }
.portfolio-item:nth-child(5) { animation-delay: 0.5s; }
.portfolio-item:nth-child(6) { animation-delay: 0.6s; }
