/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BASE RESET
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE-SPECIFIC BACKGROUNDS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
body.page-index {
    background-image: url('../site-photos/plane-view.jpg');
}

body.page-collection {
    background-image: url('../site-photos/museum.jpg');
    justify-content: flex-start;
    padding: 2rem 1rem 4rem;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SNOW CANVAS (sits on top of everything)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   INDEX PAGE CONTENT
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.index-content {
    position: relative;
    z-index: 10;
    text-align: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3rem 2.5rem;
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
}

.index-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    color: #fff;
    margin-bottom: 0.25rem;
}

.index-content .subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    letter-spacing: 2px;
}

.index-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-gold {
    display: inline-block;
    padding: 14px 32px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 60px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    min-width: 140px;
}

.btn-gold:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: #ffd700;
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.15);
    color: #fff;
}

.credit-note {
    margin-top: 2rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   COLLECTION PAGE
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.collection-header {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 1rem;
}

.collection-header h1 {
    font-size: 2.4rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem 2rem;
    border-radius: 60px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.back-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    backdrop-filter: blur(4px);
}

.back-link:hover {
    color: #fff;
}

/* ── card grid ── */
.card-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    width: 100%;
    padding: 0 1rem;
}

.card-item {
    background: rgba(20, 15, 30, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    aspect-ratio: 5 / 7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.2);
}

.card-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    background: rgba(0, 0, 0, 0.2);
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SEARCH BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.search-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 24px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-wrapper input:focus {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.05);
    background: rgba(0, 0, 0, 0.6);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SEARCH BAR
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.search-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.search-wrapper input {
    width: 100%;
    padding: 14px 24px;
    border-radius: 60px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.search-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-wrapper input:focus {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.05);
    background: rgba(0, 0, 0, 0.6);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3‑COLUMN GRID – compact thumbnails
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.grid-collection {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 540px;        /* 👈 narrower grid = smaller cards */
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem 3rem;
}

/* ── individual card (thumbnail) ── */
.grid-collection .card-item {
    background: rgba(20, 15, 30, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    aspect-ratio: 5 / 7;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    max-height: 220px;       /* 👈 hard cap so they don't get too tall */
}

.grid-collection .card-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 215, 0, 0.2);
}

.grid-collection .card-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    background: rgba(0, 0, 0, 0.15);
}

/* ── empty message ── */
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ── empty message ── */
.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE TWEAKS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
    .grid-collection {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        max-width: 380px;      /* 👈 even smaller on phones */
        padding: 0 0.5rem 2rem;
    }
    .grid-collection .card-item {
        max-height: 160px;
    }
    .collection-header h1 {
        font-size: 1.6rem;
        padding: 0.3rem 1.2rem;
    }
}

@media (max-width: 420px) {
    .grid-collection {
        max-width: 300px;
        gap: 8px;
    }
    .grid-collection .card-item {
        max-height: 130px;
        border-radius: 8px;
        padding: 4px;
    }
}
@media (max-width: 400px) {
    .grid-collection {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE TWEAKS
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 600px) {
    .index-content {
        padding: 2rem 1.2rem;
    }
    .index-content h1 {
        font-size: 2rem;
    }
    .index-content .subtitle {
        font-size: 1.1rem;
    }
    .btn-gold {
        min-width: 120px;
        font-size: 1rem;
        padding: 12px 24px;
    }
    .collection-header h1 {
        font-size: 1.6rem;
        padding: 0.3rem 1.2rem;
    }
    .card-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }
}