* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    background: #f9fafb;
    color: #111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── MOBILE ── */
header {
    border-bottom: 1px solid #ddd;
    background: #f9fafb;
}

.navbar {
    padding: 16px 24px;
    background: #f9fafb;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    margin-right: auto;
}

.navbar-toggler {
    border: none;
    padding: 4px;
    box-shadow: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23111' stroke-linecap='round' stroke-miterlimit='10' stroke-width='1.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    color: #111;
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 10px 0;
}

.navbar-nav .nav-link.active {
    text-decoration: underline;
    text-decoration-color: #111;
}

.sidebar { display: none; }

main {
    padding: 40px 24px 0;
    background: #f9fafb;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
}

h4 {
    font-size: 15px;
    color: #222;
    letter-spacing: 0.01em;
    text-align: center;
}

.section-title {
    font-weight: 700;
    font-size: 28px;
    color: #111;
    letter-spacing: 0.03em;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    background: #ccc;
    margin: 12px auto 0;
    opacity: 0.6;
}

.home-top {
    text-align: center;
    margin-bottom: 24px;
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: #555;
    margin-top: 6px;
}

/* ── FEATURED IMAGES ── */
.featured-image {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 4px;
    background-color: #fff;
    transition: transform 0.35s var(--ease-out-soft), box-shadow 0.35s var(--ease-out-soft);
}

.featured-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

#featured-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 24px auto;
}

/* ── FOOTER ── */
footer {
    background-color: #111;
    color: #eee;
    padding: 20px 0;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 40px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: -40px;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-nav li a {
    color: #eee;
    font-weight: 500;
}

.footer-nav li a:hover {
    color: #cbd5f5;
}

.footer-copy {
    font-style: italic;
    opacity: 0.7;
}

/* ── GALLERY ── */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.grid-sizer {
    width: calc(33.333% - 14px);
}

.image-container {
    width: calc(50% - 10px);
    position: relative;
}

.image-container img {
    width: 100%;
    display: block;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 4px;
    background-color: #fff;
}

.overlay {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #555;
}

.overlay p { margin: 0; }

@media (min-width: 600px) {
    .image-container .overlay {
        position: absolute;
        left: 10px;
        bottom: 10px;
        margin-top: 0;
        background: rgba(17, 17, 17, 0.7);
        color: #f9fafb;
        padding: 6px 10px;
        border-radius: 6px;
        font-size: 13px;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .image-container:hover .overlay {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .grid-sizer,
    .image-container {
        width: 100%;
    }
}

/* ── LIGHTBOX ── */
#lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

#lightbox-modal.show {
    display: flex;
}

#lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

/* ── ABOUT ── */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 560px;
    margin: 0 auto;
}

#pfp {
    display: block;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #ddd;
    object-fit: cover;
}

.about-text h1 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 16px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 12px;
}

.social-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #111;
    border: 1px solid #ddd;
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.social-buttons a:hover {
    background: #f1f5f9;
    border-color: #ccc;
}

.social-buttons svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ── DESKTOP ── */
@media (min-width: 768px) {
    header { display: none; }

    .layout {
        display: grid;
        grid-template-columns: 200px 1fr;
    }

    .sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 200px;
        height: 100vh;
        background: #f9fafb;
        border-right: 1px solid #ddd;
        padding-top: 40px;
    }

    .logo-desktop {
        display: block;
        padding: 0 24px 32px;
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.8rem;
        letter-spacing: 0.05em;
        border-bottom: 1px solid #ddd;
        margin-bottom: 16px;
    }

    .sidebar ul {
        list-style: none;
    }

    .sidebar ul li a {
        display: block;
        padding: 10px 24px;
        font-family: 'Jost', sans-serif;
        font-size: 0.75rem;
        font-weight: 400;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: #111;
        transition: transform 0.15s ease;
    }

    .sidebar ul li a:hover {
        transform: translateX(2px);
    }

    .sidebar ul li a.active {
        text-decoration: underline;
        text-decoration-color: #111;
        pointer-events: none;
    }

    main {
        grid-column: 2;
        padding: 48px 48px 0;
    }

    footer {
        margin-left: -48px;
        margin-right: -48px;
        margin-bottom: -48px;
    }

    #featured-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .image-container {
        width: calc(33.333% - 14px);
    }
}

@media (min-width: 1024px) {
    #featured-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    #featured-container {
        grid-template-columns: 1fr;
        width: 80%;
        margin: 24px auto;
    }

    .grid-sizer {
        width: 100%;
    }
}

/* ── ECCE HOMO GRID ── */
.ecceHomoGrid {
    justify-content: center;
    display: grid;
    gap: 0px;
    width: 90%;
    margin: auto;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(8, 1fr);
    justify-items: center;
    padding-bottom: 10px;
}

.pieceGrid {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border-width: thin;
    border-color: black;
    border-style: solid;
}

.pieceGrid img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
}

#A3 { grid-column: 3; grid-row: 1; }
#B1 { grid-column: 1; grid-row: 2; }
#B2 { grid-column: 2; grid-row: 2; }
#B3 { grid-column: 3; grid-row: 2; }
#B4 { grid-column: 4; grid-row: 2; }
#B5 { grid-column: 5; grid-row: 2; }
#C3 { grid-column: 3; grid-row: 3; }
#D3 { grid-column: 3; grid-row: 4; }
#E3 { grid-column: 3; grid-row: 5; }
#F3 { grid-column: 3; grid-row: 6; }
#G3 { grid-column: 3; grid-row: 7; }
#H3 { grid-column: 3; grid-row: 8; }

.image-container {
    margin-bottom: 20px;
}