/* ── Body ── */
.travels-body {
    margin: 0;
    padding: 0;
    background: #000;
    overflow: hidden;
    height: 100vh;
    height: 100svh;
}

/* ── Header (fixed overlay) ── */
.travels-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    padding: 0.75rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
}

.travels-header h1 {
    margin: 0;
    color: white;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    pointer-events: none;
}

.travels-header .menu-toggle {
    pointer-events: all;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.travels-header .menu {
    pointer-events: all;
    background: rgba(30,30,30,0.92);
    border-radius: 0 0 8px 8px;
    width: 100%;
}

.travels-header .menu ul li a {
    color: rgba(255,255,255,0.9);
}

/* ── Scroll-snap container ── */
.gallery-snap {
    height: 100vh;
    height: 100svh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

/* ── Year section (full screen) ── */
.year-section {
    width: 100%;
    height: 100vh;
    height: 100svh;
    scroll-snap-align: start;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Photo wrapper ── */
.photo-wrap {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100svh;
    overflow: hidden;
}

/* ── Full-bleed photo ── */
.year-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.35s ease;
}

/* ── Bottom gradient overlay ── */
.photo-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* ── Year + info grouped at bottom ── */
.photo-bottom {
    position: absolute;
    bottom: 1.2rem;
    left: 1.5rem;
    right: 4rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

/* ── Year label ── */
.year-label {
    color: white;
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ── Photo info (month, flags, caption) ── */
.photo-info {
    color: rgba(255,255,255,0.92);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.photo-month-name {
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.85;
}

.photo-flags {
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    line-height: 1;
    letter-spacing: 0.06em;
}

.photo-caption-text {
    font-size: clamp(0.75rem, 1.4vw, 0.88rem);
    opacity: 0.8;
    font-style: italic;
    margin-top: 0.1rem;
}

.photo-flags:empty,
.photo-caption-text:empty,
.photo-month-name:empty {
    display: none;
}

/* ── Photo counter ── */
.photo-counter {
    position: absolute;
    bottom: 1.2rem;
    right: 1rem;
    z-index: 3;
    color: rgba(255,255,255,0.65);
    font-size: 0.78rem;
    pointer-events: none;
}

/* ── Arrow buttons (inside photo, on edges) ── */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: transparent;
    color: rgba(255,255,255,0.75);
    border: none;
    font-size: 2.8rem;
    line-height: 1;
    width: 2.4rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    user-select: none;
    transition: color 0.2s, background 0.2s;
}

.arrow:hover {
    color: #fff;
    background: rgba(0,0,0,0.18);
}

.arrow-prev { left: 0; }
.arrow-next { right: 0; }

/* ── Admin toggle button (fixed gear icon) ── */
.admin-toggle-btn {
    position: fixed;
    top: 0.75rem;
    right: 1rem;
    z-index: 200;
    background: rgba(0,0,0,0.35);
    color: white;
    border: none;
    font-size: 1.2rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.admin-toggle-btn:hover {
    background: rgba(0,0,0,0.6);
}

/* ── Admin panel (collapsible upload form) ── */
.admin-panel {
    display: none;
    position: fixed;
    top: 3.5rem;
    right: 1rem;
    z-index: 200;
    background: rgba(20,20,20,0.93);
    color: #ddd;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.admin-panel.active {
    display: block;
}

.admin-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ccc;
}

.upload-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.upload-form input[type="file"] {
    font-size: 0.82rem;
    flex: 1 1 100%;
    color: #ccc;
}

.upload-form input[type="text"] {
    flex: 1 1 100%;
    padding: 0.3rem 0.6rem;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #2a2a2a;
    color: #ddd;
}

.upload-form select,
.upload-form input[type="number"] {
    padding: 0.3rem 0.5rem;
    border: 1px solid #555;
    border-radius: 6px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #2a2a2a;
    color: #ddd;
}

.upload-form button {
    padding: 0.3rem 1rem;
    background: #c3c0b2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.88rem;
    transition: background 0.2s;
}

.upload-form button:hover {
    background: #a8a598;
}

.upload-msg {
    font-size: 0.82rem;
    margin: 0.3rem 0 0.5rem;
}

.upload-msg.success { color: #7ec99a; }
.upload-msg.error   { color: #e08080; }

/* ── Admin bar on photo (delete + edit) ── */
.photo-admin-bar {
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.delete-btn,
.edit-btn-gallery {
    background: rgba(0,0,0,0.45);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.25rem 0.6rem;
    font-size: 0.78rem;
    cursor: pointer;
    transition: background 0.2s;
}

.delete-btn:hover {
    background: rgba(180,50,50,0.8);
}

.edit-btn-gallery:hover {
    background: rgba(50,100,200,0.8);
}

/* ── Edit modal ── */
.edit-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.edit-modal.active {
    display: flex;
}

.edit-modal-box {
    background: #fff;
    border-radius: 10px;
    padding: 1.5rem 1.8rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
    min-width: 260px;
}

.edit-modal-box h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #555;
}

.edit-modal-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.edit-modal-form input[type="text"] {
    flex: 1 1 100%;
    padding: 0.35rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
}

.edit-modal-form select,
.edit-modal-form input[type="number"] {
    padding: 0.35rem 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
}

.edit-modal-form button[type="submit"] {
    padding: 0.35rem 1rem;
    background: #c3c0b2;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.edit-modal-form button[type="submit"]:hover {
    background: #a8a598;
}

.edit-modal-form button[type="button"] {
    padding: 0.35rem 0.7rem;
    background: transparent;
    color: #999;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
}

/* ── Lightbox ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
}

.lightbox p {
    color: rgba(255,255,255,0.8);
    margin-top: 0.75rem;
    font-size: 0.95rem;
    text-align: center;
    font-style: italic;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    user-select: none;
    opacity: 0.75;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* ── Gallery gate (non-member) ── */
.gallery-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 80vh;
    color: #aaa;
    font-size: 1rem;
    gap: 1rem;
}

.gallery-gate a {
    color: #c3c0b2;
    text-decoration: underline;
}
