.gallery-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Toggle All Button Styles */
.toggle-all-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    padding: 0 10px;
}

.toggle-all-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #6e8efb, #4a6cf7);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.toggle-all-button a {
    color: white;
}

.toggle-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    background: linear-gradient(135deg, #5d7ef9, #3959f7);
}

.toggle-all-button:active {
    transform: translateY(1px);
}

.toggle-all-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.gallery-sections-container {
    margin-top: 10px;
}

.gallery-section {
    margin-bottom: 2rem;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.gallery-section:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.gallery-title {
    font-size: 1.2rem;
    margin-bottom: 0;
    text-align: left;
    padding: 10px 0;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.gallery-title:hover {
    color: #4a6cf7;
}

.toggle-icon {
    font-size: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.gallery-title.active .toggle-icon {
    color: #4a6cf7;
}

.result-content {
    display: none;
    padding-top: 15px;
    animation: fadeIn 0.5s ease;
}

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

.result-content.active {
    display: block;
}

.result-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gallery-subsection {
    background-color: #fafafa;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.gallery-subsection:hover {
    transform: translateY(-2px);
    border-color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.result-images {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.start-frame,
.end-frame {
    flex: 1;
    position: relative;
    max-width: 30%;
}

.start-frame img,
.end-frame img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.start-frame img:hover,
.end-frame img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.video-container {
    flex: 2;
    max-width: 30%;
    margin-bottom: auto;
}

.video-container video {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.video-container video:hover {
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.frame-label {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .toggle-all-container {
        justify-content: center;
    }
    
    .result-images {
        flex-direction: column;
    }

    .start-frame,
    .end-frame,
    .video-container {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .frame-label {
        position: relative;
        bottom: 0;
        margin-top: 5px;
    }
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem ;
}