* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Use font-display swap for any custom fonts */
@font-face {
    font-display: swap;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #fff;
    color: #000;
    overflow-x: hidden;
}


/* Navigation */
.top-nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: #666;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #000;
}

.nav-links a.active {
    color: #000;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-links a {
    color: #000;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.social-links a:hover {
    opacity: 0.6;
}

.social-links svg {
    width: 20px;
    height: 20px;
}

/* Mobile social links in hamburger menu */
.mobile-social-links {
    display: none;
}

/* Hide mobile menu logo on desktop */
.mobile-menu-logo {
    display: none;
}

/* Main Content */
main {
    margin-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Prevent image saving/dragging globally */
img {
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Screenshot protection overlay */
.screenshot-protection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

.screenshot-protection.active {
    display: block;
}

/* Hide images when screenshot detected */
.screenshot-detect img {
    visibility: hidden !important;
}

.screenshot-detect .lightbox-image {
    visibility: hidden !important;
}

/* Black overlay for lightbox during screenshot */
.lightbox.screenshot-detect::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 2002;
}

/* Advanced screen capture protection using CSS filters */
@media screen {
    /* Apply protection to all images */
    img {
        /* Prevent selection and interaction */
        pointer-events: none;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    /* Lightbox specific protection */
    .lightbox-image {
        /* Protection without flicker */
    }
    
    /* Protection overlay that pulses */
    .protection-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 9998;
        background: transparent;
        mix-blend-mode: difference;
        animation: protection-pulse 0.15s infinite;
        display: none;
    }
    
    .lightbox.active ~ .protection-overlay {
        display: block;
    }
}

/* Removed anti-capture animation to prevent flicker */

/* Protection pulse animation */
@keyframes protection-pulse {
    0%, 100% { 
        background: rgba(0, 0, 0, 0);
    }
    50% { 
        background: rgba(0, 0, 0, 0.01);
    }
}

/* Disable print media for images */
@media print {
    img, .lightbox {
        display: none !important;
    }
}

/* Featured Gallery */
.featured-gallery {
    padding: 0 30px;
    max-width: 100%;
    margin: 0;
    position: relative;
}

.featured-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 0;
    display: inline-block;
    width: 100%;
}

.featured-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Watermark overlay */
.featured-item::before {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 40px;
    background-image: url('/photos/shotbysevan-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.featured-item:hover::before {
    opacity: 0.5;
}

/* Shots Page */
.shots-grid {
    padding: 0 30px;
    max-width: 100%;
    margin: 0;
    position: relative;
}

.shot-album {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.shot-album:hover img {
    transform: scale(1.05);
}

.shot-album img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Watermark for shot albums */
.shot-album::before {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 40px;
    background-image: url('/photos/shotbysevan-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.3;
    z-index: 11;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.shot-album:hover::before {
    opacity: 0.5;
}

.shot-album h3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 20px rgba(0,0,0,0.8);
    z-index: 10;
    width: 90%;
}

.shot-album:hover h3 {
    opacity: 1;
}

.shot-album::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shot-album:hover::after {
    opacity: 1;
}

/* Gallery View */
.gallery-view {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
}

.gallery-header {
    margin-bottom: 40px;
}

.gallery-header h1 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.gallery-grid {
    position: relative;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    break-inside: avoid;
    margin-bottom: 0;
    display: inline-block;
    width: 100%;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Watermark for gallery items */
.gallery-item::before {
    content: '';
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 100px;
    height: 33px;
    background-image: url('/photos/shotbysevan-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item:hover::before {
    opacity: 0.4;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* Loading state - subtle spinner */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: none;
    z-index: 5;
}

.lightbox-loading:after {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: rgba(0, 0, 0, 0.6);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.lightbox.loading .lightbox-loading {
    display: block;
}


.lightbox.active {
    display: flex;
}

.lightbox-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1200px;
    height: 800px;
    max-width: 95vw;
    max-height: 95vh;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    position: relative;
    z-index: 1;
}

/* Watermark for lightbox - centered on the image */
.lightbox-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 100px;
    background-image: url('/photos/shotbysevan-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.15;
    z-index: 2001;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@media (max-width: 1200px) {
    .lightbox-image-wrapper {
        width: 95vw;
        height: calc(95vw * 0.667); /* Maintain 1200:800 aspect ratio */
    }
}

@media (max-height: 800px) {
    .lightbox-image-wrapper {
        height: 95vh;
        width: calc(95vh * 1.5); /* Maintain 1200:800 aspect ratio */
    }
}

.lightbox-close {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 40px;
    color: #000;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 2001;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #000;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    z-index: 2001;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Quality Indicator */
.quality-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.quality-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.quality-indicator.quality-1 .quality-dot:nth-child(1) {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.2);
}

.quality-indicator.quality-2 .quality-dot:nth-child(1),
.quality-indicator.quality-2 .quality-dot:nth-child(2) {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.2);
}

.quality-indicator.quality-3 .quality-dot {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.2);
}

.quality-indicator.quality-4 .quality-dot {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.3);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}


/* White loading screen for shot pages */
.gallery-view.loading-photos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
}

.gallery-view.loading-photos .gallery-grid {
    display: none;
}

/* About Page Styles */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.about-hero {
    text-align: center;
    margin-bottom: 80px;
}

.about-hero h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.about-hero .tagline {
    font-size: 20px;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
}

.about-content {
    margin-bottom: 80px;
}

.about-section {
    margin-bottom: 60px;
}

.about-section h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-weight: 300;
}

.about-gallery {
    margin-bottom: 80px;
}

.about-gallery h2 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 40px;
    text-align: center;
}

.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.about-gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
}

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

/* Watermark for about gallery */
.about-gallery-item::before {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 80px;
    height: 27px;
    background-image: url('/photos/shotbysevan-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.25;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.about-gallery-item:hover::before {
    opacity: 0.4;
}

.about-cta {
    text-align: center;
    padding: 60px 0;
}

.about-cta h2 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.about-cta p {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 40px;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #000;
    color: #fff;
    border: 2px solid #000;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
}

.btn-secondary {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background: #000;
    color: #fff;
}

@media (max-width: 768px) {
    .about-hero h1 {
        font-size: 36px;
    }
    
    .about-hero .tagline {
        font-size: 16px;
    }
    
    .about-section h2 {
        font-size: 24px;
    }
    
    .about-section p {
        font-size: 16px;
    }
    
    .about-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Contact Page Styles */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 20px 40px;
}

.contact-hero {
    text-align: center;
    margin-bottom: 60px;
}

.contact-hero h1 {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.contact-hero .tagline {
    font-size: 20px;
    color: #666;
    font-weight: 300;
    letter-spacing: 1px;
}

.contact-content {
    margin-bottom: 80px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 60px;
}

.contact-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 35px;
}

.form-message {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    text-align: center;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.contact-alternative {
    text-align: center;
}

.contact-alternative p {
    font-size: 16px;
    color: #666;
}

.contact-alternative a {
    color: #000;
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid #000;
    transition: opacity 0.3s ease;
}

.contact-alternative a:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 36px;
    }
    
    .contact-hero .tagline {
        font-size: 16px;
    }
    
    .contact-intro p {
        font-size: 16px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Responsive */
@media (max-width: 1200px) {
    /* Handled by JavaScript masonry */
}

@media (max-width: 768px) {
    /* Single column galleries on mobile */
    .featured-gallery,
    .shots-grid,
    .gallery-grid {
        column-count: 1 !important;
        -webkit-column-count: 1 !important;
        -moz-column-count: 1 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Transparent nav that overlays photos */
    .top-nav {
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
    }
    
    .nav-container {
        padding: 0 20px;
        padding-top: 0px;
        justify-content: center;
        align-items: flex-start;
        position: relative;
        height: 60px;
    }
    
    .logo {
        position: static;
        z-index: 10;
        display: flex;
        align-items: center;
        margin-top: -5px;
    }
    
    .logo img {
        height: 25px;
        filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
    }
    
    /* Hide social links on mobile */
    .social-links {
        display: none;
    }
    
    .hamburger {
        display: block;
        position: absolute;
        right: 20px;
        top: -8px;
        transform: none;
        z-index: 1001;
    }
    
    .hamburger span {
        box-shadow: 0 1px 2px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
    }
    
    /* Hamburger to X animation */
    .hamburger.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Remove margin-top from main content so it goes under nav */
    main {
        margin-top: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px 40px;
        gap: 30px;
        transition: right 0.3s ease;
        z-index: 999;
        justify-content: center;
        align-items: center;
    }
    
    /* Mobile menu logo */
    .mobile-menu-logo {
        display: none;
    }
    
    .nav-links .mobile-menu-logo {
        display: block;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        text-align: center;
    }
    
    .mobile-menu-logo img {
        height: 35px;
        width: auto;
        display: inline-block;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 24px;
        padding: 15px 0;
        border-bottom: none;
        letter-spacing: 2px;
        text-align: center;
    }
    
    /* Show mobile social links in hamburger menu */
    .mobile-social-links {
        display: flex !important;
        gap: 30px;
        justify-content: center;
        margin-top: 50px;
        padding-top: 50px;
        border-top: 1px solid #eee;
        border-bottom: none;
    }
    
    .mobile-social-links a {
        border-bottom: none;
        padding: 0;
        color: #000;
    }
    
    .mobile-social-links svg {
        width: 28px;
        height: 28px;
    }
    
    .gallery-view {
        padding: 0;  /* Remove all padding on mobile */
    }
    
    /* Homepage featured gallery - no gaps */
    .featured-gallery .featured-item {
        margin-bottom: 0;
    }
    
    /* All other galleries - increased spacing on mobile */
    .shots-grid .shot-album,
    .gallery-grid .gallery-item {
        margin-bottom: 24px;
    }
    
    /* Always show shot titles on mobile */
    .shot-album h3 {
        opacity: 1;
    }
    
    /* Adjust watermark sizes on mobile */
    .featured-item::before {
        width: 80px;
        height: 27px;
        bottom: 10px;
        right: 10px;
    }
    
    .gallery-item::before {
        width: 70px;
        height: 23px;
        bottom: 10px;
        right: 10px;
    }
    
    .shot-album::before {
        width: 90px;
        height: 30px;
        bottom: 15px;
        right: 15px;
    }
    
    .about-gallery-item::before {
        width: 60px;
        height: 20px;
        bottom: 8px;
        right: 8px;
    }
    
    /* Lightbox watermark on mobile */
    .lightbox-watermark {
        width: 200px;
        height: 67px;
        opacity: 0.2; /* Slightly more visible on mobile */
    }
}