
/* Mobile Adaptive Styles */
@media (max-width: 480px) {
    /* Загальні налаштування */
    .container {
        padding: 0 10px;
    }

    /* Хедер */
    header {
        padding: 0px;
    }

    .header-content {
        display: grid;
        align-items: center;
        grid-template-columns: auto 1fr auto auto;
        justify-content: space-between;
        gap: 10px;
    }

    .logo {
        grid-column: 1;
        font-size: 18px;
        flex-grow: 1;
        text-align: left;
    }

    .header-controls {
        grid-column: 3/5;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 20px;
    }

    .theme-toggle, .lang-toggle
    {
        font-size: 15px;
        width: 15px;
        height: 15px;
    }

    .lang-toggle img
    {
       font-size: 15px;
       width: 15px;
       height: 15px; 
   }

.theme-toggle:hover, .lang-toggle:hover {
    transform: scale(1);
    opacity: 1;
}

 .theme-toggle:hover .theme-icon {
    transform: rotate(0deg);
    opacity: 1;
}

   .nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Темний напівпрозорий фон */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: left 0.3s ease;
}

.dark-theme .nav-menu {
    background-color: rgba(255, 255, 255, 0.9); /* Світлий фон для темного режиму */
}

.dark-theme .nav-menu a {
    color: #121212; /* Темний колір тексту */
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5); /* Світла тінь для контрасту */
    font-weight: 500; /* Трохи жирніший шрифт для кращого контрасту */
}

/* Ефект при наведенні для темного режиму */
.dark-theme .nav-menu a:hover {
    color: #000000; /* Чорний колір при наведенні */
}

/* Підкреслення при наведенні для темного режиму */
.dark-theme .nav-menu a::after {
    background-color: #000000; /* Чорне підкреслення */
}

/* Кнопка мобільного меню в темному режимі */
.dark-theme .mobile-menu-btn {
    color: #121212; /* Білий колір для кнопки меню */
}

/* Активна кнопка мобільного меню в темному режимі */
.dark-theme .mobile-menu-btn.active {
    color: #121212; /* Темний колір для активної кнопки */
}

.nav-menu.active {
    left: 0;
}

.nav-menu li {
    margin: 15px 0;
    text-align: center;
}

.nav-menu a {
    color: white;
    font-size: 20px;
    text-decoration: none;
}

.mobile-menu-btn {
    display: block;
    z-index: 1100;
    position: relative;
    font-size: 15px;
}

.mobile-menu-btn.active {
    color: white;
}

/* Головна секція (Hero) */
.hero-image {
    height: auto;
    min-height: 300px; /* Мінімальна висота для мобільних */
    max-height: 70vh; /* Максимальна висота відносно вікна перегляду */
    object-position: center top; /* Фокус на верхній частині зображення */
}

.hero-text-container {
    background-color: rgba(0, 0, 0, 0.4); /* Зменшена непрозорість */
    backdrop-filter: blur(5px); /* Зменшений блюр */
    padding: 5px 0; /* Менші внутрішні відступи */
}

.hero-content {
    max-width: 90%; /* Обмеження ширини контенту */
    margin: 0 auto; /* Центрування */
}

.hero-content h1 {
    font-size: 0.8rem; /* Зменшений розмір заголовка */
    margin-bottom: 4px; /* Менший відступ */
}

.hero-content p {
    font-size: 0.5rem; /* Ще менший розмір тексту */
    line-height: 1; /* Компактніша міжрядкова відстань */
    margin-bottom: 0px;
}

.hero-content .btn {
    padding: 3px 15px; /* Компактніша кнопка */
    font-size: 0.5rem; /* Менший текст кнопки */
    letter-spacing: 0.5px; /* Зменшена відстань між літерами */
}

/* Галерея */
.gallery {
    padding: 40px 0;
    margin-top: 40px;
}

.gallery-filter {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    margin: 0 5px 5px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

.gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
}

.gallery-item {
    height: 250px;
}

/* Про художника */
.about {
    padding: 40px 0;
}

.about-content {
    grid-template-columns: 1fr;
    gap: 20px;
}

.about-image {
    height: 300px;
}

.about-text h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.about-text p {
    font-size: 14px;
}

/* Контакти */
.contact {
    padding: 30px 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.contact-icon {
    margin-right: 0;
    margin-bottom: 10px;
}

.contact-text {
    align-items: center;
    width: 100%;
}

.social-links {
    gap: 10px;
}

.social-links a {
    width: 45px;
    height: 45px;
}

/* Модальне вікно */
.modal-content {
    display: flex;
    flex-direction: column;
    width: 92%;
    height: 90vh;
    background-color: rgba(25, 25, 25, 0.9);
    border-radius: 12px;
    position: relative;
    overflow: visible;
    padding: 15px 10px;
}

.modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-image-container {
    width: 75%;
    height: 50%; /* Reduced from 60% to move up */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-details {
    width: 100%;
    height: 50%; /* Increased from 40% */
    padding: 10px 5px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: white;
    overflow-y: auto;
}

.modal-details > div:first-child {
  flex: 1;
  overflow-y: auto;
  padding-right: 5px;
}

/* Блок з ціною та кнопкою купити - БЕЗ ЧОРНОГО ФОНУ */
.modal-details > div:last-child {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0 3px; /* Reduced padding */
    margin-top: 3px; /* Reduced margin */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-details h2 {
    font-size: 1.2rem; /* Smaller title */
    margin-bottom: 8px; /* Less space after title */
}

/* Make description text slightly smaller */
.modal-details p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 8px;
}

.modal-price {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    color: white;
    margin: 0;
    flex: 1;
    text-align: left;
}

.modal-contact-btn {
    padding: 6px 15px; /* Smaller padding */
    font-size: 0.8rem; /* Smaller font */
    background-color: rgba(230, 102, 23, 1);
    color: white;
    border: none;
    border-radius: 15px; /* Slightly smaller radius */
    text-transform: uppercase;
    margin: 0;
}

.modal-thumbnails {
    position: absolute;
    right: 10px;
    width: 24%;
    top: 25px;
    height: 45%; /* Match height of main image */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow-y: auto;
    background-color: transparent;
    padding: 5px;
}

.modal-thumbnails img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.3); /* Thinner border like main image */
    border-radius: 3px; /* Subtle rounding */
}

.modal-thumbnails img.active {
  border-color: white;
  transform: scale(1.05);
}

.modal-thumbnails::-webkit-scrollbar {
  height: 4px;
  width: 4px;
}

.modal-thumbnails::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.modal-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.3);
  border-radius: 4px;
}

.modal.active {
    overflow-y: hidden;
}

.modal-nav {
    display: none; /* Приховуємо навігаційні кнопки на мобільних */
}
.specs-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 8px 0;
    width: 100%;
}

.modal-specs {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.8);
}
.modal-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px; /* Smaller size */
    height: 16px; /* Smaller size */
    z-index: 1100;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}
.modal-close i {
    font-size: 8px; /* Smaller icon */
}
/* Футер */
footer {
    padding: 15px 0;
    font-size: 12px;
}

.about-text {
    text-align: center; /* Центрування тексту */
}

.about-text .btn {
    display: inline-block; /* Робимо кнопку вбудованою блочною */
    margin: 0 auto; /* Центруємо кнопку */
}

.modal-details > div:first-child::-webkit-scrollbar {
    width: 3px;
}

.modal-details > div:first-child::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* Make sure scroll works for Firefox */
.modal-details > div:first-child {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.modal-image-fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  object-fit: contain !important;
  margin: 0 !important;
  padding: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2000 !important;
  background-color: rgba(0, 0, 0, 0.95) !important;
}

/* Додаємо важливі правила для body та html, щоб уникнути проблем з розміром вікна на мобільних */
body.fullscreen-active, 
html.fullscreen-active {
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modal-eye-icon {
  position: absolute;
  top: 0px;
  right: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  pointer-events: none; /* Робить іконку неклікабельною */
  z-index: 2;
}
}