@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;500;600&family=Inter:wght@400;500;600&family=Mona+Sans:wght@400;500;600;700;800;900&display=swap');

#blocks-view {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.3em;
  color: #2d3436;
  letter-spacing: 0.2px;
  font-weight: 400;
}

/* Style dla bloków */
.layblock {
  display: inline-flex;
  flex-direction: row;
  align-items: stretch;
  gap: 3.499%;
  width: 31%;
  margin-right: 1rem;
  margin-bottom: 1.5rem;
  padding: 10px;
  padding-left: 60px;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 0px 6px rgba(0,0,0,0.1);
  transition: background-color 0.2s, max-height 0.3s ease-out;
  height: auto;
  min-height: 105px;
  max-height: 105px;
  min-width: 350px !important; 
  vertical-align: top;
  position: relative !important;
  overflow: hidden !important;

}

.layblock[data-color="blue2"] {
background: rgb(139,118,93);
background: linear-gradient(50deg, rgb(93, 113, 139) 20%, rgba(116,103,91,1) 54%, rgb(136, 118, 102) calc(54% + 1px), rgba(113,100,94,1) calc(54% + 2px), rgba(58,67,85,1) 66%, rgb(0, 41, 124) 90%);
}

.layblock[data-color="green2"] {
  background: rgb(93, 139, 113); /* Kolor bazowy */
  background: linear-gradient(50deg, 
    rgb(50, 150, 100) 20%, /* Jasny zielony */
    rgba(70, 130, 90, 1) 54%, /* Ciemniejszy zielony */
    rgb(100, 170, 120) calc(54% + 1px), /* Turkusowy akcent */
    rgba(60, 110, 80, 1) calc(54% + 2px), /* Kolejny odcień zieleni */
    rgba(40, 100, 90, 1) 66%, /* Ciemna zieleń */
    rgb(0, 41, 124) 90% /* Turkusowy ciemny akcent */
  );
}


.layblock[data-color="purple2"] {
  background: rgb(139,118,93);
  background: linear-gradient(50deg, 
  rgb(93, 113, 139) 20%, 
  rgb(112, 91, 116) 54%, 
  rgb(136, 118, 102) calc(54% + 1px), 
  rgb(94, 100, 113) calc(54% + 2px), 
  rgba(58,67,85,1) 66%, 
  rgb(0, 41, 124) 90%);
  }
  
  .layblock[data-color="teal2"] {
    background: rgb(139, 118, 93); /* Pierwszy kolor */
    background: linear-gradient(50deg, 
      rgb(93, 113, 139) 20%, /* Kolor bazowy */
      rgb(91, 135, 112) 54%, /* Zielonkawy odcień */
      rgb(102, 153, 136) calc(54% + 1px), /* Niebieskawy akcent */
      rgb(94, 113, 100) calc(54% + 2px), /* Subtelny zielonkawy */
      rgba(58, 67, 85, 1) 66%, /* Ciemniejszy odcień */
      rgb(0, 41, 124) 90% /* Ostatni kolor */
    );
  }
/* Kolory dla różnych typów bloków */
.layblock[data-color="blue"] {
  background: linear-gradient(30deg, #2278ce 0%, #04234a 100%);
}

.layblock[data-color="orange"] {
  background: linear-gradient(30deg, #ffffff 0%, #e9edf1 100%);
  width: 100%;
  margin-top: 20px;
}

.layblock[data-color="orange"] .layblock-title,
.layblock[data-color="orange"] .layblock-content,
.layblock[data-color="orange"] .layblock-phone-number,
.layblock[data-color="orange"] .layblock-hours-line {
  color: #a4a4a4;
}

.layblock[data-color="orange"] .layblock-icon {
  color: #bac1cd;
}

.layblock[data-color="orange"] .layblock-expand {
  background: #cbcbcb !important;
}



.layblock[data-color="orange"] .layblock-title {
  border-bottom-color: rgba(0,0,0,0.15); /* Ciemniejsza linia podziału */
}

.layblock[data-color="orange"] a {
  color: #007bff; /* Standardowy kolor linków */
}

.layblock[data-color="orange"] a:hover {
  color: #0056b3; /* Ciemniejszy odcień dla hover */
}

.layblock[data-color="orange"].has-expand::after {
  background: linear-gradient(to bottom, rgba(248, 248, 248, 0) 0%, rgba(248, 248, 248, 0.9) 100%);
}

.layblock[data-color="green"] {
  background: linear-gradient(30deg, #18c761 0%, #04234a 100%);
}

.layblock[data-color="teal"] {
  background: linear-gradient(30deg, #85bc06 0%, #04234a 100%); /* Morski/turkusowy kolor */
}

.layblock[data-color="purple"] {
  background: linear-gradient(30deg, #007d8e 0%, #04234a 100%);
}

/* Gradient dla rozwijanego contentu */
.layblock.has-expand::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.layblock[data-color="blue"].has-expand::after {
  background: linear-gradient(to bottom, rgba(34, 120, 206, 0) 0%, rgba(4, 35, 74, 0.9) 100%);
}

.layblock[data-color="green"].has-expand::after {
  background: linear-gradient(to bottom, rgba(24, 199, 97, 0) 0%, rgba(0, 64, 37, 0.9) 100%);
}

.layblock[data-color="purple"].has-expand::after {
  background: linear-gradient(to bottom, rgba(155, 89, 182, 0) 0%, rgba(4, 35, 74, 0.9) 100%);
}

.layblock[data-color="teal"].has-expand::after {
  background: linear-gradient(to bottom, rgba(26, 72, 33, 0) 0%, rgba(19, 62, 18, 0.9) 100%);
}

/* Pokazujemy gradient tylko gdy blok nie jest rozwinięty */
.layblock.has-expand:not(.expanded)::after {
  opacity: 1;
}

/* Tytuł */
.layblock-title {
  display: flex;
  width: 100% !important;
  color: white;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-bottom: 3px;
  margin-bottom: 5px;
  border-bottom: 2px solid rgba(255,255,255,0.15);
  font-weight: 300;
  font-family: 'Mona Sans', sans-serif;
}

/* Treść */
.layblock-content {
  margin-top: 0px;
  margin-left: 0px;
  font-size: 0.9em;
  font-weight: 300;
  color: #fff;
  text-decoration: none;
  line-height: 1.3em;
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  text-size-adjust: none !important;
  -webkit-text-size-adjust: none !important;
  -moz-text-size-adjust: none !important;
  -ms-text-size-adjust: none !important;
}

.layblock-content strong {
  font-weight: 600;
}


.layblock.expanded .layblock-content {
  max-height: 500px !important;
}

/* Linki */
.layblock a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.layblock a:hover {
  opacity: 0.8;
}

/* Przycisk rozwijania */
.layblock-expand {
  position: absolute !important;
  bottom: 10px !important;
  left: 10px !important;
  width: 24px !important;
  height: 24px !important;
  background: rgba(0, 0, 0, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 50% !important;
  color: white !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 1001 !important;
  padding: 0 !important;
  transition: transform 0.3s ease-in-out !important;
}



.layblock-expand:hover {
  background: rgba(255, 255, 255, 0.3) !important;
}

.layblock[data-color="orange"] .layblock-expand:hover {
  background: rgba(0, 0, 0, 0.3) !important;
}

.layblock-expand i {
  font-size: 14px !important;
  line-height: 1 !important;
  transition: transform 0.3s ease-in-out !important;
}

.layblock.expanded .layblock-expand {
  transform: rotate(180deg) !important;
}

@media screen and (max-width: 768px) {
  .layblock {
    width: 100%;
    margin-right: 0;
    min-width: 320px !important; 

  }
}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 0.8;
    transform: translateX(0);
  }
}

.layblock-phone-number, .layblock-phone-number a {
  margin: auto;
  margin-top: 0px;
  margin-left: 0px;
  font-size: 1.4em !important;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  line-height: 1.1em;
  text-overflow: wrap;
  max-height: 60px;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  white-space: nowrap;
  font-size-adjust: 100% !important;
  -webkit-text-size-adjust: 100% !important;
  -moz-text-size-adjust: 100% !important;
  -ms-text-size-adjust: 100% !important;
}


/* Dodajemy specjalną regułę dla numerów bez spacji */
.layblock-phone-number:not(:has(a)):not(:contains(" ")),
.layblock-phone-number a:not(:contains(" ")) {
  font-size: 1em !important;
  letter-spacing: 0.1em;
}

.layblock-phone-number a:hover {
  text-decoration: underline;
}

/* Style dla bloków treści */
.content-preview {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Telefony */
.main-phone {
  margin: 1.5em 0;
  padding: 1.2em;
  background: #f8f8f8;
  border-left: 4px solid #007bff;
  border-radius: 4px;
}

.phone-number {
  font-size: 1.3em;
  font-weight: 600;
  color: #007bff;
  margin: 0;
}

.phone-list {
  margin: 1.5em 0;
  padding: 1.2em;
  background: #f8f8f8;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.phones {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phone-item {
  margin-left: 10px;
  color: #444;
}

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

/* Lista personelu */
.preview-personnel {
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
}

.personnel-list {
  margin: 2em 0;
  padding: 1.5em;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

.personnel-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.personnel-item {
  margin: 8px 0;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 3px;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-size-adjust: none;
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
}

.personnel-item i {
  margin-top: 3px;
  flex-shrink: 0;
}

.personnel-item:hover {
  background: #f3f3f3;
}

/* Galeria */
.gallery {
  margin: 2em 0;
}

.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
  margin-top: 1em;
}

.gallery-item {
  position: relative;
  height: 160px;
  width: auto;
  min-width: 150px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #f8f9fa;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Obrazki */

figure.image {
  margin: 1em 0;
  max-width: 99% !important;
  padding-left: 20px;
  margin-top: 0px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  overflow-x: hidden;
}

figure.image img {
  height: auto;
  display: block;
}

figure.image figcaption {
  font-size: 0.7em;
  color: #666;
  margin-top: 0.5em;
  width: 100%;
  word-wrap: break-word;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

/* Obsługa float dla obrazków */
figure.image[style*="float:left"] {
  margin-right: 1em;
  margin-bottom: 1em;
}

figure.image[style*="float:right"] {
  margin-left: 1em;
  margin-bottom: 1em;
}

/* Attachments */
.attachments-list {
  margin: 1.5em 0;
  padding: 1.2em;
  background: #f8f8f8;
  border-radius: 4px;
}

.attachment-item {
  margin: 0.7em 0;
  padding: 0.5em 0;
  border-bottom: 1px solid #e5e5e5;
}

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

.attachment-item .file-icon {
  margin-right: 0.5em;
  vertical-align: middle;
}

.attachment-item a {
  color: #007bff;
  text-decoration: none;
}

.attachment-item a:hover {
  text-decoration: underline;
}

/* Godziny pracy */
.schedule-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 5px;
    background: #f8f8f8;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.hours-item:hover {
    background: #f3f3f3;
}

.hours-item .day {
    flex: 0 0 120px;
    font-weight: 600;
    color: #333;
}

.hours-item .hours {
    color: #007bff;
    font-weight: 500;
}

.field-name-field-godziny p {
    font-size: 1.1em;
    font-weight: 600;
    color: #2d3436;
    margin: 1.5em 0 0.8em 0;
    padding-left: 12px;
    /* border-left: 3px solid #007bff; */
}

.field-name-field-godziny ul {
    margin: 0;
    padding: 0;
}

.field-name-field-godziny ul li {
    margin-bottom: 5px;
}

.field-name-field-godziny .field-label {
    font-size: 1.2em;
    font-weight: 600;
    color: #2d3436;
}

.schedule-info {
    margin: 15px 0;
    padding: 10px;
    background: #f8f8f8;
    border-left: 4px solid #007bff;
    border-radius: 0 4px 4px 0;
}

.schedule-info a {
    color: #007bff;
    text-decoration: none;
}

.schedule-info a:hover {
    text-decoration: underline;
} 

.additional-info>p {
font-size: 0.8em;
font-weight: 200 !important;
color: #666;
}

.ce-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    overflow-x: auto;
    display: block;
    font-size: 0.95em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hours block */
.hours {
  margin: 1.5em 0;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  margin-bottom: 5px;
  background: #f8f8f8;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.hours-item:hover {
  background: #f3f3f3;
}

/* Personnel block */
.personnel {
  margin: 2em 0;
  padding: 1.5em;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}

/* Header */
.header {
  margin: 1.5em 0 1em;
  color: #2d3436;
  font-weight: 600;
}

/* Paragraph */
.paragraph {
  margin: 1em 0;
  line-height: 1.6;
  color: #2d3436;
}

/* List */
.list {
  margin: 1em 0;
  padding-left: 2em;
}

.list-item {
  margin: 0.5em 0;
  line-height: 1.6;
  color: #2d3436;
}

h4 {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.2em;
  margin-bottom: 10px;
  padding-top: 10px;
  color: #007bff;
  clear: both;
}

/* h4::before {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: #00ff80;
  margin: 0 0 10px 0;
} */

.achievements-section h4::before {
  margin: 0 auto 10px auto;
}



.cdx-list {
  padding: 10px;
  background: #f9f9f9;
  border-radius: 5px;
}

.cdx-list ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.cdx-list li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.cdx-list input {
  flex-grow: 1;
  margin-right: 10px;
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.cdx-list .delete-item {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
}

.cdx-button {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.cdx-button:hover {
  background: #45a049;
}

.list-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.close-button {
    background: #666;
}

.close-button:hover {
    background: #555;
}

.preview-hours {
    margin: 1em 0;
    padding: 0em;
    border-radius: 4px;
}

.hours-line {
font-size: 0.9em;
}

h2 {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0; 
  font-size: 1.2em;
}
h3 {
  font-size: 1.05em;
  text-overflow: wrap;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.preview-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.preview-table th,
.preview-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.preview-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2d3436;
  white-space: nowrap;
}

.preview-table tr:last-child td {
  border-bottom: none;
}

.preview-table tr:hover {
  background-color: #f8f9fa;
}

@media screen and (max-width: 600px) {
  .preview-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  
  .preview-table th,
  .preview-table td {
    padding: 8px 12px;
  }
}

.dp-diet {
  padding-top: 20px;
  margin-bottom: 1em;
}

.dp-diet-title {
  margin-bottom: 5px;
  margin-top: 10px;
  width: 100%;
  text-align: center;
  font-size: 1.2em;
}

.dp-meal-images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.dp-meal-images img {
  width: calc(50% - 5px);
  max-width: 300px;
  height: auto;
  object-fit: cover;
}

.block-phone {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  width: 33.333%;
  padding: 1.5rem;
  background-color: #013160;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}

.block-phone:hover {
  background-color: #013b70;
}

.block-phone-text {
  display: flex;
  flex-direction: column;
}

.block-phone .fa-phone-square {
  font-size: 2rem;
  opacity: 0.7;
  position: absolute;
  top: -15px;
}

.block-phone-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.block-phone-number {
  font-size: 1.5em;
  line-height: 1.5;
}

.block-phone a {
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}

.block-phone a:hover {
  opacity: 0.8;
}

@media screen and (max-width: 768px) {
  .block-phone {
    width: 100% !important;
  }
}



.layblock-hours-line {
  margin-top: 0px;
  margin-left: 0px;
  font-size: 0.9em;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  line-height: 1.4em;
}

/* Dodajemy nową regułę dla przycisku */
.layblock-phone:not(.expanded)[style*="height"] .layblock-expand,
.layblock-hours:not(.expanded)[style*="height"] .layblock-expand {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Modyfikujemy styl kontenera treści */
.layblock-phone-number, 
.layblock-hours-lines {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

h1 {
  padding-top: 5px;  
  font-size: 1.8em;
  line-height: 1.2em;
  margin-top: 20px;
  letter-spacing: -0.04em;
  font-weight: 300;
  font-family: 'Inter Tight', sans-serif;
  padding-bottom: 10px;
}

/* Style dla kontenera ikony */
.layblock-phone > div:first-child,
.layblock-hours > div:first-child {
  display: flex !important;
  height: 100% !important;
  width: 30px !important; /* Stała szerokość */
  position: relative !important;
  top: 5px !important;
  left: 15px !important;
  color: #fff !important;
  font-size: 1rem !important;
  opacity: 0.4 !important;
  flex-shrink: 0 !important; /* Zapobiega zmniejszaniu się */
}

/* Dostosowanie kontenera treści */
.layblock-phone > div:nth-child(2),
.layblock-hours > div:nth-child(2) {
  flex: 1;
  min-width: 0; /* Pozwala na prawidłowe działanie text-overflow */
}

.layblock-phone.expanded .layblock-phone-number,
.layblock-hours.expanded .layblock-hours-lines {
    max-height: 500px !important;
}

/* Dostosowanie wysokości bloku w stanie rozwiniętym */
.layblock {
    transition: max-height 0.3s ease-out;
    max-height: 105px;
    margin-bottom: 20px;
}

.layblock.expanded {
    max-height: 600px !important;
}

.layblock-hours-lines {
  margin-top: 0px;
  margin-left: 0px;
  font-size: 0.9em;
  font-weight: 400;
  color: #fff;
}

.layblock-line {
  display: block;
  margin-bottom: 5px;
  line-height: 1.1em;
  font-size: 0.9em;
  margin-bottom: 3px;
  padding-bottom: 3px;
  /* border-bottom: 1px solid rgba(255,255,255,0.1); */
}

/* Style dla załączników z opisami */
.layblock-line .attachment-info {
  display: inline-block;
  margin-left: 8px;
  vertical-align: middle;
}

.layblock-line .attachment-description {
  font-size: 0.8em;
  opacity: 0.8;
  margin-top: 2px;
  font-style: italic;
}

/* Ikony */
.layblock-icon {
  display: flex;
  position: absolute;
  left: 25px;
  top: 35px;
  transform: translateY(-50%);
  font-size: 2.4rem;
  opacity: 0;
  width: 30px !important;
  height: auto;
  align-items: center;
  justify-content: center;
  animation: slideInDown 0.6s ease-in-out forwards;
  mix-blend-mode: luminosity;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-90%);
  }
  to {
    opacity: 0.9;
    transform: translateY(-50%);
  }
}

.layblock-wrapper {
  flex: 1;
  min-width: 0;
  margin-left: 20px;
}

.links {
  display: inline-block;
  max-width: 100% !important;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  padding-right: 15px;
}

.links::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 15px;
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  pointer-events: none;
}

/* ========================================
   PAGE GALLERY - Automatyczna galeria strony
   ======================================== */

.page-gallery-container {
    margin: 0 0;
    margin-bottom: 30px;
    position: relative;

}

.xxxpage-gallery-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, 
        rgba(0, 123, 255, 0.03) 0%, 
        rgba(0, 86, 179, 0.05) 50%,
        rgba(0, 123, 255, 0.03) 100%
    );
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-gallery-container:hover::before {
    opacity: 1;
}

/* Badge z licznikiem zdjęć */
.page-gallery-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.4rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    transform: translateY(-3px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-gallery-badge i {
    font-size: 0.8rem;
}

.page-gallery-container:hover .page-gallery-badge {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
}

/* Przycisk rozwijania galerii */
.page-gallery-expand {
    position: absolute !important;
    bottom: 10px !important;
    right: 10px !important;
    width: 32px !important;
    height: 32px !important;
    background: rgba(0, 123, 255, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 101 !important;
    padding: 0 !important;
    transition: all 0.3s ease-in-out !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4) !important;
}

.page-gallery-expand:hover {
    background: rgba(0, 123, 255, 1) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.6) !important;
}

.page-gallery-expand i {
    font-size: 16px !important;
    line-height: 1 !important;
    transition: transform 0.3s ease-in-out !important;
}

.page-gallery-container.expanded .page-gallery-expand {
    transform: rotate(180deg) !important;
}

.page-gallery-container.expanded .page-gallery-expand:hover {
    transform: rotate(180deg) translateY(2px) !important;
}

/* Gradient dla zwiniętej galerii */
.page-gallery-container.has-expand:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    /* background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.95) 100%); */
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    z-index: 100;
    border-radius: 0 0 12px 12px;
}

.page-gallery-container.expanded::after {
    opacity: 0;
}

/* Simple Flex Gallery - stała wysokość, auto szerokość */
.page-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
    transition: max-height 0.4s ease-out;
    overflow: hidden;
}

/* Domyślne ograniczenie wysokości dla galerii do sprawdzenia */
.page-gallery-container.gallery-check-expansion .page-gallery-grid {
    max-height: 197px; /* Zmniejszona wysokość - więcej zdjęć ukrytych */
}

/* Po rozwinięciu usuń ograniczenie */
.page-gallery-container.expanded .page-gallery-grid {
    max-height: none;
}

/* Zdjęcia o stałej wysokości i automatycznej szerokości */
.page-gallery-grid .page-gallery-item {
    position: relative;
    height: 188px;
    width: auto;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery item styling */
.page-gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    border: 3px solid transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-gallery-item:hover {
    transform: translateY(-4px) scale(0.95);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
}

.page-gallery-item:active {
    transform: translateY(-2px) scale(1.01);
}

.page-gallery-thumbnail {
    max-height: 180px !important;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(155, 189, 225, 0.5) 0%, 
        rgba(41, 65, 91, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(1px) saturate(130%);
}

.page-gallery-overlay i {
    transform: scale(0.7) rotate(-10deg);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}



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

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

/* Caption pod zdjęciem */
.page-gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 8px;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.2;
    border-radius: 0 0 12px 12px;
}

/* Fade-in animacja dla zdjęć */
.page-gallery-thumbnail {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}



/* Hover effects dla photogrid */
.page-gallery-item:hover .page-gallery-thumbnail {
    transform: scale(1.3);
}

.page-gallery-item:hover {
    z-index: 10; /* Uniesz hover element nad inne */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .page-gallery-container {
        margin: 0 0;
        margin-bottom: 10px;
    }
    
    /* Na mobile po 50% szerokości */
    .page-gallery-grid .page-gallery-item {
        width: calc(50% - 0.25rem);
        height: 160px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .page-gallery-thumbnail {
        max-height: 150px;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    /* Badge mniejszy na mobile */
    .page-gallery-badge {
        top: 8px;
        right: 8px;
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
    
    /* Przycisk expand na mobile */
    .page-gallery-expand {
        width: 28px !important;
        height: 28px !important;
        bottom: 8px !important;
        right: 8px !important;
    }
    
    .page-gallery-expand i {
        font-size: 14px !important;
    }
    
    /* Ograniczenie wysokości dla mobile - 2 rzędy zdjęć */
    .page-gallery-container.gallery-check-expansion .page-gallery-grid {
        max-height: 320px; /* 2 rzędy po 160px + gap - zmniejszone */
    }
}

@media (max-width: 480px) {
    .page-gallery-grid .page-gallery-item {
        width: calc(50% - 0.25rem);
        height: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .page-gallery-thumbnail {
        max-height: 130px;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    /* Ograniczenie wysokości dla małych ekranów */
    .page-gallery-container.gallery-check-expansion .page-gallery-grid {
        max-height: 295px; /* 2 rzędy po 140px + gap - zmniejszone */
    }
}

/* Ujednolicenie kolorów wszystkich layblock-ów do stylu attachments */
.layblock {
  background: linear-gradient(30deg, rgba(255,255,255,0.8) 0%, rgba(221, 221, 221, 0.8) 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-right: 1px solid rgba(0, 0, 0, 0.093) !important;
  /* box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.591), inset -2px -2px 0 rgba(0, 0, 0, 0.044) !important; */
}

.layblock .layblock-title,
.layblock .layblock-content,
.layblock .layblock-phone-number,
.layblock .layblock-hours-line {
  color: #4e4e4e !important;
}

.layblock .layblock-icon {
  color: #bac1cd !important;
}

/* Specjalny kolor dla orange layblocks */
.layblock[data-color="blue"] .layblock-icon {
  color: #97c3e4 !important;
  mix-blend-mode: normal !important;
}
/* Specjalny kolor dla orange layblocks */
.layblock[data-color="teal"] .layblock-icon {
  color: #9bd094 !important;
  mix-blend-mode: normal !important;
}/* Specjalny kolor dla orange layblocks */

.layblock[data-color="purple"] .layblock-icon {
  color: #97dfe4 !important;
  mix-blend-mode: normal !important;
}
.layblock[data-color="green"] .layblock-icon {
  color: #e4c697 !important;
  mix-blend-mode: normal !important;
}
.layblock[data-color="green"] .layblock-line i {
  color: #e4c697 !important;
  mix-blend-mode: normal !important;
}

.layblock[data-color="teal"] .layblock-line i {
  color: #9bd094 !important;
  mix-blend-mode: normal !important;
}

.layblock[data-color="blue"] .layblock-line i {
  color: #97c3e4 !important;
  mix-blend-mode: normal !important;
}

.layblock[data-color="purple"] .layblock-line i {
  color: #97dfe4 !important;
  mix-blend-mode: normal !important;
}

/* Kolorowe górne bordery z płynnym gradientem */
.layblock[data-color="teal"] {
  border-top: 1px solid transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-image: linear-gradient(90deg, transparent 0%, transparent 20%, #9bd094 50%, transparent 80%, transparent 100%) 1 !important;
  border-image-slice: 1 0 0 0 !important;
  box-shadow: 0 0px 6px rgba(0,0,0,0.1) !important;
}

.layblock[data-color="blue"] {
  border-top: 1px solid transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-image: linear-gradient(90deg, transparent 0%, transparent 20%, #97c3e4 50%, transparent 80%, transparent 100%) 1 !important;
  border-image-slice: 1 0 0 0 !important;
  box-shadow: 0 0px 6px rgba(0,0,0,0.1) !important;
}

.layblock[data-color="purple"] {
  border-top: 1px solid transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-image: linear-gradient(90deg, transparent 0%, transparent 20%, #97dfe4 50%, transparent 80%, transparent 100%) 1 !important;
  border-image-slice: 1 0 0 0 !important;
  box-shadow: 0 0px 6px rgba(0,0,0,0.1) !important;
}

.layblock[data-color="green"] {
  border-top: 1px solid transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.9) !important;
  border-image: linear-gradient(90deg, transparent 0%, transparent 20%, #e4c697 50%, transparent 80%, transparent 100%) 1 !important;
  border-image-slice: 1 0 0 0 !important;
  box-shadow: 0 0px 6px rgba(0,0,0,0.1) !important;
}



.layblock .layblock-expand {
  background: #cbcbcb !important;
}

.layblock .layblock-title {
  border-bottom-color: rgba(0,0,0,0.15) !important;
}

.layblock a {
  color: #007bff !important;
}

.layblock a:hover {
  color: #0056b3 !important;
}

.layblock.has-expand::after {
  background: linear-gradient(to bottom, rgba(248, 248, 248, 0) 0%, rgba(248, 248, 248, 0.9) 100%) !important;
}

/* ========================================
   LIGHTBOX MODAL - Galeria zdjęć
   ======================================== */

.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox-container {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    z-index: 10000;
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10001;
    transition: background-color 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-content {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    flex-direction: row; /* Zmiana na row dla sidebar */
}

.lightbox-sidebar {
    width: 200px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.lightbox-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Zapobiegaj overflow */
}

.lightbox-main-image {
    position: relative;
    background: #969696;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1; /* Zabierz całą dostępną wysokość */
    min-height: 70vh;
}

.lightbox-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Pokazuj całe zdjęcie */
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    z-index: 10001;
}

.lightbox-nav:hover {
    background: rgba(124, 233, 255, 0.5);
}

.lightbox-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.lightbox-prev {
    left: 15px;
}

.lightbox-next {
    right: 15px;
}

.lightbox-info {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 60px;
}

.lightbox-caption {
    flex: 1;
    font-size: 1rem;
    color: #495057;
    margin-right: 1rem;
}

.lightbox-counter {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.lightbox-thumbnails {
    padding: 1rem;
    display: flex;
    flex-direction: column; /* Pionowy układ w sidebar */
    gap: 0.75rem;
    overflow-y: auto; /* Scroll pionowy */
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: #007bff #e9ecef;
}

.lightbox-thumbnails::-webkit-scrollbar {
    width: 6px; /* Szerokość dla pionowego scroll */
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 3px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 3px;
}

.lightbox-thumbnail {
    width: 100%; /* Pełna szerokość sidebar */
    height: 100px;
    min-height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lightbox-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.2);
}

.lightbox-thumbnail.active {
    border-color: #007bff;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.lightbox-thumbnail img {
    width: 100%;
    /* height: 100%; */
    object-fit: contain; /* Pokaż całe zdjęcie */
    background: white;
}

/* Animation keyframes */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes lightboxFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.lightbox-modal.closing {
    animation: lightboxFadeOut 0.3s ease forwards;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lightbox-container {
        width: 95vw;
        height: 85vh;
    }
    
    .lightbox-content {
        width: 95vw;
        height: 85vh;
        border-radius: 8px;
    }
    
    .lightbox-content {
        flex-direction: column; /* Na mobile sidebar na dole */
    }
    
    .lightbox-sidebar {
        width: 100%;
        height: 100px;
        flex-shrink: 0;
        border-right: none;
        border-top: 1px solid #e9ecef;
        order: 2; /* Sidebar na dole */
        display: flex !important;
        flex-direction: column !important;
        background: #f8f9fa !important;
    }
    
    .lightbox-main {
        order: 1; /* Główny obszar na górze */
        height: calc(85vh - 100px); /* Wysokość całkowita minus sidebar */
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    
    .lightbox-info {
        display: none; /* Ukryj info na mobile */
    }
    
    .lightbox-main-image {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    .lightbox-image {
        max-width: 100%;
        max-height: 45vh;
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .lightbox-thumbnails {
        display: flex !important;
        flex-direction: row; /* Poziomy układ na mobile */
        overflow-x: auto;
        overflow-y: visible;
        padding: 0.5rem;
        height: 100px;
        gap: 0.5rem;
        align-items: center;
    }
    
    .lightbox-thumbnail {
        flex: 0 0 80px;
        height: 60px;
        min-height: 50px;
        border-radius: 6px;
        overflow: hidden;
    }
    
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
        font-size: 1rem;
    }
    
    .lightbox-info {
        padding: 0.75rem 1rem;
        min-height: 50px;
    }
    
    .lightbox-caption {
        font-size: 0.9rem;
    }
    
    .lightbox-counter {
        font-size: 0.8rem;
    }
}

.diet-h3 {
  color: #013160 !important;
  font-weight: 400 !important;
}