/* Photographs Section Styles - Updated v3.3.0 - Made hero headline clickable */

.photographs-section {
    background: white;
    width: 100%;
}

.photographs-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Primary Full-Width Story */
.photo-primary-container {
    width: 96vw;
    margin: 0 auto 4rem auto;
    position: relative;
}

.photo-primary {
    width: 100%;
    position: relative;
}

.photo-primary-image {
    width: 100%;
    height: 70vh;
    position: relative;
    overflow: hidden;
}

.photo-primary-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Primary story text overlay - Desktop: left-positioned, center-aligned text */
.photo-primary-overlay {
    position: absolute;
    top: 50%;
    left: 6vw;
    transform: translateY(-50%);
    z-index: 20;
    color: white !important;
    pointer-events: none;
    max-width: 400px;
    text-align: center;
}

.photo-primary-headline {
    font-family: var(--compressed-font);
    font-weight: 400;
    font-style: normal;
    text-transform: uppercase;
    font-size: 96px;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.photo-primary-standfirst {
    font-family: var(--serif-font);
    font-size: calc(20px * 1.23); /* 20px base = 24.6px scaled */
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 2rem 0;
    color: white !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.photo-primary-meta {
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.photo-primary-meta::after {
    content: " →";
}

.photo-primary-meta i {
    color: white !important;
}

.photographs-grid {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding-bottom: 16px; /* Space for scrollbar */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* No divider line needed for horizontal scroll */

/* Custom scrollbar styling */
.photographs-grid::-webkit-scrollbar {
    height: 8px;
}

.photographs-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.photographs-grid::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.photographs-grid::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.photo-item {
    flex: 0 0 450px; /* Fixed width for horizontal scroll */
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Secondary stories now use .features-story-main classes and inherit styling from page-portfolio.php */

/* Override layout and styling for photographs section secondary stories */
.photographs-section .features-story-main {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 16px !important;
}

.photographs-section .features-story-main .story-content {
    flex: none !important;
    width: 100% !important;
    text-align: left !important;
    margin: 0 !important;
}

.photographs-section .features-story-main .story-image {
    flex: none !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

.photographs-section .features-story-main h2 {
    font-size: 60px !important;
    line-height: 0.9 !important;
    margin-bottom: 8px !important;
}

.photographs-section .features-story-main p {
    margin-bottom: 4px !important;
}

.photographs-section .features-story-main .story-meta {
    margin-bottom: 0 !important;
}

/* Tablet Responsive */
@media (max-width: 1200px) {
    /* Primary story - switch to bottom positioning */
    .photo-primary-overlay {
        top: auto;
        bottom: 4vw;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        max-width: 90%;
    }
    
    .photo-primary-headline {
        font-size: 96px;
    }
    
    .photo-primary-standfirst {
        font-size: calc(16px * 1.23); /* Matches Features section tablet size */
    }

    /* Override tablet headline size for photographs section secondary stories */
    .photographs-section .features-story-main h2 {
        font-size: 50px !important;
        line-height: 0.9 !important;
        margin-bottom: 8px !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Primary story container - adjust for mobile content padding */
    .photo-primary-container {
        width: 92vw; /* Accounts for 4vw padding on mobile */
    }
    
    .photographs-grid {
        gap: 2rem;
    }

    .photo-item {
        flex: 0 0 350px; /* Smaller width on mobile */
    }
    
    /* Primary story mobile adjustments */
    .photo-primary-headline {
        font-size: 64px; /* Primary story headline - compressed font */
    }
    
    .photo-primary-standfirst {
        font-size: calc(16px * 1.23); /* Matches Features section mobile size */
        margin: 0 0 1.5rem 0;
    }
    
    .photo-primary-meta {
        font-size: 14px;
    }

    /* Override mobile headline size for photographs section secondary stories */
    .photographs-section .features-story-main h2 {
        font-size: 40px !important;
        line-height: 0.9 !important;
        margin-bottom: 8px !important;
    }
}

@media (max-width: 480px) {
    .photographs-grid {
        gap: 2rem;
    }

    .photo-item {
        flex: 0 0 300px; /* Even smaller width on small mobile */
    }
}