/* Base Variables */
:root {
    --color-text: #000;
    --color-text-muted: #505050;
    --color-border: #A8A8A8;
    --color-bg-light: #f5f5f5;
    --color-bg-muted: #e0e0e0;
    --color-bg-stage: #D8D8D8;
    --gap-8: 8px;
    --gap-16: 16px;
    --gap-24: 24px;
    --gap-32: 32px;
    --font-sans: Inter, sans-serif;
}

/* Stage */
#stage {
    width: 100%;
    height: calc(100vh - 32px);
    background: var(--color-bg-stage);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    direction: ltr;
    text-align: left;
    position: relative;
}

#stage img,
#stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    padding: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--gap-8);
}

.breadcrumb span {
    font-size: 14px;
    line-height: 22px;
    color: var(--color-text-muted);
}

.breadcrumb span.active {
    color: var(--color-text);
}

.nav-buttons {
    display: flex;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 16px;
    transition: all 0.3s ease;
    color: var(--color-border);
}

.nav-button.scroll:not(.active) svg path {
    stroke: var(--color-border);
}

.nav-button.book.active svg path {
    fill: var(--color-text);
}

.nav-button.active, .nav-button.active svg path, .nav-button:hover, .nav-button:hover svg path {
    color: var(--color-text);
    border-color: var(--color-text);
}

.nav-button.scroll:hover svg path, .nav-button.scroll.active svg path {
    fill: white;
}

/* Model Profile */
.model-profile {
    padding: 40px 0;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.model-profile .spilt {
    border: 1px solid var(--color-text);
    margin: 10px auto;
    width: 100px;
}

.model-name {
    text-align: center;
    margin-bottom: 15px;
}

.model-name .unique-id {
    margin-bottom: 15px;
}


.model-name .name-primary {
    font-size: 70px;
    line-height: 60px;
    font-weight: 600;
}

.book-name-container .name-primary {
    font-size: 50px;
    line-height: 45px;
}

.model-name .name-secondary {
    font-size: 25px;
}

.member-meta-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.member-meta {
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--gap-16);
    font-size: 16px;
    line-height: 30px;
    color: var(--color-text);
}
.member-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.member-meta-name {
    font-weight: 700;
}

.member-meta-value {
    font-weight: 400;
}

.portfolio-links {
    display: flex;
    gap: var(--gap-24);
    justify-content: center;
    padding: 4px 0;
    width: 100%;
    max-width: 996px;
    margin: 0 auto;
}

.book-portfolio-types {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--gap-24);
    cursor: pointer;
}

.book-portfolio-title,
.book-portfolio-type {
    color: var(--color-text);
    font-size: 16px;
    line-height: 20px;
    word-wrap: break-word;
}

.book-portfolio-title {
    font-weight: 700;
}

.book-portfolio-type {
    font-weight: 400;
}

.book-portfolio-type.active {
    font-weight: 700;
}
#bookSlider {
    width: 850px;
}
/* Instagram Icon */
.instagram-icon {
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-top: 5px;
}

.instagram-icon:hover {
    transform: scale(1.1);
}

/* Gallery */
.other-photos-gallery {
    width: 100%;
    max-width: 850px;
    margin: 40px auto;
    padding: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
}

/*.gallery-item {
    display: flex;
    justify-content: center;
}*/

.gallery-item.horizontal,.gallery-item.profile-vertical{
    grid-column: span 2;
}
.gallery-item.profile-vertical {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.gallery-item.profile-vertical .item-wrapper .item-image {
    width: calc(850px / 1.7);
}

.gallery-item.horizontal .item-wrapper {
    /*width: 973px;*/
    /*height: 646px;*/
}

.gallery-item.horizontal .item-wrapper img {
    /*width: 973px;*/
}

.gallery-item.vertical .item-wrapper {
    /*width: 486px;*/
    /*height: 646px;*/
}

.gallery-item .item-image {
    position: relative;
    overflow: hidden;
    /*padding-bottom: 70%;*/
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}


/*
.gallery-item .gallery-item-image {
    position: absolute;
    width: 100%;
    height: max-content;
    max-width: unset;
    max-height: unset;
}
*/

/* BOOK View */
.book-view {
    display: flex;
    align-self: stretch;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}
.book-view.visible {
    visibility: visible;
    position: static;
}

.arrow-nav {
    height: 100px;
}
.mob-arrow-nav {
    height: 50px;
}
.arrow-nav, .mob-arrow-nav {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--gap-24);
}

.book-portfolio-header {
    align-self: stretch;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--gap-24);
    width: 420px;
}

.book-main-content {
    align-self: stretch;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1px;
    max-width: 850px;
}

.book-image-container {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}
.book-image-container .image-wrapper.horizontal {
    max-height: 550px;
}
/*.book-image-container .image-wrapper {
    height: 560px;
    width: 840px;
}*/

/*.book-image-container .image-wrapper.vertical {
    width: 420px;
}*/

.book-image-container .image-item {
    position: relative;
    overflow: hidden;
    /*padding-bottom: 70%;*/
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/*.book-image-container .image-item .book-view-image {
    position: absolute;
    width: 100%;
    height: max-content;
    max-width: unset;
    max-height: unset;
}*/

.book-name-container {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.book-model-name {
    color: var(--color-text);
    font-size: 96px;
    font-weight: 700;
    line-height: 100px;
    word-wrap: break-word;
    text-align: center;
}

.book-meta-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--gap-16);
}

.book-meta-name,
.book-meta-value {
    color: var(--color-text);
    font-size: 16px;
    line-height: 30px;
    word-wrap: break-word;
}

.book-meta-name {
    font-weight: 700;
}

.book-meta-value {
    font-weight: 400;
}

/* PDF Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 80%;
    overflow: auto;
    position: relative;
}


#pdfModal.modal .modal-body {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #333;
    font-size: 40px;
    cursor: pointer;
    z-index: 10001;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#pdfModal.modal .modal-content {
    max-width: 800px;
    max-height: 80vh;
}

#snapModal.modal .modal-content {
    max-width: 450px;
    max-height: 80vh;
    padding-left: unset;
    padding-right: unset;
    padding-bottom: 20px;
}

.modal-header {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
}

.modal-title {
    align-self: stretch;
    text-align: center;
    color: var(--color-text);
    font-size: 32px;
    font-weight: 500;
    line-height: 44px;
    word-wrap: break-word;
    margin: 0;
}

.modal-subtitle {
    align-self: stretch;
    text-align: center;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    word-wrap: break-word;
    margin: 0;
}

.pdf-layout-options {
    display: flex;
    justify-content: center;
    gap: var(--gap-32);
}

.pdf-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 4px;
    text-decoration: unset !important;
}

.pdf-option:hover {
    background-color: var(--color-bg-light);
}

.pdf-option:focus {
    background-color: var(--color-bg-muted);
    outline: 2px solid var(--color-border);
}

.pdf-option-preview {
    width: 150px;
    height: 98px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Preview internal structure */
.preview-profile-layout,
.preview-composite-layout,
.preview-book-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--gap-8);
}

.preview-row {
    display: flex;
    gap: 4px;
}

.preview-lines {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.preview-thumbnail {
    width: 60px;
    height: 78px;
    border: 1px solid var(--color-border);
}

.snap-gallery {
    margin: auto;
    margin-top: 10px;
}

.snap-main-slider .item {
    width: 100%;
    display: flex;
    justify-content: center;
}

.snap-main-slider .item .item-file {
    width: unset;
    max-height: 440px;
}

.snap-thumbs-slider .item {
    padding: 5px;
    cursor: pointer;
}

.snap-thumbs-slider .item .item-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.snap-thumbs-slider .item .item-wrapper .item-icon {
    position: absolute;
    width: 100%;
    height: 100%;
    top: -3px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.snap-thumbs-slider .item .item-file {
    width: 70px;
    height: 80px;
    opacity: .5;
    transition: .3s;
    cursor: pointer;
    object-fit: cover;
}

.snap-thumbs-slider .swiper-slide-thumb-active.item .item-file {
    opacity: 1;
    border: 1px solid #333;
}

/* Responsive */
@media (max-width: 1200px) {
    .book-model-name {
        font-size: 72px;
        line-height: 80px;
    }

    .book-main-content {
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .top-nav,
    .model-profile {
        padding-left: 40px;
        padding-right: 40px;
    }

    .member-meta {
        gap: 20px;
    }

    .other-photos-gallery {
        padding: 0;
    }

    .book-view {
        padding-left: 40px;
        padding-right: 40px;
    }

    .book-model-name {
        font-size: 60px;
        line-height: 70px;
    }

    .book-main-content {
        flex-direction: column;
        gap: 30px;
    }

    .book-image-container {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .nav-buttons, .page-breadcrumb {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-nav {
        gap: 15px;
        padding: 15px 20px;
    }

    .model-profile {
        padding: 30px 20px;
    }

    .portfolio-links {
        align-items: center;
    }

    .member-meta {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 20px;
    }

    .other-photos-gallery {
        padding: 0;
        margin: 30px auto;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.horizontal {
        grid-column: span 1;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }

    .book-view {
        padding-left: 20px;
        padding-right: 20px;
        flex-direction: column;
        gap: 30px;
        margin-left: unset;
        margin-right: unset;
    }

    .arrow-nav {
        display: none;
    }

    .book-model-name {
        font-size: 48px;
        line-height: 60px;
    }

    .book-name-container {
        gap: 20px;
    }

    .book-meta-container {
        gap: 12px;
    }

    .book-meta-name,
    .book-meta-value {
        font-size: 14px;
        line-height: 24px;
    }

    .pdf-layout-options {
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }
    .modal .modal-title {
        font-size: 25px;
    }
}

@media (max-width: 576px) {
    .fashion.container-xxl {
        padding-left: 0;
        padding-right: 0;
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .member-meta {
        gap: 8px 12px;
    }

    .book-portfolio-title, .book-portfolio-type, .member-meta-name {
        font-size: 12px;
    }

    .member-meta-value {
        font-size: 14px;
    }

    .model-name .name-primary {
        font-size: 45px;
        line-height: 50px;
        text-align: center;
    }

    .model-name .name-secondary.en-text {
        font-size: 16px;
    }

    .other-photos-gallery {
        padding: 0;
        margin: 20px auto;
    }

    .gallery-grid {
        gap: 1px;
    }

    /*.gallery-item.vertical .item-wrapper, .book-image-container .image-wrapper.vertical {
        width: 100%;
        height: 150vw;
    }*/
    .portfolio-links {
        /*flex-direction: column;*/
        align-items: center;
    }

    .book-view {
        padding-left: 15px;
        padding-right: 15px;
    }

    .book-model-name {
        font-size: 36px;
        line-height: 48px;
    }

    .book-portfolio-header {
        flex-direction: column;
        gap: 15px;
    }

    .book-portfolio-types {
        gap: 15px;
    }

    .book-main-content {
        gap: 20px;
    }

    .pdf-option-preview {
        width: 120px;
        height: 80px;
    }
}
@media (max-width: 520px) {
    .top-nav {
        flex-direction: column;
    }
}
@media (max-height: 845px) {
    .snap-main-slider .item .item-file {
        max-height: 370px;
    }
}

.w-100 {
    width: 100%;
}
.justify-content-between {
    justify-content: space-between;
}
.justify-content-center {
    justify-content: center;
}

@media (min-width: 768px) {
    .mob-arrow-nav,.model-profile .spilt {
         display: none;
    }
    .w-md-50 {
        width: 50%;
    }
    .justify-content-md-start {
        justify-content: flex-start !important;
    }
    .justify-content-md-end {
        justify-content: flex-end !important;
    }
    .justify-content-md-center {
        justify-content: center;
    }
    .justify-content-md-between {
        justify-content: space-between;
    }
}
.flex {
    display: flex;
}
.flex-wrap {
    flex-wrap: wrap;
}
.gap-8 {
    gap: var(--gap-8);
}
.gap-16 {
    gap: var(--gap-16);
}