* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Masonry Grid Layout - Pixieset Style */
.masonry-grid {
    column-count: 4 !important;
    column-gap: 0.25rem !important;
    column-fill: balance !important;
}

@media (max-width: 1280px) {
    .masonry-grid {
        column-count: 3 !important;
        column-gap: 0.25rem !important;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2 !important;
        column-gap: 0.25rem !important;
    }
}

@media (max-width: 640px) {
    .masonry-grid {
        column-count: 1 !important;
        max-width: 500px !important;
        margin: 0 auto !important;
        column-gap: 0 !important;
    }
}

/* Photo Cards - Pixieset Clean Style */
.photo-card {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 0.25rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    transition: opacity 0.2s ease;
    border-radius: 0;
    display: inline-block;
    width: 100%;
}

.photo-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: opacity 0.2s ease;
    opacity: 0;
}

.photo-card img.fade-in {
    animation: fadeInImage 0.4s ease forwards;
}

@keyframes fadeInImage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.photo-card:hover img {
    opacity: 0.9;
}

/* Hero Background Image */
#heroBackground.has-image {
    background-size: cover;
    background-position: center;
}

/* Album Navigation - Minimal Style */
.album-btn {
    transition: all 0.2s ease;
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    background: none !important;
}

.album-btn.active {
    border-bottom-color: currentColor;
    font-weight: 500;
}

.album-btn:not(.active) {
    color: #6b7280;
}

.dark .album-btn:not(.active) {
    color: #B4AFB6;
}

.album-btn:hover {
    color: #111827;
}

.dark .album-btn:hover {
    color: #ffffff;
}

/* Lightbox Animations */
#lightbox {
    animation: fadeIn 0.3s ease;
}

#lightboxImage {
    animation: zoomIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar - Minimal */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #3E3E3E;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #B4AFB6;
}

/* Loading Animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-sm {
        backdrop-filter: blur(10px);
    }
}

/* Print Styles */
@media print {
    nav, footer, #themeToggle {
        display: none;
    }
}
