/* Main Layout */
.about-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0.5rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 0.1rem;
    height: 100vh; /* Make container take full viewport height */
    overflow: hidden; /* Prevent double scrollbars */
}

/* Sidebar Styles */
.about-sidebar {
    background: #f8f8f8;
    padding: 0.9rem;
    border-radius: 1px;
    position: relative;
    height: 100%; /* Take full height of grid cell */
    overflow-y: auto; /* Allow scrolling if content exceeds height */
}

.profile-section {
    text-align: center;
}

.profile-image {
    object-fit: cover;
    width: 200px;
    height: 200px;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #fff;
}

.profile-info {
    list-style: none;
    padding: 1rem;
    text-align: left;
}

.profile-info ul {
       padding: 0;
        margin: 0;
}

.profile-info li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    
}

/* Main Content Styles */
.about-main {
    background: #fff;
    padding: 1.2rem;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%; /* Take full height of grid cell */
    overflow-y: auto; /* Allow scrolling */
    display: flex;
    flex-direction: column;
}

.intro-section {
    margin-bottom: 2rem;
    line-height: 1.6;
}
.intro-section strong{
    color: #bf1e1e;
    font-size: 3rem;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.2rem;
}

.tab-button {
    font-size: 1.2rem;
    padding: 0.5rem 3rem;
    background: #f0f0f0;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button:hover {
    background: #e0e0e0;
}

.tab-button.active {
    background: #333;
    color: white;
}

/* Tab Content */
.tab-content {
    min-height: 300px;
}

.tab-panel {
    display: none;
    padding: 1rem 0;
}

.tab-panel.active {
    display: block;
}

/* Simp Gallery */
.simp-gallery {
   display: flex;
    flex-wrap: wrap; /* Allow items to wrap to new rows */
    gap: 0.8rem; /* Space between items */
    padding: 0.4rem 0;
    justify-content: flex-start; /* Align items to start */
    align-items: flex-start;
    overflow: visible; /* Remove scrolling */
    height: auto; /* Remove fixed height */
}

.simp-gallery figure {
    margin: 0;
    text-align: center;
    flex: 0 0 calc(25% - 0.8rem); /* 4 items per row accounting for gap */
    max-width: calc(25% - 0.8rem);
}

.simp-gallery img {
      width: 100%; /* Fill container */
    height: 10rem;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s ease;
}


.simp-gallery figcaption {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    white-space: normal; /* Allow text wrapping in caption */
}

/* Credits List */
.credits-list {
    list-style: none;
    padding: 5;
}

.credits-list li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        height: auto; /* Reset height on mobile */
        min-height: 100vh; /* Ensure it still takes full height */
    }
    .about-sidebar, .about-main {
        height: auto; /* Reset heights on mobile */
        overflow: visible;
    }
}