/* ======================================================
   AAKANSHA GALLERY — Cinematic Card Grid
   45 photos · dark romantic aesthetic
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Outfit:wght@300;400;500&display=swap');

:root {
    --bg:          #0d0919;
    --bg-card:     #13102a;
    --border:      rgba(255, 255, 255, 0.06);
    --accent:      #c9848a;
    --text-main:   rgba(255, 255, 255, 0.88);
    --text-muted:  rgba(255, 255, 255, 0.38);
    --num-color:   rgba(201, 132, 138, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================== HEADER ===================== */
.gallery-header {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.back-link {
    position: absolute;
    top: 2rem;
    left: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.back-link:hover { opacity: 1; }

.gallery-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.8rem, 5vw, 3rem);
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.gallery-sub {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ===================== GRID ===================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===================== CARD ===================== */
.photo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* ---- Photo frame ---- */
.photo-frame {
    width: 100%;
    aspect-ratio: 3 / 4;   /* portrait ratio */
    overflow: hidden;
    background: #0a0813;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

.photo-card:hover .photo-frame img {
    transform: scale(1.04);
}

/* ---- Caption ---- */
.photo-caption {
    padding: 1.2rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.caption-num {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.3rem;
    color: var(--num-color);
    line-height: 1;
}

.photo-caption p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
}

/* ===================== FOOTER ===================== */
.footer {
    text-align: center;
    padding: 3rem 1rem;
    border-top: 1px solid var(--border);
}

.footer-link {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.footer-link:hover { opacity: 1; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .photo-caption {
        padding: 0.8rem 0.9rem 1rem;
    }

    .caption-num { font-size: 1.1rem; }
    .photo-caption p { font-size: 0.78rem; }
}

@media (max-width: 380px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
