/* ===== RESET & BASE STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER STYLES ===== */
.main-header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-header.navbar-hidden {
    transform: translateY(-100%);
}

.main-header .navbar {
    padding: 1.25rem 0;
    transition: padding 0.3s ease;
}

/* Navbar Brand */
.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a !important;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.navbar-brand:hover {
    opacity: 0.8;
}

/* Custom Toggler */
.custom-toggler {
    border: none;
    padding: 4px 8px;
    background: transparent;
}

.custom-toggler:focus {
    box-shadow: none;
}

.toggler-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #1a1a1a;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a4a4a !important;
    padding: 0.5rem 1.25rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #1a1a1a !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #1a1a1a;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    margin-top: 80px;
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 2.5rem 0;
    margin-top: auto;
}

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

.footer-copyright {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

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

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f0f0f0;
    border-top: 3px solid #1a1a1a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.125rem;
    color: #666;
    margin: 0;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #1a1a1a;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ===== ANIMATION UTILITIES ===== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Image Lazy Loading */
img[data-lazy] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[data-lazy].loaded {
    opacity: 1;
}

/* ===== HOME PAGE STYLES ===== */

/* Hero Section */
.hero-section {
    position: relative;
    background-color: #fafafa;
}

.hero-section.full-viewport {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

/* Artist Content */
.artist-content {
    padding-right: 60px;
    max-width: 600px;
}

.artist-name-hero {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.name-line {
    display: block;
    font-weight: 900;
    color: #1a1a1a;
}

.artist-subtitle {
    display: block;
    font-size: 0.3em;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-top: 0.75rem;
}

.bio-wrapper {
    margin-bottom: 2.5rem;
}

.artist-bio-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #4a4a4a;
    font-weight: 300;
}

/* Artist Image */
.artist-image-wrapper {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
    border-radius: 8px;
    margin-left: 60px;
}

.artist-image-wrapper.no-photo {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.artist-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 16px 40px;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary.btn-hero {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-primary.btn-hero:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.btn-outline-dark.btn-hero {
    border-width: 2px;
}

.btn-outline-dark.btn-hero:hover {
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid #1a1a1a;
    border-bottom: 2px solid #1a1a1a;
    transform: rotate(45deg);
    opacity: 0.6;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== FEATURED SECTION ===== */
.featured-section {
    background-color: #ffffff;
    padding: 100px 0;
}

/* Section Header */
.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.title-decoration {
    position: relative;
    display: inline-block;
}

.title-decoration::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #1a1a1a;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #666;
    font-weight: 300;
    margin-top: 1.5rem;
}

/* Carousel Container */
.featured-carousel-container {
    position: relative;
    margin: 0 -60px;
    padding: 20px 0 30px;
    overflow: visible;
}

.carousel-slide {
    padding: 0 60px;
}

#featuredCarousel {
    overflow: hidden;
    margin: 0 -15px;
}

#featuredCarousel .carousel-inner {
    overflow: visible;
    padding: 0 15px;
}

#featuredCarousel .carousel-item {
    overflow: visible;
}

/* Carousel External Navigation */
.carousel-nav-external {
    position: absolute;
    top: calc(50% - 10px);
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.carousel-nav-external:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-external:hover svg {
    color: white;
}

.carousel-nav-external.prev {
    left: 0;
}

.carousel-nav-external.next {
    right: 0;
}

.carousel-nav-external svg {
    color: #1a1a1a;
    transition: color 0.3s ease;
}

/* Hide Bootstrap's default controls */
.carousel-control-prev,
.carousel-control-next {
    display: none;
}

/* Empty State */
.empty-state {
    padding: 80px 0;
}

.empty-message {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2rem;
}

/* ===== PAINTING CARDS (UNIVERSAL) ===== */

/* Base Card Styles */
.painting-card,
.featured-home-card,
.gallery-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    position: relative;
}

.painting-card:hover,
.featured-home-card:hover,
.gallery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* Featured Home Card Specific */
.featured-home-card {
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%) border-box;
    margin: 10px 0;
}

.featured-home-card:hover {
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%) border-box;
}

/* Gallery Card Specific */
.gallery-card {
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin: 10px 0;
}

.gallery-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Card Links */
.painting-card-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image Container */
.painting-image-wrapper {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    background-color: #f8f8f8;
}

.gallery-card .painting-image-wrapper {
    padding-bottom: 80%;
}

.painting-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.painting-card:hover .painting-image,
.featured-home-card:hover .painting-image,
.gallery-card:hover .painting-image {
    transform: scale(1.08);
}

.gallery-card:hover .painting-image {
    transform: scale(1.1);
}

/* Hover Overlay */
.painting-overlay,
.painting-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.painting-card:hover .painting-overlay,
.featured-home-card:hover .painting-hover-overlay,
.gallery-card:hover .painting-hover-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.view-icon {
    display: block;
    margin-bottom: 0.5rem;
}

.view-icon svg {
    width: 32px;
    height: 32px;
}

.view-text {
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Card Info/Details */
.painting-info,
.painting-details,
.featured-home-details {
    padding: 1.75rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.featured-home-details {
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
}

.gallery-card .painting-details {
    padding: 1.25rem 1.5rem;
}

/* Card Titles */
.painting-title,
.painting-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.375rem;
    font-weight: 400;
    color: #2a2a2a;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.featured-home-details .painting-name {
    font-size: 1.375rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.gallery-card .painting-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.375rem;
    letter-spacing: -0.01em;
}

.painting-card:hover .painting-title,
.featured-home-card:hover .painting-name,
.gallery-card:hover .painting-name {
    color: #333;
}

/* Card Metadata */
.painting-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #999;
    margin: 0;
    font-weight: 400;
}

.painting-info-row {
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #f0f0f0;
}

.painting-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #999;
    letter-spacing: 0.05em;
}

/* Price Section */
.painting-price-row {
    margin-top: auto;
    padding-top: 0.25rem;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.price-label-list {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.price-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.not-for-sale {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #666;
    background: #f5f5f5;
    padding: 0.375rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* Featured Badge */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(26, 26, 26, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.featured-badge svg {
    width: 14px;
    height: 14px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 100px 0;
    color: white;
}

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

.cta-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-section .btn-light {
    background-color: white;
    color: #1a1a1a;
    border: none;
    padding: 16px 48px;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

/* ===== GALLERY PAGE STYLES ===== */

/* Gallery Hero */
.gallery-hero {
    position: relative;
    padding: 140px 0 100px;
    text-align: center;
    overflow: hidden;
    background: #fafafa;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
}

.hero-pattern {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(26,26,26,0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26,26,26,0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(26,26,26,0.03) 0%, transparent 50%);
    animation: floatPattern 20s ease-in-out infinite;
}

@keyframes floatPattern {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-30px, -30px) rotate(1deg); }
    66% { transform: translate(30px, -10px) rotate(-1deg); }
}

.gallery-hero-content {
    position: relative;
    z-index: 1;
}

.gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.gallery-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 300;
    color: #666;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-decoration {
    display: inline-block;
    color: #1a1a1a;
    animation: rotateDecoration 15s linear infinite;
}

@keyframes rotateDecoration {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Paintings Grid */
.paintings-grid-section {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

.paintings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 80px;
}

.painting-item {
    opacity: 0;
    transform: translateY(20px);
}

.painting-item[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Modern Pagination */
.pagination-wrapper {
    margin-top: 80px;
}

.modern-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background-color: #fff;
    color: #1a1a1a;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

.page-link svg {
    width: 20px;
    height: 20px;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-number:hover {
    background-color: #f0f0f0;
    color: #1a1a1a;
}

.page-number.active {
    background-color: #1a1a1a;
    color: white;
}

/* Empty Gallery */
.empty-gallery {
    text-align: center;
    padding: 100px 0;
}

.empty-icon {
    margin-bottom: 2rem;
    opacity: 0.3;
}

/* ===== PAINTING DETAIL PAGE ===== */

/* Breadcrumb */
.breadcrumb-nav {
    background-color: #fafafa;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.modern-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.breadcrumb-item a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #1a1a1a;
}

.breadcrumb-item.active {
    color: #1a1a1a;
    font-weight: 500;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    color: #ddd;
}

/* Detail Section */
.painting-detail-section {
    padding: 60px 0 100px;
    background-color: #ffffff;
}

/* Image Showcase */
.painting-image-showcase {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.painting-showcase-img {
    width: 100%;
    height: auto;
    display: block;
}

.image-zoom-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.image-zoom-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Info Panel */
.painting-info-panel {
    position: sticky;
    top: 100px;
}

.info-content {
    background: #ffffff;
    padding: 1.75rem;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.detail-painting-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.painting-description-block {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
}

.detail-painting-description {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0;
}

/* Metadata */
.painting-metadata {
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.meta-item:last-child {
    border-bottom: none;
}

.meta-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #666;
}

.meta-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
}

/* Price Section */
.price-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.price-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.price-block {
    position: relative;
    z-index: 1;
}

.price-block.available {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-amount {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
}

.price-block.not-available {
    text-align: center;
    padding: 0.5rem 0;
}

.status-text {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.status-subtext {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.7);
    margin-top: 0.25rem;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-detail {
    padding: 14px 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-detail svg {
    width: 18px;
    height: 18px;
}

.btn-purchase {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
}

.btn-purchase:hover {
    background-color: #333;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-outline-secondary {
    color: #666;
    border: 2px solid #e0e0e0;
    background: transparent;
}

.btn-outline-secondary:hover {
    color: #1a1a1a;
    border-color: #1a1a1a;
    background: transparent;
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

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

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: white;
    color: #1a1a1a;
}

/* Related Works */
.related-works-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.related-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.related-item {
    position: relative;
}

.related-link {
    text-decoration: none;
    display: block;
}

.related-image-wrapper {
    position: relative;
    padding-bottom: 75%;
    overflow: hidden;
    border-radius: 12px;
    background: #f0f0f0;
}

.related-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.related-item:hover img {
    transform: scale(1.1);
}

.related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-item:hover .related-overlay {
    opacity: 1;
}

.related-view {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.related-painting-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-top: 1rem;
    text-align: center;
}

/* ===== BLOG PAGE STYLES ===== */

/* Blog Hero */
.blog-hero {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.blog-page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.blog-page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    color: #666;
}

/* Blog Section */
.blog-section {
    background-color: #ffffff;
    max-width: 900px;
    margin: 0 auto;
}

.blog-post {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    clear: both;
    overflow: hidden;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.blog-post .text-muted {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #999 !important;
}

.blog-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #3a3a3a;
}

.blog-content p {
    text-align: justify;
    margin: 0;
}

/* ===== BLOG IMAGE SLIDER STYLES ===== */

/* Slider Container */
.blog-image-slider {
    position: relative;
    max-width: 280px;
    width: 100%;
}

.slider-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.blog-post:hover .slider-container {
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Slider Wrapper */
.slider-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Соотношение сторон 4:3 */
    background-color: #f8f8f8;
}

/* Slider Images */
.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-image.active {
    opacity: 1;
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

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

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: #ffffff;
    width: 24px;
    border-radius: 4px;
}

/* Blog Pagination */
.blog-pagination-wrapper {
    margin-top: 60px;
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.blog-page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    background: #ffffff;
    color: #1a1a1a;
    text-decoration: none;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-page-link:hover {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
    transform: translateY(-2px);
}

.blog-page-info {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-page {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.125rem;
}

.page-divider {
    color: #ddd;
}

/* Empty Blog State */
.empty-blog-state {
    padding: 60px 0;
}

.empty-blog-message {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* ===== CONTACTS PAGE STYLES ===== */

/* Contacts Hero */
.contacts-hero {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contacts-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(26,26,26,0.02) 0%, transparent 50%);
    animation: rotateGradient 30s linear infinite;
}

@keyframes rotateGradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contacts-hero-content {
    position: relative;
    z-index: 1;
}

.contacts-page-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.contacts-page-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 300;
    color: #666;
}

/* Contacts Content */
.contacts-content-section {
    padding: 80px 0 100px;
    background-color: #ffffff;
}

.contacts-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Contact Info Block */
.contact-info-block {
    background: #fafafa;
    padding: 3rem;
    border-radius: 16px;
    height: 100%;
}

.contact-block-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #666;
}

.contact-value {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #333;
}

.no-contact-info {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #999;
    font-style: italic;
}

/* Social Section */
.social-section {
    margin-top: 2.5rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    text-align: center;
}

.social-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.social-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: #1a1a1a;
}

.social-links {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    align-items: center;
}

.social-link {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-link:hover::before {
    width: 100px;
    height: 100px;
}

.social-link i {
    font-size: 42px;
    position: relative;
    z-index: 1;
}

.social-link.vk {
    background: #0077FF;
    box-shadow: 0 4px 12px rgba(0, 119, 255, 0.25);
}

.social-link.vk:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 119, 255, 0.35);
}

.social-link.instagram {
    background: linear-gradient(135deg, #405DE6 0%, #5B51D8 20%, #833AB4 40%, #C13584 60%, #E1306C 80%, #FD1D1D 100%);
    box-shadow: 0 4px 12px rgba(193, 53, 132, 0.25);
}

.social-link.instagram:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(193, 53, 132, 0.35);
}

.social-link.telegram {
    background: #229ED9;
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.25);
}

.social-link.telegram:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(34, 158, 217, 0.35);
}

/* Contact Form Block */
.contact-form-block {
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
    height: 100%;
}

.form-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Modern Form Styles */
.modern-contact-form {
    margin-top: 2rem;
}

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

.form-label-custom {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control-custom {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1a1a1a;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.1);
}

.form-textarea {
    max-height: 140px;
    resize: vertical;
}

.form-error {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    background: #1a1a1a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit svg {
    width: 20px;
    height: 20px;
}

/* Alert Messages */
.alert-custom {
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

/* Quote Section */
.contact-quote-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    overflow: hidden;
}

.quote-block {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.quote-decoration {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    opacity: 0.1;
}

.quote-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-style: italic;
    color: white;
    margin: 0 0 1rem;
    line-height: 1.4;
}

/* ===== ANIMATION DETAILS ===== */

/* Animation on page load */
.painting-item[data-aos].aos-animate .painting-details {
    animation: fadeInDetails 0.6s ease 0.3s both;
}

@keyframes fadeInDetails {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===== ADAPTIVE IMPROVEMENTS ===== */

/* Base responsive font sizing */
html {
    font-size: 16px;
}

@media (max-width: 1920px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 1366px) {
    html {
        font-size: 14px;
    }
}

/* Container max-width adjustments */
@media (min-width: 1400px) and (max-width: 1920px) {
    .container {
        max-width: 1200px;
    }
}

/* Header improvements */
.main-header {
    padding: 0;
}

.main-header .navbar {
    padding: clamp(0.75rem, 2vw, 1.25rem) 0;
}

.navbar-brand {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.navbar-nav .nav-link {
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
    padding: 0.5rem clamp(0.75rem, 2vw, 1.25rem);
}

/* Hero Section responsive improvements */
.hero-section {
    min-height: calc(100vh - 80px);
    padding: 0;
}

.hero-section .container {
    padding: 0 15px;
}

/* Artist content responsive sizing */
.artist-content {
    padding-right: clamp(20px, 4vw, 60px);
    max-width: 100%;
}

.artist-name-hero {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: clamp(1rem, 3vw, 2rem);
}

.artist-subtitle {
    font-size: clamp(0.25em, 0.3em, 0.3em);
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
}

.artist-bio-text {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
}

.bio-wrapper {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Hero buttons responsive */
.btn-hero {
    padding: clamp(12px, 2vw, 16px) clamp(24px, 3vw, 40px);
    font-size: clamp(0.875rem, 1.5vw, 1rem);
}

/* Artist image responsive */
.artist-image-wrapper {
    width: 100%;
    height: clamp(350px, 50vh, 500px);
    margin-left: 0;
}

@media (min-width: 992px) {
    .artist-image-wrapper {
        margin-left: clamp(20px, 4vw, 60px);
        height: clamp(400px, 60vh, 600px);
    }
}

/* Mobile artist image specific */
.mobile-artist-image {
    margin-bottom: 2rem;
    padding: 0 20px; /* Added padding for image container */
}

.mobile-artist-image .artist-image-wrapper {
    height: 300px;
    margin: 0;
    border-radius: 12px; /* Added border radius for better visual */
}

/* Featured section responsive */
.featured-section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.section-header {
    margin-bottom: clamp(10px, 3vw, 30px);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    margin-top: clamp(1rem, 2vw, 1.5rem);
}

/* Carousel responsive adjustments */
.featured-carousel-container {
    margin: 0 clamp(-20px, -4vw, -60px);
    padding: clamp(10px, 2vw, 20px) 0 clamp(20px, 3vw, 30px);
}

.carousel-slide {
    padding: 0 clamp(20px, 4vw, 60px);
}

.carousel-nav-external {
    width: clamp(40px, 4vw, 48px);
    height: clamp(40px, 4vw, 48px);
}

.carousel-nav-external.prev {
    left: clamp(-10px, -1vw, 0);
}

.carousel-nav-external.next {
    right: clamp(-10px, -1vw, 0);
}

/* Mobile carousel button fix */
@media (max-width: 767px) {
    html {
        font-size: 16px;
    }

    .artist-subtitle {
        font-size: 12px;
    }

    .featured-carousel-container {
        margin: 0;
        padding: 10px 0 20px;
        position: relative;
    }

    .carousel-slide {
        padding: 0 50px; /* Space for buttons */
    }

    .carousel-nav-external {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        width: 36px;
        height: 36px;
    }

    .carousel-nav-external.prev {
        left: 5px;
    }

    .carousel-nav-external.next {
        right: 5px;
    }

    .carousel-nav-external svg {
        width: 16px;
        height: 16px;
    }
}

/* Painting cards responsive */
.painting-card,
.featured-home-card,
.gallery-card {
    border-radius: clamp(12px, 2vw, 16px);
    margin: clamp(5px, 1vw, 10px) 0;
}

.painting-info,
.painting-details,
.featured-home-details {
    padding: clamp(1rem, 2vw, 1.75rem);
}

.painting-title,
.painting-name {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    margin-bottom: clamp(0.25rem, 0.5vw, 0.5rem);
}

.featured-home-details .painting-name {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.painting-meta {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
}

.price-value {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

/* CTA Section responsive */
.cta-section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.cta-text {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.cta-section .btn-light {
    padding: clamp(12px, 2vw, 16px) clamp(32px, 4vw, 48px);
}

/* Footer responsive */
.main-footer {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0;
}

.footer-copyright {
    font-size: clamp(0.875rem, 1vw, 0.95rem);
}

/* Mobile-specific improvements */
@media (max-width: 767px) {
    /* Hero mobile layout */
    .hero-section {
        min-height: auto;
    }

    .hero-section .row {
        min-height: auto;
        padding: 20px 0 40px; /* Reduced top padding */
    }

    .artist-content {
        padding: 0 20px; /* Added horizontal padding */
        text-align: center;
    }

    .artist-name-hero {
        margin-bottom: 1.5rem; /* Reduced spacing */
    }

    .bio-wrapper {
        margin-bottom: 2rem; /* Adjusted spacing */
    }

    .artist-image-wrapper {
        height: 300px;
        margin-bottom: 0;
    }

    /* Mobile hero actions styling */
    .hero-actions {
        position: relative;
        padding-top: 2.5rem;
        margin-top: 2rem;
        justify-content: center;
    }

    .hero-actions::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 3px;
        background-color: #1a1a1a;
    }

    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }

    /* Ensure cards stack properly on mobile */
    .featured-static-grid .col-md-6 {
        margin-bottom: 1rem;
    }

    /* Mobile navigation improvements */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        margin: 0 -15px;
        padding: 1rem 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section .row {
        min-height: 600px;
    }

    .artist-content {
        text-align: center;
        padding: 40px 0;
    }

    .hero-actions {
        justify-content: center;
    }

    .artist-image-wrapper {
        margin-top: 2rem;
    }

    /* Fix carousel buttons on tablets */
    .carousel-nav-external {
        width: 44px;
        height: 44px;
    }

    .carousel-nav-external.prev {
        left: 10px;
    }

    .carousel-nav-external.next {
        right: 10px;
    }
}

/* Full HD specific optimizations */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    .artist-name-hero {
        font-size: 3.5rem;
    }

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

    .cta-title {
        font-size: 2.75rem;
    }
}

/* Faster transitions for responsive changes */
* {
    transition: font-size 0.15s ease, padding 0.15s ease, margin 0.15s ease;
}

/* Remove transitions for immediate response */
.carousel-nav-external,
.carousel-slide,
.featured-carousel-container {
    transition: none;
}

/* Prevent layout shift during font loading */
.artist-name-hero,
.section-title,
.painting-name,
.cta-title {
    font-display: swap;
}

/* Better touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn-hero,
    .carousel-nav-external,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Prevent horizontal overflow on mobile */
@media (max-width: 767px) {
    body {
        overflow-x: hidden;
    }

    .container-fluid,
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ===== GALLERY PAGE RESPONSIVE IMPROVEMENTS ===== */

/* Gallery Hero responsive */
.gallery-hero {
    padding: clamp(80px, 10vw, 120px) 0 clamp(40px, 5vw, 60px);
}

.gallery-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
}

.gallery-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    max-width: 100%;
    padding: 0 20px;
    margin: 0 auto clamp(1.5rem, 2vw, 2rem);
}

.hero-decoration {
    transform: scale(clamp(0.7, 1vw, 1));
}

/* Paintings Grid responsive */
.paintings-grid-section {
    padding: clamp(0px, 4vw, 40px) 0 clamp(0px, 4vw, 40px);
}

.paintings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: clamp(40px, 6vw, 80px);
}

@media (min-width: 768px) and (max-width: 991px) {
    .paintings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .paintings-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .paintings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Gallery card responsive adjustments */
.gallery-card {
    height: 100%;
    margin: 0;
}

.gallery-card .painting-details {
    padding: clamp(1rem, 1.5vw, 1.25rem) clamp(1rem, 1.5vw, 1.5rem);
}

.gallery-card .painting-name {
    font-size: clamp(1.125rem, 1.8vw, 1.5rem);
    margin-bottom: clamp(0.25rem, 0.5vw, 0.375rem);
}

.painting-info-row {
    margin-bottom: clamp(0.25rem, 0.4vw, 0.4rem);
    padding-bottom: clamp(0.25rem, 0.4vw, 0.4rem);
}

.painting-year {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
}

.painting-price-row {
    margin-top: auto;
    padding-top: clamp(0.125rem, 0.25vw, 0.25rem);
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.125rem, 0.25vw, 0.25rem);
}

.price-label-list {
    font-size: clamp(0.625rem, 0.9vw, 0.75rem);
}

.price-value {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.not-for-sale {
    font-size: clamp(0.75rem, 1vw, 0.8125rem);
    padding: clamp(0.25rem, 0.5vw, 0.375rem) clamp(0.75rem, 1vw, 1rem);
}

/* Featured badge responsive */
.featured-badge {
    padding: clamp(4px, 0.5vw, 6px) clamp(8px, 1vw, 12px);
    font-size: clamp(0.625rem, 0.9vw, 0.75rem);
    gap: clamp(4px, 0.5vw, 6px);
}

.featured-badge svg {
    width: clamp(12px, 1.2vw, 14px);
    height: clamp(12px, 1.2vw, 14px);
}

/* Pagination responsive improvements */
.pagination-wrapper {
    margin-top: clamp(40px, 6vw, 80px);
}

.modern-pagination {
    gap: clamp(1rem, 2vw, 2rem);
}

.page-link {
    padding: clamp(10px, 1.5vw, 12px) clamp(16px, 2vw, 24px);
    font-size: clamp(0.875rem, 1vw, 1rem);
}

.page-link svg {
    width: clamp(16px, 1.5vw, 20px);
    height: clamp(16px, 1.5vw, 20px);
}

.page-numbers {
    gap: clamp(0.25rem, 0.5vw, 0.5rem);
}

.page-number {
    width: clamp(32px, 3vw, 40px);
    height: clamp(32px, 3vw, 40px);
    font-size: clamp(0.875rem, 1vw, 1rem);
}

.page-ellipsis {
    color: #999;
    padding: 0 0.25rem;
}

/* Mobile specific gallery adjustments */
@media (max-width: 575px) {
    /* Single column on smallest screens */
    .paintings-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }

    /* Larger cards on mobile for better visibility */
    .gallery-card .painting-image-wrapper {
        padding-bottom: 100%; /* Square aspect ratio on mobile */
    }

    /* Better spacing for card content */
    .gallery-card .painting-details {
        padding: 1.25rem 1rem;
    }

    .gallery-card .painting-name {
        font-size: 1.25rem;
    }

    .painting-year {
        font-size: 0.875rem;
    }

    .price-value {
        font-size: 1.125rem;
        font-weight: 600;
    }

    /* Compact pagination on mobile */
    .modern-pagination {
        gap: 0.75rem;
    }

    .page-link {
        padding: 10px 16px;
    }

    .page-link-text {
        display: none; /* Hide text, show only arrows */
    }

    .page-numbers {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    /* Show only current and adjacent pages on mobile */
    .page-number {
        width: 32px;
        height: 32px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .paintings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .gallery-card .painting-details {
        padding: 1rem;
    }

    .gallery-card .painting-name {
        font-size: 1.125rem;
    }
}

/* Empty gallery responsive */
.empty-gallery {
    padding: clamp(60px, 10vw, 100px) 0;
}

.empty-icon {
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.empty-icon svg {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
}

.empty-message {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

/* ===== BLOG PAGE RESPONSIVE IMPROVEMENTS ===== */

/* Blog Hero responsive */
.blog-hero {
    padding: clamp(80px, 10vw, 120px) 0 clamp(40px, 5vw, 60px);
}

.blog-page-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.blog-page-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* Blog Section responsive */
.blog-section {
    padding: clamp(2rem, 4vw, 3rem) 0 !important;
}

.blog-section .container {
    max-width: 900px;
}

/* Blog Post responsive */
.blog-post {
    background-color: #fff;
    border-radius: clamp(12px, 2vw, 16px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: clamp(1.5rem, 3vw, 2.5rem) !important;
    margin-bottom: clamp(2rem, 4vw, 3rem) !important;
    transition: all 0.3s ease;
}

.blog-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.blog-date {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    color: #999 !important;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

/* Blog Content Layout */
.blog-content {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1rem, 2vw, 1.5rem);
}

.blog-text {
    flex: 1;
    min-width: 0;
}

.blog-text p {
    font-size: clamp(0.95rem, 1.5vw, 1.0625rem);
    line-height: 1.7;
    margin: 0;
}

/* Blog Image Slider responsive */
.blog-image-slider {
    float: left;
    margin-right: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
    max-width: 280px;
    width: 100%;
}

@media (max-width: 767px) {
    .blog-image-slider {
        float: none;
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 1.5rem;
    }
}

.slider-container {
    position: relative;
    width: 100%;
    border-radius: clamp(8px, 1.5vw, 12px);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #f8f8f8;
    cursor: grab;
    user-select: none;
}

.slider-container:active {
    cursor: grabbing;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 aspect ratio */
}

@media (max-width: 767px) {
    .slider-wrapper {
        padding-bottom: 66.67%; /* 3:2 aspect ratio on mobile */
    }
}

/* Slider Images */
.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-image.active {
    opacity: 1;
}

/* Slider Indicators responsive */
.slider-indicators {
    position: absolute;
    bottom: clamp(8px, 1.5vw, 12px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: clamp(6px, 1vw, 8px);
    padding: clamp(6px, 1vw, 8px) clamp(10px, 1.5vw, 12px);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.indicator {
    width: clamp(6px, 1vw, 8px);
    height: clamp(6px, 1vw, 8px);
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.indicator.active {
    background: #ffffff;
    width: clamp(18px, 2.5vw, 24px);
    border-radius: 4px;
}

/* Blog Pagination responsive */
.blog-pagination-wrapper {
    margin-top: clamp(40px, 6vw, 60px);
}

.blog-pagination {
    gap: clamp(1.5rem, 3vw, 3rem);
}

.blog-page-link {
    padding: clamp(10px, 1.5vw, 12px) clamp(20px, 2.5vw, 24px);
    font-size: clamp(0.875rem, 1vw, 1rem);
}

.blog-page-info {
    font-size: clamp(0.875rem, 1vw, 1rem);
    gap: clamp(0.25rem, 0.5vw, 0.5rem);
}

.current-page {
    font-size: clamp(1rem, 1.25vw, 1.125rem);
}

/* Empty blog state responsive */
.empty-blog-state {
    padding: clamp(40px, 6vw, 60px) 0 !important;
}

.empty-blog-message {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

/* Mobile specific blog adjustments */
@media (max-width: 767px) {
    .blog-section {
        padding: 1.5rem 0 !important;
    }

    .blog-post {
        padding: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px;
    }

    .blog-content {
        flex-direction: column;
        gap: 0;
    }

    .blog-title {
        font-size: 1.375rem;
        line-height: 1.3;
    }

    .blog-text p {
        font-size: 0.9375rem;
        text-align: left;
    }

    /* Compact pagination on mobile */
    .blog-pagination {
        gap: 1rem;
    }

    .blog-page-link {
        padding: 10px 16px;
    }

    .blog-page-link-text {
        display: none; /* Hide text, show only arrows */
    }

    .blog-page-info {
        font-size: 0.9375rem;
    }

    /* Touch-friendly indicators */
    .slider-indicators {
        padding: 8px 12px;
    }

    .indicator {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        position: relative;
    }

    .indicator::before {
        content: '';
        position: absolute;
        width: 8px;
        height: 8px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .indicator.active::before {
        background: #ffffff;
        width: 20px;
        border-radius: 4px;
    }
}

/* Tablet specific blog adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .blog-image-slider {
        max-width: 240px;
    }

    .blog-post {
        padding: 2rem !important;
    }
}

/* Swipe hint for mobile */
@media (hover: none) and (pointer: coarse) {
    .slider-container::after {
        content: '';
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        opacity: 0;
        animation: swipeHint 3s ease-in-out;
    }

    @keyframes swipeHint {
        0%, 100% { opacity: 0; transform: translateX(-50%); }
        20%, 80% { opacity: 1; }
        50% { transform: translateX(-50%) translateX(20px); }
    }
}

/* ===== CONTACTS PAGE RESPONSIVE IMPROVEMENTS ===== */

/* Contacts Hero responsive */
.contacts-hero {
    padding: clamp(80px, 10vw, 120px) 0 clamp(40px, 5vw, 60px);
}

.contacts-page-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
}

.contacts-page-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

/* Contacts Content responsive */
.contacts-content-section {
    padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
}

.contacts-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* Contact blocks responsive */
.contact-info-block,
.contact-form-block {
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: clamp(12px, 2vw, 16px);
}

.contact-block-title {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

/* Contact details responsive */
.contact-details {
    margin-bottom: clamp(2rem, 3vw, 3rem);
}

.contact-item {
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
    gap: clamp(0.75rem, 1vw, 1rem);
}

.contact-icon {
    width: clamp(40px, 4vw, 48px);
    height: clamp(40px, 4vw, 48px);
    border-radius: clamp(8px, 1.5vw, 12px);
}

.contact-icon svg {
    width: clamp(20px, 2vw, 24px);
    height: clamp(20px, 2vw, 24px);
}

.contact-label {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
}

.contact-value {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.no-contact-info {
    font-size: clamp(0.875rem, 1vw, 1rem);
}

/* Social section responsive */
.social-section {
    margin-top: clamp(2rem, 2.5vw, 2.5rem);
    margin-left: clamp(-0.5rem, -1vw, -1rem);
    margin-right: clamp(-0.5rem, -1vw, -1rem);
    padding: clamp(2rem, 2.5vw, 2.5rem) clamp(1.5rem, 2vw, 2rem);
    border-radius: clamp(8px, 1.5vw, 12px);
}

.social-title {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
    margin-bottom: clamp(1rem, 1.5vw, 1.5rem);
}

.social-links {
    gap: clamp(1rem, 1.5vw, 1.25rem);
}

.social-link {
    width: clamp(48px, 5vw, 64px);
    height: clamp(48px, 5vw, 64px);
    border-radius: clamp(14px, 2vw, 18px);
}

.social-link i {
    font-size: clamp(24px, 3vw, 42px);
}

/* Form responsive */
.form-subtitle {
    font-size: clamp(0.875rem, 1vw, 1rem);
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.modern-contact-form {
    margin-top: clamp(1.5rem, 2vw, 2rem);
}

.form-group {
    margin-bottom: clamp(1.25rem, 1.5vw, 1.5rem);
}

.form-label-custom {
    font-size: clamp(0.8125rem, 1vw, 0.875rem);
    margin-bottom: clamp(0.375rem, 0.5vw, 0.5rem);
}

.form-control-custom {
    padding: clamp(10px, 1.5vw, 12px) clamp(14px, 2vw, 16px);
    font-size: clamp(0.875rem, 1vw, 0.9375rem);
    border-radius: clamp(6px, 1vw, 8px);
}

.form-textarea {
    min-height: clamp(100px, 15vw, 120px);
    max-height: clamp(120px, 20vw, 140px);
}

.form-error {
    font-size: clamp(0.75rem, 1vw, 0.875rem);
}

/* Submit button responsive */
.btn-submit {
    padding: clamp(14px, 2vw, 16px) clamp(24px, 3vw, 32px);
    font-size: clamp(0.875rem, 1vw, 1rem);
    border-radius: clamp(40px, 5vw, 50px);
    gap: clamp(0.5rem, 0.75vw, 0.75rem);
    margin-top: clamp(0.75rem, 1vw, 1rem);
}

.btn-submit svg {
    width: clamp(18px, 2vw, 20px);
    height: clamp(18px, 2vw, 20px);
}

/* Alert responsive */
.alert-custom {
    font-size: clamp(0.875rem, 1vw, 1rem);
    padding: clamp(0.875rem, 1vw, 1rem) clamp(1.25rem, 1.5vw, 1.5rem);
    border-radius: clamp(6px, 1vw, 8px);
    margin-top: clamp(1.5rem, 2vw, 2rem) !important;
}

/* Quote section responsive */
.contact-quote-section {
    padding: clamp(60px, 8vw, 80px) 0;
}

.quote-text {
    font-size: clamp(1.25rem, 3vw, 2.5rem);
    line-height: 1.4;
    padding: 0 20px;
}

/* Mobile specific contacts adjustments */
@media (max-width: 767px) {
    .contacts-hero {
        padding: 80px 0 40px;
    }

    .contacts-content-section {
        padding: 30px 0 50px;
    }

    .contact-info-block,
    .contact-form-block {
        padding: 1.5rem;
        box-shadow: 0 3px 20px rgba(0,0,0,0.06);
    }

    .contact-info-block {
        margin-bottom: 2rem;
    }

    .contact-block-title {
        font-size: 1.375rem;
        text-align: center;
    }

    /* Mobile contact items */
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
    }

    .contact-icon {
        flex-shrink: 0;
    }

    .contact-value {
        word-break: break-word;
    }

    /* Mobile social section */
    .social-section {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .social-title {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
    }

    .social-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
        gap: 1rem;
    }

    .social-link {
        width: 60px;
        height: 60px;
    }

    .social-link i {
        font-size: 32px;
    }

    /* Mobile form */
    .form-group {
        margin-bottom: 1rem;
    }

    .form-control-custom {
        font-size: 0.9375rem; /* Consistent with body text */
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    /* Mobile quote */
    .contact-quote-section {
        padding: 50px 0;
    }

    .quote-text {
        font-size: 1.125rem;
    }
}

/* Tablet specific contacts adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .contact-info-block,
    .contact-form-block {
        padding: 2rem;
    }

    .contact-info-block {
        margin-bottom: 3rem;
    }

    .social-link {
        width: 56px;
        height: 56px;
    }

    .social-link i {
        font-size: 32px;
    }
}

/* Enhanced touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .contact-value,
    .social-link,
    .form-control-custom,
    .btn-submit {
        min-height: 44px;
    }

    .social-link {
        min-width: 44px;
    }
}

/* Fix for iOS form zoom */
@supports (-webkit-touch-callout: none) {
    .form-control-custom {
        font-size: max(0.9375rem, 16px); /* Prevent zoom but keep consistent size */
    }
}

/* Remove rotating element from contacts hero */
.contacts-hero::before {
    display: none;
}

/* ===== GALLERY ANIMATION IMPROVEMENTS ===== */

/* Faster animation for gallery items */
.painting-item[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease; /* Reduced from 0.6s */
}

.painting-item[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Even faster animation for gallery cards details */
.painting-item[data-aos].aos-animate .painting-details {
    animation: fadeInDetails 0.3s ease 0.2s both; /* Reduced from 0.6s and 0.3s delay */
}

@keyframes fadeInDetails {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimizations for animations */
@media (max-width: 767px) {
    .painting-item[data-aos] {
        transform: translateY(20px); /* Less movement on mobile */
    }

    /* Disable stagger on mobile for instant load */
    .painting-item[data-aos].aos-animate {
        transition: all 0.3s ease;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .painting-item[data-aos],
    .painting-item[data-aos].aos-animate,
    .painting-item[data-aos].aos-animate .painting-details {
        transition: none;
        animation: none;
        transform: none;
    }
}


/* ===== BLOG IMAGE SLIDER IMPROVEMENTS ===== */

/* Улучшения для слайдера изображений в блоге */
.blog-image-slider .slider-wrapper {
    cursor: crosshair; /* Указатель крестик для переключения */
}

.blog-image-slider .slider-wrapper:hover {
    cursor: crosshair;
}

/* Увеличенные индикаторы для десктопа */
@media (min-width: 768px) {
    .slider-indicators {
        padding: 10px 16px;
        gap: 12px;
    }

    .indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.6);
        cursor: pointer;
        padding: 0;
        transition: all 0.3s ease;
        position: relative;
        z-index: 100; /* Высокий z-index для клика */
    }

    .indicator:hover {
        background: rgba(255, 255, 255, 0.8);
        transform: scale(1.3);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    .indicator.active {
        background: #ffffff;
        width: 32px;
        border-radius: 6px;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
    }

    .indicator.active:hover {
        transform: scale(1.1);
    }
}

/* Улучшенная интерактивность для мыши */
@media (min-width: 768px) {
    .blog-image-slider .slider-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(
            90deg,
            rgba(0,0,0,0.1) 0%,
            transparent 20%,
            transparent 80%,
            rgba(0,0,0,0.1) 100%
        );
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }

    .blog-image-slider .slider-wrapper:hover::before {
        opacity: 1;
    }

    /* Визуальная подсказка для переключения */
    .blog-image-slider .slider-wrapper::after {
        content: 'Двигайте мышью для переключения';
        position: absolute;
        bottom: 50px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.6); /* Более прозрачный фон */
        color: rgba(255, 255, 255, 0.9); /* Более прозрачный текст */
        padding: 4px 10px; /* Меньший отступ */
        border-radius: 12px; /* Меньший радиус */
        font-size: 0.7rem; /* Меньший размер шрифта */
        font-family: 'Inter', sans-serif;
        font-weight: 400; /* Обычная толщина шрифта */
        white-space: nowrap;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
        z-index: 10;
        letter-spacing: 0.02em; /* Немного разреженный текст */
    }

    .blog-image-slider .slider-wrapper:hover::after {
        opacity: 1;
    }

    /* Скрываем подсказку после первого взаимодействия */
    .blog-image-slider.interacted .slider-wrapper::after {
        display: none;
    }
}

/* Увеличенная область клика для индикаторов */
.slider-indicators .indicator {
    position: relative;
}

.slider-indicators .indicator::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    z-index: -1;
}

/* Плавные переходы между изображениями */
.slider-image {
    transition: opacity 0.4s ease-in-out;
}

/* Отключение выделения текста при взаимодействии с мышью */
.blog-image-slider .slider-wrapper {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}


/* Mobile specific blog adjustments */
@media (max-width: 767px) {
    .blog-section {
        padding: 1.5rem 0 !important;
    }

    .blog-post {
        padding: 1.25rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px;
    }

    .blog-content {
        flex-direction: column;
        gap: 0;
    }

    .blog-title {
        font-size: 1.375rem;
        line-height: 1.3;
    }

    .blog-text p {
        font-size: 0.9375rem;
        text-align: left;
    }

    /* Compact pagination on mobile */
    .blog-pagination {
        gap: 1rem;
    }

    .blog-page-link {
        padding: 10px 16px;
    }

    .blog-page-link-text {
        display: none; /* Hide text, show only arrows */
    }

    .blog-page-info {
        font-size: 0.9375rem;
    }

    /* Компактные индикаторы слайдера для мобилки */
    .slider-indicators {
        padding: 6px 10px;
        gap: 6px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 15px;
        backdrop-filter: blur(8px);
    }

    .indicator {
        width: 20px;
        height: 20px;
        border-radius: 50%;
        border: none;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        padding: 0;
        transition: all 0.3s ease;
        position: relative;
        min-width: unset;
        min-height: unset;
        display: block;
    }

    .indicator::before {
        display: none; /* Убираем двойной элемент */
    }

    .indicator:hover {
        background: rgba(255, 255, 255, 0.7);
        transform: scale(1.2);
    }

    .indicator.active {
        background: #ffffff;
        width: 20px;
        border-radius: 4px;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    }

    .indicator.active:hover {
        transform: scale(1.1);
    }

    /* Отключаем десктопные функции на мобилке */
    .blog-image-slider .slider-wrapper {
        cursor: default;
    }

    .blog-image-slider .slider-wrapper::before,
    .blog-image-slider .slider-wrapper::after {
        display: none !important;
    }

    /* Увеличиваем область касания для индикаторов */
    .slider-indicators .indicator {
        position: relative;
        z-index: 100;
    }

    .slider-indicators .indicator::after {
        content: '';
        position: absolute;
        top: -12px;
        left: -12px;
        right: -12px;
        bottom: -12px;
        z-index: -1;
    }

    /* Убираем интерактивность мыши на мобилке */
    .blog-image-slider.interacted .slider-wrapper::after {
        display: none !important;
    }
}


/* ===== FIXES FOR ISSUES ===== */

/* 1. Убираем hover overlay на мобильных устройствах */
@media (max-width: 767px) {
    .painting-hover-overlay {
        display: none !important;
    }

    /* Убираем эффект масштабирования изображения при наведении на мобилках */
    .painting-card:hover .painting-image,
    .featured-home-card:hover .painting-image,
    .gallery-card:hover .painting-image {
        transform: none;
    }
}

/* Альтернативный подход для touch-устройств */
@media (hover: none) and (pointer: coarse) {
    .painting-hover-overlay {
        display: none !important;
    }

    .painting-card:hover .painting-image,
    .featured-home-card:hover .painting-image,
    .gallery-card:hover .painting-image {
        transform: none;
    }
}

/* 2. Скрываем подсказку "Двигайте мышью" когда только одно изображение */
.blog-image-slider:has(.slider-image:only-child) .slider-wrapper::after,
.blog-image-slider:not(:has(.indicator)) .slider-wrapper::after,
.blog-image-slider.single-image .slider-wrapper::after {
    display: none !important;
}

/* 3. Исправление высоты карточек на мобильных */
@media (max-width: 767px) {
    .painting-card.featured-home-card {
        height: 100%;
        min-height: auto;
    }

    .featured-home-details {
        min-height: 80px; /* Минимальная высота для контента */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1.25rem 1rem;
    }

    .featured-home-details .painting-name {
        margin: 0;
        padding: 0.5rem 0; /* Добавляем внутренние отступы */
    }

    /* Убираем лишние отступы у контейнера */
    .featured-static-grid .painting-card-link {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    .featured-static-grid .painting-card {
        margin: 0;
        height: 100%;
    }

    /* Дополнительная корректировка для карточек в каруселе */
    #featuredCarousel .painting-card.featured-home-card {
        height: 100%;
    }

    #featuredCarousel .featured-home-details {
        min-height: 90px;
    }
}

/* 4. Стили для дисклеймера Instagram */
.social-disclaimer {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #666;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    font-style: italic;
}

/* Добавляем звездочку к Instagram */
.social-link.instagram::after {
    content: '*';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1rem;
    color: #dc3545;
    font-weight: bold;
}

/* Responsive для дисклеймера */
@media (max-width: 767px) {
    .social-disclaimer {
        font-size: 0.7rem;
        padding: 0.75rem 0.5rem 0;
        line-height: 1.3;
    }
}
