/* Flatten wrappers on desktop so the original Hostinger grid stays intact. */
.project-card, .project-caption { display: contents; }
/* Saved HTML must remain visible without the missing Hostinger animation runtime. */
.transition, [data-animation-role] { opacity: 1 !important; }

@media screen and (max-width: 920px) {
  .transition { transform: none !important; }
  html { scroll-behavior: smooth; }
  .block-header { position: relative !important; height: auto !important; --m-padding: 16px 20px !important; }
  .block-header-layout-mobile { min-height: 52px; }
  .block-header-layout-mobile__dropdown { display: none !important; }
  .block-header-layout-mobile__dropdown.preview-menu-open { display: block !important; position: static !important; grid-column: 1 / -1; padding: 20px 0 4px; visibility: visible !important; max-height: none !important; height: auto !important; transition: none; }
  .burger { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 0 !important; background: transparent; padding: 10px; }
  .burger > span { display: block !important; position: static !important; flex-shrink: 0; width: 22px !important; height: 2px !important; margin: 0 !important; background: #0d141a !important; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .burger:focus-visible { outline: 2px solid #738dff !important; outline-offset: 4px; }
  :is(#zPqV36, #zutBh-, #zpiN6Q) { scroll-margin-top: 20px; }
  :is(#zPqV36, #zutBh-, #zpiN6Q) .block-layout--layout {
    display: flex !important; flex-direction: column; gap: 0;
    width: calc(100% - 40px) !important; max-width: 560px !important;
    margin: 0 auto !important; padding: 40px 0 48px !important;
    min-height: 0 !important; height: auto !important;
    grid-template-rows: none !important; grid-template-columns: none !important;
  }
  :is(#zPqV36, #zutBh-, #zpiN6Q) .layout-element--layout {
    width: 100%; min-width: 0; height: auto !important; min-height: 0 !important;
    margin: 0 !important; grid-row: auto !important; grid-column: auto !important;
    align-self: stretch !important; --m-element-margin: 0;
  }
  .section-title { order: 0; margin-bottom: 12px !important; }
  .section-title :is(h1, h2, h3) { font-size: clamp(28px, 7.5vw, 36px) !important; line-height: 1.25 !important; text-align: center; }
  .section-description { order: 1; padding: 0 8px 30px; }
  .section-description p { font-size: 14px !important; font-weight: 400 !important; line-height: 1.7 !important; color: #c4c4c4 !important; }
  #zPqV36 .project-card {
    display: flex; flex-direction: column; order: 2;
    width: 100%; margin-bottom: 24px; overflow: hidden;
    border: 1px solid #303030; border-radius: 16px;
    background: #1a1a1a;
  }
  #zPqV36 .project-card:last-child { margin-bottom: 0; }
  #zPqV36 .project-shape { display: none !important; }
  #zPqV36 .project-caption { display: block; padding: 22px 20px 24px; }
  #zPqV36 .project-title :is(h5, h4, h3) { font-size: 22px !important; line-height: 1.3 !important; text-align: center !important; overflow-wrap: anywhere; }
  #zPqV36 .project-description { padding-top: 8px; }
  #zPqV36 .project-description p { font-size: 14px !important; font-weight: 400 !important; line-height: 1.6 !important; color: #c4c4c4 !important; text-align: center !important; }
  #zPqV36 .project-caption .text-box { text-align: center !important; }
  :is(#zPqV36, #zutBh-, #zpiN6Q) :is(.image-wrapper, .image-wrapper--mobile) {
    width: 100% !important; height: auto !important; max-height: none !important;
    min-height: 0 !important; aspect-ratio: auto !important;
  }
  :is(#zPqV36, #zutBh-, #zpiN6Q) .image-wrapper--mobile { display: block !important; border-radius: 0 !important; }
  :is(#zPqV36, #zutBh-, #zpiN6Q) .image-wrapper--desktop { display: none !important; }
  :is(#zPqV36, #zutBh-, #zpiN6Q) .image__image {
    display: block; position: static !important; width: 100% !important;
    height: auto !important; max-height: none !important; object-fit: contain !important;
  }
  :is(#zutBh-, #zpiN6Q) .block-layout--layout {
    display: grid !important; max-width: 328px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important; gap: 12px;
  }
  :is(#zutBh-, #zpiN6Q) :is(.section-title, .section-description) { grid-column: 1 / -1 !important; }
  :is(#zutBh-, #zpiN6Q) .section-description { padding: 0 0 12px; }
  :is(#zutBh-, #zpiN6Q) .section-description p { font-size: 16px !important; line-height: 1.5 !important; color: #fff !important; }
  :is(#zutBh-, #zpiN6Q) .gallery-image { order: var(--gallery-order); aspect-ratio: 158 / 168; overflow: hidden; border-radius: 20px; }
  :is(#zutBh-, #zpiN6Q) .gallery-image :is(.image-wrapper, .image-wrapper--mobile, .image__image) { height: 100% !important; }
  :is(#zutBh-, #zpiN6Q) .gallery-image .image__image { object-fit: cover !important; }
  a:focus-visible, button:focus-visible { outline: 2px solid #738dff; outline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
