@charset "UTF-8";

/* Global Smooth Scroll */
html {
    scroll-behavior: smooth;
    /* Adjust for fixed header height (PC: 80px, SP: 64px) */
    scroll-padding-top: 80px;
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 64px;
    }
}

/* Font Settings */
body {
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Swiper Fade Effect Adjustment */
.swiper-slide {
    background-color: #000;
    /* Prevent white flash during fade */
}

/* Swiper Pagination Customization */
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #a63737;
    /* Theme Red */
    opacity: 1;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1), transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Scroll Down Animation */
@keyframes bounce {

    0%,
    100% {
        transform: translate(-50%, -25%);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translate(-50%, 0);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.animate-bounce {
    animation: bounce 1.5s infinite;
}

/* Custom Utilities that might not be in Tailwind default config */
.text-justify {
    text-align: justify;
}

/* Vertical Align utility */
.vertical-bottom {
    vertical-align: bottom;
}

/* Gallery Swiper Hover Zoom */
.gallery-swiper .swiper-slide {
    overflow: hidden;
    cursor: pointer;
}

.gallery-swiper .swiper-slide img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-swiper .swiper-slide:hover img {
    transform: scale(1.1);
}


/* Hide scrollbar for SP menu when open */
body.menu-open {
    overflow: hidden;
}

/* Back to Top Button Color */
#back-to-top {
    background-color: #a63737 !important;
    /* Theme Red */
}

#back-to-top:hover {
    background-color: #8b2d2d !important;
}

/* Luminous Lightbox - Force Center Position */
.lum-lightbox.lum-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 10000 !important;
}

.lum-lightbox-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 5% !important;
    /* Breathing space */
}

.lum-lightbox-image {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    margin: auto !important;
}

.lum-close-button {
    position: fixed !important;
    top: 30px !important;
    right: 30px !important;
    z-index: 10001 !important;
    cursor: pointer;
    font-size: 30px;
}

/* Gallery thumbnails styling (optional but good for consistency) */
.swiper-slide a.lightbox-link {
    display: block;
    width: 100%;
    height: 100%;
}

/* Slider Modal Styles */
#slider-modal {
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-swiper .swiper-slide img {
    max-width: 95vw;
    max-height: 80vh;
    object-fit: contain;
    user-select: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
    .modal-swiper .swiper-slide img {
        max-height: 90vh;
    }
}

#modal-close {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.modal-swiper .swiper-button-next,
.modal-swiper .swiper-button-prev {
    transition: all 0.3s ease;
}

@media (max-width: 767px) {

    .modal-swiper .swiper-button-next,
    .modal-swiper .swiper-button-prev {
        top: auto;
        bottom: 2rem;
    }

    .modal-swiper .swiper-button-next {
        right: 25%;
    }

    .modal-swiper .swiper-button-prev {
        left: 25%;
    }

    .modal-swiper .swiper-pagination {
        bottom: 0.5rem !important;
    }
}