/* ===== Modern Color Palette ===== */
:root {
  --primary: #121212;
  --secondary: #1e1e1e;
  --accent: #e63946;
  --accent-hover: #c1121f;
  --light: #ffffff;
  --bg-subtle: #f4f4f4;
  --text-main: #212529;
  --text-muted: #6c757d;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Header & Navigation ===== */
header {
  background-color: var(--primary);
  padding: 10px 0;
  border-bottom: 2px solid var(--accent); /* Cienki akcent pod menu */
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s ease;
}

.company-logo {
  height: 70px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.1));
}

.company-logo:hover {
  transform: scale(1.05);
}

.logo h1 {
    color: #ffffff !important;
    margin: 0;
    font-size: 1.8rem;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
    font-size: 0.9rem;
    display: block;
}

.logo span {
  color: var(--accent);
  font-size: 0.9rem;
  display: block;
  margin-top: 5px;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  justify-content: flex-end;
  list-style: none;
  flex-wrap: wrap;
  gap: 5px;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 12px;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 4px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

nav ul li a.active {
  background-color: rgba(230, 57, 70, 0.2);
}

/* ===== Hero Section ===== */
.hero {
  /* Zmień 'hero-bg.jpg' na nazwę swojego pliku, np. 'warsztat.jpg' */
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('images/warsztat.jpg') center/cover no-repeat;
  color: white;
  padding: 150px 0;
  text-align: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.hero h2 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.4rem;
  max-width: 700px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.cta-button {
    background-color: var(--accent) !important;
    color: white !important;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background-color: #b91c1c !important; /* Ciemniejszy czerwony po najechaniu */
}

/* ===== Services Section ===== */
.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--accent);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 60px 0;
}

/* ===== Poprawione Karty Usług ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}


.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--accent);
}

.service-card {
    background: #fff;
    padding: 40px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-card i {
    font-size: 2.5rem; 
    color: var(--primary);
    margin: 0 0 20px 0; 
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card:hover i {
    color: var(--accent);
    background: transparent !important;
}

.service-card h3 {
    width: 100%;
    margin-bottom: 10px;
}

.service-card p {
    width: 100%;
}

.service-icon {
  background: var(--bg-subtle);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: flex;
  justify-content: flex;
  line-height: 80px;
  border-radius: 50%;
  margin: 0 auto 25px;
  transition: var(--transition);
}


/* ===== About Section ===== */
.about-section {
  background-color: #f8f9fa;
  padding: 80px 0;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--accent);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
  position: relative;
  padding-bottom: 10px;
}

.about-text h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  bottom: 0;
  left: 0;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  list-style-type: none;
  margin-top: 30px;
}

.about-features li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.about-features li i {
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 5px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
}

/* ===== Gallery Section ===== */
/* Usuń stare style dla galerii, jeśli były, i zastąp je poniższymi */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px; 
    margin-top: 40px;
}

.gallery-item {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}


/* 1. Styling for the image frame/wrapper */
.image-wrapper {
    position: relative;
    
    /* Ustawiamy padding na górze, po bokach i duży padding na dole, który będzie widoczny */
    padding: 5px 5px 10px 5px; /* Góra, Boki, DÓŁ (10px - wysokość akcentu) */
    
    /* KLUCZOWA ZMIANA: Tło kontenera obrazu ustawiamy na kolor AKCENTU. 
       Obrazek będzie mniejszy o 10px na dole, odsłaniając to tło. */
    background-color: var(--accent); 
    overflow: hidden; 
    border-radius: 8px 8px 0 0; /* Zaokrąglenie tylko górnych rogów ramki */
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    /* Obrazek musi mieć promień mniejszy niż ramka, by rogi były widoczne */
    border-radius: 4px; 
    object-fit: cover; 
    aspect-ratio: 4/3; 
    transition: transform 0.5s ease;
    
    /* DODATKOWA ZMIANA: Ustawiamy tło obrazka na białe, 
       aby było widać czerwoną ramkę dookoła (5px z paddingu) */
    background-color: #ffffff; 
}

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

/* 2. Styling for the description field */
.image-description {
    padding: 15px;
    font-size: 0.95rem;
    color: var(--primary);
    text-align: center;
    min-height: 50px;
    font-weight: 600;
    /* Upewnienie się, że tło opisu kontrastuje */
    background-color: var(--light-gray); 
    /* Zaokrąglamy dolne rogi całego bloku galerii */
    border-radius: 0 0 12px 12px;
}

/* 2. Styling for the description field */
.image-description {
    padding: 15px;
    font-size: 0.95rem;
    color: var(--primary);
    text-align: center;
    min-height: 50px;
    font-weight: 600;
    /* Tło opisu dla kontrastu */
    background-color: var(--light-gray); 
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 80px 0;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.contact-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.contact-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-card p {
  color: var(--gray);
  line-height: 1.8;
}

.map-container {
  margin-top: 50px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.contact-form {
  margin-top: 50px;
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary);
  text-align: center;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
  outline: none;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

button[type="submit"] {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 14px 35px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
  width: auto;
}

button[type="submit"]:hover {
  background-color: #c1121f;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(230, 57, 70, 0.4);
}

/* ===== Footer ===== */
footer {
  background-color: var(--primary);
  color: white;
  padding: 50px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--accent);
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--accent);
  bottom: 0;
  left: 0;
}

.footer-column p,
.footer-column a {
  color: #aaa;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #aaa;
  font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
  .hero h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 992px) {
  .header-container {
    flex-direction: column;
  }
  
  .logo-container {
    width: 100%;
    justify-content: center;
    margin-bottom: 15px;
  }
  
  nav ul {
    justify-content: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .about-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 80px 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  nav ul li {
    margin: 5px;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .logo h1 {
    font-size: 1.8rem;
  }
  
  .company-logo {
    height: 50px;
  }
  
  .container {
    width: 95%;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
}

/* ===== Partners Section ===== */
.partners-section {
    padding: 80px 0;
    background-color: white;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.partner-card {
    text-align: center;
    transition: all 0.3s ease;
    padding: 20px;
    border-radius: 8px;
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-card img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(80%);
    transition: all 0.3s ease;
}

.partner-card:hover img {
    filter: grayscale(0%) opacity(100%);
}

.partner-card h3 {
    margin-top: 15px;
    color: var(--primary);
    font-weight: 600;
}

/* Responsive adjustments for partners */
@media (max-width: 768px) {
    .partners-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 30px;
    }
    
    .partner-card img {
        height: 60px;
    }
}

@media (max-width: 480px) {
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

.form-status {
  text-align: center;
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
}

.form-status.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}


/* =======================================
   ===== POLITYKA PRYWATNOŚCI        =====
   ======================================= */

.privacy-content {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 50px;
    color: var(--text-main);
}

.privacy-content h3 {
    color: var(--primary);
    margin-top: 35px;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-main);
}

.privacy-content ul {
    padding-left: 20px;
    margin-bottom: 25px;
}

.privacy-content li {
    list-style-type: disc;
    margin-bottom: 8px;
    color: var(--text-muted); /* lub var(--text-main) dla ciemniejszego tekstu */
}

/* Wyróżniona sekcja o hostingu */
.hosting-info {
    background-color: var(--bg-subtle);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 25px 0;
    font-size: 0.95rem;
    border-radius: 0 5px 5px 0;
}

/* Responsywność dla polityki */
@media (max-width: 768px) {
    .privacy-content {
        padding: 20px;
    }
    
    .privacy-content h3 {
        font-size: 1.1rem;
    }
}

/* ===== Gallery Section Modernized ===== */

/* Kontener filtrów */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    border: none;
    background-color: transparent;
    color: var(--text-main);
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 30px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-btn.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

/* Siatka galerii */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

/* Karta galerii */
.gallery-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative;
    
    /* Animacja pojawiania się */
    animation: fadeIn 0.6s ease forwards;
}

/* Efekt ukrywania/pokazywania przy filtracji */
.gallery-item.hide {
    display: none;
}
.gallery-item.show {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* Ramka obrazka */
.image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

/* Overlay (ciemna warstwa po najechaniu) */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 18, 18, 0.6); /* --primary with opacity */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay i {
    color: white;
    font-size: 2rem;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .image-wrapper img {
    transform: scale(1.1);
}

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

.gallery-item:hover .overlay i {
    transform: scale(1);
}

/* Opis pod zdjęciem */
.image-description {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    background: white;
    border-top: 3px solid var(--accent); /* Cienki akcent na górze opisu */
    font-size: 0.95rem;
}

/* ===== Lightbox (Modal) Styles ===== */
.lightbox {
    display: none; /* Domyślnie ukryty */
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 15px 0;
    height: 150px;
    font-size: 1.1rem;
    font-weight: 500;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

/* RWD dla Lightboxa */
@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 95%;
    }
}

/* ===== GALLERY ALBUMS (FOLDERS) ===== */

/* Grid dla Folderów */
.albums-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
}

/* Karta Folderu */
.album-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.album-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Zdjęcie okładkowe folderu */
.album-cover {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.album-card:hover .album-cover img {
    transform: scale(1.1);
}

/* Nakładka na folderze */
.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.view-btn {
    background: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Opis pod folderem */
.album-info {
    padding: 20px;
    text-align: center;
}

.album-info h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.album-info p {
    color: #777;
    font-size: 0.9rem;
    margin: 0;
}

/* ===== INSIDE ALBUM VIEW ===== */

.photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.photos-header h2 {
    font-size: 1.8rem;
    color: var(--primary);
    margin: 0;
}

/* Przycisk WRÓĆ */
.back-btn {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background-color: var(--primary);
    color: white;
}

/* Grid zdjęć wewnątrz albumu */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    height: 200px; /* Stała wysokość kafelków zdjęć */
}

.gallery-section {
    padding-top: 40px;
    padding-bottom: 100px; 
    min-height: 60vh;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

/* Animacja Fade In */
.fade-in {
    animation: fadeInAnimation 0.5s ease forwards;
}

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

/* Lightbox styles (bez zmian lub uproszczone) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

/* RWD */
@media (max-width: 768px) {
    .photos-header {
        flex-direction: column-reverse; /* Tytuł pod przyciskiem na mobile */
        align-items: flex-start;
    }
}