/* Media Page Styles - Prestige Driving Academy */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.media-page {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Container */
.media-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Branch Selector */
.branch-selector {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.selector-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.selector-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2a5298;
}

.branch-dropdown {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 250px;
}

.branch-dropdown:hover {
    border-color: #2a5298;
}

.branch-dropdown:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* Photo Grid */
.photo-grid-container {
    margin-bottom: 60px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.photo-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-thumbnail {
    transform: scale(1.05);
}

/* No Photos Message */
.no-photos {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.no-photos p {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
}

.no-photos p.instruction {
    font-size: 1rem;
    margin-top: 20px;
    color: #555;
    font-style: normal;
}

.no-photos pre {
    background: #f4f4f4;
    padding: 8px 15px;
    border-radius: 5px;
    margin: 15px auto;
    display: inline-block;
    text-align: left;
    font-size: 0.9rem;
}

.no-photos code {
    background: #f4f4f4;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: #ccc;
}

#lightbox-image {
    max-width: 100%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.lightbox-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .media-container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .media-header {
        padding: 40px 0;
        margin-bottom: 30px;
    }
    
    .branch-selector {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .selector-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .branch-dropdown {
        min-width: 100%;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .photo-thumbnail {
        height: 200px;
    }
    
    .lightbox-content {
        padding: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        padding: 0 10px;
    }
    
    .lightbox-btn {
        font-size: 20px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .photo-thumbnail {
        height: 180px;
    }
}

@media (max-width: 360px) {
    .media-container {
        padding: 0 10px;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .branch-selector {
        padding: 15px;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

