/* Gallery Section Styles */
.gallery {
    background: #1a1a1a;
    padding: 60px 0;
}

.gallery h2 {
    color: white;
    font-size: 1.3em;
    margin-bottom: 2rem;
}

/* Column Styles */
.image-gallery-column,
.video-gallery-column {
    background: #3d3d3d;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 500px;
}

/* Title Section Styles */
.title-section {
    background: linear-gradient(45deg, #d0d0d0 0%, #b8b8b8 100%);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ff6b35;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.title-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.title-section h5 {
    color: #ff6b35;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Active Title Section (when content is displayed) */
.title-section.active {
    background: linear-gradient(45deg, #ff6b35 0%, #ff8c5a 100%);
    border: 2px solid #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.title-section.active h5 {
    color: white;
    font-weight: 700;
}

/* List Styles with Hidden Scrollbars */
.image-list,
.video-list {
    max-height: 380px;
    overflow-y: auto;
    /* Hide scrollbar for all browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

/* Hide scrollbar for webkit browsers */
.image-list::-webkit-scrollbar,
.video-list::-webkit-scrollbar {
    display: none;
}

/* Thumbnail Styles */
.image-item,
.video-item {
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    position: relative;
}

.image-item:hover,
.video-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.image-item img,
.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Play Overlay */
.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-item:hover .play-overlay {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Main Display Column */
.main-display-column {
    position: relative;
}

.main-media-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Image Display */
.image-display {
    display: block;
    width: 100%;
    height: 100%;
}

.main-image-item {
    width: 100%;
    height: 100%;
    position: relative;
}

.main-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Video Display */
.video-display {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.video-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container video {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Navigation Arrows */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow-left {
    left: 15px;
}

.nav-arrow-right {
    right: 15px;
}

/* Invisible click areas for left and right sides */
.nav-arrow::before {
    content: '';
    position: absolute;
    top: -250px;
    bottom: -250px;
    width: 100px;
    z-index: -1;
}

.nav-arrow-left::before {
    left: -50px;
}

.nav-arrow-right::before {
    right: -50px;
}

.nav-arrow i {
    font-size: 18px;
}

/* Active States */
.image-item.active,
.video-item.active {
    border-color: #007bff;
}

.image-item.active {
    border-color: #007bff;
}

.video-item.active {
    border-color: #28a745;
}

/* Responsive Design */
@media (max-width: 992px) {
    .image-gallery-column,
    .video-gallery-column {
        height: 270px;
        min-height: 270px;
        margin-bottom: 20px;
        overflow: hidden;
    }
    
    .main-media-container {
        height: 400px;
        margin-bottom: 20px;
    }
    
    .image-item,
    .video-item {
        height: 100px;
    }
    
    .nav-arrow {
        width: 35px;
        height: 35px;
    }
    
    .nav-arrow i {
        font-size: 16px;
    }
}

/* Responsive Layout - Side by Side Columns */
@media (max-width: 992px) {
    .gallery .row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .gallery .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0;
    }
    
    .gallery .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
        order: 3;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .gallery {
        padding: 40px 0;
    }
    
    .gallery h2 {
        font-size: 1.1em;
        margin-bottom: 1.5rem;
    }
    
    .image-gallery-column,
    .video-gallery-column {
        height: 270px;
        min-height: 270px;
        padding: 15px;
        margin-bottom: 15px;
        overflow: hidden;
    }
    
    .main-media-container {
        height: 300px;
        margin-bottom: 15px;
    }
    
    .image-item,
    .video-item {
        height: 80px;
        margin-bottom: 8px;
    }
    
    .nav-arrow {
        width: 30px;
        height: 30px;
    }
    
    .nav-arrow i {
        font-size: 14px;
    }
    
    .title-section {
        padding: 10px;
        margin-bottom: 15px;
    }
    
    .title-section h5 {
        font-size: 14px;
    }
    
    .image-list,
    .video-list {
        max-height: 250px;
    }
    
    /* Responsive Layout - Side by Side Columns */
    .gallery .row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .gallery .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0;
    }
    
    .gallery .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
        order: 3;
        margin-top: 20px;
    }
}

@media (max-width: 576px) {
    .gallery {
        padding: 30px 0;
    }
    
    .gallery h2 {
        font-size: 1em;
        margin-bottom: 1rem;
    }
    
    .image-gallery-column,
    .video-gallery-column {
        height: 270px;
        min-height: 270px;
        padding: 10px;
        margin-bottom: 10px;
        overflow: hidden;
    }
    
    .main-media-container {
        height: 250px;
    }
    
    .image-item,
    .video-item {
        height: 60px;
        margin-bottom: 5px;
    }
    
    .nav-arrow {
        width: 25px;
        height: 25px;
    }
    
    .nav-arrow i {
        font-size: 12px;
    }
    
    .title-section {
        padding: 8px;
        margin-bottom: 10px;
    }
    
    .title-section h5 {
        font-size: 12px;
    }
    
    .image-list,
    .video-list {
        max-height: 200px;
    }
    
    /* Responsive Layout - Side by Side Columns */
    .gallery .row {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .gallery .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0;
    }
    
    .gallery .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
        order: 3;
        margin-top: 20px;
    }
}
