/**
 *  TEXT PAGES
 *  
 */

.attr__center {
    text-align: center;
}

.lyt-row {
    line-height: 170%;
}

.align-left {
    text-align: left;
}

.align-right {
    text-align: right;
}

.align-center {
    text-align: center;
}

.align-justify {
    text-align: justify;
}


/** **/

article {
    margin: 0;
    padding: 1em 0 1em 0;
}

article .lyt-row {
    margin-bottom: 1em;
}

/**
 * T A B L E S
 */

.tbl_MD {
    border-left: 1px solid #D6D6D6;
    border-top: 1px solid #D6D6D6;
    margin: 1em 0;
}

.tbl_MD td,
.tbl_MD th {
    border-right: 1px solid #D6D6D6;
    border-bottom: 1px solid #D6D6D6;
    padding: .4em .6em;
    font-weight: normal;
}

/**
 *  LAYOUTS
 */

.ns__layout {
    display: grid;
    gap: 1em 3em;
}

.ns__layout.layout-1,
.ns__layout.layout-4,
.ns__layout.layout-5,
.ns__layout.layout-6,
.ns__layout.layout-7,
.ns__layout.layout-15,
.ns__layout.layout-18 {
    display: block;
}

.layout-0,
.layout-2,
.layout-3,
.layout-8,
.layout-16,
.layout-17 {
    grid-template-columns: repeat(2, 1fr);
}

.layout-9,
.layout-10,
.layout-11,
.layout-12,
.layout-13,
.layout-14 {
    grid-template-columns: repeat(3, 1fr);
}


.layout-0.r__1-2,
.layout-2.r__1-2,
.layout-3.r__1-2,
.layout-8.r__1-2,
.layout-16.r__1-2,
.layout-17.r__1-2 {
    grid-template-columns: 1fr 2fr;
}

.layout-0.r__1-3,
.layout-2.r__1-3,
.layout-3.r__1-3,
.layout-8.r__1-3,
.layout-16.r__1-3,
.layout-17.r__1-3 {
    grid-template-columns: 1fr 3fr;
}

.layout-0.r__2-1,
.layout-2.r__2-1,
.layout-3.r__2-1,
.layout-8.r__2-1,
.layout-16.r__2-1,
.layout-17.r__2-1 {
    grid-template-columns: 2fr 1fr;
}


.layout-0.r__3-1,
.layout-2.r__3-1,
.layout-3.r__3-1,
.layout-8.r__3-1,
.layout-16.r__3-1,
.layout-17.r__3-1 {
    grid-template-columns: 3fr 1fr;
}

/** **/

.layout-4 {
    text-align: center;
}

.layout-4 img {
    display: inline-block;
}

.layout-4.r__1-2 img {
    width: 33.3%;
}

.layout-4.r__1-3 img {
    width: 25%;
}

.layout-4.r__2-1 img {
    width: 66.6%;
}

.layout-4.r__3-1 img {
    width: 75%;
}

/**
 *  LAYOUT 18
 */

.layout-18 {
    line-height: 0;
}

.layout-18 img {
    display: inline-block;
}

/** **/

.img_cover {
    background-size: cover;
}

/** **/

.imgGallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;

    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1em;

    /* 220px is example max width */
    justify-items: center;
    align-items: start;

    /*
    display: flex;
    gap: 1em 1em;
    flex-wrap: wrap;
    justify-content: flex-start;    
    margin: 3em 0;
    */
}

.imgGallery a,
.imgGallery a img {
    display: block;
}

.imgGallery a {
    border-radius: 1em;
    /* max-width: 10em; */
    /* overflow: hidden; */
    /* width: 15%; */
}

.imgGallery a span {
    display: block;
    color: #000;
    padding: 1em 0;
    text-align: left;
    font-size: .9em;
    line-height: 150%;
    font-weight: 500;
}

/** Zoom effect on image **/

.imgGallery img {
    border-radius: 1em;
    transition: transform .3s;
    width: 100%;
    height: auto;
}

.imgGallery:has(a:hover) img {
    /** greyscale effect **/
    filter: grayscale(100%);
    transition: transform .5s, filter 1s;
}

.imgGallery a:hover img {
    transform: scale(1.06);
    z-index: 66;
    position: relative;
    box-shadow: 1px 1px 10px rgba(0, 0, 0, .2);
    opacity: 1;
    filter: none;
}

@media all and (max-width: 425px) {

    .ns__layout {
        display: block;
    }

}