* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: Arial, sans-serif; 
    background: rgb(0,55,103); 
    padding: 20px; 
    color: white; 
}

.gallery-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    background: white; 
    overflow: hidden; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.gallery-header { 
    background: rgb(227,27,35); 
    color: white; 
    padding: 20px; 
    text-align: center; 
    position: relative;
}

.navigation-buttons {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.nav-btn, .lang-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-btn:hover, .lang-btn:hover,
.lang-btn.active {
    background: rgba(255,255,255,0.3);
    border-color: white;
}

.gallery-header h1 { 
    font-size: 2em; 
    font-weight: bold; 
    font-family: Arial, sans-serif; 
    margin-top: 50px; 
}

.slide-container { 
    position: relative; 
    width: 100%; 
    height: 0; 
    padding-bottom: 75%; 
    overflow: hidden; 
    background: #000; 
}

.slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 0.5s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.slide.active { opacity: 1; }

.slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: contain; 
}

.controls { 
    padding: 12px 16px; 
    background: white; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    flex-wrap: wrap; 
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.btn { 
    background: white; 
    color: black; 
    border: 2px solid black; 
    padding: 6px 10px; 
    cursor: pointer; 
    font-size: 12px; 
    font-family: Arial, sans-serif; 
    white-space: nowrap;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover { 
    background: rgb(227,27,35); 
    color: white; 
    border-color: rgb(227,27,35); 
}

.slide-info { 
    color: black; 
    font-size: 14px; 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
    font-size: 12px;
}

.speed-control select {
    padding: 4px 6px;
    font-size: 12px;
    min-height: 32px;
}

.seekbar-container {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid #ddd;
}

.seekbar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    position: relative;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.2s ease;
}

.seekbar:hover {
    background: #d0d0d0;
}

.seekbar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgb(227,27,35);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.seekbar::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: rgb(227,27,35);
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.seekbar:hover::-webkit-slider-thumb {
    background: rgb(200,20,30);
    transform: scale(1.1);
}

.seekbar:hover::-moz-range-thumb {
    background: rgb(200,20,30);
    transform: scale(1.1);
}

.seekbar:active::-webkit-slider-thumb {
    background: rgb(180,15,25);
}

.seekbar:active::-moz-range-thumb {
    background: rgb(180,15,25);
}

.seekbar-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgb(227,27,35);
    border-radius: 4px;
    pointer-events: none;
}

.seekbar-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    font-family: Arial, sans-serif;
}

.fullscreen-container { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: black; 
    z-index: 9999; 
    visibility: hidden; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
}

.fullscreen-container.active { 
    visibility: visible; 
    opacity: 1; 
}

.fullscreen-slide-container { 
    width: 100%; 
    height: calc(100vh - 140px); 
    position: relative; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.fullscreen-slide-container .slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 0.5s ease; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.fullscreen-slide-container .slide.active { opacity: 1; }

.fullscreen-slide-container .slide img { 
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; 
}

.fullscreen-controls-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.8);
}

.fullscreen-controls { 
    padding: 20px; 
    padding-bottom: 10px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    flex-wrap: wrap; 
}

.fullscreen-controls .btn { 
    background: white; 
    color: black; 
    border: 2px solid white; 
}

.fullscreen-controls .btn:hover { 
    background: rgb(227,27,35); 
    color: white; 
    border-color: rgb(227,27,35); 
}

.fullscreen-controls .slide-info { color: white; }

.fullscreen-seekbar-container {
    padding: 15px 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.fullscreen-seekbar-container .seekbar {
    background: rgba(255,255,255,0.3);
}

.fullscreen-seekbar-container .seekbar-track {
    background: rgb(227,27,35);
}

.fullscreen-seekbar-container .seekbar-labels {
    color: rgba(255,255,255,0.8);
}

.exit-fullscreen { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: white; 
    color: black; 
    border: 2px solid white; 
    padding: 10px; 
    cursor: pointer; 
    font-size: 20px; 
    width: 40px; 
    height: 40px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 10000; 
    font-family: Arial, sans-serif; 
}

.exit-fullscreen:hover { 
    background: rgb(227,27,35); 
    color: white; 
    border-color: rgb(227,27,35); 
}

.contact-section { 
    background: transparent; 
    padding: 30px; 
    margin-top: 0; 
}

.contact-header { 
    text-align: center; 
    margin-bottom: 30px; 
}

.contact-header h2 { 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
    color: white; 
    font-size: 1.2em; 
    margin: 0; 
}

.contact-header .slide-context { 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
    color: rgb(227,27,35); 
    font-size: 1.1em; 
    margin: 10px 0 0 0; 
}

.contact-form { 
    max-width: 600px; 
    margin: 0 auto; 
}

.form-group { margin-bottom: 20px; }

.form-group label { 
    display: block; 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
    color: rgb(0,55,103); 
    margin-bottom: 8px; 
    font-size: 14px; 
}

.form-group input, .form-group textarea { 
    width: 100%; 
    padding: 12px; 
    border: 2px solid rgb(0,55,103); 
    font-family: Arial, sans-serif; 
    font-size: 14px; 
    background: white; 
    color: black; 
}

.form-group input:focus, .form-group textarea:focus { 
    outline: none; 
    border-color: rgb(227,27,35); 
}

.contact-submit { 
    background: white; 
    color: black; 
    border: 2px solid white; 
    padding: 12px 30px; 
    font-family: Arial, sans-serif; 
    font-weight: bold; 
    font-size: 16px; 
    cursor: pointer; 
    display: block; 
    margin: 20px auto 0; 
}

.contact-submit:hover { 
    background: rgb(227,27,35); 
    color: white; 
    border-color: rgb(227,27,35); 
}

@media (max-width: 768px) { 
    .slide-container { height: 300px; }
    
    .navigation-buttons, .language-switcher {
        position: static;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    .gallery-header {
        text-align: center;
        padding-top: 10px;
    }
}

