/* ═══════════════════════════════════════
   Theme: Warm Amber
   Swap in: <link rel="stylesheet" href="theme-warm-amber.css">
═══════════════════════════════════════ */

:root {
    --bg:         #2C2A25;
    --accent:     #D4A84B;
    --text:       rgba(255,255,255,0.90);
    --text-muted: rgba(255,255,255,0.70);
    --text-dim:   rgba(255,255,255,0.4);
    --border:     rgba(255,255,255,0.12);
    --mid:        #4A4535;
    --light:      #F0E0B8;
    --tan:        #8B6914;
}
#textbox {
    width: 400px;
    height: 400px;
    background: #519872;
}

#mainbutton {
    background-color: var(--accent);
    border: 2px solid white;
    color: #0d06ca;
    font-size: 18px;
    border-radius: 4px;
    -webkit-transition-duration: 0.4s;
    transition-duration: 0.4s;
    padding: 15px 32px;
    cursor: pointer;
}

#mainbutton:hover {
    border: 2px solid white;
    background-color: #5c22b9;
    color: rgb(131, 204, 233);
}

body {
    background: var(--bg);
    font-family: 'EB Garamond', serif;
    color: var(--text);
}

p {
    padding: 10px;
    color: var(--text-muted);
    font-size: 22px;
    width: 70%;
    margin: 0 auto;
    display: block;
}

#paragraphtest {
    color: var(--text-muted);
    font-size: 20px;
    width: 50%;
    margin: 0px auto 0;
    display: block;
    text-align: center;
}

h1 {
    font-weight: 400 !important;
}

#title {
    text-align: center;
    color: var(--accent);
    font-size: 36px;
    font-family: 'EB Garamond', serif;
    font-style: normal;
    font-weight: 300;
    width: 100%;
    margin: 0;
    display: block;
    padding: 2rem 0 0;
}

h2 {
    text-align: center;
    color: rgba(255,255,255,0.90);
    font-size: 28px;
    font-weight: 400;
    font-family: 'EB Garamond', serif;
    width: 50%;
    margin: -6px auto 0;
    display: block;
    letter-spacing: 0.03em;
}

p {
    margin: 10px;
}

/* ── Header ── */
#header {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 0;
}

/* ── Nav ── */
nav {
    max-width: 1100px;
    margin: 0 auto 2rem;
    padding: 20px 2rem 0;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    border-bottom: 0.5px solid var(--border);
    width: 100%;
}

nav ul li {
    display: block;
    margin: 0;
}

nav ul li a {
    display: block;
    font-size: 16px;
    font-family: 'Raleway', sans-serif;
    color: var(--text-dim);
    padding: 0 20px 14px;
    text-decoration: none;
    letter-spacing: 0.03em;
    border-bottom: 2px solid transparent;
    margin-bottom: -0.5px;
    transition: color 0.4s ease, border-color 0.4s ease;
}

nav ul li:first-child a {
    padding-left: 0;
}

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

nav ul li.active a,
nav ul li a.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

@media (max-width: 600px) {
    #title {
        width: 90%;
        margin: 0 auto;
        padding-top: 1rem;
        font-size: 27px;
    }
    h2 {
        width: 90%;
        font-size: 22px;
    }
    #paragraphtest {
        width: 90%;
        font-size: 17px;
    }
}

/* ═══════════════════════════════════════
   Gallery styles
═══════════════════════════════════════ */

.page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.gallery-header {
    padding: 1.5rem 0 1.5rem;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 0.5px solid var(--border);
    margin-bottom: 1.5rem;
}

.gallery-title {
    font-family: 'EB Garamond', serif;
    font-size: 28px;
    font-weight: 400;
    font-style: normal;
    color: var(--text);
}

.gallery-count {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.masonry-grid {
    columns: 3;
    column-gap: 12px;
}

@media (max-width: 760px) { .masonry-grid { columns: 2; } }
@media (max-width: 480px) { .masonry-grid { columns: 1; } }

.masonry-item {
    break-inside: avoid;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.masonry-item img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.masonry-item img.loaded {
    opacity: 1;
}

.masonry-item:hover img {
    filter: grayscale(100%);
    transform: scale(1.04);
}

.item-caption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 2.5rem 1rem 0.85rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.48));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.masonry-item:hover .item-caption { opacity: 1; }
.masonry-item.no-caption .item-caption { display: none; }

.item-caption span {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255,255,255,0.92);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    touch-action: pan-y;
}

.lightbox.open { display: flex; }

.lightbox-inner {
    position: relative;
    max-width: 900px;
    width: 100%;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.lightbox-inner.swipe-left  { transform: translateX(-60px); opacity: 0; }
.lightbox-inner.swipe-right { transform: translateX(60px);  opacity: 0; }

.lightbox img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 3px;
    max-height: 82vh;
    object-fit: contain;
    -webkit-user-drag: none;
    pointer-events: none;
}

.lightbox-caption {
    margin-top: 0.75rem;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    min-height: 1.2em;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: -2.75rem; right: 0;
    background: none; border: none;
    color: rgba(255,255,255,0.65);
    font-size: 28px; cursor: pointer;
    line-height: 1; padding: 4px;
    transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }

.lightbox-nav {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 0.5px solid rgba(255,255,255,0.18);
    border-radius: 2px; color: #fff;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 22px;
    transition: background 0.2s;
    user-select: none;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.16); }
.lightbox-nav.prev { left: -4rem; }
.lightbox-nav.next { right: -4rem; }

@media (max-width: 600px) { .lightbox-nav { display: none; } }

.swipe-hint {
    display: none;
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    animation: fadeHint 2.5s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

@media (max-width: 600px) { .swipe-hint { display: block; } }

@keyframes fadeHint {
    0%   { opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; }
}
