/* LAYOUT */
.background {
    min-height: 100vh;
    padding: 120px 10%;
    background: linear-gradient(180deg, #FFD93B 0%, #F6A57F 40%, #B54BE2 100%);
}

.sb-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 240px auto;
    gap: 35px;
    
    background: rgba(77, 77, 77, 0.35);
    backdrop-filter: blur(12px);
    border-radius: 25px;
    padding: 30px;
    color: white;
}

.sb-avatar {
    grid-column: 1;
    grid-row: 1;
}

.sb-header {
    grid-column: 2;
    grid-row: 1;
}

.sb-sidebar {
    grid-column: 1;
    grid-row: 2;
}

.sb-main {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sb-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1000px;
    padding: 4px;
    background-color: rgb(83, 83, 83);
    backdrop-filter: blur(12px);
}

.sb-header {
    display: flex;
}

/* LEFT SIDE STACK */
.sb-header-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    flex: 1;
}
.sb-header-info h1 {
    font-size: 1.9rem;
    margin: 0;
    padding: 0;
}
.sb-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.0rem;
    padding-top: 6px;
}
.sb-location img {
    height: 30px;
    object-fit: cover;
}
.tag {
    border-radius: 14px;
    padding: 4px 12px;
    font-size: 0.9rem;
    background-color: white;
    border-bottom: 2px solid rgb(63, 63, 63);
}
.tag-blue {
    background-color: rgb(33, 83, 192);
    border-bottom: 2px solid rgb(21, 55, 129);
}
.tag-green {
    background-color: rgb(4, 139, 110);
    border-bottom: 2px solid rgb(3, 105, 83);
}
.tag-yellow {
    background-color: rgb(228, 216, 58);
    border-bottom: 2px solid rgb(129, 121, 3);
}

/* RIGHT SIDE BUTTON */
.sb-header-actions {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* Ensure button stays top-right */
.edit-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: rgb(31, 127, 218);
    color: white;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid rgb(16, 82, 145);
    transition: 0.2s ease;
    text-decoration: none;
}
.edit-btn:hover {
    scale: 1.05;
}

.sb-side-card {
    width: 100%;
    border-radius: 12px;
    background-color: rgb(243, 243, 243);
    color: rgb(40, 40, 40);
    border-bottom: 3px solid rgb(152, 152, 152);
}
.sb-side-card-title {
    text-align: center;
    vertical-align: middle;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 10px 20px;
    color: white;
    background-color: grey;
    border-radius: 10px 10px 0 0;
    border-bottom: 3px solid rgb(89, 89, 89);
}

.sb-side-card-content {
    padding: 16px 20px;
    white-space: pre-wrap;
}

.sb-bio {
    color: rgb(243, 243, 243);
    background-color: rgba(78, 78, 78, 0.7);
    border-radius: 10px;
    padding: 20px 35px;
    text-align: left;
    border-bottom: 3px solid rgb(17, 17, 17);
}

.sb-project {
    color: rgb(243, 243, 243);
    background-color: rgba(40, 40, 40, 0.7);
    border-radius: 10px;
    padding: 20px 35px;
    text-align: left;
    border-bottom: 5px solid rgb(17, 17, 17);
}

.sb-project h3 {
    font-size: 1.3rem;
    padding: 0 5px;
}
.sb-project h4 {
    font-size: 0.8rem;
    padding: 10px;
    font-weight: 300;
    border-bottom: 1px solid white;
    margin-bottom: 16px;
}
.sb-project p {
    line-height: 1.7;
}
.sb-project-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.sb-project-images img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.sb-project-images img:hover {
    transform: scale(1.05);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.hidden {
    display: none;
}