:root {
    /* Color Palette - Premium Dark Theme */
    --bg-color: #0c0c0c;
    --surface-color: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent-color: #e2c08d;
    --accent-hover: #c9a572;


    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 100px 0;

    /* Transitions */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fluid: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    /* pointer-events left as default so touch events work on mobile */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    transition: var(--transition-smooth);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    word-break: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
}

/* Animations defined here, activated by JS or CSS */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: opacity, transform;
}

.glide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.glide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================= Navbar ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background: transparent;
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    .navbar.scrolled {
        padding: 1rem 2rem;
    }

    .nav-links.active .mobile-lang-row {
        display: flex !important;
    }
}

.navbar.scrolled {
    padding: 1rem 4rem;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.logo img,
.logo-icon {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 1px solid var(--accent-color);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
    flex-shrink: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.logo a:hover .logo-icon {
    transform: scale(1.1);
    border-color: #fff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links li a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 2rem;
}

.lang-flag {
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    opacity: 0.5;
    /* default inactive */
}

/* Active flag handled by opacity in JS */
.lang-flag:hover {
    transform: scale(1.1);
    opacity: 1 !important;
}

.toggle-container {
    width: 50px;
    height: 26px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
}

.toggle-slider {
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.toggle-container:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-color);
}

/* ================= Hero ================= */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 4rem;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero {
        padding: 0 2rem;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
    z-index: -1;
}

.cta-button:hover {
    color: var(--bg-color);
}

.cta-button:hover::before {
    width: 100%;
}

/* Hero Slideshow overlay background */
.hero-image-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* We use a pseudo element for a dark overlay to make text readable */
.hero-image-slideshow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(12, 12, 12, 0.9) 0%, rgba(12, 12, 12, 0.4) 50%, rgba(12, 12, 12, 0.1) 100%);
    z-index: 2;
}

/* On mobile (portrait), use a top-down gradient for better readability */
@media (max-width: 768px) {
    .hero-image-slideshow::after {
        background: linear-gradient(to bottom,
                rgba(12, 12, 12, 0.5) 0%,
                rgba(12, 12, 12, 0.75) 40%,
                rgba(12, 12, 12, 0.85) 100%);
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity;
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 4rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 20px;
    height: 30px;
    border: 1px solid var(--text-secondary);
    border-radius: 10px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* ================= About ================= */
.about {
    background-color: var(--surface-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    padding: 2rem 0 0 2rem;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 2rem);
    height: calc(100% - 2rem);
    border: 2px solid var(--accent-color);
    z-index: 0;
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
    filter: grayscale(20%);
    transition: var(--transition-smooth);
}

.about-image:hover {
    filter: grayscale(0%);
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ================= Gallery Collage ================= */
.gallery h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.photo-grid.masonry-layout {
    column-count: 3;
    column-gap: 1.5rem;
}

.photo-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.photo-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.photo-item:hover img {
    transform: scale(1.03);
}

.photo-item:hover::after {
    background: rgba(0, 0, 0, 0);
}

@media (max-width: 900px) {
    .photo-grid.masonry-layout {
        column-count: 3;
        column-gap: 1rem;
    }

    .photo-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .photo-grid.masonry-layout {
        column-count: 3;
        column-gap: 0.5rem;
    }

    .photo-item {
        margin-bottom: 0.5rem;
    }
}

/* ================= Contact & Footer ================= */
.contact {
    background-color: var(--surface-color);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
}

.direct-contact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item a {
    font-size: 1.1rem;
    transition: var(--transition-smooth);
}

.contact-item a:hover {
    color: var(--accent-hover);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.submit-btn {
    cursor: pointer;
    margin-top: 1rem;
    align-self: flex-start;
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .direct-contact {
        align-items: center;
    }

    .form-group label {
        text-align: left;
    }

    .submit-btn {
        align-self: center;
    }
}

.flex-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .flex-footer {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

.flex-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--text-primary);
}

/* ================= Responsive ================= */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .about-image {
        max-width: 80%;
        margin: 0 auto;
    }

    .about-image-wrapper {
        padding: 0;
        margin-bottom: 1rem;
    }

    .about-image-wrapper::before {
        display: none;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .navbar {
        justify-content: flex-start;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background-color: rgba(12, 12, 12, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: left 0.4s ease;
        z-index: 2500;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li a {
        font-size: 1.5rem;
    }

    .hamburger {
        display: flex;
        z-index: 2600;
    }

    .lang-switch {
        margin-left: auto;
        margin-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
        bottom: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        word-break: break-word;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .about-text h2,
    .gallery h2,
    .contact-info h2 {
        font-size: 2rem;
        word-break: break-word;
    }

    .about-image {
        max-width: 100%;
    }

    .contact-wrapper {
        gap: 2rem;
    }

    /* Adjust lightbox controls for mobile */
    .close-lightbox {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }

    .prev-lightbox,
    .next-lightbox {
        font-size: 25px;
        padding: 10px;
    }
}

/* ================= Lightbox ================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 2vh 2vw;
    box-sizing: border-box;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    max-width: 92vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: zoom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoom {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-lightbox:hover {
    color: var(--accent-color);
}

.prev-lightbox,
.next-lightbox {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 2001;
}

.prev-lightbox {
    left: 20px;
}

.next-lightbox {
    right: 20px;
}

.prev-lightbox:hover,
.next-lightbox:hover {
    color: var(--accent-color);
}

/* ================= Album Gallery Overlay ================= */
body.gallery-active main {
    transform: translateX(-50vw) scale(0.85);
    opacity: 0.1;
    pointer-events: none;
    filter: blur(5px);
}

body.gallery-active .navbar,
body.gallery-active footer {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
}

@media (max-width: 992px) {

    /* On mobile, we want the navbar (with the hamburger menu) to stay visible above the gallery */
    body.gallery-active .navbar {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        z-index: 2600;
    }
}

body.gallery-active {
    overflow: hidden;
    /* Prevent scrolling on main body when gallery is open */
}

main,
.navbar,
footer {
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        filter 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity, filter;
}

.album-gallery-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 1500;
    transition: right 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    /* Fix scrolling on entire overlay */
    -webkit-overflow-scrolling: touch;
}

body.gallery-active .album-gallery-overlay {
    right: 0;
}

/* Layout Controls */
.gallery-controls {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20;
}

.layout-toggle {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.layout-toggle.active,
.layout-toggle:hover {
    background: var(--accent-color);
    color: var(--bg-color);
    border-color: var(--accent-color);
}

.close-album-gallery {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
    margin-left: 1rem;
}

.close-album-gallery:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* Base Gallery Layout */
.gallery-layout {
    display: flex;
    width: 100%;
    height: 100%;
    margin-top: 3rem;
    /* Leave room for controls */
}

.gallery-sidebar {
    flex-shrink: 0;
    overflow-y: auto;
    /* hide scrollbar for cleaner look */
    scrollbar-width: none;
}

.gallery-sidebar::-webkit-scrollbar {
    display: none;
}

.gallery-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 0 2rem;
    display: block;
    /* Default for split layout */
}

.gallery-main-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

/* ---------------- Split Layout Specifics ---------------- */
.album-gallery-overlay.layout-split .gallery-sidebar {
    width: 350px;
    padding-right: 2rem;
}

.album-gallery-overlay.layout-split .album-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.album-gallery-overlay.layout-split .gallery-divider {
    display: block;
}

.album-gallery-overlay.layout-split .gallery-main-content {
    display: block;
}

/* ---------------- Grid Layout Specifics ---------------- */
.album-gallery-overlay.layout-grid .gallery-layout {
    flex-direction: column;
}

.album-gallery-overlay.layout-grid .gallery-sidebar {
    width: 100%;
    padding-right: 0;
    padding-bottom: 4rem;
}

.album-gallery-overlay.layout-grid .album-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
}

.album-gallery-overlay.layout-grid .gallery-divider {
    display: none;
}

.album-gallery-overlay.layout-grid .gallery-main-content {
    display: none;
    /* Hidden strictly when viewing album selection */
}

/* When an album is actively being viewed in grid layout */
.album-gallery-overlay.layout-grid.viewing-album .gallery-sidebar {
    display: none;
}

.album-gallery-overlay.layout-grid.viewing-album .gallery-main-content {
    display: block;
    width: 100%;
}

.album-gallery-overlay.layout-grid.viewing-album #back-to-albums {
    display: flex !important;
    /* Force show the back button so user can return to grid */
}

/* ---------------- Album Components ---------------- */
.album-card {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center text and cover */
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.album-card:hover,
.album-card.active {
    opacity: 1;
}

.album-cover-wrapper {
    position: relative;
    width: 80%;
    /* Don't take full width so rotation fits */
    aspect-ratio: 1 / 1;
    margin-bottom: 1.5rem;
    perspective: 1000px;
}

/* Ensure full width in grid layout */
.album-gallery-overlay.layout-grid .album-cover-wrapper {
    width: 100%;
    margin-bottom: 1rem;
}

.album-cover-stack {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background-color: var(--surface-color);
}

/* Base states before hover */
.album-cover-stack:nth-child(1) {
    /* Bottom */
    transform: rotate(-8deg) scale(0.85) translateX(-10%);
    z-index: 1;
}

.album-cover-stack:nth-child(2) {
    /* Middle */
    transform: rotate(6deg) scale(0.9) translateX(10%);
    z-index: 2;
}

.album-cover-stack:nth-child(3) {
    /* Top */
    transform: rotate(0deg) scale(1) translateY(0);
    z-index: 3;
}

/* Hover effects (ONLY on hover, not active) */
.album-card:hover .album-cover-stack:nth-child(1) {
    transform: rotate(-15deg) scale(0.85) translateX(-25%) translateY(10%);
}

.album-card:hover .album-cover-stack:nth-child(2) {
    transform: rotate(12deg) scale(0.9) translateX(25%) translateY(5%);
}

.album-card:hover .album-cover-stack:nth-child(3) {
    transform: rotate(0deg) scale(1.05) translateY(-5%);
}

/* ------------- Grid Layout Overrides for Stack Effects ------------- */
/* Hide the bottom and middle images entirely in grid view */
.album-gallery-overlay.layout-grid .album-cover-stack:nth-child(1),
.album-gallery-overlay.layout-grid .album-cover-stack:nth-child(2) {
    display: none;
}

/* Reset the top image to fill the square without rotation in grid view */
.album-gallery-overlay.layout-grid .album-cover-stack:nth-child(3) {
    transform: none;
    z-index: 1;
}

/* Simple zoom hover effect instead of the fan-out animation for grid view */
.album-gallery-overlay.layout-grid .album-card:hover .album-cover-stack:nth-child(3) {
    transform: scale(1.08);
    /* Just a nice subtle zoom */
}

/* ------------------------------------------------------------------- */

.album-title {
    font-size: 1.5rem;
    font-family: var(--font-serif);
    margin: 0;
    transition: color 0.3s ease;
}

.album-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.album-card.active .album-title {
    color: var(--accent-color);
}

/* Right Side Content / Album Viewer */
.album-content-header {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding-top: 1rem;
    gap: 2rem;
}

.back-to-albums {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    align-items: center;
    gap: 0.5rem;
}

.back-to-albums:hover {
    color: var(--accent-color);
    transform: translateX(-5px);
}

#current-album-title {
    font-size: 3rem;
    margin: 0;
    font-family: var(--font-serif);
    color: var(--accent-color);
}

.album-content-view {
    display: block;
    opacity: 1;
    transform: none;
}

@media (max-width: 992px) {
    .album-gallery-overlay {
        padding: 2rem;
        padding-top: 6rem;
        /* Room for navbar */
    }

    .gallery-controls {
        top: 6rem;
        /* Move below navbar on tablet/mobile */
        right: 2rem;
        flex-wrap: wrap;
        /* allow wrapping if it gets too tight */
    }
}

@media (max-width: 768px) {
    .album-gallery-overlay {
        padding: 1rem;
        padding-top: 5rem;
    }

    .gallery-controls {
        top: 5rem;
        right: 1rem;
    }

    .album-gallery-overlay.layout-grid .album-list {
        gap: 1rem;
    }

    /* Scroll smoothing for touch devices */
    .gallery-main-content,
    .gallery-sidebar {
        -webkit-overflow-scrolling: touch;
    }

    #current-album-title {
        font-size: 2rem;
        text-align: center;
    }

    .album-content-header {
        margin-bottom: 1.5rem;
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    /* Disable heavy hover transformations on mobile to prevent freezing */
    /* Disable heavy hover transformations on mobile to prevent freezing */
    .album-cover-stack:nth-child(1),
    .album-cover-stack:nth-child(2) {
        display: none !important;
    }

    .album-cover-stack:nth-child(3) {
        transform: none !important;
    }

    .album-cover-wrapper {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .album-card:hover .album-cover-stack:nth-child(1),
    .album-card:hover .album-cover-stack:nth-child(2),
    .album-card:hover .album-cover-stack:nth-child(3) {
        transform: none !important;
    }

    /* ====== Mobile Gallery Page Specifics ====== */
    .mobile-gallery-container {
        padding-top: 5.5rem;
        /* Spacer for fixed mobile nav */
        padding-bottom: 2rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .gallery-controls-mobile {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-bottom: 2rem;
    }

    .album-list-mobile {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
        width: 100%;
        padding-bottom: 3rem;
    }

    .album-list-mobile .photo-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        border-radius: 4px;
        transition: transform 0.3s ease;
    }

    #mobile-current-album-title {
        font-size: 2rem;
        font-family: var(--font-serif);
        color: var(--accent-color);
        text-align: center;
        margin-bottom: 0.5rem;
    }

    #mobile-album-view .album-content-header {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
}

/* ================= Bento Box Layout Redesign ================= */
.bento-section {
    padding: 6rem 0;
    overflow-x: hidden;
}

.bento-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-grid-3-col {
    grid-template-columns: repeat(3, 1fr);
}

.bento-grid-2-col {
    grid-template-columns: repeat(2, 1fr);
}

.bento-box {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease;
    will-change: transform;
    cursor: pointer;
}

.bento-box:hover {
    transform: scale(1.03) translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(226, 192, 141, 0.2);
    z-index: 10;
}

/* Grid Expansion Animation for "Wer bin ich" */
.bento-grid.bio-expanded .bento-box:not(.bento-intro):not(.bio-detail-box) {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    /* Remove from flow so bio boxes can take their place */
    z-index: -1;
}

.bio-detail-box {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    display: none;
    /* Hidden by default */
    background: linear-gradient(135deg, rgba(30, 30, 30, 1) 0%, rgba(15, 15, 15, 1) 100%);
}

.bio-detail-box .bento-content {
    padding: 1.5rem;
    /* Reduced from 2.5rem to fit more text */
}

.bio-detail-box h3 {
    font-size: 1.5rem;
    /* Slightly smaller header */
    margin-bottom: 0.25rem;
}

.bio-detail-box h4 {
    color: var(--bg-color);
    /* Light color for contrast against dark background */
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.bio-detail-box p {
    font-size: 0.95rem;
    /* Slightly smaller text to prevent overflow */
    line-height: 1.5;
}

.bento-grid.bio-expanded .bio-detail-box {
    display: block;
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    animation: bioFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Specific Grid Placements for the expanding Bio boxes */
@media (min-width: 993px) {
    .bento-grid.bio-expanded .bio-box-1 {
        grid-column: span 2;
        grid-row: span 1;
        animation-delay: 0.1s;
    }

    .bento-grid.bio-expanded .bio-box-2 {
        grid-column: span 2;
        grid-row: span 1;
        animation-delay: 0.2s;
    }

    .bento-grid.bio-expanded .bio-box-3 {
        grid-column: span 2;
        grid-row: span 1;
        animation-delay: 0.3s;
    }

    .bento-grid.bio-expanded .bio-box-4 {
        grid-column: span 1;
        grid-row: span 1;
        animation-delay: 0.4s;
    }

    .bento-grid.bio-expanded .bio-box-5 {
        grid-column: span 1;
        grid-row: span 1;
        animation-delay: 0.5s;
    }
}

@media (max-width: 992px) {
    .bento-grid.bio-expanded .bio-box-1 {
        grid-column: span 2;
        grid-row: span 1;
        animation-delay: 0.1s;
    }

    .bento-grid.bio-expanded .bio-box-2 {
        grid-column: span 2;
        grid-row: span 1;
        animation-delay: 0.2s;
    }

    .bento-grid.bio-expanded .bio-box-3 {
        grid-column: span 2;
        grid-row: span 1;
        animation-delay: 0.3s;
    }

    .bento-grid.bio-expanded .bio-box-4 {
        grid-column: span 1;
        grid-row: span 1;
        animation-delay: 0.4s;
    }

    .bento-grid.bio-expanded .bio-box-5 {
        grid-column: span 1;
        grid-row: span 1;
        animation-delay: 0.5s;
    }
}

@media (max-width: 600px) {
    .bento-grid.bio-expanded .bio-box-1 {
        grid-column: span 1;
        grid-row: span 1;
        animation-delay: 0.1s;
    }

    .bento-grid.bio-expanded .bio-box-2 {
        grid-column: span 1;
        grid-row: span 1;
        animation-delay: 0.2s;
    }

    .bento-grid.bio-expanded .bio-box-3 {
        grid-column: span 1;
        grid-row: span 1;
        animation-delay: 0.3s;
    }

    .bento-grid.bio-expanded .bio-box-4 {
        grid-column: span 1;
        grid-row: span 1;
        animation-delay: 0.4s;
    }

    .bento-grid.bio-expanded .bio-box-5 {
        grid-column: span 1;
        grid-row: span 1;
        animation-delay: 0.5s;
    }
}

@keyframes bioFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bento-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    will-change: transform;
}

.bento-box:hover .bento-media {
    transform: scale(1.05);
    /* Slight internal zoom on hover */
}

.bento-content {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26, 26, 26, 1) 0%, rgba(40, 40, 40, 1) 100%);
}

.bento-content h3 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.bento-content h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bento-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Bento Flip Card */
.bento-flip-card {
    perspective: 1000px;
    overflow: visible !important;
    /* Needed so 3D rotation doesn't clip */
}

/* On mobile disable 3D flip and stack content vertically */
@media (max-width: 480px) {
    .bento-flip-card {
        overflow: visible !important;
        height: auto !important;
        min-height: auto !important;
    }

    .bento-flip-inner {
        transform: none !important;
        display: flex;
        flex-direction: column;
        gap: 0;
        box-shadow: none;
        background: transparent;
    }

    .bento-flip-front,
    .bento-flip-back {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        /* Fixed height for image part */
        transform: none !important;
        inset: auto !important;
        border-radius: 20px 20px 0 0;
    }

    .bento-flip-back {
        height: auto !important;
        min-height: 150px;
        padding: 1.5rem;
        border-radius: 0 0 20px 20px;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        backface-visibility: visible !important;
    }

    .bento-flip-front::after {
        display: none;
        /* Remove overlay gradient on mobile since text is below */
    }

    .flip-hint {
        display: none;
        /* No need for hint if not flipping */
    }
}

.bento-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    will-change: transform;
}

.bento-flip-card.flipped .bento-flip-inner {
    transform: rotateY(180deg);
}

.bento-flip-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
}

.bento-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(40, 40, 40, 1) 0%, rgba(20, 20, 20, 1) 100%);
    transform: rotateY(180deg);
}

.flip-hint {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.6;
    font-style: italic;
    transition: opacity 0.3s ease;
    animation: gentlePulse 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Let the actual card handle the clicks */
}

.bento-flip-card:hover .flip-hint {
    opacity: 1;
}

/* ==================== ULTRA-PREMIUM VIDEO CONTROLS ==================== */
.custom-video-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
}

#meineWeltVideo {
    object-fit: cover !important;
    object-position: center 0% !important;
    transform: scale(1.15) translateY(-8%) !important;
    transform-origin: center top !important;
}

.custom-video-controls {
    position: absolute;
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 10px 16px;
    background: rgba(15, 14, 12, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    border-radius: 30px;
    border: 1px solid rgba(226, 192, 141, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 15px rgba(226, 192, 141, 0.15);

    /* Hidden by default - appears smoothly on hover */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s ease;
    pointer-events: none;
}

/* Appear on hover or focus */
.custom-video-wrapper:hover .custom-video-controls,
.custom-video-wrapper:focus-within .custom-video-controls,
.custom-video-controls.show-controls {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.v-btn {
    background: rgba(226, 192, 141, 0.12);
    border: 1px solid rgba(226, 192, 141, 0.3);
    color: var(--accent-color);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.v-btn:hover {
    background: var(--accent-color);
    color: #0c0c0c;
    border-color: var(--accent-color);
    transform: scale(1.12);
    box-shadow: 0 0 12px rgba(226, 192, 141, 0.5);
}

.v-timeline {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: height 0.2s ease;
}

.v-timeline:hover {
    height: 8px;
}

.v-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ca9e5e 0%, #f8e5c2 100%);
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(226, 192, 141, 0.7);
    transition: width 0.1s linear;
}

.v-time {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-family: var(--font-sans);
    font-weight: 500;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
    text-align: center;
}

@keyframes gentlePulse {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Grid Cell Placements */
.bento-intro {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-portrait {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-video {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-quote {
    grid-column: span 1;
    grid-row: span 1;
    background: var(--accent-color);
    color: var(--bg-color);
}

.bento-quote .quote-text {
    color: var(--bg-color) !important;
    font-weight: 600;
    line-height: 1.4;
}

.bento-image-1 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-image-2 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-wide-img {
    grid-column: span 2;
    grid-row: span 1;
}

/* Gallery Bento layout (6 items, 4-col grid) */
.bento-gal-1 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-gal-2 {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-gal-3 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-gal-4 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-gal-5 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-gal-6 {
    grid-column: span 2;
    grid-row: span 1;
}

.premium-frame-bento::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    border: 1px solid var(--accent-color);
    border-radius: 12px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .bento-intro {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-portrait {
        grid-column: span 1;
        grid-row: span 2;
    }

    .bento-video {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-quote {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-image-1 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-image-2 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-wide-img {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-gal-1 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .bento-gal-2 {
        grid-column: span 1;
        grid-row: span 2;
    }

    .bento-gal-3 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-gal-4 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-gal-5 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-gal-6 {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-box {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 300px;
        /* Explicit height to prevent collapse */
    }

    .bento-intro {
        height: 400px;
    }

    .bento-portrait {
        height: 450px;
    }

    .bento-video {
        height: 250px;
    }
}

/* Gallery Visibility Toggles */
.mobile-only-gallery {
    display: none !important;
}

.desktop-only-gallery {
    display: grid;
}

@media (max-width: 600px) {
    .desktop-only-gallery {
        display: none !important;
    }

    .mobile-only-gallery {
        display: block !important;
        /* Block is required for column-count to work */
    }
}

/* ================================================================
   MOBILE-FIRST COMPREHENSIVE OVERHAUL
   All styles below target screens ≤ 480px (phones)
   ================================================================ */

@media (max-width: 480px) {

    /* ---- Navbar ---- */
    .navbar {
        padding: 1rem 1.2rem;
        justify-content: space-between;
    }

    .logo {
        font-size: 1.1rem;
        letter-spacing: 1.5px;
    }

    /* Move lang-switch into the mobile menu, hide it from top bar */
    .lang-switch {
        display: none;
    }

    /* Show lang-switch inside the open mobile nav */
    .nav-links.active .mobile-lang-row {
        display: flex;
    }

    /* ---- Hero ---- */
    .hero {
        padding: 0 1.2rem;
        align-items: flex-end;
        padding-bottom: 4rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.15;
        margin-bottom: 1rem;
        text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    }

    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
        width: 100%;
        text-align: center;
    }

    /* ---- About ---- */
    .about-grid {
        gap: 1.5rem;
    }

    .about-text h2 {
        font-size: 1.8rem;
    }

    .subtitle {
        font-size: 0.9rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .about-image {
        max-width: 100%;
        margin: 0 auto 1.5rem;
        display: block;
        border-radius: 4px;
    }

    /* ---- Portfolio / Gallery ---- */
    .gallery h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .photo-grid.masonry-layout {
        column-count: 2;
        column-gap: 0.6rem;
    }

    .photo-item {
        margin-bottom: 0.6rem;
    }

    #open-album-gallery {
        width: 100%;
        margin-top: 2rem;
    }

    /* ---- Contact ---- */
    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-item strong {
        font-size: 0.8rem;
    }

    .contact-item a {
        font-size: 1rem;
    }

    .submit-btn {
        width: 100%;
        text-align: center;
        align-self: stretch;
    }

    /* ---- Footer ---- */
    .flex-footer {
        padding: 2rem 1rem;
        gap: 1rem;
    }

    .logo {
        font-size: 1rem;
    }

    /* ---- Lightbox ---- */
    .lightbox-content {
        max-width: 96%;
        max-height: 75vh;
    }

    .prev-lightbox,
    .next-lightbox {
        font-size: 1.8rem;
        padding: 12px 8px;
        /* lower opacity on mobile – swipe is the primary gesture */
        opacity: 0.5;
    }

    .close-lightbox {
        font-size: 2.5rem;
        top: 12px;
        right: 16px;
    }

    /* ---- Album Gallery Overlay ---- */
    .gallery-controls {
        gap: 0.6rem;
    }

    .layout-toggle {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }

    #current-album-title {
        font-size: 1.6rem;
    }

    .back-to-albums {
        font-size: 1rem;
        padding: 0.5rem 0;
    }

    .album-title {
        font-size: 1.1rem;
    }

    /* ---- Meine Welt Bento Grid ---- */
    .bento-section {
        padding: 3rem 0;
    }

    .bento-title {
        font-size: 2rem;
    }

    .bento-grid {
        gap: 0.8rem;
        padding: 0 0.5rem;
    }

    .bento-content h3 {
        font-size: 1.4rem;
    }

    .bento-content h4 {
        font-size: 1rem;
    }

    .bento-content p {
        font-size: 0.95rem;
    }

    /* Flip cards: make tap area more obvious on mobile */
    .flip-hint {
        bottom: 0.8rem;
        right: 0.8rem;
        font-size: 0.8rem;
        opacity: 0.85;
    }

    /* Services Section on Mobile */
    .bento-grid-2-col {
        grid-template-columns: 1fr !important;
    }

    .bento-box[style*="grid-column: 1 / -1"] {
        min-height: auto !important;
    }

    /* Stack Service Hero on mobile */
    .service-hero-card {
        flex-direction: column;
        min-height: auto !important;
        background-image: none !important;
        /* Move image to top */
    }

    .service-hero-card::before {
        content: '';
        width: 100%;
        height: 240px;
        background-image: url('pictures/34BC0C28-AA0A-41FD-859C-BAC1806EEC3D.JPG');
        background-size: cover;
        background-position: center 30%;
        display: block;
    }

    .service-hero-card .card-body {
        padding: 1.5rem !important;
        max-width: 100%;
        background: var(--surface-color);
    }

    /* Mobile Gallery Page */
    .mobile-gallery-container {
        padding-top: 5rem;
    }

    .album-list-mobile {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    #mobile-current-album-title {
        font-size: 1.5rem;
    }

    .back-home-link {
        font-size: 1.2rem;
    }
}

/* ================================================================
   MEINE WELT – Page-Specific Styles
   ================================================================ */

/* ---- Hero ---- */
.mw-hero {
    padding-top: 18vh;
    padding-bottom: 6vh;
    text-align: center;
}

.mw-hero .eyebrow {
    font-size: 0.85rem;
    font-family: var(--font-sans);
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.mw-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.mw-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 680px;
    margin: 0 auto;
}

/* Gold divider line between hero and bento grid */
.section-divider {
    width: 60px;
    height: 1px;
    background: var(--accent-color);
    margin: 0 auto 4rem;
    opacity: 0.6;
}

/* ---- Bento Grid – Fixed image filling ---- */
/* The flip-inner must fill the entire bento-box */
.bento-flip-inner {
    width: 100%;
    height: 100%;
}

/* Front / back faces stay inside bento-box bounds */
.bento-flip-front,
.bento-flip-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
}

/* Images fill their face completely without distortion */
.bento-flip-front .bento-media,
.bento-flip-back .bento-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Portrait box: keep focus on face area */
.bento-portrait .bento-flip-front .bento-media {
    object-position: center 15%;
}

/* Action / landscape boxes: center crop */
.bento-image-1 .bento-flip-front .bento-media,
.bento-image-2 .bento-flip-front .bento-media,
.bento-wide-img .bento-flip-front .bento-media {
    object-position: center center;
}

/* Video also fills its box */
.bento-flip-front video.bento-media {
    object-fit: cover;
    object-position: center center;
}

/* Subtle bottom gradient on image faces for readability */
.bento-flip-front::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 55%);
    pointer-events: none;
    border-radius: 20px;
    z-index: 1;
}

/* Flip-hint sits above gradient overlay */
.flip-hint {
    z-index: 2;
}

/* "Wer ich bin" intro box – warm dark gradient with gold border */
.bento-intro .bento-content {
    background: linear-gradient(135deg, rgba(30, 20, 10, 1) 0%, rgba(15, 12, 8, 1) 100%);
    border: 1px solid rgba(226, 192, 141, 0.2);
    transition: border-color 0.4s ease;
}

.bento-intro:hover .bento-content {
    border-color: rgba(226, 192, 141, 0.5);
}

/* ---- Quote box ---- */
.bento-quote-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-color) 0%, #c9a572 100%);
    border-radius: 20px;
}

.bento-quote-inner .quote-mark {
    font-size: 5rem;
    line-height: 0.5;
    font-family: var(--font-serif);
    color: rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    align-self: flex-start;
}

.bento-quote-inner .quote-text {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--bg-color);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.bento-quote-inner .quote-attr {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.5);
}

/* ---- Services Grid ---- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.service-hero-card {
    grid-column: 1 / -1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 360px;
    display: flex;
    align-items: flex-end;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.15) 100%),
        url('pictures/34BC0C28-AA0A-41FD-859C-BAC1806EEC3D.JPG');
    background-size: cover;
    background-position: center 30%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-hero-card:hover {
    transform: translateY(-4px);
}

.service-hero-card .card-body {
    padding: 3rem;
    max-width: 600px;
}

.service-hero-card h3 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-hero-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    font-size: 1.05rem;
}

.service-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.service-card {
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center top;
    display: block;
    filter: grayscale(30%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.service-card:hover .service-card-img {
    filter: grayscale(0%);
    transform: scale(1.04);
}

.service-card-img-wrapper {
    overflow: hidden;
    flex-shrink: 0;
}

.service-card-body {
    padding: 2rem;
    flex-grow: 1;
}

.service-card-body h3 {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.service-card-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* ---- Meine Welt Mobile Overrides ---- */
@media (max-width: 768px) {
    .mw-hero {
        padding-top: 14vh;
        padding-bottom: 4vh;
    }

    .mw-hero p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-hero-card {
        min-height: 280px;
    }

    .service-hero-card .card-body {
        padding: 2rem;
    }

    .service-hero-card h3 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .mw-hero {
        text-align: left;
        padding-top: 12vh;
    }

    .mw-hero h1 {
        font-size: 2rem;
    }

    .mw-hero p {
        font-size: 0.95rem;
    }

    .service-hero-card {
        min-height: 240px;
        background-image:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.85) 70%),
            url('pictures/34BC0C28-AA0A-41FD-859C-BAC1806EEC3D.JPG');
    }

    .service-hero-card .card-body {
        padding: 1.5rem;
    }

    .service-card-img {
        height: 180px;
    }

    .service-card-body {
        padding: 1.5rem;
    }
}