/* Gallery page styles */

/* Base styles */
html {
    scroll-behavior: smooth;
}

html, body {
    background-color: #ffffff;
    color: #000000;
    font-family: 'Noto Sans', Arial, Helvetica, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
}

/* Typography */
.page-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-top: 30px;
    color: #333;
}

.page-subtitle {
    font-size: 18px;
    text-align: center;
    margin-top: 10px;
    color: #666;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 25px 0;
    padding: 12px 24px;
    background: #f5f5f5;
    border-radius: 25px;
    text-decoration: none;
    color: #666;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-link:hover {
    background: #e8e8e8;
    color: #333;
}

.back-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* Page fade-in animation */
body {
    animation: fadeIn 0.4s ease-out;
}

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

/* Video container */
.gallery-video-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #fafafa;
    border-radius: 20px;
    overflow-anchor: none;
}

.gallery-video-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.gallery-video-wrapper {
    position: relative;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow-anchor: none;
}

.gallery-video-wrapper video {
    width: 100%;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-video-wrapper video.slide-out-left {
    transform: translateX(-100%);
}

.gallery-video-wrapper video.slide-out-right {
    transform: translateX(100%);
}

.gallery-video-wrapper video.slide-in-left {
    transform: translateX(-100%);
    transition: none;
}

.gallery-video-wrapper video.slide-in-right {
    transform: translateX(100%);
    transition: none;
}

/* Carousel controls */
.gallery-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 25px;
}

.gallery-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #555;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 18px;
}

.gallery-nav-btn:hover {
    background: #333;
    transform: scale(1.08);
}

.gallery-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.gallery-counter {
    font-size: 18px;
    min-width: 100px;
}

.gallery-counter .current {
    font-weight: bold;
    font-size: 24px;
}

/* Progress bar */
.gallery-progress-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 20px;
    overflow: hidden;
}

.gallery-progress-fill {
    height: 100%;
    background: #555;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Thumbnail grid */
.gallery-thumbnail-section {
    margin-top: 20px;
}

.gallery-thumbnail-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
    padding: 10px 5px;
    max-height: 200px;
    overflow-y: auto;
}

.gallery-thumbnail-strip::-webkit-scrollbar {
    width: 6px;
}

.gallery-thumbnail-strip::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.gallery-thumbnail-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.gallery-thumbnail-strip::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.gallery-thumbnail-item {
    padding: 8px 14px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-thumbnail-item:hover {
    border-color: #999;
    color: #333;
}

.gallery-thumbnail-item.active {
    border-color: #333;
    color: #000;
    background: #f5f5f5;
    font-weight: bold;
}

/* Keyboard hint */
.gallery-keyboard-hint {
    margin-top: 15px;
    color: #999;
    font-size: 13px;
}

.gallery-keyboard-hint kbd {
    display: inline-block;
    padding: 3px 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    margin: 0 3px;
}

