/* Premium Photography Gallery Styles */
:root {
    --bg-color: #030303;
    --text-color: #ffffff;
    --text-muted: #999999;
    --accent: #d4af37;
    /* subtle gold/champagne */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

body {
    background-color: #000000;
    color: var(--text-color);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 4rem;
    position: sticky;
    top: 0;
    background: rgba(18, 18, 22, 0.4);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* Hero */
.hero {
    height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 12px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero p {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 2px;
}

/* Filter Navigation */
.filters {
    padding: 2rem 4rem;
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: none;
    /* Firefox */
}

.filters::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    padding-bottom: 5px;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-color);
    border-bottom: 1px solid var(--accent);
}

/* Tools */
.gallery-tools {
    display: flex;
    justify-content: space-between;
    padding: 1rem 4rem;
    align-items: center;
}

.search-box input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    width: 250px;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
}

.sort-box select {
    background: transparent;
    color: white;
    border: none;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    outline: none;
}

.sort-box select option {
    background: var(--bg-color);
}

/* Gallery Grid (Masonry) */
.gallery-grid {
    column-count: 4;
    column-gap: 1.5rem;
    padding: 2rem 4rem 5rem 4rem;
    min-height: 50vh;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
    /* Removed border-radius per user request */
    border-radius: 0;
    opacity: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.02) 75%);
    background-size: 200% 100%;
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, skeletonLoading 2.5s infinite linear;
}

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

@keyframes skeletonLoading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-title {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.item-category {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

/* Album Card Specific */
.album-card {

    border-radius: 0;
    /* No rounded corners */
    cursor: pointer;
}

/* Force album images to be a beautiful square/portrait crop visually if needed, though masonry is fine. Let's let masonry handle it but make it prominent */

.album-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    opacity: 1;
    /* Always show text for albums */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
}

.album-card .item-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: capitalize;
    margin-bottom: 0.75rem;
    color: white;
}

.album-count {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.empty-state h2 {
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 1rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-controls {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1.5rem;
    z-index: 1001;
}

.lb-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lb-btn:hover {
    opacity: 1;
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.5;
    padding: 2rem;
    transition: opacity 0.3s;
}

.lb-nav:hover {
    opacity: 1;
}

.lb-prev {
    left: 0;
}

.lb-next {
    right: 0;
}

.lightbox-info {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: white;
    letter-spacing: 1px;
}

.lb-category {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
}

.lb-title {
    font-size: 1.1rem;
    font-weight: 300;
}

.lb-counter {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 900px) {
    .gallery-grid {
        column-count: 2;
    }

    header {
        padding: 1.5rem 2rem;
    }

    .filters,
    .gallery-tools {
        padding: 1rem 2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
        padding: 0.5rem;
        column-gap: 0;
    }

    .gallery-item {
        margin-bottom: 0.5rem;
    }

    .gallery-tools {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        padding: 1rem;
    }

    header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero {
        height: 35vh;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: 5px;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .filters {
        padding: 0.5rem 1rem;
        gap: 1rem;
    }

    /* Make controls accessible on mobile lightbox */
    .lightbox-controls {
        top: 1rem;
        right: 1rem;
        gap: 1rem;
    }

    .lb-btn {
        font-size: 1.5rem;
        background: rgba(0, 0, 0, 0.5);
        padding: 0.5rem;
        border-radius: 50%;
        backdrop-filter: blur(5px);
    }

    .lb-nav {
        padding: 1rem;
        font-size: 1.5rem;
    }
}

/* Beautiful Back Button */
.back-btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(212, 175, 55, 0.5);
    /* subtle gold accent on hover */
    transform: translateY(-2px);
}