/* Mecum Image Gallery Slideshow Styles */

.mecum-gallery-section {
    margin-top: 40px;
    margin-bottom: 40px;
}

.mecum-red {
    color: #e31e24;
}

/* Slideshow Container */
.gallery-slideshow {
    max-width: 1000px;
    margin: 0 auto;
}

.slideshow-container {
    position: relative;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.slide-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Slide Content */
.slide-content {
    flex: 1;
    position: relative;
}

.slide-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-link {
    display: block;
}

/* Slide Caption */
.slide-caption {
    padding: 25px 30px;
    background: #fff;
    border-top: 4px solid #ffc629; /* Mecum gold */
    min-height: 100px;
}

.slide-caption p {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.slide-caption-link {
    display: inline-block;
    color: #e31e24; /* Mecum red */
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.slide-caption-link:hover {
    color: #b01419;
    text-decoration: none;
    transform: translateX(5px);
}

.slide-caption-link i {
    margin-left: 5px;
}

/* Navigation Buttons */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.slide-nav:hover {
    background: rgba(227, 30, 36, 0.9); /* Mecum red */
    transform: translateY(-50%) scale(1.1);
}

.slide-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slide-nav.prev {
    left: 20px;
}

.slide-nav.next {
    right: 20px;
}

/* Slide Counter */
.slide-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffc629;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

/* Dot Navigation */
.slide-dots {
    text-align: center;
    padding: 20px 0;
    background: #f8f8f8;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.dot:hover {
    border-color: #5bc4bf;
    transform: scale(1.2);
}

.dot.active {
    background: #5bc4bf; /* Teal color */
    border-color: #5bc4bf;
    width: 14px;
    height: 14px;
}

/* Thumbnail Navigation */
.slide-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 10px;
    background: #f8f8f8;
    flex-wrap: wrap;
    margin-top: -1px;
}

.thumbnail-btn {
    border: 3px solid transparent;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail-btn img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.thumbnail-btn:hover {
    border-color: #ffc629; /* Mecum gold */
}

.thumbnail-btn:hover img {
    transform: scale(1.1);
}

.thumbnail-btn.active {
    border-color: #5bc4bf; /* Teal color */
    box-shadow: 0 2px 8px rgba(91, 196, 191, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .slide-image {
        height: 400px;
    }
    
    .slide-nav {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .slide-nav.prev {
        left: 15px;
    }
    
    .slide-nav.next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .slide-image {
        height: 350px;
    }
    
    .slide-caption {
        padding: 20px;
        min-height: auto;
    }
    
    .slide-caption p {
        font-size: 15px;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .slide-nav.prev {
        left: 10px;
    }
    
    .slide-nav.next {
        right: 10px;
    }
    
    .slide-counter {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .thumbnail-btn img {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .slide-image {
        height: 280px;
    }
    
    .slide-caption {
        padding: 15px;
    }
    
    .slide-caption p {
        font-size: 14px;
    }
    
    .slide-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .slide-thumbnails {
        gap: 8px;
        padding: 15px 8px;
    }
    
    .thumbnail-btn img {
        width: 50px;
        height: 38px;
    }
}

/* Animation for slide transitions */
.slide-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Keyboard navigation hint */
.slideshow-container:focus-within {
    outline: 3px solid #ffc629;
    outline-offset: 2px;
}
