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

body {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    background-color: #0d1b2a;
    color: #e5e5e5;
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
#navigation {
    position: sticky;
    top: 0;
    background-color: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1b3a52;
    z-index: 40;
    padding: 1rem 0;
}

#navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    font-size: 1rem;
    font-weight: normal;
    color: #9db3c6;
    cursor: pointer;
    transition: color 0.3s;
    letter-spacing: 0.5px;
}

.site-title:hover {
    color: #7a9fb8;
}

.desktop-nav {
    display: none;
    list-style: none;
    gap: 2rem;
}

.desktop-nav button {
    background: none;
    border: none;
    color: #e5e5e5;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s;
    text-transform: lowercase;
}

.desktop-nav button:hover {
    color: #7a9fb8;
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: #7a9fb8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #1b3a52;
    background-color: #162638;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
}

.mobile-menu button {
    background: none;
    border: none;
    color: #e5e5e5;
    font-size: 1.125rem;
    font-weight: normal;
    cursor: pointer;
    width: 100%;
    text-align: right;
    padding: 0.5rem 0;
    transition: color 0.3s;
    text-transform: lowercase;
}

.mobile-menu button:hover {
    color: #7a9fb8;
}

/* Desktop Navigation Display */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .site-title {
        font-size: 1.875rem;
    }
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    font-size: 2rem;
    font-weight: bold;
    color: #7a9fb8;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-description {
    text-align: center;
    color: #999;
    margin-bottom: 3rem;
}

/* Bio Section */
.bio-content {
    max-width: 800px;
    margin: 0 auto;
}

.bio-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: #ccc;
}

/* Photo Gallery */
.photo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.photo-item {
    cursor: pointer;
    transition: transform 0.3s;
}

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

.photo-item img {
    width: 100%;
    height: 300px;
    display: block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    object-fit: cover;
    object-position: center;
}

/* Discography */
.discography-section {
    margin-bottom: 4rem;
}

.discography-section:first-of-type {
    padding-top: 2rem;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #7a9fb8;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
}

.album-grid {
    display: grid;
    gap: 1.5rem;
    width: 100%;
}

.leader-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .leader-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media (min-width: 1024px) {
    .leader-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 900px;
    }
}

@media (min-width: 1280px) {
    .leader-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1200px;
    }
}

.sideman-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 450px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .sideman-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 600px;
    }
}

@media (min-width: 768px) {
    .sideman-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        max-width: 800px;
    }
}

@media (min-width: 1024px) {
    .sideman-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        max-width: 900px;
    }
}

@media (min-width: 1280px) {
    .sideman-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        max-width: 1200px;
    }
}

.album-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s;
    display: block;
}

.album-card:hover {
    transform: translateY(-5px);
}

.album-image-container {
    background-color: #1b3a52;
    overflow: hidden;
}

.album-image-container img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    transition: opacity 0.3s;
}

.sideman-grid .album-card {
    display: flex;
    flex-direction: column;
}

.sideman-grid .album-image-container {
    background-color: #0d1b2a;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.sideman-grid .album-image-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: unset !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

.album-card:hover .album-image-container img {
    opacity: 0.8;
}

.album-info {
    padding: 1rem;
}

.leader-grid .album-info h4 {
    font-weight: 600;
    color: #e5e5e5;
    margin-bottom: 0.25rem;
}

.leader-grid .album-info p {
    font-size: 0.875rem;
    color: #999;
}

.sideman-grid .album-info {
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .sideman-grid .album-info {
        padding: 0.75rem;
    }
}

.sideman-grid .album-info h5 {
    font-size: 0.75rem;
    font-weight: 500;
    color: #e5e5e5;
    margin-bottom: 0.25rem;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

@media (min-width: 768px) {
    .sideman-grid .album-info h5 {
        font-size: 0.875rem;
    }
}

.sideman-grid .album-info p {
    font-size: 0.75rem;
    color: #999;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Contact Section */
#contact {
    padding-bottom: clamp(20rem, 50vh, 30rem);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.contact-description {
    font-size: 1.125rem;
    color: #999;
    margin-bottom: 2rem;
}

.contact-card {
    background-color: #162638;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
    border: 1px solid #1b3a52;
}

.contact-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.contact-label .icon {
    color: #7a9fb8;
    font-size: 1.25rem;
}

.contact-label span:last-child {
    font-size: 1.125rem;
    font-weight: 500;
}

.email-link {
    display: inline-block;
    font-size: 1.125rem;
    color: #7a9fb8;
    text-decoration: none;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    font-weight: bold;
    transition: color 0.3s;
}

.email-link:hover {
    color: #9db3c6;
}

/* Bio Expand/Collapse */
.bio-expanded {
    display: none;
}

.bio-expanded.active {
    display: block;
}

.bio-toggle {
    display: block;
    margin: 2rem auto 0;
    padding: 0.75rem 2rem;
    background-color: #7a9fb8;
    color: #0d1b2a;
    border: none;
    border-radius: 4px;
    font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.bio-toggle:hover {
    background-color: #9db3c6;
    transform: translateY(-2px);
}
