@font-face {
    font-family: 'DaiBannaSIL';
    src: url('assets/DaiBannaSIL-SemiBold.ttf') format('truetype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F8F5F2;
    overflow-x: hidden;
    overflow-y: auto;
    /* Prevent body scroll, handled by wrapper */
    font-family: 'DaiBannaSIL', sans-serif;
    display: block;
    /* Revert flex */
    height: auto;
    width: 100%;
    margin: 0;
}

/* Top Bar */
.top-bar {
    position: fixed;
    /* Keep fixed */
    top: 0;
    left: 0;
    z-index: 200;
    /* Above content */
    width: 100%;
    height: 70px;
    /* Updated to 70px to match Sidebar */
    background-color: #F2E9DE;
    border-bottom: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Hide animation overflow */
}

.top-bar h1 {
    font-size: 32px;
    font-weight: normal;
    color: black;
}

.nav-buttons {
    position: absolute;
    left: 50px;
    top: 60%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
}

.nav-btn {
    background: transparent;
    border: none;
    padding: 5px 10px;
    font-family: 'DaiBannaSIL', sans-serif;
    font-size: 20px;
    cursor: pointer;
    color: black;
    text-transform: uppercase;
    font-weight: bold;
    position: relative;
    overflow: visible;
    /* Allow text to overflow for slot machine effect */
    display: flex;
    flex-direction: column;
    /* height: auto - removed fixed height */
}

.nav-btn-text {
    display: block;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn-clone {
    position: absolute;
    top: 0;
    left: 0;
    padding-left: 10px;
    font-weight: 800;
    text-shadow: 0.5px 0 0 currentColor, -0.5px 0 0 currentColor;
    transform: translateY(-70px);
    /* Start above top-bar (70px height) */
}

.nav-btn:hover .nav-btn-text:first-child {
    transform: translateY(70px);
    /* Move down below top-bar (70px height) */
}

.nav-btn:hover .nav-btn-clone {
    transform: translateY(0);
}

/* Main Content */
.main-content {
    display: flex;
    margin-top: 70px;
    /* Adjusted for 70px header */
    height: 640px;
    width: 100%;
}

.pink-box {
    width: 1269.660px;
    /* Specific width requested */
    height: 100%;
    background-color: #EB8DBB;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    z-index: 100;
    /* Above gallery */
}

.cowboy-image {
    height: calc(100% + 2px);
    /* Increase size to cover gap */
    width: auto;
    /* Ensure width adjusts if needed, flex handles it */
    flex-grow: 1;
    object-fit: cover;
    object-position: center;
    display: block;
    margin-top: -2px;
    /* Pull up to touch header */
    border-bottom: 1px solid black;
}

/* Gallery Container */
/* Gallery Container */
.gallery-container {
    position: absolute;
    /* Revert to absolute */
    left: 0;
    width: 100%;
    height: 732.656px;
    /* Specific height requested */
    overflow: hidden;
    z-index: 50;
}

#gallery-container-1 {
    top: 710px;
    /* 70px (header) + 640px (content) */
}

#gallery-container-2 {
    top: 1442.656px;
    /* 710px + 732.656px */
}

#gallery-container-3 {
    top: 2175.312px;
    /* 1442.656px + 732.656px */
}

/* Sidebar Overlay */
.cult-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    width: 70px;
    /* Widened to 70px */
    height: 100%;
    z-index: 60;
    /* Raised to cover gallery content (overlay is 50) */
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    /* Increased to 2px */
    background-color: #F2E9DE;
    /* New bg color */
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    /* Enable interaction to show default cursor */
    cursor: default;
}

.cult-title {
    writing-mode: vertical-lr;
    /* Vertical text */
    text-orientation: mixed;
    transform: rotate(180deg);
    /* Flip to read bottom-up usually, or standard? "CULT-FAVORITES" usually runs top-down or bottom-up. Standard vertical-lr is top-down. transform rotate(180) makes it bottom-up. Let's try standard first (no rotate) based on typical design, OR if user wants it exactly like typical vertical headers. Let's assume standard top-down for now. Wait, snippet says 'title-vertical'. Usually means rotated -90 or vertical-rl. 
    Let's stick to simple writing-mode first. */
    font-family: sans-serif;
    /* text-sans */
    font-size: 14px;
    /* text-sans-14 */
    font-weight: 800;
    /* font-800 */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* tracking-wider */
    white-space: nowrap;
}

/* Fixed Overlay Image */
.cult-edim-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 158px;
    height: 100%;
    z-index: 60;
    /* Match sidebar */
    pointer-events: none;
    /* Let clicks pass through if needed, but script handles drag */
}

.cult-edim-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left;
    /* Alignment fix */
}

.pink-box-text {
    font-size: 160px !important;
    /* Force overrides */
    text-align: left;
    /* Aligns Edim under Edym */
    line-height: 1.2;
    color: black;
    white-space: nowrap;
    /* Prevent wrapping if tight */
}

.bottom-stroke {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: black;
}

.footer-box {
    position: absolute;
    top: 2907.968px;
    /* 2175.312 + 732.656 */
    left: 0;
    width: 100%;
    height: 1465.312px;
    /* 732.656 * 2 */
    background-color: #F2E9DE;
    border-bottom: 1px solid black;
    /* Removed border-top */
    z-index: 50;
    box-sizing: border-box;
}

.sub-footer-box {
    position: absolute;
    top: 4373.28px;
    /* 2907.968 + 1465.312 */
    left: 0;
    width: 1905px;
    height: 290px;
    background-color: #F2E9DE;
    /* Same color */
    border-bottom: 1px solid black;
    border-right: 1px solid black;
    /* Removed border-top */
    z-index: 50;
    box-sizing: border-box;
}

.split-footer-box {
    position: absolute;
    top: 4663.28px;
    /* 4373.28 + 290 */
    left: 0;
    width: 100%;
    height: 460px;
    display: flex;
    z-index: 50;
    background-color: #F2E9DE;
    border-bottom: 1px solid black;
}

.split-half {
    width: 50%;
    height: 100%;
    box-sizing: border-box;
}

.split-half.left {
    border-right: 1px solid black;
    /* Central stroke */
}

.spacer-bottom {
    width: 100%;
    height: 4413.28px;
    /* Calculated to end exactly at bottom of split footer */
    background-color: transparent;
}

/* Scrollable Gallery Track */
.gallery-scroll-area {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    cursor: pointer;
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    white-space: nowrap;
}

.gallery-scroll-area::-webkit-scrollbar {
    display: none;
    /* Chrome Safari */
}

.gallery-scroll-area:active {
    cursor: default;
}

.gallery-content {
    display: flex;
    height: 100%;
}

.gallery-spacer {
    width: 68px;
    /* Reduced to align with inner sidebar edge */
    flex-shrink: 0;
}

.photo-set {
    position: relative;
    /* Fixes offsetLeft context for JS */
    display: flex;
    flex-shrink: 0;
}

.photo {
    height: 100%;
    width: auto;
    /* Maintain aspect ratio */
    display: block;
}

.photo-1 {
    border-right: 1px solid black;
    border-bottom: 1px solid black;
}

.photo-2 {
    border-right: 1px solid black;
    border-bottom: 1px solid black;
}

.photo-2-wrapper {
    position: relative;
    height: 100%;
    /* Ensure child img fills height */
    display: flex;
    overflow: hidden;
    /* Hide box when translated down */
}

/* Explicit overlay div to ensure z-index victory */
.border-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
    pointer-events: none;
    z-index: 50;
    /* Above info box (10) */
}

.hover-info-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 549.5px;
    height: 165px;
    background-color: #F2E9DE;
    /* Cream background */
    border-top: 1px solid black;
    border-right: 1px solid black;
    border-bottom: 1px solid black;

    transform: translateY(100%);
    transition: transform 0.15s ease-out;
    z-index: 10;
}

.plus-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    border-left: 1px solid black;
    border-bottom: 1px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0;
    /* Hide HTML text */
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.plus-box::before {
    content: "";
    position: absolute;
    width: 16px;
    /* Smaller Horizontal Line */
    height: 2px;
    background-color: black;
    transition: background-color 0.15s ease;
}

.plus-box::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 16px;
    /* Smaller Vertical Line */
    background-color: black;
    transition: background-color 0.15s ease;
}

.plus-box:hover {
    background-color: black;
}

.plus-box:hover::before,
.plus-box:hover::after {
    background-color: #F2E9DE;
}

.info-text {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'DaiBannaSIL', sans-serif;
    font-size: 32px;
    color: black;
    line-height: 1.2;
    max-width: 400px;
}

.photo-2-wrapper:hover .hover-info-box {
    transform: translateY(0);
    transition: transform 0.25s ease-out;
    /* Slower when appearing */
}

/* Disable hover effect while dragging */
.gallery-scroll-area.active .photo-2-wrapper:hover .hover-info-box {
    transform: translateY(100%);
    transition: transform 0.1s ease-out;
    /* Maintained smooth but much faster */
}

.photo-1-wrapper {
    position: relative;
    height: 100%;
    flex-shrink: 0;
    cursor: default;
    /* Overrides draggable pointer */
}

.photo-1-text {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'DaiBannaSIL', sans-serif;
    font-size: 72px;
    color: black;
    white-space: nowrap;
    pointer-events: none;
}