/* Photo Tour */

.photo-tour-page {
    background-color: #0d0d0d;
    color: #ffffff;
}

.photo-tour-page .header {
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(10px);
}

/* --- Cover --- */
.tour-cover {
    height: 92vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.cover-bg {
    position: absolute;
    inset: -2%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.04);
}

.cover-bg.cover-pulse {
    animation: coverKen 5.2s ease-in-out forwards;
}

@keyframes coverKen {
    from {
        transform: scale(1.04);
        opacity: 0.86;
    }

    to {
        transform: scale(1.12);
        opacity: 1;
    }
}

.cover-content {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    max-width: 42rem;
}

.cover-eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.cover-title {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    margin: 0 0 0.55rem;
    color: #ffffff;
    line-height: 1.05;
}

.cover-subtitle {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.84);
}

.scroll-hint {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    cursor: pointer;
    background: none;
    border: 0;
    animation: bounce 2.2s infinite;
    z-index: 1;
}

.hint-arrow {
    width: 1px;
    height: 36px;
    background: linear-gradient(to bottom, #fff, transparent);
}

/* --- Toolbar / filters --- */
.tour-toolbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(13, 13, 13, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    padding: 0.85rem 0 0.95rem;
}

.tour-toolbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    gap: 0.75rem;
}

.tour-toolbar-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.tour-toolbar-label {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.tour-count {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.tour-tabs {
    display: flex;
    gap: 0.55rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.15rem 0 0.35rem;
    margin: 0;
}

.tour-tabs::-webkit-scrollbar {
    display: none;
}

.tour-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tour-tab em {
    font-style: normal;
    font-size: 0.7rem;
    opacity: 0.7;
}

.tour-tab:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
}

.tour-tab.active {
    color: #fff;
    background: rgba(197, 36, 43, 0.92);
    border-color: rgba(197, 36, 43, 0.92);
    transform: translateY(-1px);
}

/* --- Gallery --- */
.tour-gallery-section {
    padding: 1.75rem 1rem 4.5rem;
    min-height: 50vh;
}

.gallery-grid {
    column-count: 3;
    column-gap: 14px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 700px) {
    .gallery-grid {
        column-count: 1;
    }
}

.gallery-item-wrapper {
    display: inline-block;
    width: 100%;
    margin-bottom: 14px;
    break-inside: avoid;
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--i, 0) * 35ms);
}

.gallery-item-wrapper.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
    text-align: left;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.4s ease;
    filter: brightness(0.96);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
    transform: scale(1.055);
    filter: brightness(1.05);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.72));
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-overlay span {
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 0.4rem 0.7rem;
    background: rgba(0, 0, 0, 0.25);
}

.gallery-item:hover .item-overlay,
.gallery-item:focus-visible .item-overlay {
    opacity: 1;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem 1rem;
}

.lightbox.active {
    display: flex;
    animation: lbFade 0.22s ease;
}

@keyframes lbFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lightbox-img {
    max-width: min(92vw, 1200px);
    max-height: 78vh;
    object-fit: contain;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.lightbox-img.lb-swap {
    animation: lbSwap 0.28s ease;
}

@keyframes lbSwap {
    from {
        opacity: 0.35;
        transform: scale(0.985);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    font-size: 1.6rem;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 999px;
    font-size: 1.4rem;
}

.lightbox-nav:hover,
.lightbox-close:hover {
    background: rgba(197, 36, 43, 0.9);
    border-color: rgba(197, 36, 43, 0.9);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-caption {
    margin-top: 1.15rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    text-align: center;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-8px);
    }

    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cover-bg.cover-pulse,
    .scroll-hint,
    .lightbox.active,
    .lightbox-img.lb-swap,
    .gallery-item-wrapper {
        animation: none !important;
        transition: none !important;
    }

    .gallery-item-wrapper {
        opacity: 1;
        transform: none;
    }
}
