/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@400;500;600;700&display=swap");

/* ====================================
   CENTRALNE USTAWIENIE CZCIONKI I ROZMIARU
   Zmień czcionkę i rozmiar dla całej strony tutaj:
   ==================================== */
:root {
  --main-font: "Merriweather", serif;
  --font-size-multiplier: 1; /* Zwiększa wszystkie czcionki o 15% */
}

/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--main-font);
  background-color: #ffffff;
  color: #000000;
  line-height: 1.6;
  overflow-y: scroll;
  overflow-x: hidden;
}

html {
  overflow-y: scroll;
  overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #000000;
  z-index: 1000;
  padding: 1.5rem 2rem;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: calc(1.5rem * var(--font-size-multiplier));
  font-weight: 500;
  letter-spacing: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-btn {
  background: none;
  border: none;
  font-size: calc(0.9rem * var(--font-size-multiplier));
  color: #000000;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: all 0.3s ease;
  font-weight: 300;
  letter-spacing: 0.5px;
  opacity: 0.5;
  font-family: var(--main-font);
}

.lang-btn.active {
  opacity: 1;
  font-weight: 500;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-separator {
  font-size: calc(0.9rem * var(--font-size-multiplier));
  color: #000000;
  opacity: 0.5;
}

/* Instagram Link */
.instagram-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  transition: opacity 0.3s ease;
  margin-left: 2rem;
}

.instagram-link:hover {
  opacity: 0.6;
}

.instagram-link svg {
  width: 24px;
  height: 24px;
}

.nav-btn {
  background: none;
  border: none;
  font-size: calc(1rem * var(--font-size-multiplier));
  color: #000000;
  cursor: pointer;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 300;
  letter-spacing: 0.5px;
  font-family: var(--main-font);
}

.nav-btn:hover {
  opacity: 0.6;
}

.nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background-color: #000000;
}

/* Main Content Window */
.content-window {
  padding-top: calc(120px + 2rem);
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  min-height: calc(100vh - 120px);
}

/* Pages */
.page {
  display: none;
  animation: fadeIn 0.5s ease;
  min-height: 700px;
}

.page.active {
  display: block;
}

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

.page-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-content h2 {
  font-size: calc(2.5rem * var(--font-size-multiplier));
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.page-content p {
  margin-bottom: 1.5rem;
  font-size: calc(1.1rem * var(--font-size-multiplier));
  font-weight: 300;
  line-height: 1.8;
}

/* About Page - Two Panel Layout */
#about-page {
  margin: -2rem -2rem;
}

.about-container {
  display: flex;
  gap: 0;
  align-items: stretch;
  max-width: none;
  margin: 0;
}

.about-photo {
  flex: 0 0 35%;
  overflow: hidden;
  padding: 3rem 0;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(10%);
}

.about-text {
  flex: 1;
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: calc(0.9rem * var(--font-size-multiplier));
  font-weight: 400;
  line-height: 1.8;
  text-align: justify;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* Gallery Styles */
.gallery-container {
  max-width: 1000px;
  margin: 0 auto;
}

.gallery-container h2 {
  font-size: calc(2.5rem * var(--font-size-multiplier));
  font-weight: 300;
  margin-bottom: 3rem;
  text-align: center;
  letter-spacing: 1px;
}

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

.carousel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 620px;
}

.image-container {
  width: 100%;
  height: 495px; /* 450px + 10% = 495px */
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background-color: #ffffff;
  position: relative; /* Dla pozycjonowania przycisków */
}

.image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.carousel-btn {
  background: none;
  border: 1px solid #000000;
  width: 50px;
  height: 80px;
  font-size: calc(2.5rem * var(--font-size-multiplier));
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--main-font);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-btn.prev {
  left: -70px; /* Poza kontenerem obrazu, po lewej stronie */
}

.carousel-btn.next {
  right: -70px; /* Poza kontenerem obrazu, po prawej stronie */
}

.carousel-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-btn:disabled:hover {
  background-color: transparent;
  color: #000000;
}

/* Image Info */
.image-info {
  text-align: center;
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.image-info h3 {
  font-size: calc(1.4rem * var(--font-size-multiplier));
  font-weight: 300;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.image-details {
  margin-bottom: 1rem;
  flex-shrink: 0;
}

.image-details p {
  font-size: calc(0.9rem * var(--font-size-multiplier));
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.price-btn {
  background-color: #f5f5f5;
  color: #333333;
  border: 1px solid #d0d0d0;
  padding: 0.75rem 2rem;
  font-size: calc(1rem * var(--font-size-multiplier));
  font-family: var(--main-font);
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  font-weight: 300;
}

.price-btn:hover {
  background-color: #e8e8e8;
  color: #000000;
  border-color: #b0b0b0;
}

.price-btn.sold {
  background-color: #ffffff;
  color: #999999;
  border: 1px solid #cccccc;
  cursor: default;
}

.price-btn.sold:hover {
  background-color: #ffffff;
  color: #999999;
}

.carousel-counter {
  text-align: center;
  font-size: calc(1.1rem * var(--font-size-multiplier));
  color: #666;
  font-weight: 300;
  margin-top: 0.5rem;
}

.carousel-counter.desktop-counter {
  display: block;
}

.carousel-counter.mobile-counter {
  display: none; /* Hidden in desktop, shown in mobile */
}

.carousel-counter-with-nav.mobile-counter-nav {
  display: none; /* Hidden in desktop, shown in mobile */
}

.carousel-btn.mobile-nav {
  display: none; /* Hidden in desktop */
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 400;
  font-size: calc(0.95rem * var(--font-size-multiplier));
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #000000;
  background-color: #ffffff;
  font-size: calc(1rem * var(--font-size-multiplier));
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-width: 2px;
}

.submit-btn {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 0.75rem 2rem;
  font-size: calc(1rem * var(--font-size-multiplier));
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  font-weight: 300;
  width: 100%;
  font-family: var(--main-font);
}

.submit-btn:hover {
  background-color: #ffffff;
  color: #000000;
}

.contact-info {
  text-align: center;
  margin-top: 0.5rem;
}

.contact-info p {
  font-size: calc(1rem * var(--font-size-multiplier));
  font-weight: 300;
}

.contact-info a {
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #000000;
  transition: opacity 0.3s ease;
}

.contact-info a:hover {
  opacity: 0.6;
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background-color: #ffffff;
  padding: 3rem;
  max-width: 600px;
  width: 90%;
  position: relative;
  border: 1px solid #000000;
  animation: slideUp 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: calc(2rem * var(--font-size-multiplier));
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  font-family: var(--main-font);
}

.modal-close:hover {
  opacity: 0.6;
}

.modal-content h2 {
  font-size: calc(2rem * var(--font-size-multiplier));
  font-weight: 300;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.modal-painting-title {
  font-size: calc(1.1rem * var(--font-size-multiplier));
  margin-bottom: 2rem;
  color: #666;
  font-weight: 300;
}

/* Fullscreen Image Viewer */
.fullscreen-viewer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.fullscreen-viewer.hidden {
  display: none;
}

.fullscreen-viewer img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.fullscreen-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: #ffffff;
  font-size: calc(3rem * var(--font-size-multiplier));
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 3001;
  font-family: var(--main-font);
}

.fullscreen-close:hover {
  opacity: 0.6;
}

/* Gallery Animation Classes */
@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100px);
    opacity: 0;
  }
}

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

@keyframes slideInLeft {
  from {
    transform: translateX(-100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

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

.image-container img.slide-out-left {
  animation: slideOutLeft 0.5s ease-out forwards;
}

.image-container img.slide-out-right {
  animation: slideOutRight 0.5s ease-out forwards;
}

.image-container img.slide-in-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

.image-container img.slide-in-right {
  animation: slideInRight 0.5s ease-out forwards;
}

.image-info.slide-out-left {
  animation: slideOutLeft 0.5s ease-out forwards;
}

.image-info.slide-out-right {
  animation: slideOutRight 0.5s ease-out forwards;
}

.image-info.slide-in-left {
  animation: slideInLeft 0.5s ease-out forwards;
}

.image-info.slide-in-right {
  animation: slideInRight 0.5s ease-out forwards;
}

/* Counter navigation should NOT animate - removed animation classes */

/* Utility Classes */
.hidden {
  display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: calc(1.5rem * var(--font-size-multiplier));
    text-align: center;
    width: 100%;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }

  .nav-right {
    flex-direction: row;
    gap: 0.5rem; /* Zmniejszone z 1rem */
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    gap: 0.5rem; /* Zmniejszone z 0.75rem */
    padding-right: 0.6rem; /* Zmniejszone z 1rem */
    position: relative;
  }

  .nav-menu::after {
    content: "|";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    font-weight: 300;
    opacity: 0.5;
  }

  .nav-btn {
    font-size: calc(0.85rem * var(--font-size-multiplier));
    padding: 0.3rem 0.5rem; /* Zmniejszone z 0.4rem 0.7rem */
  }

  .language-switcher {
    gap: 0.3rem; /* Zmniejszone z 0.4rem */
    padding-left: 0.6rem; /* Zmniejszone z 1rem */
  }

  .lang-btn {
    font-size: calc(0.85rem * var(--font-size-multiplier));
    padding: 0.2rem 0.4rem; /* Zmniejszone z 0.25rem 0.5rem */
  }

  .lang-separator {
    font-size: calc(0.85rem * var(--font-size-multiplier));
  }

  .instagram-link {
    margin-left: 0.6rem; /* Zmniejszone z 1rem */
  }

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

  .content-window {
    padding-top: calc(140px + 0.5rem);
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  .page-content h2,
  .gallery-container h2 {
    font-size: calc(2rem * var(--font-size-multiplier));
  }

  /* About page responsive */
  #about-page {
    margin: -0.5rem -1rem;
  }

  .about-container {
    flex-direction: column;
    min-height: auto;
  }

  .about-photo {
    flex: none;
    width: 100%;
    padding: 0;
    overflow: hidden;
  }

  .about-photo img {
    margin-top: -13%;
    margin-bottom: -13%;
  }

  .about-text {
    padding: 1rem 1.5rem 2rem;
    justify-content: flex-start;
  }

  .about-text p {
    text-align: justify;
  }

  .carousel {
    gap: 1rem;
  }

  /* Ukryj pseudo-elementy w mobile - mamy prawdziwe przyciski */
  .image-container::before,
  .image-container::after {
    display: none;
  }

  .image-container {
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide desktop counter and arrows in mobile, show mobile counter */
  .carousel-counter.desktop-counter {
    display: none !important;
  }

  .carousel-btn.desktop-nav {
    display: none !important;
  }

  /* Show mobile counter with navigation */
  .carousel-counter-with-nav.mobile-counter-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    order: -1;
  }

  .carousel-counter.mobile-counter {
    display: block;
    margin: 0;
    padding: 0;
  }

  .carousel-btn.mobile-nav {
    display: flex;
    background: none;
    border: none;
    width: auto;
    height: auto;
    padding: 0;
    font-size: calc(2.5rem * var(--font-size-multiplier));
    color: #000000;
    cursor: pointer;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    font-family: var(--main-font);
    line-height: 1;
    position: static !important;
    transform: none !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
  }

  .carousel-btn.mobile-nav:hover {
    opacity: 0.6;
  }

  .carousel-btn.mobile-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

  .carousel-content {
    min-height: auto;
    gap: 1rem;
    display: flex;
    flex-direction: column;
  }

  .image-container {
    order: 0;
  }

  .image-info {
    order: 1;
  }

  .image-info {
    min-height: auto;
  }

  .image-info h3 {
    font-size: calc(1.2rem * var(--font-size-multiplier));
    margin-bottom: 0.3rem;
  }

  .image-details {
    margin-bottom: 0.75rem;
  }

  .image-details p {
    font-size: calc(0.85rem * var(--font-size-multiplier));
    margin-bottom: 0.3rem;
  }

  .price-btn {
    padding: 0.6rem 1.5rem;
    font-size: calc(0.9rem * var(--font-size-multiplier));
  }

  .carousel-counter {
    margin: 0;
    font-size: calc(0.9rem * var(--font-size-multiplier));
  }

  .page {
    min-height: auto;
  }

  .modal-content {
    padding: 2rem;
    width: 95%;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: calc(1.3rem * var(--font-size-multiplier));
  }

  .nav-btn {
    font-size: calc(0.8rem * var(--font-size-multiplier));
    padding: 0.25rem 0.4rem; /* Zmniejszone z 0.35rem 0.55rem */
  }

  .lang-btn {
    font-size: calc(0.8rem * var(--font-size-multiplier));
    padding: 0.15rem 0.3rem; /* Zmniejszone z 0.2rem 0.4rem */
  }

  .instagram-link {
    margin-left: 0.5rem; /* Zmniejszone z 0.75rem */
  }

  .instagram-link svg {
    width: 18px;
    height: 18px;
  }

  .content-window {
    padding-top: calc(130px + 0.5rem);
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 2rem;
  }

  .image-container {
    height: 280px;
  }

  /* Ukryj pseudo-elementy także dla małych ekranów */
  .image-container::before,
  .image-container::after {
    display: none;
  }

  .carousel-counter-with-nav.mobile-counter-nav {
    gap: 1.5rem;
  }

  .carousel-counter.mobile-counter {
    margin: 0;
    padding: 0;
    font-size: calc(0.85rem * var(--font-size-multiplier));
  }

  .carousel-btn.mobile-nav {
    font-size: calc(2.2rem * var(--font-size-multiplier));
  }

  .carousel-content {
    gap: 0.75rem;
  }

  .image-info {
    min-height: auto;
  }

  .image-info h3 {
    font-size: calc(1.1rem * var(--font-size-multiplier));
    margin-bottom: 0.25rem;
  }

  .image-details {
    margin-bottom: 0.6rem;
  }

  .image-details p {
    font-size: calc(0.8rem * var(--font-size-multiplier));
  }

  .price-btn {
    padding: 0.5rem 1.2rem;
    font-size: calc(0.85rem * var(--font-size-multiplier));
  }

  .carousel-counter {
    margin: 0;
    font-size: calc(0.85rem * var(--font-size-multiplier));
  }

  .page {
    min-height: auto;
  }

  .page-content h2,
  .gallery-container h2 {
    font-size: calc(1.6rem * var(--font-size-multiplier));
  }
}
