/* themes/photographer/assets/css/_variables.css */
:root {
    /* COLORS */
    --color-bg: #FAFAFA;
    --color-bg-alt: #F5F3F0;
    --color-surface: #FFFFFF;
    --color-text: #1A1A1A;
    --color-text-muted: #6B6B6B;
    --color-accent: #2C2C2C;
    --color-accent-hover: #000000;
    --color-gold: #C9A962;
    --color-success: #2D5A3D;
    --color-error: #8B3A3A;

    /* FONTS - REMOVED: Defined dynamically in layout.php to prevent FOUC */
    /* --font-heading, --font-body, --font-accent are set via inline style in head */

    /* TYPOGRAPHY SCALE - Responsive with clamp() */
    --text-xs: 0.8rem;
    --text-sm: 0.9rem;
    --text-base: 1.1rem;
    --text-lg: 1.25rem;
    --text-xl: clamp(1.25rem, 2vw, 1.5rem);
    --text-2xl: clamp(1.75rem, 4vw, 2.5rem);
    --text-3xl: clamp(2rem, 5vw, 3.5rem);
    --text-hero: clamp(2.5rem, 8vw, 6rem);

    /* SPACING */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-section: clamp(4rem, 8vw, 8rem);

    /* SHADOWS (Modern Soft) */
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 24px -6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 40px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* RADIUS (More organic) */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* TRANSITIONS */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 150ms;
    --duration-base: 300ms;
    --duration-slow: 500ms;

    /* LAYOUT */
    --container-width: 1600px;
    --header-height: 80px;
}

/* themes/photographer/assets/css/_reset.css */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* Accessibility: Visible Focus */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Skip link visibility */
.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    background: #fff;
    padding: 10px;
    z-index: 9999;
}

.skip-link:focus {
    top: 0;
}

/* themes/photographer/assets/css/_layout.css */

/* Skip Navigation Link - Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent, #2C2C2C);
    color: #fff;
    padding: 12px 24px;
    z-index: 10000;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Mobile First Grid System */
.grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
    /* Default to single column */
}

/* Desktop Overrides */
@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .gap-xl {
        gap: var(--space-xl);
    }
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.gap-4 {
    gap: var(--space-md);
}

.masonry {
    display: flex;
    flex-wrap: wrap;
    margin: calc(-1 * var(--space-xs));
}

.masonry-item {
    width: 50%;
    padding: var(--space-xs);
}

@media (min-width: 768px) {
    .masonry-item {
        width: 33.333%;
    }

    .masonry {
        margin: calc(-1 * var(--space-sm));
    }

    .masonry-item {
        padding: var(--space-sm);
    }
}

/* Visibility Utilities */
@media (max-width: 768px) {

    .hide-mobile,
    .hide-on-mobile {
        display: none !important;
    }

    /* Header Spacer - Hide on mobile where header is relative */
    .header-spacer {
        display: none !important;
    }
}

@media (min-width: 769px) {

    .hide-desktop,
    .hide-on-desktop {
        display: none !important;
    }

    /* Main content offset for pages without hero block at top */
    main.needs-header-offset {
        padding-top: var(--header-height);
    }
}

/* themes/photographer/assets/css/_typography.css */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading, 400);
    line-height: var(--line-height-heading, 1.2);
    letter-spacing: var(--letter-spacing-heading, 0);
    margin-bottom: var(--space-md);
    color: var(--color-heading, var(--color-text));
}

h1 {
    font-size: var(--text-hero);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-muted);
}

.accent-font {
    font-family: var(--font-accent);
    font-style: italic;
}

.text-gold {
    color: var(--color-gold);
}

/* WYSIWYG: Preserve empty paragraph spacing */
.text-content p:empty,
.prose p:empty,
.richtext p:empty,
.hero-subheadline-rich p:empty {
    min-height: 1.5em;
}

/* Fallback for <p><br></p> pattern */
.text-content p:has(> br:only-child),
.prose p:has(> br:only-child),
.richtext p:has(> br:only-child),
.hero-subheadline-rich p:has(> br:only-child) {
    min-height: 1.5em;
}

/* themes/photographer/assets/css/_components.css */
/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out-quart);
    border-radius: var(--radius-full);
    /* Pill shape */
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    border: 1px solid var(--color-accent);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline-primary {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent) !important;
}

.btn-outline-primary:hover {
    background: var(--color-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: var(--color-text);
    border: 1px solid var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-text);
    color: #fff;
    border-color: var(--color-text);
    transform: translateY(-2px);
}

/* Cards (Glassmorphism / Modern Clean) */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: transform var(--duration-base), box-shadow var(--duration-base);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

/* themes/photographer/assets/css/_navigation.css */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    /* Universal Glass - Uses admin color with rgba fallback */
    background: var(--color-header-bg, rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    color: var(--color-header-text, var(--color-text));
    /* Always Black/Dark */
    transition: all var(--duration-base);
    z-index: 100;
}

/* Ensure the container inside header behaves as a flex row */
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-header.scrolled {
    background: var(--color-header-bg, rgba(255, 255, 255, 0.95));
    /* More solid on scroll */
    box-shadow: var(--shadow-sm);
    height: 70px;
}

@media (max-width: 768px) {
    .site-header {
        position: relative;
        /* Natural flow, no overlap */
        height: auto;
        background: #ffffff;
        /* Solid white background */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding-bottom: 10px;
        /* This ensures padding wraps logo */
    }

    .site-header .container {
        justify-content: center;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .logo {
        margin: 0 auto;
    }

    .logo img {
        transform: scale(0.7);
        /* 30% smaller on mobile */
        transform-origin: center center;
    }

    /* Hide cart icon purely via CSS backup if JS fails, though JS handles logic */
    #cart-icon-wrapper {
        position: absolute !important;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}

.nav-desktop {
    display: none;
}

.nav-mobile-bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--color-surface);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-sm) 0;
    padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    z-index: 100;
}

.nav-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-decoration: none;
    min-width: 64px;
    min-height: 48px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.nav-icon-link:active {
    background: rgba(0, 0, 0, 0.05);
}

.nav-icon-link svg,
.nav-icon-link .nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.nav-icon-link svg {
    fill: none;
    stroke: currentColor;
}

.nav-icon-link.active {
    color: var(--color-accent);
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
        gap: var(--space-lg);
    }

    .nav-mobile-bottom {
        display: none;
    }
}

/* Header Inverse Removed - Using Universal White Glass */
/* ===========================================
   HEADER MOBILE MENU STYLES
   Extracted from header.php inline styles
   =========================================== */

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

/* Show overlay only when active on mobile */
@media (max-width: 768px) {
    .mobile-menu-overlay.active {
        display: flex;
    }
}

/* Show menu overlay on desktop for minimal layout (only when active) */
.mobile-menu-overlay.desktop-enabled.active {
    display: flex;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f1f1;
}

.mobile-menu-header .logo {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

.close-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #1a1a1a;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.mobile-menu-links a {
    font-size: 1.5rem;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 400;
    font-family: var(--font-heading, 'Playfair Display', serif);
    transition: color 0.2s ease;
}

.mobile-menu-links a:hover {
    color: var(--color-primary, #e57373);
}

/* Hamburger Button */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #1a1a1a;
    z-index: 10;
}

/* Hide hamburger on desktop for all layouts except minimal */
@media (min-width: 769px) {
    .hamburger-btn {
        display: none !important;
    }

    /* Only show for minimal layout on desktop */
    .site-header.layout-minimal .hamburger-btn {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .desktop-menu-wrapper {
        display: none !important;
    }

    .hamburger-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        border-radius: 8px;
        transition: background 0.2s;
    }

    .hamburger-btn:active {
        background: rgba(0, 0, 0, 0.05);
    }

    .site-header .container {
        position: relative;
    }

    /* Minimal Layout Fixes */
    .site-header.layout-minimal .desktop-menu-wrapper {
        display: flex !important;
        margin-right: 50px;
        /* Space for hamburger */
        justify-content: flex-end;
    }

    .site-header.layout-minimal .desktop-menu-wrapper .actions-wrapper {
        gap: 8px;
        /* Tighter gap */
    }

    /* Improved Mobile CTA Styling */
    .site-header.layout-minimal .desktop-menu-wrapper .btn {
        padding: 4px 14px !important;
        font-size: 0.7rem !important;
        height: auto;
        min-height: 36px;
        letter-spacing: 0.05em;
        border-radius: 99px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        text-align: center;
        line-height: 1.1 !important;
        /* Ensure it shows */
    }

    /* FIX: Respect visibility settings */
    .site-header.layout-minimal .desktop-menu-wrapper .btn.hide-mobile {
        display: none !important;
    }
}

.nav-mobile-bottom .icon-svg svg {
    width: 100%;
    height: 100%;
}

/* Cart Pulse Animation */
@keyframes pulse-cart {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }

    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 5px rgba(255, 0, 0, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.cart-pulse {
    animation: pulse-cart 0.6s ease-in-out;
}

/* Mobile Icon Fix */
.nav-icon-link svg,
.nav-icon-link .nav-icon svg,
.nav-mobile-bottom svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 2px !important;
}

/* ===== DESKTOP LAYOUT VARIATIONS ===== */

/* CENTERED: Logo on top, menu below */
.site-header.layout-centered {
    height: auto !important;
    min-height: var(--header-height);
    padding: 1rem 0;
    position: relative;
}

.site-header.layout-centered .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 0;
}

.site-header.layout-centered .logo {
    margin-bottom: 0.75rem;
}

.site-header.layout-centered .desktop-menu-wrapper {
    justify-content: center !important;
    flex: none;
    width: auto;
    gap: 1.5rem;
}

.site-header.layout-centered .nav-desktop {
    justify-content: center;
}

.site-header.layout-centered .actions-wrapper {
    position: static;
    margin-left: 1rem;
}

/* SPLIT: Menu items around centered logo */
.site-header.layout-split .container {
    justify-content: center;
}

.site-header.layout-split .logo {
    order: 2;
    margin: 0 2rem;
}

.site-header.layout-split .desktop-menu-wrapper {
    display: contents;
}

.site-header.layout-split .nav-desktop {
    display: flex;
    flex: 1;
}

.site-header.layout-split .nav-desktop:first-of-type {
    order: 1;
    justify-content: flex-end;
}

.site-header.layout-split .actions-wrapper {
    order: 3;
    flex: 1;
    justify-content: flex-start !important;
}

/* MINIMAL: Hamburger menu even on desktop */
.site-header.layout-minimal .desktop-menu-wrapper {
    display: flex !important;
}

.site-header.layout-minimal .nav-desktop {
    display: none !important;
}

.site-header.layout-minimal .hamburger-btn {
    display: flex !important;
}

@media (min-width: 769px) {
    .site-header.layout-minimal .hamburger-btn {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
    }
}

/* themes/photographer/assets/css/_gallery.css */

/* --- Gallery Wrapper --- */
.gallery-wrapper {
    width: 100%;
}

/* Loading State (FOUC Prevention) */
.gallery-loading {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    min-height: 200px;
    /* Prevent total collapse */
    position: relative;
}

.gallery-loading::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: 3px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: gallery-spin 1s linear infinite;
    z-index: 10;
}

@keyframes gallery-spin {
    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

.gallery-loaded {
    opacity: 1;
}

/* --- Gaps --- */
.gap-none {
    --gallery-gap: 0px;
}

.gap-small {
    --gallery-gap: 8px;
}

.gap-medium {
    --gallery-gap: 16px;
}

.gap-large {
    --gallery-gap: 24px;
}

.gap-xlarge {
    --gallery-gap: 32px;
}

/* --- Columns --- */
.cols-2 {
    --gallery-cols: 2;
}

.cols-3 {
    --gallery-cols: 3;
}

.cols-4 {
    --gallery-cols: 4;
}

.cols-5 {
    --gallery-cols: 5;
}

/* Mobile Defaults */
:root {
    --gallery-cols-mobile: 1;
    --gallery-cols-tablet: 2;
}

/* --- Layout: GRID --- */
.layout-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-cols), 1fr);
    gap: var(--gallery-gap);
}

@media (max-width: 900px) {
    .layout-grid {
        grid-template-columns: repeat(var(--gallery-cols-tablet), 1fr);
    }
}

@media (max-width: 600px) {
    .layout-grid {
        grid-template-columns: repeat(var(--gallery-cols-mobile), 1fr);
    }
}

/* --- Layout: MASONRY (JS Controlled) --- */
.layout-masonry {
    display: flex;
    gap: var(--gallery-gap);
    align-items: flex-start;
}

.masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--gallery-gap);
}

/* Fallback if JS fails */
.layout-masonry.no-js {
    display: block;
    column-count: var(--gallery-cols);
    column-gap: var(--gallery-gap);
}

/* --- Layout: JUSTIFIED (JS Controlled) --- */
.layout-justified {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gallery-gap);
}

/* Spacer to prevent last row resizing (Noodle fix) */
.layout-justified::after {
    content: '';
    flex-grow: 10000;
    min-width: 33%;
    height: 0;
    visibility: hidden;
}

.layout-justified .gallery-item {
    /* JS will set flex-grow / flex-basis / height */
    flex-grow: 1;
    margin: 0;
}

.layout-justified.no-js .gallery-item {
    height: 250px;
    width: auto;
}

.layout-justified .gallery-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    /* Anti-flicker: outline covers subpixel gaps */
    outline: 1px solid transparent;
}

/* --- Layout: CAROUSEL --- */
.layout-carousel {
    position: relative;
}

.gallery-carousel-track {
    display: flex;
    gap: var(--gallery-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    /* Scrollbar space */
    scrollbar-width: none;
}

.gallery-carousel-track::-webkit-scrollbar {
    display: none;
}

.layout-carousel .gallery-item {
    flex: 0 0 calc(100% / var(--gallery-cols) - var(--gallery-gap));
    scroll-snap-align: start;
    min-width: 250px;
}

.carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.carousel-controls button {
    background: var(--color-bg-alt, #f0f0f0);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-controls button:hover {
    background: var(--color-accent);
    color: white;
}

/* --- Aspect Ratios (Only for GRID and CAROUSEL) --- */
.layout-grid.ratio-square .gallery-figure,
.layout-carousel.ratio-square .gallery-figure {
    aspect-ratio: 1 / 1;
}

.layout-grid.ratio-portrait .gallery-figure,
.layout-carousel.ratio-portrait .gallery-figure {
    aspect-ratio: 2 / 3;
}

.layout-grid.ratio-landscape .gallery-figure,
.layout-carousel.ratio-landscape .gallery-figure {
    aspect-ratio: 3 / 2;
}

.layout-grid.ratio-landscape_wide .gallery-figure,
.layout-carousel.ratio-landscape_wide .gallery-figure {
    aspect-ratio: 16 / 9;
}

/* Objects fit for forced ratios */
.layout-grid:not(.ratio-original) .gallery-image,
.layout-carousel:not(.ratio-original) .gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Base Item Styles --- */
.gallery-item,
.image-figure {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    /* Optional rounded corners */
    /* Fix for Safari border-radius clipping during transform */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    transform: translateZ(0);
}

.gallery-figure {
    margin: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-image,
.image-figure img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s;
    /* Anti-flicker fixes */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
    transform: translateZ(0);
    outline: 1px solid transparent;
}

/* --- CURSOR STYLES (User Configurable) --- */

.cursor-pointer .gallery-item,
.cursor-pointer .image-figure {
    cursor: pointer !important;
}

.cursor-zoom-in .gallery-item,
.cursor-zoom-in .image-figure {
    cursor: zoom-in !important;
}

.cursor-default .gallery-item,
.cursor-default .image-figure,
.cursor-default a {
    cursor: default !important;
}

/* Auto falls back to browser default (pointer for links) */


/* --- HOVER ICONS (Overlay) --- */

/* Base Overlay for Icons */
[class*="icon-"]:not(.icon-none) .gallery-item::before,
[class*="icon-"]:not(.icon-none) .image-figure::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    pointer-events: none;
    /* Click falls through to image/link */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);

    /* Icon Image setup */
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
}

[class*="icon-"]:not(.icon-none) .gallery-item:hover::before,
[class*="icon-"]:not(.icon-none) .image-figure:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Icon Variations (SVGs) */
.icon-search .gallery-item::before,
.icon-search .image-figure::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
}

.icon-eye .gallery-item::before,
.icon-eye .image-figure::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'%3E%3C/path%3E%3Ccircle cx='12' cy='12' r='3'%3E%3C/circle%3E%3C/svg%3E");
}

.icon-plus .gallery-item::before,
.icon-plus .image-figure::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
}

.icon-arrow .gallery-item::before,
.icon-arrow .image-figure::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
}


/* --- Hover Effects --- */

/* Zoom */
.hover-zoom .gallery-item:hover .gallery-image,
.hover-zoom .image-figure:hover img {
    transform: scale(1.05);
}

/* Darken */
.hover-darken .gallery-item:after,
.hover-darken .image-figure:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
    /* Below icon */
}

.hover-darken .gallery-item:hover:after,
.hover-darken .image-figure:hover:after {
    opacity: 1;
}

/* Grayscale */
.hover-grayscale .gallery-image,
.hover-grayscale .image-figure img {
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.hover-grayscale .gallery-item:hover .gallery-image,
.hover-grayscale .image-figure:hover img {
    filter: grayscale(0%);
}

/* Caption (Overlay) */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    font-size: 0.9rem;
    transform: translateY(100%);
    transition: transform 0.3s;
    z-index: 2;
}

.hover-caption .gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.layout-masonry .gallery-caption {
    position: static;
    background: transparent;
    color: var(--text-primary);
    padding: 8px 0;
    transform: none;
}

/* Block styles for Page Builder */

/* Default spacing between blocks - minimal margin */
[class^="block-"],
[class*=" block-"] {
    margin-top: 0;
    margin-bottom: 0;
}

/* First block on page - NO margin (header offset handled by layout) */
.page-blocks-container>*:first-child,
main>[class^="block-"]:first-child,
main>[class*=" block-"]:first-child,
[class^="block-"]:first-child,
[class*=" block-"]:first-child {
    margin-top: 0;
}

/* Page-level block gap settings - override all block padding */
.block-gap-none>* {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.block-gap-small>* {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
}

.block-gap-medium>* {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 0 !important;
}

.block-gap-large>* {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
    margin-bottom: 0 !important;
}

/* Remove padding from last block's bottom */
.page-blocks-container>*:last-child {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* Spacer block resets any default spacing */
.block-spacer {
    margin: 0;
    padding: 0;
}

/* Background utilities */
.bg-white {
    background-color: #fff;
}

.bg-transparent {
    background-color: transparent;
}

.bg-light-gray {
    background-color: #f8f8f8;
}

.bg-dark {
    background-color: #1a1a1a;
    color: #fff;
}

.bg-brand {
    background-color: #8b7355;
    color: #fff;
}

.bg-custom {
    /* Custom background color applied via inline style */
    background-color: inherit;
}

/* Padding utilities */
.padding-none {
    padding-top: 0;
    padding-bottom: 0;
}

.padding-small {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.padding-medium {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.padding-large {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

/* Hero Split Block */
.block-hero-split {
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Image on left - reverse the order */
.hero-split-grid.image-left {
    direction: rtl;
}

.hero-split-grid.image-left>* {
    direction: ltr;
}

.hero-split-content {
    max-width: 600px;
}

.hero-headline {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--font-weight-heading, 400);
    line-height: var(--line-height-heading, 1.2);
    letter-spacing: var(--letter-spacing-heading, 0);
    margin-bottom: 1rem;
}

.hero-subheadline {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-split-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Hero Fullscreen Block */
.block-hero-fullscreen {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    /* margin-top: var(--header-height); Removed to prevent gap when used as 2nd block */
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-hero-fullscreen .hero-overlay {
    position: absolute;
    inset: 0;
}

.block-hero-fullscreen .hero-fullscreen-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.block-hero-fullscreen .hero-headline {
    font-family: var(--font-heading);
    font-size: var(--text-hero);
    font-weight: var(--font-weight-heading, 400);
    line-height: var(--line-height-heading, 1.2);
    letter-spacing: var(--letter-spacing-heading, 0);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* Text Block */
.block-text .text-content {
    max-width: 100%;
    margin: 0 auto;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    /* Inherit from global typography settings (Správce písma) */
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading, 400);
    line-height: var(--line-height-heading, 1.2);
    letter-spacing: var(--letter-spacing-heading, 0);
}

/* Remove margin-top for first element in prose */
.prose>*:first-child {
    margin-top: 0 !important;
}

.prose h1 {
    font-size: var(--text-hero);
}

.prose h2 {
    font-size: var(--text-3xl);
}

.prose h3 {
    font-size: var(--text-2xl);
}

.prose p {
    font-size: var(--text-base, 1.1rem);
    margin-bottom: 1em;
    line-height: 1.7;
}

.prose a {
    color: #8b7355;
    text-decoration: underline;
}

.prose ul,
.prose ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.prose li {
    margin-bottom: 0.5em;
}

/* Image Single Block */
.block-image-single .image-figure {
    margin: 0;
    text-align: center;
}

.block-image-single img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.block-image-single figcaption {
    margin-top: 1rem;
    color: #666;
    font-style: italic;
}

/* Gallery Grid Block */
.gallery-grid {
    display: grid;
    gap: 1rem;
}

.gallery-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-grid.gap-small {
    gap: 0.5rem;
}

.gallery-grid.gap-medium {
    gap: 1rem;
}

.gallery-grid.gap-large {
    gap: 2rem;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

/* CTA Banner Block */
.block-cta-banner {
    padding: 4rem 0;
}

.cta-bg-brand {
    background-color: #8b7355;
    color: #fff;
}

.cta-bg-dark {
    background-color: #1a1a1a;
    color: #fff;
}

.cta-bg-light {
    background-color: #f8f8f8;
    color: #333;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-headline {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #fff;
    color: #333;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Spacer Block */
.block-spacer {
    width: 100%;
}

/* Divider Block handled inline */

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-split-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .hero-split-content {
        text-align: center;
        padding: 0 1rem;
    }

    .hero-headline {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .hero-subheadline {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta-group {
        justify-content: center;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-cta-group .btn {
        width: 100%;
        text-align: center;
    }

    .gallery-grid.columns-3,
    .gallery-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* CTA Banner mobile */
    .block-cta-banner {
        padding: 2.5rem 0;
    }

    .cta-headline {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-cta {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {

    .gallery-grid.columns-2,
    .gallery-grid.columns-3,
    .gallery-grid.columns-4 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .hero-split-content {
        padding: 0 0.5rem;
    }

    .padding-small {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .padding-medium {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .padding-large {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    /* FIX: Remove top margin for first block on mobile because header is relative */
    .page-blocks-container>*:first-child,
    main>[class^="block-"]:first-child,
    main>[class*=" block-"]:first-child,
    [class^="block-"]:first-child,
    [class*=" block-"]:first-child,
    /* Handle case where header-spacer exists but is hidden */
    .header-spacer+*,
    .header-spacer+[class^="block-"],
    main>.header-spacer+* {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* Contact Form Block */
.block-contact-form {
    position: relative;
}

.form-headline {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.cms-form {
    max-width: 600px;
    margin: 0 auto;
}

.cms-form .form-group {
    margin-bottom: 1.5rem;
}

.cms-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.cms-form .required {
    color: #e53935;
    margin-left: 2px;
}

.cms-form input[type="text"],
.cms-form input[type="email"],
.cms-form input[type="tel"],
.cms-form input[type="date"],
.cms-form select,
.cms-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: #fff;
}

.cms-form input:focus,
.cms-form select:focus,
.cms-form textarea:focus {
    outline: none;
    border-color: #8b7355;
    box-shadow: 0 0 0 4px rgba(139, 115, 85, 0.1);
}

.cms-form textarea {
    resize: vertical;
    min-height: 120px;
}

.cms-form .form-actions {
    margin-top: 2rem;
    text-align: center;
}

.cms-form .btn-primary {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.form-success-message {
    text-align: center;
    padding: 3rem;
    background: #e8f5e9;
    border-radius: 12px;
    color: #2e7d32;
    font-size: 1.2rem;
}

/* Form validation states */
/* Form validation states - disabled by user request (only asterisk remains) */
/* .cms-form input:invalid:not(:placeholder-shown),
.cms-form textarea:invalid:not(:placeholder-shown) {
    border-color: #e53935;
}

.cms-form input:valid:not(:placeholder-shown),
.cms-form textarea:valid:not(:placeholder-shown) {
    border-color: #43a047;
} */

/* -------------------------------------------------------------------------- */
/*  HERO CAROUSEL BLOCK
/* -------------------------------------------------------------------------- */

.block-hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    background-color: transparent;
}

.hero-carousel-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 10;
}

.hero-slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    /* Opacity set inline via PHP */
}

/* Content */
.hero-carousel-content-wrapper {
    position: relative;
    z-index: 20;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
}

.hero-content {
    max-width: 800px;
    position: relative;
}

.block-hero-carousel .hero-headline {
    font-family: var(--font-heading);
    font-weight: var(--font-weight-heading, 400);
    line-height: var(--line-height-heading, 1.1);
    letter-spacing: var(--letter-spacing-heading, 0);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-headline.small {
    font-size: var(--text-2xl);
}

.hero-headline.medium {
    font-size: var(--text-3xl);
}

.hero-headline.large {
    font-size: var(--text-hero);
}

.hero-headline.xlarge {
    font-size: var(--text-hero);
}

.block-hero-carousel .hero-subheadline {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    font-style: normal;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: 2px solid transparent;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent !important;
    border-width: 2px;
}

/* Dots Navigation */
.hero-carousel-dots {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 30;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
    width: 30px;
    border-radius: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .block-hero-carousel {
        min-height: 500px;
        /* Fallback for mobile height issues */
        height: 100dvh;
        /* Dynamic viewport height */
    }

    .hero-headline.small {
        font-size: 2rem;
    }

    .hero-headline.medium {
        font-size: 2.5rem;
    }

    .hero-headline.large {
        font-size: 3rem;
    }

    .hero-headline.xlarge {
        font-size: 3.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hide-mobile {
        display: none !important;
    }
}

/* === 23. BENTO GRID === */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.bento-item {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item:hover {
    transform: scale(1.02);
}

/* Size Classes 1x1 to 4x4 */
/* Row 1 Height */
.bento-item.size-1x1 {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-item.size-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-item.size-3x1 {
    grid-column: span 3;
    grid-row: span 1;
}

.bento-item.size-4x1 {
    grid-column: span 4;
    grid-row: span 1;
}

/* Row 2 Height */
.bento-item.size-1x2 {
    grid-column: span 1;
    grid-row: span 2;
}

.bento-item.size-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.size-3x2 {
    grid-column: span 3;
    grid-row: span 2;
}

.bento-item.size-4x2 {
    grid-column: span 4;
    grid-row: span 2;
}

/* Row 3 Height */
.bento-item.size-1x3 {
    grid-column: span 1;
    grid-row: span 3;
}

.bento-item.size-2x3 {
    grid-column: span 2;
    grid-row: span 3;
}

.bento-item.size-3x3 {
    grid-column: span 3;
    grid-row: span 3;
}

.bento-item.size-4x3 {
    grid-column: span 4;
    grid-row: span 3;
}

/* Row 4 Height */
.bento-item.size-1x4 {
    grid-column: span 1;
    grid-row: span 4;
}

.bento-item.size-2x4 {
    grid-column: span 2;
    grid-row: span 4;
}

.bento-item.size-3x4 {
    grid-column: span 3;
    grid-row: span 4;
}

.bento-item.size-4x4 {
    grid-column: span 4;
    grid-row: span 4;
}

.bento-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* RESET DEFAULT HOVER BEHAVIOR to NONE (Force override) */
.bento-item:hover .bento-bg {
    transform: none !important;
}

/* Gap Sizes */
.bento-grid.gap-small {
    gap: 0.5rem;
}

.bento-grid.gap-medium {
    gap: 1.5rem;
}

.bento-grid.gap-large {
    gap: 3rem;
}

/* Effect: Zoom (Default) */
.bento-grid.hover-effect-zoom .bento-item:hover .bento-bg {
    transform: scale(1.1) !important;
}

/* Effect: Grayscale -> Color */
.bento-grid.hover-effect-grayscale .bento-bg {
    filter: grayscale(100%);
}

.bento-grid.hover-effect-grayscale .bento-item:hover,
.bento-grid.hover-effect-grayscale .bento-item:hover .bento-bg {
    filter: grayscale(0%);
    transform: none !important;
}

/* Effect: Brightness */
.bento-grid.hover-effect-brightness .bento-item:hover,
.bento-grid.hover-effect-brightness .bento-item:hover .bento-bg {
    filter: brightness(0.7);
    transform: none !important;
}

/* Effect: None - KILL ALL MOVEMENT */
.bento-grid.hover-effect-none .bento-item:hover,
.bento-grid.hover-effect-none .bento-item:hover .bento-bg {
    transform: none !important;
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-item.theme-dark {
    color: white;
}

.bento-item.theme-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    z-index: 1;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 250px;
    }
}

/* themes/photographer/assets/css/animations.css */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-up {
    animation-name: fadeInUp;
    animation-fill-mode: both;
    animation-duration: 0.8s;
    animation-timing-function: var(--ease-out-quart);
}

.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Subtle Image Scale on load */
@keyframes imageReveal {
    from {
        transform: scale(1.1);
        filter: blur(10px);
        opacity: 0;
    }

    to {
        transform: scale(1);
        filter: blur(0);
        opacity: 1;
    }
}

.hero-bg img {
    animation: imageReveal 1.5s var(--ease-out-expo) forwards;
}

/* Premium Hover effects */
.hover-underline-animation {
    display: inline-block;
    position: relative;
    color: var(--color-accent);
}

.hover-underline-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-gold);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.hover-underline-animation:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Lightbox Styles - Modern 2026 UX */

.radi-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.radi-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.radi-lightbox .lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.radi-lightbox .lightbox-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.radi-lightbox .lightbox-content {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radi-lightbox .lightbox-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.3s ease;
}

/* Specific Size Overrides */
.radi-lightbox.size-small .lightbox-image {
    max-width: 600px;
    max-height: 80vh;
    object-fit: contain;
    /* Ensure it fits if screen is smaller than 600px */
}

.radi-lightbox.size-medium .lightbox-image {
    max-width: 1000px;
    max-height: 90vh;
}

.radi-lightbox.size-large .lightbox-image {
    max-width: 1600px;
    max-height: 95vh;
}

.radi-lightbox.size-original .lightbox-image {
    max-width: 100%;
    max-height: 95vh;
}

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

.radi-lightbox.loading .lightbox-image {
    opacity: 0.5;
}

/* Close Button */
.radi-lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 100;
    /* Ensure it is above the image */
}

.radi-lightbox .lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Navigation Arrows */
.radi-lightbox .lightbox-prev,
.radi-lightbox .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.radi-lightbox .lightbox-prev {
    left: 20px;
    border-radius: 8px;
}

.radi-lightbox .lightbox-next {
    right: 20px;
    border-radius: 8px;
}

.radi-lightbox .lightbox-prev:hover,
.radi-lightbox .lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Counter */
.radi-lightbox .lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 100;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .radi-lightbox .lightbox-container {
        padding: 60px 15px;
    }

    .radi-lightbox .lightbox-prev,
    .radi-lightbox .lightbox-next {
        width: 40px;
        height: 60px;
        font-size: 28px;
    }

    .radi-lightbox .lightbox-prev {
        left: 10px;
    }

    .radi-lightbox .lightbox-next {
        right: 10px;
    }

    .radi-lightbox .lightbox-close {
        top: 15px;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .radi-lightbox .lightbox-image {
        max-height: 80vh;
    }
}

/* Gallery Item Hover Effect Enhancement */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item a {
    display: block;
    position: relative;
}

.gallery-item a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item a:hover::after {
    opacity: 1;
}

.gallery-item a::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 2rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.gallery-item a:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* === HOTFIX: Restore List Styles 2026-02-01 === */
.text-content ul,
.prose ul,
.richtext ul,
.bt-subheadline ul,
.bt-tile-text ul,
.hero-subheadline-rich ul,
.block-text ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1rem;
}

.text-content ol,
.prose ol,
.richtext ol,
.bt-subheadline ol,
.bt-tile-text ol,
.hero-subheadline-rich ol,
.block-text ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-bottom: 1rem;
}

.text-content li,
.prose li,
.richtext li,
.bt-subheadline li,
.bt-tile-text li,
.hero-subheadline-rich li,
.block-text li {
    display: list-item !important;
    margin-bottom: 0.25rem;
}

/* Fix for nested p tags in lists which is common in Tiptap */
.text-content li p,
.prose li p,
.richtext li p,
.bt-subheadline li p,
.bt-tile-text li p,
.hero-subheadline-rich li p,
.block-text li p {
    margin: 0;
    display: inline-block;
}