/* ==========================================================================
   FACTORY TOUR DESIGN SYSTEM BASE
   ========================================================================== */
.tour-wrapper {
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    color: #111111;
    padding: 60px 0 100px 0;
}

/* Core Hero Banner Style */
.tour-hero-header {
    max-width: 800px;
    margin: 0 auto 80px auto;
    text-align: center;
    padding: 0 20px;
}

.tour-hero-header h1 {
    font-size: 36px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111111;
    margin-bottom: 15px;
}

.tour-hero-header p {
    font-size: 15px;
    color: #666666;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

/* ==========================================================================
   EDITORIAL ASYMMETRIC GRID SYSTEM
   ========================================================================== */
.tour-section {
    margin-bottom: 120px;
    position: relative;
    padding: 0 20px;
    /* Performance hint to stop layout shifts while lazy loading images */
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
}

/* Segment Modern Headers */
.tour-section-title {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #161616;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tour-section-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: #eef0f2;
}

.tour-step-num {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    background-color: #c8232c; /* Alok Red */
    padding: 4px 10px;
    border-radius: 2px;
    letter-spacing: 0;
}

/* ==========================================================================
   MODERN RESPONSIVE MASONRY GRID
   ========================================================================== */

.tour-grid{
    column-count:30;
    column-gap:22px;
}

.tour-media-frame{
    display:inline-block;
    width:100%;
    margin:0 0 22px;
    overflow:hidden;
    border-radius:14px;
    background:#fff;
    border:1px solid #ececec;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
    break-inside:avoid;
    transition:.35s;
}
.tour-media-frame:hover{
    transform:translateY(-6px);
    box-shadow:0 18px 40px rgba(0,0,0,.15);
}
.tour-media-frame img{
    width:100%;
    height:auto;
    display:block;
    transition:.45s;
}
.tour-media-frame:hover img{
    transform:scale(1.05);
}

/* Caption */

.tour-frame-caption{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    padding:18px;
    background:linear-gradient(
        to top,
        rgba(0,0,0,.7),
        rgba(0,0,0,0)
    );
    color:#fff;
    opacity:0;
    transition:.3s;
}
.tour-media-frame:hover .tour-frame-caption{
    opacity:1;
}

/* ==========================================================================
   REVEAL ANIMATION
   ========================================================================== */
.reveal-item{
    opacity:0;
    transform:translateY(30px);
    transition:.7s;
}
.reveal-item.revealed{
    opacity:1;
    transform:none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media(max-width:1200px){
    .tour-grid{
        column-count:3;
    }
}

@media(max-width:992px){
    .tour-grid{
        column-count:2;
    }
}

@media(max-width:576px){
    .tour-grid{
        column-count:1;
    }
}