.custom-description ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.custom-description ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.custom-description li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 1rem;
    display: revert;
}

.lg-thumb-item {
    width: 100px !important;
    height: 70px !important;
}

.lg-next, .lg-prev {
    font-size: 40px !important;
}

.lg-backdrop {
    background: rgba(10, 10, 10, 0.95) !important;
}


.list-ordered {
    counter-reset: custom-counter;
    list-style: none;
    padding-left: 0;
}

.list-ordered li {
    counter-increment: custom-counter;
    position: relative;
    padding-left: 24px;
    margin-bottom: 0.7em;
}

.list-ordered li::before {
    content: counter(custom-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    color: #ffffff;
    background: none;
    border-radius: 0;
    width: auto;
    height: auto;
    display: inline;
    align-items: unset;
    justify-content: unset;
    font-weight: bold;
    font-size: 1;
}


/* Portfolio Grid Custom Styles */
.portfolio-grid-section {
    background: #111;
    padding: 40px 0;
}

.portfolio-grid-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 30px 25px;
    justify-content: center;
}

.portfolio-grid-item {
    background: #181818;
    border-radius: 10px;
    overflow: hidden;
    width: 320px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    transition: box-shadow 0.3s;
}

.portfolio-grid-item:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.portfolio-grid-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.4s, transform 0.4s;
}

.portfolio-grid-item:hover .portfolio-grid-img {
    filter: grayscale(0.2) brightness(0.7);
    transform: scale(1.04);
}

.portfolio-grid-caption {
    padding: 18px 18px 10px 18px;
    color: #fff;
    text-align: left;
    min-height: 80px;
}

.portfolio-grid-title {
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
    letter-spacing: 0.01em;
}

.portfolio-grid-desc {
    font-size: 0.98rem;
    color: #bdbdbd;
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .portfolio-grid-container {
        gap: 24px 16px;
    }

    .portfolio-grid-item {
        width: 45%;
    }
}

@media (max-width: 800px) {
    .portfolio-grid-container {
        gap: 16px 0;
    }

    .portfolio-grid-item {
        width: 100%;
        margin-bottom: 18px;
    }
}


.portfolio-grid-btn {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

@media (max-width: 767px) {
    .portfolio-grid-btn {
        margin-top: 17px;
    }
}

.portfolio-grid-btn .button {
    padding: 12px 32px;
    font-size: 18px;
    border-radius: 10px;
}


@media (max-width: 767px) {

    .portfolio-grid-section {
        padding: 35px 0;
    }

    .gallery-portfolio {
        margin-top: 0;
        margin-bottom: 19px;
    }
}

.no-bg {
    background: transparent !important;
}

.center-title {
    text-align: center;
    margin-bottom: 40px;
    margin-top: 40px;
}

/* --- Custom 1400px & 1600px breakpoints for vybraty-likhtari & lehkoskydni-advantages --- */
@media (min-width: 1400px) {
    .vybraty-likhtari {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .vybraty-likhtari .container {
        max-width: 1400px;
        padding-left: 40px;
        padding-right: 40px;
    }

    .lehkoskydni-advantages {
        margin-top: 80px;
    }

    .lehkoskydni-advantages .row,
    .lehkoskydni-advantages.row {
        gap: 48px 40px;
    }

    .vybraty-likhtari img {
        max-width: 100%;
        width: 640px;
        height: auto;
    }
}

@media (min-width: 1600px) {
    .vybraty-likhtari {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .vybraty-likhtari .container {
        max-width: 1600px;
        padding-left: 80px;
        padding-right: 80px;
    }

    .lehkoskydni-advantages {
        margin-top: 100px;
    }

    .lehkoskydni-advantages .row,
    .lehkoskydni-advantages.row {
        gap: 64px 56px;
    }

    .vybraty-likhtari img {
        max-width: 100%;
        width: 760px;
        height: auto;
    }
}

.col-md-13{
    flex: 0 0 auto;
    width: 45.33333%;
  }
  
  .photo-benefits {
    height: 100%;
    display: flex;
    align-items: stretch;
  }
  .photo-benefits img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  .row.row-40.justify-content-md-between {
    align-items: stretch;
  }
  @media (min-width: 1024px){
    .photo-benefits img{ 
      width: 1400px;
      height: 1220px;
      object-fit: cover;
      display: block;
    }
  }
  @media (min-width: 1400px){
    .photo-benefits img{ 
      width: 1400px;
      height: 1000px;
      object-fit: cover;
      display: block;
    }
  }
  
  @media (min-width: 768px) and (max-width: 1023px) {
    .row.row-40.justify-content-md-between {
      flex-direction: column;
      align-items: stretch;
    }
    .col-md-5.photo-benefits,
    .col-md-6 {
      width: 100%;
      max-width: 100%;
    }
    .col-md-5.photo-benefits {
      margin-bottom: 24px;
    }
  }
  
  @media (min-width: 768px) and (max-width: 1023px) {
    .row.row-40.justify-content-md-between.flex-column-reverse.flex-md-row {
      flex-direction: column;
      align-items: stretch;
    }
    .col-md-6 {
      order: 1;
      width: 100%;
      max-width: 100%;
      margin-bottom: 24px;
    }
    .col-md-5.col-md-13 {
      order: 2;
      width: 100%;
      max-width: 100%;
    }
    .col-md-6 img {
      width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }
  }
  
  @media (max-width: 767px) {
    .row.row-40.justify-content-md-between.flex-column-reverse.flex-md-row {
      flex-direction: column;
      align-items: stretch;
    }
    .col-md-6 {
      order: 1;
      width: 100%;
      max-width: 100%;
      margin-bottom: 20px;
    }
    .col-md-5.col-md-13 {
      order: 2;
      width: 100%;
      max-width: 100%;
    }
    .col-md-6 img {
      width: 100%;
      height: auto;
      display: block;
      margin: 0 auto;
    }
  }
  
  .padding-top-20{
    padding-top: 20px;
  }
  
  @media (min-width: 1024px){
    .harantovana-yakist img{
      height: 650px;
    }
  }
  @media (min-width: 1200px){
    .harantovana-yakist img{
      height: 585px;
    }
  }
  
  @media (min-width: 1400px){
    .harantovana-yakist img{
      height: 540px;
    }
  }
  
  
  
  