/* Styles specific to the phone (mobile) version of the buckling site */

/* Base typography scaling */
body {
    font-size: 16px;
}

/* Hero section styling */
header.hero {
    background: var(--mastan-darker);
    text-align: center;
    padding: 2rem 1rem;
}
/* Unify hero heading size and styling with the desktop view */
header.hero h1 {
    font-size: 2.2rem;
    color: var(--mastan-text);
    margin-bottom: 0.5rem;
}
header.hero p {
    font-size: 1rem;
    color: var(--mastan-text-muted);
}

/* Hamburger menu button */
#menuToggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background: none;
    border: none;
    color: var(--mastan-green);
    font-size: 2rem;
    z-index: 1100;
    cursor: pointer;
}

/* Sliding menu */
nav#menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    padding: 4rem 2rem;
    z-index: 1000;
    overflow-y: auto;
}
nav#menu a {
    display: block;
    margin: 1rem 0;
    font-size: 1.2rem;
    color: #ffffff;
    text-decoration: none;
}
nav#menu a:hover {
    color: var(--mastan-green);
}

/* Filter buttons used on gallery pages */
.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid var(--mastan-border);
    background: var(--mastan-card);
    color: var(--mastan-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.filter-btn.active {
    background: var(--mastan-green);
    color: #000000;
}

/* Container for the model cards on the gallery page */
.gallery-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Photo grid for the photos page */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 740.4px);
    gap: 0.5rem;
    justify-content: center;
    padding: 0 1rem;
}
.photo-card {
    background: var(--mastan-card);
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    width: 740.4px;
    height: auto;
}
.photo-card img {
    width: 740.4px !important;
    height: 742.28px !important;
    object-fit: cover !important;
    display: block !important;
}
.photo-card h3 {
    padding: 0.5rem;
    font-size: 0.9rem;
    color: var(--mastan-text);
    margin: 0;
}

/* Search input styling */
.search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--mastan-border);
    background: var(--mastan-dark);
    color: var(--mastan-text);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Mobile gallery overrides - remove overlays and fix thumbnail sizing */
.card-thumbnail-overlay {
    display: none !important;
}

.card-overlay {
    display: none !important;
}

.card-thumbnail {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 8px 8px 0 0 !important;
    background-color: #2a2a2a !important;
    display: block !important;
    transition: none !important;
}

.card-thumbnail-container {
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px 8px 0 0 !important;
    background-color: #2a2a2a !important;
    width: 100% !important;
    /* Standardized height to match all views */
    height: 200px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Disable all hover effects */
.model-card:hover .card-thumbnail-overlay {
    opacity: 0 !important;
}

.model-card:hover .card-overlay {
    opacity: 0 !important;
}

.model-card:hover .card-thumbnail {
    transform: none !important;
}

/*
 * Center the filter buttons on the gallery page.
 * Without this rule the filter button group aligns to the left by default.
 */
.filter-buttons {
    justify-content: center;
}

/* Responsive adjustments for photo grid */
@media (max-width: 800px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    .photo-card {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    .photo-card img {
        width: 100% !important;
        height: auto !important;
        max-height: 600px !important;
        aspect-ratio: 740.4 / 742.28 !important;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        padding: 0 0.25rem;
    }
    .photo-card {
        max-width: 400px;
    }
    .photo-card img {
        max-height: 400px !important;
    }
    .photo-card h3 {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
}