/* =========================================
   PHOTOS.HTML DUAL-LAYOUT REVAMP
========================================= */

/* --- 1. HERO BANNER (Animated) --- */
.photos-hero {
    position: relative;
    padding: 150px 20px 80px;
    background: linear-gradient(135deg, #0b1a4a, #1a2b66);
    overflow: hidden;
    text-align: center;
}

.photos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/gender awaords all photosa/EM_07624.JPG');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    animation: zoomBg 20s infinite alternate;
}

@keyframes zoomBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.photos-hero-content {
    position: relative;
    z-index: 10;
}

.photos-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.photos-breadcrumbs {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 8px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
    color: #ccc;
    font-size: 0.95rem;
}

.photos-breadcrumbs a {
    color: #f75023;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.photos-breadcrumbs a:hover { color: white; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}


/* --- 2. DUAL-LAYOUT PHOTO GRID --- */

/* Reset existing inline styles and margins from legacy structure */
.section.pt-0 { margin-top: 50px !important; }

/* LAPTOP / DESKTOP (Masonry Style Grid) */
@media (min-width: 992px) {
    .photo-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
        grid-auto-rows: 250px;
        grid-auto-flow: dense;
        gap: 15px !important;
    }
    
    /* Make some items larger for masonry effect */
    .photo-item:nth-child(5n + 1) { grid-row: span 2; grid-column: span 2; }
    .photo-item:nth-child(7n + 3) { grid-row: span 2; }
    
    .photo-item {
        margin: 0 !important;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        cursor: zoom-in;
    }

    .photo-item img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
        display: block;
    }

    .photo-overlay {
        position: absolute;
        inset: 0;
        background: rgba(11, 26, 74, 0.6) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0 !important;
        transition: opacity 0.4s !important;
        pointer-events: none;
    }

    .photo-overlay i {
        color: white;
        font-size: 2.5rem;
        transform: scale(0.5);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }

    .photo-item:hover img {
        transform: scale(1.08) !important;
    }

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

    .photo-item:hover .photo-overlay i {
        transform: scale(1);
    }
}

/* MOBILE (App-Style Vertical Feed) */
@media (max-width: 991px) {
    .photos-hero { padding: 120px 20px 50px; }
    .photos-hero-title { font-size: 2.2rem; }
    
    .section.pt-0 { margin-top: 0 !important; padding: 20px 10px !important; background: #f0f2f5; }
    .container { padding: 0 !important; max-width: 100%; }
    
    .photo-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .photo-item {
        margin: 0 !important;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        background: white;
    }
    
    .photo-item img {
        width: 100% !important;
        height: 150px !important;
        object-fit: cover !important;
        display: block;
    }
    
    .photo-overlay {
        position: absolute !important;
        inset: 0;
        background: rgba(11, 26, 74, 0.4) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        opacity: 0 !important;
        pointer-events: none;
    }
    
    .photo-overlay i {
        display: block !important;
        color: white;
        font-size: 2rem;
    }
    
    .photo-item:active .photo-overlay {
        opacity: 1 !important;
    }
}
