/* EVA Frontend Styles - Modern Minimalist */

/* CSS Variables for Light Mode */
:root {
    --eva-bg: #ffffff;
    --eva-text: #000000;
    --eva-text-secondary: #666666;
    --eva-border: #e5e5e5;
    --eva-control-bg: rgba(255, 255, 255, 0.9);
    --eva-control-hover: rgba(0, 0, 0, 0.05);
    --eva-lightbox-bg: rgba(0, 0, 0, 0.95);
    --eva-lightbox-text: #ffffff;
    --eva-rating-bg: rgba(255, 255, 255, 0.95);
    --eva-rating-border: rgba(0, 0, 0, 0.1);
    --eva-comment-bg: rgba(255, 255, 255, 0.95);
    --eva-comment-input-bg: #ffffff;
    --eva-comment-input-border: #e5e5e5;
    --eva-comment-indicator: rgba(0, 0, 0, 0.7);
    --eva-btn-bg: #f4f4f4;
    --eva-btn-bg-hover: #dddddd;
    --eva-btn-border: #dddddd;
    --eva-btn-border-hover: #dddddd;
    --eva-btn-text: #8A8A8A;
    --eva-btn-text-hover: #141414;
    --eva-bg-secondary: #f9f9f9;
    --eva-accent: #0073aa;
    --eva-horizontal-padding: 24px;
}

/* CSS Variables for Dark Mode */
.eva-dark-mode {
    --eva-bg: #141414;
    --eva-text: #ffffff;
    --eva-text-secondary: #999999;
    --eva-border: #333333;
    --eva-control-bg: rgba(20, 20, 20, 0.8);
    --eva-control-hover: rgba(255, 255, 255, 0.1);
    --eva-lightbox-bg: rgba(20, 20, 20, 0.98);
    --eva-lightbox-text: #ffffff;
    --eva-rating-bg: rgba(20, 20, 20, 0.95);
    --eva-rating-border: rgba(255, 255, 255, 0.2);
    --eva-comment-bg: rgba(20, 20, 20, 0.95);
    --eva-comment-input-bg: #1a1a1a;
    --eva-comment-input-border: #333333;
    --eva-comment-indicator: rgba(255, 255, 255, 0.3);
    --eva-btn-bg: #141414;
    --eva-btn-bg-hover: #282828;
    --eva-btn-border: #282828;
    --eva-btn-border-hover: #282828;
    --eva-btn-text: #dddddd;
    --eva-btn-text-hover: #ffffff;
    --eva-bg-secondary: #1a1a1a;
    --eva-accent: #4a9eff;
}

/* Base */
* {
    box-sizing: border-box;
}

/* Ensure body and html have the same background as the gallery */
body,
html {
    background: var(--eva-bg, #ffffff);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode for body */
body.eva-dark-mode,
.eva-dark-mode {
    background: var(--eva-bg, #141414);
}

.eva-gallery-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--eva-bg);
    color: var(--eva-text);
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1), 
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth transitions for theme switching - apply to relevant elements */
.eva-gallery-wrapper,
.eva-gallery-wrapper .eva-hero-content,
.eva-gallery-wrapper .eva-hero-title,
.eva-gallery-wrapper .eva-hero-date,
.eva-gallery-wrapper .eva-hero-description,
.eva-gallery-wrapper .eva-gallery-grid,
.eva-gallery-wrapper .eva-gallery-item,
.eva-gallery-wrapper svg {
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                fill 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                stroke 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.eva-hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: var(--eva-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.eva-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.eva-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(8px);
    transform: scale(1.1);
}

.eva-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-dark-mode .eva-hero::after {
    background: rgba(0, 0, 0, 0.5);
}

.eva-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 3;
    background: var(--eva-bg);
    mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 100%);
    pointer-events: none;
    transition: background 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 var(--eva-horizontal-padding, 24px);
    color: #000000;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-dark-mode .eva-hero-content {
    color: #ffffff;
}

.eva-hero-title {
    font-size: var(--eva-title-font-size, 48px);
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
    color: #000000;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-dark-mode .eva-hero-title {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.eva-hero-date {
    font-size: var(--eva-date-font-size, 14px);
    font-weight: 300;
    letter-spacing: 0.02em;
    margin: 0 0 16px 0;
    color: rgba(0, 0, 0, 0.7);
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.3);
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-dark-mode .eva-hero-date {
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.eva-hero-description {
    max-width: 600px;
    margin: 0 auto;
}

.eva-hero-description p {
    font-size: var(--eva-description-font-size, 16px);
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.8);
    margin: 0;
    font-weight: 300;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.3);
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1), text-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-dark-mode .eva-hero-description p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Gallery Filters - Bottom Left in Hero */
.eva-gallery-filters {
    position: absolute;
    bottom: 24px;
    left: var(--eva-horizontal-padding, 24px);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    max-width: calc(100% - 200px);
}

.eva-filter-btn {
    padding: 10px 14px;
    height: 36px;
    min-width: 36px;
    border: 1px solid #dddddd;
    background: #f4f4f4;
    color: #8A8A8A;
    border-radius: 8px;
    cursor: pointer;
    font-size: var(--eva-button-font-size, 12px);
    font-weight: 400;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s ease;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    white-space: nowrap;
}

.eva-filter-btn:hover {
    background: #dddddd;
    border-color: #dddddd;
    color: #141414;
    transform: translateY(-1px);
}

.eva-filter-btn:hover .eva-filter-dot-none {
    border-color: #141414;
}

.eva-filter-btn:active {
    transform: translateY(0);
}

.eva-filter-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #dddddd;
}

/* Dark Mode Button Styles */
.eva-dark-mode .eva-filter-btn {
    background: #141414;
    border-color: #333333;
    color: #dddddd;
}

.eva-dark-mode .eva-filter-btn:hover {
    background: #282828;
    border-color: #444444;
    color: #ffffff;
}

.eva-dark-mode .eva-filter-btn:hover .eva-filter-dot-none {
    border-color: #ffffff;
}

.eva-dark-mode .eva-filter-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #dddddd;
}

.eva-download-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.eva-download-btn svg {
    flex-shrink: 0;
}

.eva-filter-dot {
    width: var(--eva-filter-dot-size, 8px);
    height: var(--eva-filter-dot-size, 8px);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* Square style for filter dots (like dots but square) */
.eva-gallery-filters[data-rating-style="flags"] .eva-filter-dot:not(.eva-filter-dot-none),
.eva-mobile-filters[data-rating-style="flags"] .eva-filter-dot:not(.eva-filter-dot-none) {
    border-radius: 0;
}

/* Symbol style for filter dots */
.eva-gallery-filters[data-rating-style="symbols"] .eva-filter-dot:not(.eva-filter-dot-none),
.eva-mobile-filters[data-rating-style="symbols"] .eva-filter-dot:not(.eva-filter-dot-none) {
    display: none;
}

/* Filter icon styles */
.eva-filter-icon {
    width: var(--eva-rating-size, 8px);
    height: var(--eva-rating-size, 8px);
    display: block;
    flex-shrink: 0;
}

.eva-filter-green .eva-filter-icon {
    color: var(--eva-rating-green, #10b981);
}

.eva-filter-yellow .eva-filter-icon {
    color: var(--eva-rating-yellow, #f59e0b);
}

.eva-filter-red .eva-filter-icon {
    color: var(--eva-rating-red, #ef4444);
}

.eva-filter-dot-green {
    background: var(--eva-rating-green, #10b981);
}

.eva-filter-dot-yellow {
    background: var(--eva-rating-yellow, #f59e0b);
}

.eva-filter-dot-red {
    background: var(--eva-rating-red, #ef4444);
}

.eva-filter-dot-none {
    width: var(--eva-filter-dot-size, 8px);
    height: var(--eva-filter-dot-size, 8px);
    border-radius: 50%;
    background: transparent;
    border: 1.5px dashed #8A8A8A;
}

.eva-filter-btn.active .eva-filter-dot-none {
    border-color: rgba(0, 0, 0, 0.4);
}

/* Dark Mode Filter Dot None */
.eva-dark-mode .eva-filter-dot-none {
    border-color: #dddddd;
}

/* Gallery Controls - Bottom Right in Hero */
.eva-gallery-controls {
    position: absolute;
    bottom: 24px;
    right: var(--eva-horizontal-padding, 24px);
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.eva-control-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid #dddddd;
    background: #f4f4f4;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8A8A8A;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.eva-control-btn:hover {
    background: #dddddd;
    border-color: #dddddd;
    color: #141414;
    transform: translateY(-1px);
}

.eva-control-btn:active {
    transform: translateY(0);
}

.eva-control-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #dddddd;
}

/* Dark Mode Control Button Styles */
.eva-dark-mode .eva-control-btn {
    background: #141414;
    border-color: #333333;
    color: #dddddd;
}

.eva-dark-mode .eva-control-btn:hover {
    background: #282828;
    border-color: #444444;
    color: #ffffff;
}

.eva-dark-mode .eva-control-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #dddddd;
}

.eva-control-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: inherit;
    stroke: currentColor;
    fill: none;
}

.eva-theme-icon-light,
.eva-theme-icon-dark {
    width: 20px;
    height: 20px;
    position: absolute;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    flex-shrink: 0;
}

.eva-theme-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eva-dark-mode .eva-theme-icon-light {
    opacity: 0;
}

.eva-dark-mode .eva-theme-icon-dark {
    opacity: 1;
}

.eva-gallery-wrapper:not(.eva-dark-mode) .eva-theme-icon-light {
    opacity: 1;
}

.eva-gallery-wrapper:not(.eva-dark-mode) .eva-theme-icon-dark {
    opacity: 0;
}


/* Gallery Grid */
.eva-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 48px var(--eva-horizontal-padding, 24px) 48px;
    position: relative;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), grid-template-columns 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

.eva-gallery-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr) !important;
}

.eva-gallery-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr) !important;
}

.eva-gallery-grid[data-columns="5"] {
    grid-template-columns: repeat(5, 1fr) !important;
}

.eva-gallery-grid[data-columns="6"] {
    grid-template-columns: repeat(6, 1fr) !important;
}

.eva-gallery-grid[data-view="grid"] {
    display: grid !important;
    height: auto !important;
    padding: 48px var(--eva-horizontal-padding, 24px) 48px !important;
}

.eva-gallery-grid[data-view="grid"] .eva-gallery-item {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 100% !important;
    overflow: hidden;
    cursor: pointer;
    border-radius: 15px;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), left 0.4s cubic-bezier(0.4, 0, 0.2, 1), top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    left: auto !important;
    top: auto !important;
    height: auto !important;
    opacity: 1 !important;
    margin: 0 !important;
    background: var(--eva-bg);
}

.eva-gallery-item.eva-filtered {
    display: none !important;
}

.eva-gallery-grid.eva-transitioning .eva-gallery-item {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-gallery-grid[data-view="grid"] .eva-gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

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

.eva-gallery-item:hover {
    opacity: 0.9;
}

/* Justify View */
.eva-gallery-grid[data-view="justify"] {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 48px var(--eva-horizontal-padding, 24px) 48px !important;
    box-sizing: border-box;
}

.eva-gallery-grid[data-view="justify"] .eva-gallery-item {
    position: absolute;
    overflow: hidden;
    cursor: pointer;
    border-radius: 15px;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), left 0.5s cubic-bezier(0.4, 0, 0.2, 1), top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    opacity: 0;
    background: var(--eva-bg);
    transform: scale(0.95);
}

.eva-gallery-grid[data-view="justify"] .eva-gallery-item.masonry-ready {
    opacity: 1;
    transform: scale(1);
}

.eva-gallery-grid[data-view="justify"] .eva-gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}


/* Rating Controls */
.eva-rating-controls {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: var(--eva-rating-gap, 8px);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    overflow: visible;
}

.eva-gallery-item:hover .eva-rating-controls {
    opacity: 1;
    pointer-events: auto;
}

.eva-rating-controls .eva-rating-btn {
    pointer-events: auto;
    overflow: visible;
}

/* Ensure tooltips work on rating buttons */
.eva-rating-controls .eva-rating-btn.eva-tooltip {
    position: relative;
    overflow: visible;
}

.eva-rating-btn {
    width: calc(var(--eva-rating-size, 8px) + 4px);
    height: calc(var(--eva-rating-size, 8px) + 4px);
    border-radius: 50%;
    border: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease !important;
    position: relative;
    z-index: 11;
    pointer-events: auto;
    opacity: 0.333;
    overflow: visible;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
}

.eva-rating-btn:hover,
.eva-rating-btn:focus,
.eva-rating-btn:active,
.eva-rating-btn:focus-visible,
.eva-rating-btn:focus-within {
    transform: scale(1.3) !important;
    opacity: 1 !important;
    border: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    text-decoration: none !important;
}

.eva-rating-btn::before,
.eva-rating-btn::after {
    display: none !important;
    content: none !important;
}

.eva-rating-btn:hover::before,
.eva-rating-btn:hover::after,
.eva-rating-btn:focus::before,
.eva-rating-btn:focus::after {
    display: none !important;
    content: none !important;
}

/* Prevent buttons from blinking on hover */
.eva-rating-btn.eva-tooltip:hover {
    opacity: 1 !important;
}

.eva-rating-btn.active {
    opacity: 1 !important;
    transform: scale(1.2) !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Wenn noch keine Bewertung getroffen wurde, alle Buttons volle Deckkraft */
.eva-gallery-item[data-rating="none"] .eva-rating-btn,
.eva-gallery-item:not([data-rating]) .eva-rating-btn {
    opacity: 1;
}

.eva-rating-dot {
    width: var(--eva-rating-size, 8px);
    height: var(--eva-rating-size, 8px);
    border-radius: 50%;
    transition: all 0.2s ease;
    display: block;
    flex-shrink: 0;
}

/* Square style (like dots but square) */
.eva-rating-controls[data-rating-style="flags"] .eva-rating-dot {
    border-radius: 0;
}

/* Background for symbols in gallery */
.eva-rating-controls[data-rating-style="symbols"] .eva-rating-btn {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Symbol style */
.eva-rating-controls[data-rating-style="symbols"] .eva-rating-dot {
    display: none;
}

.eva-rating-icon {
    width: var(--eva-rating-size, 8px);
    height: var(--eva-rating-size, 8px);
    display: block;
    flex-shrink: 0;
}

.eva-rating-controls[data-rating-style="symbols"] .eva-rating-green .eva-rating-icon {
    color: var(--eva-rating-green, #10b981);
}

.eva-rating-controls[data-rating-style="symbols"] .eva-rating-yellow .eva-rating-icon {
    color: var(--eva-rating-yellow, #f59e0b);
}

.eva-rating-controls[data-rating-style="symbols"] .eva-rating-red .eva-rating-icon {
    color: var(--eva-rating-red, #ef4444);
}

.eva-rating-green .eva-rating-dot {
    background: var(--eva-rating-green, #10b981);
}

.eva-rating-yellow .eva-rating-dot {
    background: var(--eva-rating-yellow, #f59e0b);
}

.eva-rating-red .eva-rating-dot {
    background: var(--eva-rating-red, #ef4444);
}

.eva-rating-btn.active .eva-rating-dot {
    width: calc(var(--eva-rating-size, 8px) * 1.2) !important;
    height: calc(var(--eva-rating-size, 8px) * 1.2) !important;
}

.eva-rating-btn.clicking {
    transform: scale(0.9);
}

/* Comment Indicator */
.eva-comment-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--eva-comment-indicator);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
    cursor: pointer;
}

.eva-gallery-item:hover .eva-comment-indicator {
    opacity: 1;
}

.eva-comment-indicator svg {
    width: 14px;
    height: 14px;
}

/* Photographer Copyright */
.eva-photographer-copyright {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    cursor: pointer;
    text-align: left;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
    font-weight: 400;
    letter-spacing: 0.02em;
    display: inline-block;
    white-space: nowrap;
    max-width: calc(100% - 24px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.eva-gallery-item:hover .eva-photographer-copyright {
    opacity: 1;
    pointer-events: auto;
}

.eva-photographer-copyright:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

/* Rating Border für bewertete Bilder */
.eva-gallery-wrapper[data-show-rating-border="1"] .eva-gallery-item[data-rating="green"] img {
    border: 2px solid var(--eva-rating-green, #10b981) !important;
    box-sizing: border-box;
}

.eva-gallery-wrapper[data-show-rating-border="1"] .eva-gallery-item[data-rating="yellow"] img {
    border: 2px solid var(--eva-rating-yellow, #f59e0b) !important;
    box-sizing: border-box;
}

.eva-gallery-wrapper[data-show-rating-border="1"] .eva-gallery-item[data-rating="red"] img {
    border: 2px solid var(--eva-rating-red, #ef4444) !important;
    box-sizing: border-box;
}

/* Kein Border wenn Option deaktiviert oder keine Bewertung */
.eva-gallery-wrapper:not([data-show-rating-border="1"]) .eva-gallery-item[data-rating] img,
.eva-gallery-wrapper[data-show-rating-border="1"] .eva-gallery-item[data-rating="none"] img,
.eva-gallery-wrapper[data-show-rating-border="1"] .eva-gallery-item:not([data-rating]) img,
.eva-gallery-wrapper[data-show-rating-border="1"] .eva-gallery-item[data-rating=""] img {
    border: none !important;
}

.eva-image-number {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 8px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    z-index: 10;
    text-align: right;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    pointer-events: none;
    font-weight: 400;
    letter-spacing: 0.02em;
    display: inline-block;
    white-space: nowrap;
}

.eva-gallery-item:hover .eva-image-number {
    opacity: 1;
}

/* Image number with rating colors */
.eva-gallery-item[data-rating="green"] .eva-image-number {
    background: var(--eva-rating-green, #10b981);
    color: rgba(0, 0, 0, 0.8);
}

.eva-gallery-item[data-rating="yellow"] .eva-image-number {
    background: var(--eva-rating-yellow, #f59e0b);
    color: rgba(0, 0, 0, 0.8);
}

.eva-gallery-item[data-rating="red"] .eva-image-number {
    background: var(--eva-rating-red, #ef4444);
    color: rgba(0, 0, 0, 0.8);
}

/* Lightbox */
.eva-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    inset: 0;
    background: var(--eva-lightbox-bg);
    overflow: auto;
}

.eva-lightbox.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.eva-lightbox-image {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 12px;
}

.eva-lightbox-close {
    position: fixed;
    top: 24px;
    right: 32px;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--eva-lightbox-text);
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 10px;
    padding: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.eva-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.eva-lightbox-close svg {
    width: 18px;
    height: 18px;
}

.eva-lightbox-prev,
.eva-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--eva-lightbox-text);
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-radius: 10px;
    padding: 0;
    user-select: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.eva-lightbox-prev {
    left: 24px;
}

.eva-lightbox-next {
    right: 24px;
}

.eva-lightbox-prev:hover,
.eva-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.eva-lightbox-prev svg,
.eva-lightbox-next svg {
    width: 20px;
    height: 20px;
}

.eva-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.eva-lightbox-image {
    position: relative;
    z-index: 1;
}

/* Rating Controls - Top Left */
.eva-lightbox-rating-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: var(--eva-rating-gap, 8px);
    z-index: 10;
}

.eva-lightbox-rating-controls .eva-rating-btn {
    width: calc(var(--eva-rating-size, 8px) + 20px);
    height: calc(var(--eva-rating-size, 8px) + 20px);
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    border: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease !important;
    opacity: 0.333;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-decoration: none !important;
}

.eva-lightbox-rating-controls .eva-rating-btn:hover,
.eva-lightbox-rating-controls .eva-rating-btn:focus,
.eva-lightbox-rating-controls .eva-rating-btn:active,
.eva-lightbox-rating-controls .eva-rating-btn:focus-visible,
.eva-lightbox-rating-controls .eva-rating-btn:focus-within {
    border: none !important;
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.eva-lightbox-rating-controls .eva-rating-btn::before,
.eva-lightbox-rating-controls .eva-rating-btn::after {
    display: none !important;
    content: none !important;
}

.eva-lightbox-rating-controls .eva-rating-btn:hover::before,
.eva-lightbox-rating-controls .eva-rating-btn:hover::after,
.eva-lightbox-rating-controls .eva-rating-btn:focus::before,
.eva-lightbox-rating-controls .eva-rating-btn:focus::after {
    display: none !important;
    content: none !important;
}

.eva-lightbox-rating-controls .eva-rating-btn.active {
    opacity: 1 !important;
    transform: scale(1.2) !important;
}

/* Wenn noch keine Bewertung getroffen wurde, alle Buttons volle Deckkraft */
.eva-lightbox-content:not(.has-rating) .eva-lightbox-rating-controls .eva-rating-btn {
    opacity: 1;
}

.eva-lightbox-rating-controls .eva-rating-dot {
    width: var(--eva-rating-size, 8px);
    height: var(--eva-rating-size, 8px);
    border-radius: 50%;
}

.eva-lightbox-rating-controls[data-rating-style="flags"] .eva-rating-dot {
    border-radius: 0;
}

.eva-lightbox-rating-controls[data-rating-style="symbols"] .eva-rating-dot {
    display: none;
}

.eva-lightbox-rating-controls .eva-rating-icon {
    width: var(--eva-rating-size, 8px);
    height: var(--eva-rating-size, 8px);
    display: block;
    flex-shrink: 0;
}

.eva-lightbox-rating-controls[data-rating-style="symbols"] .eva-rating-green .eva-rating-icon {
    color: var(--eva-rating-green, #10b981);
}

.eva-lightbox-rating-controls[data-rating-style="symbols"] .eva-rating-yellow .eva-rating-icon {
    color: var(--eva-rating-yellow, #f59e0b);
}

.eva-lightbox-rating-controls[data-rating-style="symbols"] .eva-rating-red .eva-rating-icon {
    color: var(--eva-rating-red, #ef4444);
}

.eva-lightbox-rating-controls .eva-rating-btn.active .eva-rating-dot {
    width: calc(var(--eva-rating-size, 8px) * 1.2) !important;
    height: calc(var(--eva-rating-size, 8px) * 1.2) !important;
}

/* Top Right Controls - Comment and Info */
.eva-lightbox-top-right-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.eva-lightbox-exif-toggle,
.eva-lightbox-comment-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.eva-lightbox-exif-toggle:first-child,
.eva-lightbox-comment-toggle:first-child {
    margin-left: 0;
}

.eva-lightbox-exif-toggle:hover,
.eva-lightbox-comment-toggle:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.eva-lightbox-exif-toggle.active,
.eva-lightbox-comment-toggle.active {
    background: rgba(255, 255, 255, 0.2);
}

.eva-lightbox-exif-toggle svg,
.eva-lightbox-comment-toggle svg {
    width: 28px !important;
    height: 28px !important;
}

/* Comment toggle styles are now in .eva-lightbox-top-right-controls */

.eva-lightbox-exif {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 20px;
    max-height: 40vh;
    overflow-y: auto;
    z-index: 1000;
    pointer-events: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.eva-lightbox-exif-content {
    max-width: 800px;
    margin: 0 auto;
}

.eva-lightbox-exif-loading,
.eva-lightbox-exif-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.eva-exif-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.eva-exif-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eva-exif-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.eva-exif-value {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
}

.eva-lightbox-comment {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 500px;
    background: rgba(0, 0, 0, 0.85);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 10002;
    pointer-events: auto;
}

.eva-comment-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.eva-comment-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.eva-comment-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.eva-comment-save {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.eva-comment-save:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}


/* Mobile Burger Menu */
.eva-mobile-menu-toggle {
    display: none;
}

/* Mobile Sidebar */
.eva-mobile-sidebar {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .eva-hero {
        height: 400px;
    }
    
    .eva-hero-title {
        font-size: 32px;
    }
    
    .eva-hero-date {
        font-size: 12px;
    }
    
    /* Hide desktop buttons on mobile */
    .eva-gallery-filters,
    .eva-gallery-controls {
        display: none !important;
    }
    
    /* Show burger menu on mobile */
    .eva-mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 24px;
        right: var(--eva-horizontal-padding, 15px);
        z-index: 15;
        width: 32px;
        height: 32px;
        border: none;
        background: transparent;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        transition: opacity 0.3s ease;
        padding: 0;
    }
    
    .eva-mobile-menu-toggle:hover {
        opacity: 0.7;
    }
    
    .eva-mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
        stroke-width: 2.5;
    }
    
    /* Mobile Sidebar */
    .eva-mobile-sidebar {
        position: fixed;
        inset: 0;
        z-index: 999999;
        display: none;
        opacity: 0;
        transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    .eva-mobile-sidebar.show {
        display: block !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }
    
    .eva-mobile-sidebar-overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    
    .eva-mobile-sidebar-content {
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 90%;
        max-width: 360px;
        background: var(--eva-bg);
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .eva-mobile-sidebar.show .eva-mobile-sidebar-content {
        transform: translateX(0);
    }
    
    .eva-mobile-sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 28px 24px;
        position: sticky;
        top: 0;
        background: var(--eva-bg);
        z-index: 10;
        border-bottom: 1px solid transparent;
    }
    
    .eva-dark-mode .eva-mobile-sidebar-header {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }
    
    .eva-gallery-wrapper:not(.eva-dark-mode) .eva-mobile-sidebar-header {
        border-bottom-color: rgba(0, 0, 0, 0.08);
    }
    
    .eva-mobile-sidebar-header h3 {
        margin: 0;
        font-size: 20px;
        font-weight: 600;
        color: var(--eva-text);
        letter-spacing: -0.3px;
    }
    
    .eva-mobile-sidebar-close {
        width: 40px;
        height: 40px;
        border: none;
        background: transparent;
        color: var(--eva-text-secondary);
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s ease;
        padding: 0;
    }
    
    .eva-mobile-sidebar-close:hover {
        background: var(--eva-control-hover);
        color: var(--eva-text);
    }
    
    .eva-mobile-sidebar-close svg {
        width: 22px;
        height: 22px;
        stroke-width: 2.5;
    }
    
    .eva-mobile-sidebar-body {
        padding: 8px 0;
        flex: 1;
    }
    
    .eva-mobile-sidebar-section {
        margin-bottom: 40px;
        padding: 0 24px;
    }
    
    .eva-mobile-sidebar-section:last-child {
        margin-bottom: 0;
    }
    
    .eva-mobile-sidebar-section h4 {
        margin: 0 0 20px 0;
        font-size: 11px;
        font-weight: 600;
        color: var(--eva-text-secondary);
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    
    .eva-mobile-filters,
    .eva-mobile-controls {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .eva-mobile-filters .eva-filter-btn,
    .eva-mobile-controls .eva-control-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 12px 16px;
        height: auto;
        min-height: 44px;
        border-radius: 10px;
        font-size: 14px;
        font-weight: 500;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .eva-mobile-filters .eva-filter-btn:hover,
    .eva-mobile-controls .eva-control-btn:hover {
        transform: none;
    }
    
    .eva-mobile-controls .eva-control-btn {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .eva-mobile-controls .eva-control-btn svg {
        width: 20px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .eva-mobile-controls .eva-control-btn span {
        font-size: 14px;
        color: inherit;
        font-weight: 500;
    }
    
    .eva-mobile-controls .eva-theme-btn {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .eva-mobile-controls .eva-theme-icon-light,
    .eva-mobile-controls .eva-theme-icon-dark {
        position: static;
        opacity: 1;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
        transition: opacity 0.3s ease;
    }
    
    .eva-dark-mode .eva-mobile-controls .eva-theme-icon-light {
        opacity: 0;
        position: absolute;
        pointer-events: none;
    }
    
    .eva-dark-mode .eva-mobile-controls .eva-theme-icon-dark {
        opacity: 1;
        position: static;
    }
    
    .eva-gallery-wrapper:not(.eva-dark-mode) .eva-mobile-controls .eva-theme-icon-light {
        opacity: 1;
        position: static;
    }
    
    .eva-gallery-wrapper:not(.eva-dark-mode) .eva-mobile-controls .eva-theme-icon-dark {
        opacity: 0;
        position: absolute;
        pointer-events: none;
    }
    
    .eva-mobile-filters .eva-filter-btn {
        gap: 12px;
    }
    
    .eva-mobile-filters .eva-filter-dot {
        width: var(--eva-filter-dot-size, 14px);
        height: var(--eva-filter-dot-size, 14px);
        flex-shrink: 0;
    }
    
    .eva-mobile-filters .eva-filter-icon {
        width: var(--eva-rating-size, 14px);
        height: var(--eva-rating-size, 14px);
        flex-shrink: 0;
    }
    
    .eva-mobile-filters .eva-filter-dot-none {
        width: var(--eva-filter-dot-size, 14px);
        height: var(--eva-filter-dot-size, 14px);
        border-width: 2px;
    }
    
    
    .eva-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 32px 16px 32px !important;
    }
    
    .eva-gallery-grid[data-view="grid"] {
        padding: 32px 16px 32px !important;
    }
    
    .eva-gallery-grid[data-view="justify"] {
        padding: 32px 16px 32px !important;
    }
    
    .eva-lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    .eva-lightbox-prev,
    .eva-lightbox-next {
        width: 48px;
        height: 48px;
    }
    
    .eva-lightbox-prev {
        left: 16px;
    }
    
    .eva-lightbox-next {
        right: 16px;
    }
    
    .eva-lightbox-rating-controls {
        top: 16px;
        left: 16px;
        gap: var(--eva-rating-gap, 6px);
    }
    
    .eva-lightbox-rating-controls .eva-rating-btn {
        width: calc(var(--eva-rating-size, 8px) + 16px);
        height: calc(var(--eva-rating-size, 8px) + 16px);
        min-width: 28px;
        min-height: 28px;
    }
    
    .eva-lightbox-top-right-controls {
        top: 16px;
        right: 16px;
        gap: 6px;
    }
    
    .eva-lightbox-exif-toggle,
    .eva-lightbox-comment-toggle {
        width: 40px;
        height: 40px;
    }
    
    .eva-lightbox-exif-toggle svg,
    .eva-lightbox-comment-toggle svg {
        width: 26px !important;
        height: 26px !important;
    }
    
    .eva-lightbox-exif {
        max-height: 50vh;
        padding: 15px;
    }
    
    .eva-exif-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .eva-exif-value {
        font-size: 14px;
    }
    
    .eva-lightbox-comment {
        bottom: 16px;
        width: calc(100% - 32px);
        max-width: 100%;
        padding: 12px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .eva-hero {
        height: 400px;
    }
    
    .eva-gallery-filters {
        bottom: 12px;
        left: 12px;
        gap: 4px;
        max-width: calc(100% - 100px);
    }
    
    .eva-filter-btn {
        font-size: 10px;
        padding: 6px 10px;
        min-height: 28px;
        min-width: 28px;
        gap: 4px;
    }
    
    .eva-filter-btn .eva-filter-dot {
        width: var(--eva-filter-dot-size, 5px);
        height: var(--eva-filter-dot-size, 5px);
    }
    
    .eva-filter-btn .eva-filter-icon {
        width: var(--eva-rating-size, 5px);
        height: var(--eva-rating-size, 5px);
    }
    
    .eva-filter-btn .eva-filter-dot-none {
        width: var(--eva-filter-dot-size, 5px);
        height: var(--eva-filter-dot-size, 5px);
        border-width: 1px;
    }
    
    .eva-gallery-controls {
        bottom: 12px;
        right: 12px;
        gap: 4px;
    }
    
    .eva-control-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
        padding: 0;
    }
    
    .eva-control-btn svg {
        width: 16px;
        height: 16px;
    }
    
    /* Hide text on very small screens for inactive filter buttons, show only icons */
    .eva-filter-btn:not(.active) {
        padding: 6px;
    }
    
    .eva-filter-btn:not(.active) span:not(.eva-filter-dot) {
        display: none;
    }
    
    .eva-filter-btn.active span:not(.eva-filter-dot) {
        display: inline;
    }
}

/* Photographer Popup */
.eva-photographer-popup {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none !important;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.eva-photographer-popup.show {
    display: flex !important;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.eva-photographer-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.eva-photographer-popup-content {
    position: relative;
    z-index: 1;
    background: var(--eva-bg);
    border-radius: 16px;
    max-width: 500px;
    width: calc(100% - 32px);
    max-height: 90vh;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-photographer-popup.show .eva-photographer-popup-content {
    transform: scale(1);
}

.eva-photographer-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: auto;
    min-width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--eva-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 10;
    padding: 8px;
}

.eva-photographer-popup-close svg {
    width: var(--eva-popup-close-icon-size, 28px) !important;
    height: var(--eva-popup-close-icon-size, 28px) !important;
    min-width: var(--eva-popup-close-icon-size, 28px) !important;
    min-height: var(--eva-popup-close-icon-size, 28px) !important;
    max-width: var(--eva-popup-close-icon-size, 28px) !important;
    max-height: var(--eva-popup-close-icon-size, 28px) !important;
    stroke: var(--eva-popup-close-icon-color, currentColor);
    color: var(--eva-popup-close-icon-color, var(--eva-text));
    flex-shrink: 0;
}

.eva-dark-mode .eva-photographer-popup-close svg {
    stroke: var(--eva-popup-close-icon-color, currentColor);
    color: var(--eva-popup-close-icon-color, var(--eva-text));
}

.eva-photographer-popup-close:hover {
    background: var(--eva-control-hover);
    color: var(--eva-text);
}

.eva-photographer-popup-close:hover svg {
    color: var(--eva-text);
}

.eva-photographer-popup-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid var(--eva-border);
}

.eva-photographer-popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    color: var(--eva-text);
}

.eva-photographer-popup-body {
    padding: 24px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    overflow-x: visible;
}

.eva-photographer-info {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--eva-border);
}

.eva-photographer-info-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.eva-photographer-photo-wrapper {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
}

.eva-photographer-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.eva-photographer-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eva-photographer-name-display {
    font-size: 20px;
    font-weight: 500;
    color: var(--eva-text);
    margin: 0;
}

.eva-photographer-social-display {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--eva-text-secondary);
}

.eva-instagram-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.eva-photographer-social-text {
    line-height: 1.4;
}

.eva-photographer-bio-display {
    font-size: 14px;
    color: var(--eva-text-secondary);
    line-height: 1.6;
    margin-top: 4px;
    font-style: italic;
}

.eva-photographer-copyright-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eva-copyright-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eva-copyright-option label {
    font-size: 12px;
    font-weight: 500;
    color: var(--eva-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eva-copyright-code-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--eva-comment-input-bg);
    border: 1px solid var(--eva-border);
    border-radius: 8px;
    padding: 12px;
}

.eva-copyright-code {
    flex: 1;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 12px;
    color: var(--eva-text);
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    word-break: break-all;
    line-height: 1.5;
}

.eva-copy-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid var(--eva-border);
    background: var(--eva-control-bg);
    color: var(--eva-text);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.eva-copy-btn:hover {
    background: var(--eva-control-hover);
    border-color: var(--eva-text-secondary);
}

.eva-copy-btn.copied {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
}

.eva-copy-btn svg {
    width: 24px !important;
    height: 24px !important;
}

/* Dark Mode Popup */
.eva-dark-mode .eva-photographer-popup-overlay {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .eva-photographer-info-layout {
        flex-direction: column;
        gap: 16px;
    }
    
    .eva-photographer-photo-wrapper {
        align-self: center;
    }
    
    .eva-photographer-details {
        text-align: center;
    }
}

/* Columns Slider Popup */
.eva-columns-popup {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.eva-columns-popup.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.eva-columns-popup::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.eva-columns-popup-content {
    position: relative;
    z-index: 1;
    background: var(--eva-bg);
    border-radius: 16px;
    padding: 24px;
    min-width: 320px;
    max-width: 400px;
    width: calc(100% - 32px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-columns-popup.show .eva-columns-popup-content {
    transform: scale(1);
}

.eva-columns-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--eva-border);
}

.eva-columns-popup-header span {
    font-size: 16px;
    font-weight: 500;
    color: var(--eva-text);
}

.eva-columns-popup-close {
    width: auto;
    min-width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: var(--eva-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
    padding: 8px;
}

.eva-columns-popup-close svg {
    width: var(--eva-popup-close-icon-size, 28px) !important;
    height: var(--eva-popup-close-icon-size, 28px) !important;
    min-width: var(--eva-popup-close-icon-size, 28px) !important;
    min-height: var(--eva-popup-close-icon-size, 28px) !important;
    max-width: var(--eva-popup-close-icon-size, 28px) !important;
    max-height: var(--eva-popup-close-icon-size, 28px) !important;
    stroke: var(--eva-popup-close-icon-color, currentColor);
    color: var(--eva-popup-close-icon-color, var(--eva-text));
    flex-shrink: 0;
}

.eva-dark-mode .eva-columns-popup-close svg {
    stroke: var(--eva-popup-close-icon-color, currentColor);
    color: var(--eva-popup-close-icon-color, var(--eva-text));
}

.eva-columns-popup-close:hover {
    background: var(--eva-control-hover);
    color: var(--eva-text);
}

.eva-columns-popup-close:hover svg {
    color: var(--eva-text);
}

.eva-columns-slider-wrapper {
    margin-bottom: 20px;
}

.eva-columns-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--eva-border);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.eva-columns-slider:hover {
    background: var(--eva-control-hover);
}

.eva-columns-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--eva-text);
    cursor: pointer;
    border: 2px solid var(--eva-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.eva-columns-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.eva-columns-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--eva-text);
    cursor: pointer;
    border: 2px solid var(--eva-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.eva-columns-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.eva-columns-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

.eva-columns-label {
    font-size: 12px;
    color: var(--eva-text-secondary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    user-select: none;
}

.eva-columns-label:hover {
    color: var(--eva-text);
    background: var(--eva-control-hover);
}

.eva-columns-label.active {
    color: var(--eva-text);
    font-weight: 500;
}

.eva-columns-value {
    text-align: center;
    font-size: 14px;
    color: var(--eva-text-secondary);
    padding-top: 12px;
    border-top: 1px solid var(--eva-border);
}

.eva-columns-value span {
    font-size: 18px;
    font-weight: 500;
    color: var(--eva-text);
    margin-right: 4px;
}

/* Dark Mode Columns Popup */
.eva-dark-mode .eva-columns-popup::before {
    background: rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .eva-columns-popup-content {
        min-width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        padding: 20px;
    }
}

/* Tooltips */
.eva-tooltip {
    position: relative;
}

.eva-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-50%) translateY(4px);
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.eva-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 10001;
}

.eva-tooltip:hover::after,
.eva-tooltip:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip delay and positioning for rating buttons in gallery */
.eva-rating-controls .eva-tooltip {
    overflow: visible !important;
}

/* CSS-only tooltips for rating buttons using ::after pseudo-elements */
.eva-rating-controls .eva-rating-btn.eva-tooltip::after,
.eva-lightbox-rating-controls .eva-rating-btn.eva-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease 0.5s, transform 0.2s ease 0.5s;
    z-index: 999999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    will-change: transform, opacity;
    min-width: max-content;
}

.eva-rating-controls .eva-rating-btn.eva-tooltip::before,
.eva-lightbox-rating-controls .eva-rating-btn.eva-tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease 0.5s;
    z-index: 1000000;
    will-change: transform, opacity;
}

.eva-rating-controls .eva-rating-btn.eva-tooltip:hover::after,
.eva-lightbox-rating-controls .eva-rating-btn.eva-tooltip:hover::after {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.eva-rating-controls .eva-rating-btn.eva-tooltip:hover::before,
.eva-lightbox-rating-controls .eva-rating-btn.eva-tooltip:hover::before {
    transform: translateX(-50%);
    opacity: 1;
}

/* Ensure rating controls and tooltips are not clipped */
.eva-gallery-item .eva-rating-controls {
    overflow: visible !important;
}

/* Footer Section */
.eva-footer {
    margin: 0 var(--eva-horizontal-padding, 24px) 48px !important;
    padding: 25px !important;
    background: var(--eva-bg, #ffffff) !important;
    border-radius: 15px !important;
    border: 1px solid var(--eva-border, #e5e5e5) !important;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 0 !important;
    color: var(--eva-text, #000000);
    pointer-events: auto !important;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible !important;
    width: auto !important;
}

/* Ensure footer uses dark mode variables when dark mode class is present */
.eva-footer.eva-dark-mode {
    --eva-bg: #141414;
    --eva-text: #ffffff;
    --eva-border: #333333;
    --eva-btn-bg: #141414;
    --eva-btn-bg-hover: #282828;
    --eva-btn-border: #282828;
    --eva-btn-border-hover: #282828;
    --eva-btn-text: #dddddd;
    --eva-btn-text-hover: #ffffff;
    --eva-bg-secondary: #1a1a1a;
    --eva-accent: #4a9eff;
    background: #141414 !important;
    border-color: #333333 !important;
    color: #ffffff !important;
}

.eva-footer-content {
    width: 100%;
    margin: 0;
    position: relative;
    overflow: visible;
}

.eva-footer-columns {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    align-items: start;
    position: relative;
    overflow: visible;
    width: 100%;
}

.eva-footer-column {
    position: relative;
    overflow: visible;
    min-width: 0;
}

.eva-footer-column:first-child {
    padding-right: 50px;
    border-right: 1px solid var(--eva-border, #e5e5e5);
}

.eva-footer-column:last-child {
    padding-left: 50px;
}

.eva-dark-mode .eva-footer-column:first-child {
    border-right-color: var(--eva-border, #333333);
}

.eva-footer-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: var(--eva-text);
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-footer-copyright-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eva-footer-copyright .eva-copyright-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eva-footer-copyright .eva-copyright-option label {
    font-size: 13px;
    font-weight: 500;
    color: var(--eva-text);
    margin: 0;
    opacity: 0.8;
}

.eva-footer-copyright .eva-copyright-code-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 8px 12px;
}

.eva-footer-copyright .eva-copyright-code {
    flex: 1;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--eva-text);
    word-break: break-all;
    line-height: 1.6;
    min-height: auto;
    max-width: 100%;
    overflow-wrap: break-word;
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-footer-copyright .eva-copy-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid var(--eva-border);
    border-radius: 6px;
    color: var(--eva-text);
    cursor: pointer;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
}

.eva-footer-copyright .eva-copy-btn:hover {
    background: var(--eva-bg-secondary, rgba(0, 0, 0, 0.05));
    border-color: var(--eva-border);
    color: var(--eva-text);
    opacity: 1;
    transform: translateY(-1px);
}

.eva-dark-mode .eva-footer-copyright .eva-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.eva-footer-copyright .eva-copy-btn:active {
    transform: translateY(0);
}

.eva-footer-copyright .eva-copy-btn svg {
    width: 24px !important;
    height: 24px !important;
}

.eva-share-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eva-share-option {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eva-share-option label {
    font-size: 13px;
    font-weight: 500;
    color: var(--eva-text);
    margin: 0;
    opacity: 0.8;
}

.eva-share-link-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 13px 0px;
}

.eva-share-link {
    flex: 1;
    padding: 12px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--eva-border);
    border-radius: 0;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: var(--eva-text);
    transition: border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: text;
}

.eva-share-link:focus {
    outline: none;
    border-bottom-color: var(--eva-accent, #4a9eff);
}

.eva-copy-link-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--eva-btn-bg);
    border: 1px solid var(--eva-btn-border);
    border-radius: 8px;
    color: var(--eva-btn-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
    white-space: nowrap;
}

.eva-copy-link-btn:hover {
    background: var(--eva-btn-bg-hover);
    border-color: var(--eva-btn-border-hover);
    color: var(--eva-btn-text-hover);
    transform: translateY(-1px);
}

.eva-copy-link-btn:active {
    transform: translateY(0);
}

.eva-copy-link-btn svg {
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0;
}

.eva-email-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--eva-btn-bg);
    border: 1px solid var(--eva-btn-border);
    border-radius: 8px;
    color: var(--eva-btn-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease,
                transform 0.2s ease;
    width: 100%;
}

.eva-email-share-btn:hover {
    background: var(--eva-btn-bg-hover);
    border-color: var(--eva-btn-border-hover);
    color: var(--eva-btn-text-hover);
    transform: translateY(-1px);
}

.eva-email-share-btn:active {
    transform: translateY(0);
}

.eva-email-share-btn svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

/* Email Share Modal */
.eva-email-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.eva-email-modal.active {
    display: flex;
}

.eva-email-modal-content {
    background: var(--eva-bg);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-email-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.eva-email-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: var(--eva-text);
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-email-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--eva-text);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease,
                color 0.2s ease;
}

.eva-email-modal-close:hover {
    background: var(--eva-bg-secondary);
}

.eva-email-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eva-email-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eva-email-form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--eva-text);
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-email-form-input {
    padding: 12px 16px;
    background: var(--eva-bg-secondary);
    border: 1px solid var(--eva-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--eva-text);
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-email-form-input:focus {
    outline: none;
    border-color: var(--eva-accent);
}

.eva-email-form-textarea {
    padding: 12px 16px;
    background: var(--eva-bg-secondary);
    border: 1px solid var(--eva-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--eva-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    resize: vertical;
    min-height: 100px;
    transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eva-email-form-textarea:focus {
    outline: none;
    border-color: var(--eva-accent);
}

.eva-email-form-submit {
    padding: 12px 24px;
    background: var(--eva-btn-bg);
    border: 1px solid var(--eva-btn-border);
    border-radius: 8px;
    color: var(--eva-btn-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease,
                border-color 0.2s ease,
                color 0.2s ease;
}

.eva-email-form-submit:hover {
    background: var(--eva-btn-bg-hover);
    border-color: var(--eva-btn-border-hover);
    color: var(--eva-btn-text-hover);
}

.eva-email-form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --eva-horizontal-padding: 15px;
    }
    
    .eva-footer {
        margin: 0 var(--eva-horizontal-padding, 15px) 40px !important;
        padding: 20px;
    }
    
    .eva-footer-columns {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .eva-footer-column:first-child {
        padding-right: 0;
        padding-bottom: 30px;
        border-right: none;
        border-bottom: 1px solid var(--eva-border, #e5e5e5);
    }
    
    .eva-footer-column:last-child {
        padding-left: 0;
        padding-top: 30px;
    }
    
    .eva-dark-mode .eva-footer-column:first-child {
        border-bottom-color: var(--eva-border, #333333);
    }
    
    .eva-share-link-wrapper {
        flex-direction: column;
    }
    
    .eva-copy-link-btn {
        width: 100%;
        justify-content: center;
    }
    
    .eva-footer-copyright {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .eva-footer-copyright-options {
        gap: 16px;
    }
    
    .eva-footer-copyright .eva-copyright-code {
        font-size: 11px;
        min-height: 36px;
    }
    
    .eva-email-modal-content {
        padding: 20px;
    }
}

.eva-gallery-grid[data-view="grid"] .eva-gallery-item .eva-rating-controls {
    overflow: visible !important;
}

.eva-gallery-grid[data-view="justify"] .eva-gallery-item .eva-rating-controls {
    overflow: visible !important;
}

/* Tooltip positioning for buttons on the right */
.eva-gallery-controls .eva-tooltip::after {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(4px);
    bottom: calc(100% + 12px);
}

.eva-gallery-controls .eva-tooltip::before {
    left: auto;
    right: 12px;
    transform: translateX(0);
    bottom: calc(100% + 4px);
}

.eva-gallery-controls .eva-tooltip:hover::after {
    transform: translateX(0) translateY(0);
}

/* Tooltip positioning for buttons on the left */
.eva-gallery-filters .eva-tooltip::after {
    left: 0;
    right: auto;
    transform: translateX(0) translateY(4px);
    bottom: calc(100% + 12px);
}

.eva-gallery-filters .eva-tooltip::before {
    left: 12px;
    right: auto;
    transform: translateX(0);
    bottom: calc(100% + 4px);
}

.eva-gallery-filters .eva-tooltip:hover::after {
    transform: translateX(0) translateY(0);
}

/* Tooltip positioning for copy buttons - show above to avoid clipping */
.eva-copy-btn.eva-tooltip::after {
    bottom: auto;
    top: calc(100% + 12px);
    left: 50%;
    right: auto;
    transform: translateX(-50%) translateY(-4px);
}

.eva-copy-btn.eva-tooltip::before {
    bottom: auto;
    top: calc(100% + 4px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    border-top-color: transparent;
    border-bottom-color: rgba(0, 0, 0, 0.85);
}

.eva-copy-btn.eva-tooltip:hover::after {
    transform: translateX(-50%) translateY(0);
}

/* Ensure wrapper has overflow visible for tooltips */
.eva-copyright-code-wrapper {
    overflow: visible;
    position: relative;
}

@media (max-width: 768px) {
    .eva-photographer-popup-content {
        max-width: calc(100% - 16px);
        width: calc(100% - 16px);
        max-height: 85vh;
    }
    
    .eva-photographer-popup-header,
    .eva-photographer-popup-body {
        padding: 20px;
    }
    
    .eva-copyright-code {
        font-size: 11px;
    }
}

/* Drag and Drop Sorting */
.eva-gallery-item {
    position: relative;
    cursor: move;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.eva-gallery-item.eva-dragging {
    opacity: 0.5 !important;
    transform: scale(0.95);
    z-index: 1000;
    cursor: grabbing;
}

.eva-gallery-item.eva-drag-over {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.eva-gallery-item .eva-rating-controls {
    z-index: 15;
}

.eva-drag-placeholder {
    background: var(--eva-bg, #f5f5f5);
    border: 2px dashed var(--eva-border, #cccccc);
    border-radius: var(--eva-border-radius, 12px);
    opacity: 0.5;
    margin: var(--eva-gallery-gap, 10px);
    transition: all 0.2s ease;
}

.eva-dark-mode .eva-drag-placeholder {
    background: var(--eva-bg, #1a1a1a);
    border-color: var(--eva-border, #444444);
}

.eva-sorting-saved {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--eva-bg, #ffffff);
    color: var(--eva-text, #000000);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    z-index: 1000000;
    animation: slideInRight 0.3s ease;
}

.eva-dark-mode .eva-sorting-saved {
    background: var(--eva-bg, #1a1a1a);
    color: var(--eva-text, #ffffff);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Disable drag on mobile (touch devices) */
@media (max-width: 768px) {
    .eva-gallery-item {
        cursor: default;
    }
    
    .eva-gallery-item[draggable="true"] {
        -webkit-user-drag: none;
        -khtml-user-drag: none;
        -moz-user-drag: none;
        -o-user-drag: none;
    }
}

