#park-header-h1,
.gallery-header,
.machine-card-content h3,
.park-text-column h2 {
  font-family: Montserrat, sans-serif;
}

#park-header-h1 {
  margin-top: 30px;
  width: 100%;
  min-height: 70px;
  font-size: 2.8em;
  margin-bottom: 15px;
  padding-bottom: 15px;
  text-align: center;
  color: #333;
}

hr.top-hr {
  border: none;
  width: 90%;
  height: 1px;
  background-color: #cc9f39;
  margin: 0 auto 30px;
}

.park-container {
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  width: 90%;
  margin: 0 auto 50px;
}

.park-main-content {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  align-items: flex-start;
}

.park-text-column {
  flex: 1.5;
  font-size: 1.1em;
  color: #333;
  line-height: 1.7;
  text-align: justify;
}

.park-text-column h2 {
  font-size: 1.8em;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.park-text-column p strong {
  color: #cc9f39;
  font-weight: 600;
}

.park-text-column ul {
  list-style-type: '✔ ';
  padding-left: 20px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.park-text-column li {
  margin-bottom: 10px;
  padding-left: 8px;
}

.park-image-column {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.park-image-column img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-header {
  text-align: center;
  font-size: 2.4em;
  color: #333;
  margin-top: 50px;
  margin-bottom: 35px;
}

.modal-close,
.slider-btn {
  color: #fff;
  cursor: pointer;
}

.machine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.machine-card {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.machine-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.machine-card .image-placeholder {
  width: 100%;
  height: 200px;
  background-color: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.machine-card .image-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.machine-card-content {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.machine-card-content h3 {
  font-size: 1.3em;
  color: #cc9f39;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.3;
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.slider-container img {
  display: none;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.slider-container img.active {
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 1em;
}

.slider-btn.left {
  left: 10px;
}

.slider-btn.right {
  right: 10px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  font-size: 50px;
  font-weight: 700;
}

@media (max-width: 992px) {
  .park-container {
    width: 95%;
  }

  .park-main-content {
    flex-direction: column;
    gap: 25px;
  }

  .park-image-column {
    margin-top: 0;
    width: 100%;
  }

  .park-image-column img {
    max-height: 350px;
  }

  .park-text-column {
    font-size: 1.05em;
    text-align: left; /* Zmiana justowania na wyrównanie do lewej */
  }

  .machine-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

@media (max-width: 768px) {
  #park-header-h1 {
    font-size: 2.2em;
  }

  .park-text-column h2 {
    font-size: 1.6em;
  }
  
  .park-text-column p,
  .park-text-column li {
    text-align: left; /* Zmiana justowania na wyrównanie do lewej */
  }

  .gallery-header {
    font-size: 1.9em;
    margin-top: 40px;
    margin-bottom: 25px;
  }

  .park-image-column img {
    max-height: 300px;
  }

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

  .machine-card .image-placeholder {
    height: 180px;
  }

  .machine-card-content h3 {
    font-size: 1.25em;
  }
}