body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #000;
}

.full-width-divider {
    width: 100%;
    border-bottom: 1px solid #ddd;
    z-index: 10;
    pointer-events: none;
}

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


/* Logo Bar */
.logo-bar {
    padding: 16px 0;
    justify-content: flex-start;
    align-items: center;
}

.logo-bar img {
    height: 34px;
}

/* Profile Section */
.profile-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px;
}

.inner-profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: flex-start;
    gap: 90px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
}

.username {
    font-size: 20px;
    margin: 0 0 16px;
}

.stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    margin-bottom: 24px;
}

.bio {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 0;
}

.divider {
    margin-top: 24px;
    border: none;
    border-top: 1px solid #ddd;
}

/* Photo Grid */
.photo-grid {
    max-width: 900px;
    margin: 24px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 0 24px;
}

.photo-grid img {
    width: 100%;
    cursor: pointer;
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.is-active {
    display: block;
}


.modal-content {
    background-color: #fafafa;
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    display: flex;
    overflow: hidden;
    height: 500px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 36px;
    color: #333;
    cursor: pointer;
    z-index: 10;
}

.modal-body {
    display: flex;
    width: 100%;
    height: 100%;
}

.modal-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60%;
}

.modal-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

#modalDetails {
    width: 40%;
    padding: 16px 24px;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    position: relative;
    border-left: 1px solid #ddd;
    height: 100%;
}

#modalCaption {
    font-size: 14px;
    line-height: 1.4;
    color: #555;
    white-space: pre-wrap;
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 12px;
    max-height: 280px;
}

.modal-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 2px;
    margin-bottom: 2px;
}

.modal-header img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    vertical-align: middle;
}

#modalUsername {
    margin: 0;
    font-weight: 700;
    font-size: 14px;
    color: #262626;
    line-height: 1;
}

.modal-divider {
    border: none;
    border-top: 1px solid #ddd;
    margin: 16px -24px;
    width: calc(100% + 48px);
    box-sizing: content-box;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px;
    color: #262626;
    background-color: #fafafa;
}

.modal-actions .icon {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    stroke: currentColor;
    transition: stroke 0.3s ease;
}

.modal-actions .action-left,
.modal-actions .action-right {
    display: flex;
    align-items: center;
}

.modal-actions .action-left .icon {
    margin-right: 20px;
}

.modal-actions .action-right .icon {
    margin-left: 20px;
}

@media (max-width: 768px) {
    .modal {
        display: none;
        justify-content: center;
        align-items: center;
        padding: 20px;
        overflow: auto;
    }

    .modal-body {
        flex-direction: column;
        height: auto;
    }

    .modal.is-active {
        display: block;
    }

    .modal-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
        background-color: #fafafa;
        border-radius: 10px;
        overflow: auto;
        height: auto;
        max-height: 90vh;
        position: relative;
    }

    .modal-content-wrapper {
        border-radius: 10px;
        overflow: hidden;
        max-height: 90vh;
        margin: 0 auto;
        width: 100%;
        max-width: 500px;
        background-color: #fafafa;
    }

    .modal-image-wrapper {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin: 0;
    }

    .modal-image-wrapper img {
        width: 100%;
        max-width: 100%;
        display: block;
        height: auto;
    }

    #modalDetails {
        height: auto;
        min-height: 100px;
        max-height: none;
        overflow: visible;
        padding: 16px 24px;
        box-sizing: border-box;
        width: 100%;
        border-left: none;
        border-top: 1px solid #ddd;
    }

    .modal-actions {
        border-radius: 0 0 10px 10px;
        padding: 12px 24px;
        box-sizing: border-box;
    }

    #modalCaption {
        max-height: none;
        overflow: visible;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .avatar {
        width: 80px;
        height: 80px;
    }

    .profile-container,
    .inner-profile-container {
        padding: 16px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .profile-info {
        width: 100%;
        text-align: center;
    }

    .stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
}

.tag {
    color: #4c6cc4;
    cursor: none;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    line-height: 1;
}

.carousel-btn.left {
    left: 20px;
}

.carousel-btn.right {
    right: 20px;
}

.carousel-btn:hover {
    color: #ddd;
}

.footer-container {
    max-width: 600px;
    margin: 3rem auto 2rem auto;
    text-align: center;
    font-size: 12px;
    color: #8e8e8e;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.footer-copyright {
    margin-bottom: 6px;
}

.footer-links {
    text-align: center;
    font-size: 12px;
    color: #8e8e8e;
    margin-bottom: 6px;
}

.footer-links a {
    color: #8e8e8e;
    text-decoration: none;
    margin: 0 5px;
}

.footer-links a:hover {
    text-decoration: underline;
}
