/* Photo Tour Specific Styles */

.photo-tour-page {
    background-color: #0b0b0b;
    color: #ffffff;
}

/* --- Tour Header --- */
.tour-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tour-header.scrolled {
    background: var(--color-primary);
    backdrop-filter: blur(10px);
    height: 60px;
    box-shadow: var(--shadow-md);
}

.tour-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center everything */
}

.tour-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tour-header .logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff !important;
}

.tour-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 1000px;
    /* Limit width for better readability */
}

.tour-actions {
    position: absolute;
    right: 2rem;
}

.tour-tabs {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    padding: 0 1rem;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.tour-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera */
}

.tour-tab {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding: 0.5rem 0;
}

.tour-tab:hover,
.tour-tab.active {
    color: #ffffff;
}

.tour-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
}

/* --- Cover Section --- */
.tour-cover {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
}

.cover-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/reception/reception-entrance.jpg') center/cover no-repeat;
    z-index: -1;
}

.cover-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.cover-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: bounce 2s infinite;
}

.hint-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, #fff, transparent);
}

/* --- Gallery Section --- */
.tour-gallery-section {
    padding: 4rem 1rem;
    min-height: 50vh;
}

/* Masonry Layout with CSS Columns */
.gallery-grid {
    column-count: 3;
    column-gap: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 992px) {
    .tour-header-container {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .tour-header {
        height: auto;
    }

    .tour-header.scrolled {
        height: auto;
    }

    .tour-brand {
        width: 100%;
        justify-content: center;
    }

    .tour-nav {
        width: 100%;
        order: 3;
    }

    .tour-actions {
        order: 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        column-count: 1;
    }

    .tour-header-container {
        padding: 0.5rem;
    }

    .tour-tabs {
        gap: 1rem;
    }

    .tour-tab {
        font-size: 0.75rem;
    }
}

.gallery-item-wrapper {
    display: inline-block;
    width: 100%;
    margin-bottom: 15px;
    break-inside: avoid;
    animation: fadeInUp 0.6s ease forwards;
}

.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: #1a1a1a;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-overlay span {
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    border: 1px solid #fff;
    padding: 0.5rem 1rem;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

/* --- Lightbox --- */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: #fff;
    font-size: 1.1rem;
}

/* Filtering animations */
.gallery-item-wrapper.hidden {
    display: none;
}

.exit-tour-btn {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.exit-tour-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(197, 36, 43, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}