* {
    -webkit-tap-highlight-color: transparent;
}
html {
    touch-action: manipulation;
}
body {
    background: linear-gradient(360deg, #e2c9ec 0%, #f9e6b3 50%, #c9eaf3 100%);
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.row img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.row a:hover img {
    transform: scale(1.08);
}
.row h1 {
    margin: 0;
    font-size: 2.5em;
    color: #4250d0c4;
    font-family: system-ui, sans-serif;
    background: linear-gradient(90deg, #e91e63, #2196f3, #ffeb3b);
    background-size: 400% auto;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: gradientText 6s linear infinite alternate;
}
@keyframes gradientText {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
.contact {
    font-family: system-ui, sans-serif;
    font-size: 0.85em;
    color: #333;
    opacity: 0.7;
    margin: 1px 0;
    display: inline-block;
}
.hello {
    text-align: center;
    font-size: 1em;
    color: #0a3c21;
    margin-top: 2px;
    font-family: system-ui, sans-serif;
    opacity: 0.8;
    font-weight: bold;
}
.menu {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    background: linear-gradient(90deg,#9299d6c4, #4ac8df, #2196f3);
    padding: 8px 20px;
    border-radius: 32px;
    bottom: 24px;
    left: 45%;
    width: auto;
    z-index: 100;
    font-family: system-ui, sans-serif;
    transition: transform 0.3s, opacity 0.3s;
}
.menu a {
    position: relative;
    text-decoration: none;
    color: #4250d0c4;
    font-weight: bold;
    margin: 0 8px;
    transition: color 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.menu a i {
    font-size: 1.7em;
    transition: color 0.1s;
}
.menu a.active,
.menu a.active i {
    color: #fafafa !important;
}
.menu.hide {
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}
.menu.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    column-gap: 24px;
    row-gap: 48px;
    padding: 24px 5vw;
    justify-items: center;
    align-content: center;
}
.gallery img {
    max-width: 260px;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 280ms cubic-bezier(.2,.8,.2,1), box-shadow 280ms cubic-bezier(.2,.8,.2,1);
    cursor: pointer;
    will-change: transform, box-shadow;
    transform-origin: center center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
@media (min-width: 1400px) {
    .gallery img {
        max-width: 320px;
    }
}
@media (min-width: 1800px) {
    .gallery img {
        max-width: 400px;
    }
}
@media (min-width: 2200px) {
    .gallery img {
        max-width: 480px;
    }
}
.gallery img:hover {
    transform: scale(1.06) translateZ(0);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}
.gallery figure {
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.gallery figcaption {
    position: absolute;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
    background: rgba(56, 34, 34, 0.7);
    color: #fff;
    font-size: 0.9em;
    padding: 4px 20px;
    border-radius: 15px;
    opacity: 0.8;
    text-align: center;
    max-width: 90%;
    pointer-events: none;
}
.dynamic-popup {
    position: fixed;
    left: 50%;
    bottom: 90px;
    transform: translateX(-50%);
    z-index: 9999;
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s;
}
.dynamic-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%);
}
.dynamic-content {
    background: #fff;
    border-radius: 18px;
    padding: 10px 16px;
    min-width: unset;
    max-width: 95vw;
    text-align: left;
    font-family: system-ui, sans-serif;
    font-size: 1.05em;
    font-weight: 500;
    transform: scale(1);
    display: inline-block;
    box-sizing: border-box;
}

#search-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#searchInput {
    width: 100%;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid #ccc;
    margin-bottom: 12px;
    font-size: 1em;
    box-sizing: border-box;
    display: block;
}

#zoom-view {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}
.zoom-img {
    width: 100%;
    max-width: 300px;
    max-height: 50vh;
    border-radius: 24px;
    margin-right: 12px;
    background: #fff;
    padding: 12px;
    object-fit: contain;
    display: block;
}
.zoom-info {
    position: relative;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px #0002;
    padding: 22px 28px;
    min-width: 220px;
    max-width: 340px;
    font-family: system-ui, sans-serif;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: 8px;
    word-break: break-word;
}
.zoom-title {
    font-size: 1.35em;
    font-weight: bold;
    margin-bottom: 6px;
    text-align: left;
}
.zoom-price {
    color: #e53935;
    font-size: 1.18em;
    font-weight: bold;
    margin-bottom: 4px;
    text-align: left;
}
.zoom-size-color {
    font-size: 1em;
    color: #444;
    margin-bottom: 4px;
    line-height: 1.5;
}
.zoom-intro {
    font-style:italic;
    font-weight: normal;
    font-size: 0.8em;
    color: #222;
    margin-top: 2px;
    line-height: 1.6;
    text-align: left;
}
.zoom-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 2em;
    cursor: pointer;
    color: #e53935;
    background: none;
    border: none;
    outline: none;
    z-index: 10;
    transition: color 0.2s;
}
.footer-end {
    text-align: center;
    font-size: 0.95em;
    color: #888;
    opacity: 0.7;
    margin-bottom: 24px;
    margin-top: auto;
    padding: 0 4vw;
}
.hidden-body > :not(#intro-overlay) {
    display: none !important;
}
#intro-overlay {
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: linear-gradient(360deg, #e2c9ec 0%, #f9e6b3 50%, #c9eaf3 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s;
}
#intro-overlay.hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

#intro-overlay h1,
#intro-overlay img {
    animation: introScaleFade 1.5s cubic-bezier(.4,1.6,.6,1) forwards;
}
.intro-sub {
    font-size: 1em;
    font-weight: bold;
    color: #634141;
    font-family: system-ui,sans-serif;
    text-align: center;
    opacity: 0.8;
    margin-top: 2px;
}
#intro-overlay h1 {
    margin-bottom: 0.1em;
    animation: introScaleFade 1s cubic-bezier(.4,1.6,.6,1) forwards;
}
@keyframes introScaleFade {
    0% {
        opacity: 0.2;
        transform: scale(0.7);
    }
    60% {
        opacity: 1;
        transform: scale(1.08);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}
/* MOBILE OPTIMIZATION */
@media (max-width: 600px) and (hover: none) and (pointer: coarse) {
    body {
        min-height: 100vh;
        font-size: 16px;
        padding: 0;
    }
    .row {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 8px 0;
    }
    .row img {
        width: 70px;
        height: 70px;
    }
    .row h1 {
        font-size: 1.5em;
        text-align: left;
        margin-left: 0;
    }
    .contact {
        font-size: 0.75em;
        text-align: left;
    }
    .marquee-wrap {
        position: relative;
        margin-top: 0;
        padding-top: 44px;
    }
    .menu {
        position: absolute !important;
        top: 0 !important;
        bottom: auto !important;
        right: 12px !important;
        left: auto !important;
        margin: 0 !important;
        z-index: 1002 !important;
        background: linear-gradient(90deg,#9299d6c4, #4ac8df, #2196f3);
        border-radius: 24px !important;
        padding: 6px 10px !important;
        width: auto !important;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 8px 2vw;
    }
    .gallery img {
        max-width: 100%;
        border-radius: 12px;
    }
    .gallery figcaption {
        font-size: 0.8em;
        padding: 2px 8px;
        border-radius: 8px;
    }
    .zoom-img {
        max-width: 70vw;
        max-height: 35vh;
        margin-right: 0;
        border-radius: 14px;
        padding: 6px;
        width: 100%;
        height: auto;
    }
    .zoom-info {
        width: 260px;
        max-width: 90vw;
        min-width: 0;
        margin-top: 12px;
        margin-left: 12px;
        padding: 10px 12px;
        border-radius: 12px;
        font-size: 0.95em;
        gap: 4px;
    }
    .zoom-title {
        font-size: 1.1em;
    }
    .zoom-price {
        font-size: 1em;
    }
    .zoom-close {
        font-size: 1.3em;
        top: 4px;
        right: 8px;
    }
    #zoom-view {
        margin: 12px 0;
        flex-direction: column;
        align-items: center;
    }
    .dynamic-content {
        padding: 10px 6px;
        min-width: 0;
        max-width: 98vw;
        font-size: 1em;
    }
    .footer-end {
        font-size: 0.8em;
        padding: 0 4vw;
        margin-bottom: 12px;
    }
    .row img,
    .gallery img,
    .row a:hover img,
    .gallery img:hover,
    .gallery figure.filter-anim,
    #zoom-view,
    .zoom-img,
    .zoom-close,
    .hello {
        transition: none !important;
        animation: none !important;
    }
    .gallery figure,
    #zoom-view {
        animation: none !important;
    }
    .menu,
    .menu.show,
    .menu.hide {
        transform: translateY(0) !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    .gallery img,
    .gallery figure {
        transition: none !important;
        animation: none !important;
        outline: none !important;
        box-shadow: none !important;
        filter: none !important;
        background: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }
    .gallery img:active,
    .gallery figure:active,
    .gallery img:hover,
    .gallery figure:hover {
        transition: none !important;
        animation: none !important;
        outline: none !important;
        box-shadow: none !important;
        filter: none !important;
        background: none !important;
        -webkit-tap-highlight-color: transparent !important;
        transform: none !important;
    }
    #search-popup.dynamic-popup {
        position: absolute !important;
        top: -5px !important;
        left: 30px !important;
        right: auto !important;
        bottom: auto !important;
        transform: none !important;
        width: calc(80vw - 100px) !important;
        z-index: 1002 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center;
        height: 48px;
        background: none !important;
        box-shadow: none !important;
    }
    #search-popup .dynamic-content {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 0 !important;
        width: 100%;
        display: flex;
        align-items: center;
    }
    #searchInput {
        border-radius: 10px !important;
        font-size: 1.05em !important;
        padding: 8px 14px !important;
        height: 36px !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    #search-popup:not(.active) {
        display: none !important;
    }
    #search-popup.dynamic-popup,
    #search-popup .dynamic-content {
        border-radius: 18px !important;
    }
    *, *::before, *::after {
        box-shadow: none !important;
    }
    .dynamic-popup {
        transition: none !important;
    }
}
#gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 16px 0;
    background: none;
    font-family: system-ui, sans-serif;
    font-weight: 500;
}
.pagination-btn {
    background: linear-gradient(145deg, #6a5a8c, #9e8aac);
    border: none;
    color: #fdfaff;
    font-size: 1.5em;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #bca6d5;
}
.pagination-btn:disabled {
    opacity: 1; 
}
.pagination-btn:disabled .arrow {
    opacity: 0.3;
}
.pagination-center {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #6a5a8c 70%, #fdfaff 100%);
    border-radius: 24px;
    padding: 0 18px;
    height: 48px;
    min-height: 48px;
    gap: 4px;
    border: 1px solid #bca6d5;
}
.pagination-current {
    background: linear-gradient(220deg, #e7c873 60%, #fffbe9 100%);
    color: #4a3f6d;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 1.05em;
    margin: 0 2px;
    border: 1px solid #d5b87a;
    min-width: 22px;
    text-align: center;
    display: inline-block;
    height: 28px;
    line-height: 28px;
    font-weight: bold;
}
#gallery-pagination span {
    color: #fdfaff;
    font-size: 1em;
}