body {
    /* Отступ снизу для комфортного скролла */
    margin-bottom: 100px;
}


header {
    position: static;
    padding-top: 25px;
    padding-left: 10px;
    padding-bottom: 10px;
}

.horisontally-centered {
    margin: 0 auto;
}

.max-width {
  max-width: 600px;
}

.two-dynamic-columns-parent {
    display: flex; 
}

.dynamic-column {
    max-width: 300px;
    flex: 1; /* Делает DIV-ы половинки */
}



/* ===================== */
/* == Main page items == */
/* ===================== */


/* tabulated element 1 */
.menu-header {
    margin: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* tabulated element 2 */
.menu-item {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 25px;
}





/* ================ */
/* == Page items == */
/* ================ */

.page-content-root {
  margin: 20px;
}




/* ====================== */
/* == About page items == */
/* ====================== */

.personal-info-item {
  justify-content: space-between;
  display: flex;
  position: relative;
  margin-bottom: 5px;
}

.personal-info-item-line {
  top: 13px;
  border-color: #a8a8a8;
  border-top-width: 1px;
  border-top-style: solid;
  left: calc(var(--spacing) * 0);
  width: 100%;
  position: absolute;
}

.personal-info-item > div:not(.personal-info-item-line) {
  background: rgb(235, 235, 235);      /* перекрывает линию */
  padding: 0 0.5em;
  position: relative;
  z-index: 1;
}




/* ========================= */
/* == Drawings page items == */
/* ========================= */

.content-intro {
    margin: 20px;
}

/* Full-width section without max-width limitation */
.full-width-section {
    margin-top: 30px;
    width: 100%;
}

.full-width-section:not(:first-of-type) {
    margin-top: 50px;
}

.section-header {
    padding: 0 20px 15px 20px;
}

.gallery-grid {
    display: grid;
    gap: 12px;
    padding: 0 20px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.image-placeholder {
    border: 1px solid #a8a8a8;
    background: transparent;
    aspect-ratio: 1 / 1;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-image[loading="lazy"] {
    opacity: 0;
}

.gallery-image.loaded {
    opacity: 1;
}

.gallery-image.loading {
    background-color: rgb(245, 245, 245);
}

@media (min-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}


@media (max-width: 1000px) {

    .two-dynamic-columns-parent {
        display: block;
    }

    .dynamic-column {
        max-width: 100%;
        margin: 0 auto;    /* центрирование горизонтально */
    }

}