* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow: hidden;
    height: 100%;
}

/* Skip to main content link for accessibility */
.skip-to-content {
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: 999;
    padding: 1rem;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.skip-to-content:focus {
    top: 1rem;
    left: 1rem;
}

/* Fullpage Wrapper (transform-based like fullpage.js) */
.fullpage-wrapper {
    height: 100vh;
    width: 100%;
    position: relative;
    transition: transform 1000ms cubic-bezier(0.165, 0.84, 0.44, 1);
    /* Smoother easing curve */
    will-change: transform;
}

/* Individual Sections */
.section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    padding: 8rem 7rem 4rem 3rem;
}

/* Override default section alignment for special sections */
.section.section-news {
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.section.section-footer {
    justify-content: center;
    align-items: center;
    padding: 4rem 3rem;
}

.section.section-slideshow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 6rem;
}

#section1 {
    background: url('photo/hero/hero-003.jpg') no-repeat center bottom;
    background-size: cover;
}

#section2 {
    background: url('photo/news/news-001.jpg') no-repeat center center;
    background-size: cover;
}

/* News Section Specific Styles (padding defined above) */

.news-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 3rem;
    align-items: center;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.news-header {
    flex: 0 0 30%;
    color: white;
    text-align: left;
    padding-left: 2rem;
}

.news-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1;
    letter-spacing: -2px;
    opacity: 0;
    transform: translate3d(0, 100px, 0);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.news-description {
    font-size: 1.2rem;
    font-weight: 300;
    margin-top: 0;
    opacity: 0;
    transform: translate3d(0, 100px, 0);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

/* Active state for News section */
.section-news.active .news-title {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.3s;
}

.section-news.active .news-description {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.4s;
}

/* Leaving state for News section */
.section-news:not(.active) .news-title,
.section-news:not(.active) .news-description {
    opacity: 0;
    transform: translate3d(0, -100px, 0);
    transition: opacity 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53),
        transform 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

/* Instagram Wrapper */
.instagram-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-right: 2rem;
}

/* Instagram Grid */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    width: 100%;
}

.instagram-box {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    min-height: 150px;
    opacity: 0;
    transform: translate3d(0, 100px, 0);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.instagram-box:hover {
    transform: translate3d(0, 0, 0) scale(1.05);
}

/* Active state for Instagram boxes */
.section-news.active .instagram-box {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.5s;
}

/* Leaving state for Instagram boxes */
.section-news:not(.active) .instagram-box {
    opacity: 0;
    transform: translate3d(0, -100px, 0);
    transition: opacity 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53),
        transform 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.instagram-placeholder {
    color: #999;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Instagram Media (画像・動画) */
.instagram-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.instagram-box:hover .instagram-media {
    transform: scale(1.05);
}

/* Instagram Link */
.instagram-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: translate3d(0, 100px, 0);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.instagram-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) translate3d(0, 0, 0);
}

/* Active state for Instagram link */
.section-news.active .instagram-link {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.95s;
}

/* Leaving state for Instagram link */
.section-news:not(.active) .instagram-link {
    opacity: 0;
    transform: translate3d(0, -100px, 0);
    transition: opacity 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53),
        transform 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

.instagram-icon {
    width: 24px;
    height: 24px;
}

#section3 {
    background: #000000;
}

#section4 {
    background: #333333;
}

#section5 {
    background: #000000;
}

#section6 {
    background: #333333;
}

/* Section 7 / Footer Section (padding defined above) */
.section-footer {
    background: #333;
}

.section-footer .section-content {
    width: 100%;
}

/* Section Content */
.section-content {
    text-align: right;
    color: white;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    opacity: 0;
    transform: translate3d(0, 100px, 0);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.section-description {
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 0;
    transform: translate3d(0, 100px, 0);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

/* Active section - animate in with delay */
.section.active .section-title {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.3s;
    /* Title appears first */
}

.section.active .section-description {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.4s;
    /* Description appears after title */
}

/* Leaving section - fade out with upward movement */
.section:not(.active) .section-title,
.section:not(.active) .section-description {
    opacity: 0;
    transform: translate3d(0, -100px, 0);
    transition: opacity 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53),
        transform 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53);
    transition-delay: 0s;
}

/* Footer */
.footer {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    padding: 2rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-social-link {
    color: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.footer-social-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer p {
    margin-bottom: 1rem;
    font-weight: 400;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: white;
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-link:hover::after {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo img {
    height: 100px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    position: fixed;
    top: -100%;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0;
    transition: top 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
    padding: 4rem 2rem;
    z-index: 999;
    will-change: top;
}

.nav-links.active {
    top: 0;
}

.nav-links li {
    width: 100%;
    max-width: 400px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.2rem 0;
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition: opacity 0.6s cubic-bezier(0.28, 0.11, 0.32, 1), transform 0.6s cubic-bezier(0.28, 0.11, 0.32, 1);
    will-change: transform, opacity;
}

.nav-links.active li {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.nav-links.active li:nth-child(1) {
    transition-delay: 0.2s;
}

.nav-links.active li:nth-child(2) {
    transition-delay: 0.25s;
}

.nav-links.active li:nth-child(3) {
    transition-delay: 0.3s;
}

.nav-links.active li:nth-child(4) {
    transition-delay: 0.35s;
}

.nav-links.active li:nth-child(5) {
    transition-delay: 0.4s;
}

.nav-links.active li:nth-child(6) {
    transition-delay: 0.45s;
}

.nav-links li:last-child {
    border-bottom: none;
}

.nav-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: opacity 0.3s cubic-bezier(0.28, 0.11, 0.32, 1), transform 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.nav-link:hover {
    opacity: 0.6;
    transform: translate3d(5px, 0, 0);
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.hamburger.dark .hamburger-line {
    background: #333;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.scroll-indicator.hidden {
    opacity: 0;
}

.scroll-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    writing-mode: vertical-rl;
    letter-spacing: 3px;
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: white;
    animation: scrollLineAnimation 2s ease-in-out infinite;
}

@keyframes scrollLineAnimation {
    0% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(60px);
    }
}

/* Scroll Position Dots */
.scroll-dots {
    position: fixed;
    right: 3rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.scroll-dots.hidden {
    opacity: 0;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.28, 0.11, 0.32, 1);
    cursor: pointer;
    border: none;
    padding: 0;
}

.scroll-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.scroll-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .section {
        padding: 7rem 5rem 3rem 2rem;
    }

    .section-title {
        font-size: 2.5rem;
        transform: translate3d(0, 60px, 0);
        /* Reduce animation distance */
    }

    .section-description {
        font-size: 0.85rem;
        transform: translate3d(0, 60px, 0);
        /* Reduce animation distance */
    }

    .section:not(.active) .section-title,
    .section:not(.active) .section-description {
        transform: translate3d(0, -60px, 0);
    }

    /* News Section Responsive */
    .section.section-news {
        padding: 2rem;
    }

    .section.section-footer {
        padding: 3rem 2rem;
    }

    .news-container {
        flex-direction: column;
        gap: 2rem;
    }

    .news-header {
        flex: none;
        text-align: center;
        padding-left: 0;
    }

    .news-title {
        font-size: 3rem;
    }

    .news-description {
        font-size: 1rem;
    }

    .instagram-wrapper {
        padding-right: 0;
        width: 100%;
        align-items: center;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: 600px;
    }

    .scroll-indicator {
        left: 1rem;
    }

    .scroll-dots {
        right: 1rem;
    }

    .nav-content {
        padding: 1rem;
    }

    .logo img {
        height: 80px;
    }

    .section-content {
        padding: 0 1rem;
    }

    /* Slideshow section adjustments for tablet landscape */
    .section.section-slideshow {
        padding: 2rem 5rem 2rem 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .section-slideshow .section-content {
        padding-top: 0;
        justify-content: center;
        height: auto;
    }

    .section-slideshow .section-title {
        margin-bottom: 0.2rem;
    }

    .section-slideshow .section-description {
        margin-bottom: 0.5rem;
    }

    .slideshow-wrapper {
        margin-top: 0;
        padding-bottom: 2rem;
        max-width: 950px;
        width: 90%;
    }
}

/* Vertical orientation: center content vertically */
@media (max-width: 1200px) and (orientation: portrait) {
    .section-slideshow .section-content {
        padding-top: 0;
        height: auto;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 6rem 1.5rem 2rem 1.5rem;
        justify-content: center;
    }

    .section-content {
        text-align: center;
    }

    /* Override for slideshow sections */
    .section-slideshow .section-content {
        text-align: right;
    }

    .section-slideshow .section-title {
        text-align: right;
    }

    .section-slideshow .section-description {
        text-align: right;
    }

    .section-title {
        font-size: 2rem;
        letter-spacing: -1px;
        transform: translate3d(0, 40px, 0);
        /* Further reduce for mobile */
    }

    .section-description {
        font-size: 0.8rem;
        transform: translate3d(0, 40px, 0);
        /* Further reduce for mobile */
    }

    .section:not(.active) .section-title,
    .section:not(.active) .section-description {
        transform: translate3d(0, -40px, 0);
    }

    /* News Section Mobile */
    .section.section-news {
        padding: 1.5rem;
    }

    .section.section-footer {
        padding: 2rem 1.5rem;
    }

    .news-container {
        gap: 1.5rem;
    }

    .news-header {
        padding-left: 0;
    }

    .news-title {
        font-size: 2.5rem;
    }

    .news-description {
        font-size: 1rem;
    }

    .instagram-wrapper {
        padding-right: 0;
        width: 100%;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        max-width: 100%;
        width: 100%;
    }

    .instagram-box {
        min-height: 160px;
    }

    .instagram-box:nth-child(n+5) {
        display: none;
    }

    .logo img {
        height: 60px;
    }

    .nav-link {
        font-size: 1rem;
    }

    .scroll-indicator {
        display: none;
    }

    .scroll-dots {
        display: none;
    }

    .section-content {
        padding: 0 1.5rem;
    }

    .footer {
        font-size: 0.75rem;
        height: 300px;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer p {
        margin-bottom: 0.75rem;
    }
}

/* ========================================
   SLIDESHOW SECTIONS (Section 3, 4, 5)
   ======================================== */

/* Slideshow-specific layout (alignment defined above) */

/* Slideshow Section Layout */
.section-slideshow .section-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
    text-align: right;
    position: relative;
    padding-top: 6.5rem;
}

/* Slideshow Section Title and Description */
.section-slideshow .section-title {
    margin-bottom: 0.3rem;
    width: 100%;
    max-width: 100%;
    position: static;
    text-align: right;
    padding: 0 2rem;
    font-size: clamp(2rem, 5vh, 4rem);
}

.section-slideshow .section-description {
    margin-top: 0;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
    position: static;
    text-align: right;
    padding: 0 2rem;
    font-size: clamp(0.6rem, 1vh, 0.75rem);
}

/* Slideshow Wrapper */
.slideshow-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin-top: 1rem;
    opacity: 0;
    transform: translate3d(0, 80px, 0);
    transition: opacity 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 1.125s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
    padding-bottom: 3rem;
    overflow: visible;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    gap: 2rem 2rem;
    align-items: center;
}

/* PCサイズ（1200px以上）でのスライドショー位置調整 */
@media (min-width: 1201px) {
    .section-slideshow .section-content {
        padding-top: 7rem;
        justify-content: center;
        height: auto;
    }

    .slideshow-wrapper {
        max-width: 1000px;
        margin-top: 0.5rem;
    }
}

/* 中間サイズ（1400px以上）でのスライドショーサイズ調整 */
@media (min-width: 1400px) {
    .slideshow-wrapper {
        max-width: 1100px;
    }
}

.section.active .slideshow-wrapper {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition-delay: 0.6s;
}

/* Slideshow Box */
.slideshow-box {
    width: 100%;
    position: relative;
    margin-bottom: 0;
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

/* Slideshow Images Container */
.slideshow-images {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #000000;
    border-radius: 0px;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.28, 0.11, 0.32, 1);
    contain: layout style paint;
}

.slide.active {
    transform: translateX(0);
}

.slide.next {
    transform: translateX(100%);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slideshow Caption - Below the slideshow box */
.slideshow-caption {
    display: block;
    color: white;
    text-align: left;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.section.active .slideshow-caption {
    opacity: 1;
    transition-delay: 1.0s;
}

.slideshow-caption-title {
    font-size: 0.75rem;
    font-weight: 400;
    margin-bottom: 0.15rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.3;
}

.slideshow-caption-text {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.4;
    letter-spacing: 0.05em;
    margin: 0;
}

/* Arrow Navigation */
.slide-arrow {
    position: relative;
    background: transparent;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    grid-row: 1 / 2;
}

.slide-arrow:hover {
    opacity: 0.7;
}

.slide-arrow svg {
    display: block;
}

.slide-arrow-left {
    grid-column: 1 / 2;
}

.slide-arrow-right {
    grid-column: 3 / 4;
}

/* Dot Indicators - Hidden */
.slide-dots {
    display: none;
}

/* ========================================
   SLIDESHOW RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {

    /* Slideshow section - reduce padding on tablet */
    .section.section-slideshow {
        padding: 2rem 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Slideshow wrapper - center align vertically on tablet */
    .section-slideshow .section-content {
        align-items: center;
        justify-content: center;
        padding-top: 0;
        height: auto;
        min-height: 0;
    }

    .slideshow-wrapper {
        width: 95%;
        max-width: none;
        padding-bottom: 0;
        gap: 1.5rem 1.5rem;
        margin-top: 0;
    }

    /* Arrow buttons - smaller size */
    .slide-arrow {
        width: 45px;
        height: 45px;
    }

    /* Slideshow caption */
    .slideshow-caption-title {
        font-size: 0.9rem;
    }

    .slideshow-caption-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {

    /* Slideshow section - minimal padding on mobile */
    .section.section-slideshow {
        padding: 1.5rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Slideshow section content - center alignment vertically for mobile */
    .section-slideshow .section-content {
        text-align: center;
        align-items: flex-end;
        justify-content: center;
        padding-top: 0;
        height: auto;
        min-height: 0;
    }

    /* Slideshow section title and description - mobile positioning */
    .section-slideshow .section-title {
        position: static;
        margin-bottom: 0.3rem;
        padding: 0 1.5rem;
        text-align: right;
        width: auto;
        max-width: 100%;
        align-self: flex-end;
    }

    .section-slideshow .section-description {
        position: static;
        margin-bottom: 2rem;
        padding: 0 1.5rem;
        text-align: right;
        width: auto;
        max-width: 100%;
        align-self: flex-end;
    }

    /* Slideshow wrapper - stack layout on mobile */
    .slideshow-wrapper {
        width: 100%;
        padding-bottom: 6rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 0;
    }

    /* Slideshow box - full width with relative positioning for arrows */
    .slideshow-box {
        width: 100%;
        position: relative;
    }

    /* Arrow buttons - position inside image */
    .slide-arrow {
        width: 40px;
        height: 40px;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
    }

    .slide-arrow-left {
        left: 10px;
    }

    .slide-arrow-right {
        right: 10px;
    }

    /* Slideshow caption - adjust position */
    .slideshow-caption {
        text-align: center;
        padding: 0 1.5rem;
    }

    .slideshow-caption-title {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .slideshow-caption-text {
        font-size: 0.85rem;
    }
}

/* ========================================
   FULLSCREEN IMAGE MODAL
   ======================================== */

.image-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    user-select: none;
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.image-modal.active .modal-image {
    transform: scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease 0.2s;
    z-index: 10002;
}

.modal-close svg {
    transition: opacity 0.3s ease;
}

.image-modal.active .modal-close {
    opacity: 1;
    transform: translateY(0);
}

.modal-close:hover svg {
    opacity: 0.7;
}

.modal-caption {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translate(-50%, 20px);
    color: white;
    text-align: center;
    max-width: 80%;
    opacity: 0;
    transition: all 0.4s ease 0.3s;
    z-index: 10001;
}

.image-modal.active .modal-caption {
    transform: translate(-50%, 0);
    opacity: 1;
}

.modal-caption-title {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.modal-caption-text {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

@media (max-width: 768px) {
    .modal-image {
        max-width: 98%;
        max-height: 98vh;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        padding: 10px;
    }

    .modal-close svg {
        width: 20px;
        height: 20px;
    }

    .modal-caption {
        bottom: 2rem;
        max-width: 90%;
    }

    .modal-caption-title {
        font-size: 1rem;
    }

    .modal-caption-text {
        font-size: 0.9rem;
    }
}