html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* prevent text selection on all elements */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* allow selection only for specific elements that need it */
input, textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

body {
    box-sizing: border-box;
}

.home_1 {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.home_1_title {
    width: 100%;
    text-align: center;
    margin: 0px;
}

.home_1_title_1 {
    font-size: 60px;
    font-weight: 500;
}

.home_1_title_2 {
    font-size: 75px;
}

.home_1_title_3 {
    font-size: 50px;
    font-style: italic;
    font-weight: 500;
}

@media screen and (max-width: 900px) { 
    .home_1_title_1 {
        font-size: 40px;
    }
    .home_1_title_2 {
        font-size: 50px;
    }
    .home_1_title_3 {
        font-size: 35px;
    }
}

@media screen and (max-width: 600px) { 
    .home_1_title_1 {
        font-size: 30px;
    }
    .home_1_title_2 {
        font-size: 40px;
    }
    .home_1_title_3 {
        font-size: 25px;
    }
}

@media screen and (max-width: 500px) { 
    .home_1_title_2 {
        font-size: 35px;
    }
}

.home_2 {
    height: fit-content;
    min-width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-top: 60px;
    margin-bottom: 40px;
}

.home_2_block {
    width: calc(25% - 50px);
    height: fit-content;
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 1350px) { 
    .home_2_block {
        width: calc(25% - 30px);
    }
}

@media screen and (max-width: 1000px) { 
    .home_2_block {
        width: calc(25% - 20px);
    }
}

@media screen and (max-width: 800px) { 
    .home_2_block {
        width: calc(25% - 10px);
    }
}

@media screen and (max-width: 600px) { 
    .home_2 {
        flex-wrap: wrap;
    }
    .home_2_block {
        width: calc(50% - 10px);
    }
}

.home_2_img {
    width: 100%;
    height: auto;
}

.home_2_block > a {
    text-decoration: none;
}

.home_2_sub {
    font-size: 18px;
    font-weight: 500;
    margin-top: 2px;
    text-decoration: none;
    color: black;
}

.home_2_sub:hover {
    text-decoration: underline;
}

.home_3 {
    width: calc(100% + 50px);
    height: 600px;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

@media screen and (max-width: 780px) { 
    .home_3 {
        width: 100%;
        flex-direction: column;
        height: fit-content;
        margin-bottom: 50px;
    }
}

.home_3_titles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: fit-content;
    height: inherit;
    background: linear-gradient(90deg, rgba(252,252,247,1) 0%, rgba(252,252,247,1) 50%, rgba(252,252,247,0.8169861694677871) 65%, rgba(252,252,247,0.46124387254901966) 82%, rgba(0,0,0,0) 100%);
    z-index: 1;
    margin-right: 60px;
}

@media screen and (max-width: 780px) { 
    .home_3_titles {
        height: max-content;
        margin-bottom: 10px;
    }
}

.home_3_title1 {
    width: min-content;
    text-wrap: nowrap;
    text-align: left;
    margin: 0px;
    font-style: italic;
}

.home_3_title2 {
    text-align: left;
    width: min-content;
    text-wrap: nowrap;
    margin: 0px;
}

.home_3_inner {
    width: calc(100% + 50px);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-left: -300px;
    padding-left: 300px;
    z-index: 0;
    max-width: 100vw;
}

@media screen and (max-width: 780px) {
    :root {
        --full-width: calc(100vw - 30px); /* defines full width for responsive design */
    }
    .home_3 {
        overflow: unset;
    } 
    .home_3_inner {
        margin-left: -30px;
        padding-left: 30px;
        padding-right: 0px;
        padding-bottom: 0px;
        min-width: var(--full-width);
        width: var(--full-width);
        max-width: var(--full-width);
    }
}

@media screen and (max-width: 500px) {
    :root {
        --full-width: calc(100vw - 12px); /* defines full width for responsive design */
    }
    .home_3 {
        overflow: unset;
    } 
    .home_3_inner {
        margin-left: -12px;
        padding-left: 12px;
        padding-right: 0px;
        padding-bottom: 0px;
        min-width: var(--full-width);
        width: var(--full-width);
        max-width: var(--full-width);
    }
}

@media screen and (min-width: 780px) { 
    .home_3_inner > *:last-child {
        padding-right: 24px;
    }
}

.home_3_block {
    display: flex;
    flex-direction: column;
    max-height: 600px;
    max-width: auto;
    justify-content: center;
    margin-right: 24px;
    padding-right: 0;
}

.home_3_block > img {
    max-width: 300px;
}

.home_3_block > a > img {
    max-width: 300px;
}

.home_3_caption1 {
    margin-bottom: 0px;
    color: rgb(107, 107, 107);
}

.home_3_caption2 {
    margin-top: 6px;
    margin-bottom: 12px;
    line-height: 100%;
}

.home_tags {
    width: 100%;
    position: relative;
    left: 0;
    transform: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 40px;
    margin-bottom: 40px;
}

@media screen and (min-width: 769px) {
    .home_tags {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
    }
}

.home_tags_row {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    line-height: 1.6;
    padding: 5px 0;
    margin: 0;
    box-sizing: border-box;
    white-space: nowrap;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    display: inline-block;
    width: max-content;
    min-width: 100vw;
    text-align: center;
    margin-bottom: -5px;
    margin-top: -5px;
}

.home_tags_row a {
    text-decoration: none; 
    color: black;  
}

.home_tags_row a:hover {
    text-decoration: underline;   
    color: black;  
}

.home_tags_row_1 {
    animation: scrollLeft 120s linear infinite;
    animation-delay: 0s;
}

.home_tags_row_2 {
    animation: scrollRight 120s linear infinite;
    animation-delay: 0s;
    margin-right: -100vw;
}

.home_tags_row_mobile {
    display: none;
    width: 200%;
}

.home_tags_row_3 {
    animation: scrollLeft 120s linear infinite;
    animation-delay: 0s;
}

.home_tags_row_4 {
    animation: scrollRight 120s linear infinite;
    animation-delay: 0s;
    margin-right: -100vw;
}

.home_tags_row_5 {
    animation: scrollLeft 120s linear infinite;
    animation-delay: 0s;
}

.home_tags_row_6 {
    animation: scrollRight 120s linear infinite;
    animation-delay: 0s;
    margin-right: -100vw;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Mobile specific keyframes to ensure proper positioning */
@keyframes scrollLeftMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(-66.67%); }
}

@keyframes scrollRightMobile {
    0% { transform: translateX(-33.33%); }
    100% { transform: translateX(0); }
}

.home_tags_row .interpunct {
    margin-left: 10px;
    margin-right: 10px;
}

@media screen and (max-width: 768px) {
    .home_tags {
        width: 100vw;
        left: 50%;
        transform: translateX(-50%);
        padding: 0;
    }
    .home_tags_row {
        font-size: 18px;
        width: max-content;
        min-width: 100vw;
        left: 0;
        transform: none;
        text-align: center;
    }
    .home_tags_row_1, .home_tags_row_2 {
        display: none;
    }
    .home_tags_row_mobile {
        display: block;
    }
}

@media screen and (max-width: 480px) {
    .home_tags_row {
        font-size: 16px;
    }
}

.home_4 {
    width: 100%;
}

.home_4_title1 {
    width: 100%;
    text-align: center;
    margin: 0px;
}

.home_4_title2 {
    width: 100%;
    text-align: center;
    margin: 0px;
    font-style: italic;
}

.home_4_flipbook {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 45px;
    overflow-x: auto;
    position: relative;
    gap: 8px;
    padding: 0 20px;
    box-sizing: border-box;
}

.home_4_flip {
    height: 400px;
    width: 50px;
    background-position: center center;
    background-size: auto 100%;
    background-repeat: no-repeat;
    margin: 0;
    transition: width 0.5s ease, background-position 0s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
    overflow: hidden;
    flex-shrink: 0;
}

.home_4_flip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 1;
    transition: height 1.8s linear;
    pointer-events: none;
    opacity: 0;
}

.home_4_flip.long_press::before {
    height: 100%;
    opacity: 1;
}

.home_4_fliptitle {
    opacity: 0;
    margin-bottom: 16px;
    margin-left: 16px;
    width: fit-content;
    background-color: white;
    font-weight: 600;
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 18px;
    font-style: italic;
    transition: opacity 0.5s ease;
    position: relative;
    z-index: 2;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.home_4_flip:hover {
    width: 260px;
    z-index: 10;
    background-size: auto 100%;
}

@media screen and (min-width: 640px) {
    .home_4_flip {
        cursor: pointer;
        background-size: auto 100%;
    }
    
    .home_4_flip:hover .home_4_fliptitle {
        opacity: 1;
        display: block;
    }

    .home_4_flipbook:has(.home_4_flip:hover) .home_4_flip:not(:hover) {
        /* transform property removed */
    }
    
    .home_4_flip:hover ~ .home_4_flip {
        /* transform property removed */
    }
}

@media screen and (max-width: 639px) {
    .home_4_fliptitle {
        display: block;
    }
    
    .home_4_flip {
        background-size: auto 100%;
    }
    
    .home_4_flip:active {
        width: 260px;
        z-index: 10;
        background-size: auto 100%;
    }
    
    .home_4_flip:active .home_4_fliptitle {
        opacity: 1;
    }
    
    .home_4_flipbook:has(.home_4_flip:active) .home_4_flip:not(:active) {
        /* transform property removed */
    }
    
    .home_4_flip:active ~ .home_4_flip {
        /* transform property removed */
    }
}