.navbar
    border-top double thick silver
    border-bottom double thick silver
    font-size 0
    display grid
    grid-template-columns repeat(7, min-content)
    grid-template-rows 1fr
    justify-items start
    
    &__link__wrapper
        color black
        text-decoration none
        
    &__item
        display inline-block
        width max-content
        height 3em
        line-height 3em
        text-align center
        vertical-align middle
        padding 0 10px
        margin 0 10px
        overflow hidden
        text-overflow ellipsis
        font-size medium
        
        &_selected
            color green
            font-weight bold
            border-left double thin silver
            border-right double thin silver

.gallery
    display flex
    flex-direction row
    width 90%
    margin auto
    
    &__image
        margin auto
        width 100%
        border thin solid black
        
        &:nth-child(2n+1)
            margin-top 10px

.main-container
    display grid
    grid-template-columns 3fr 1fr
    grid-template-rows 1fr
    

.info-block
    border solid thin black
    padding 2vw
    margin 1vw 0
    
    &__header
        display block
        font-weight bold
        text-align center
        
    &__container
        &_layout-a
            display grid
            grid-template-columns 3fr 3fr 2fr
            grid-template-rows 1fr
            
        &_layout-b
            display grid
            grid-template-columns 4fr 7fr 4fr
            grid-template-rows 1fr
            
        & > *
            margin 2vw
            
    &__text, &__description
        text-align justify
        
    &__image
        margin auto
        width 100%
        
    &__link
        color inherit
        



.sidebar
    border-left thin solid black
    margin 30px 0 0 50px

.small-card
    margin 20px 10px 0
    display grid
    grid-template-columns 1fr 1fr
    grid-template-rows auto
    
    &__content
        text-align justify
        
    &__header
        display block
        font-weight bold
        text-align right
        
    &__link
        display block
        text-align right
        color inherit
        
    &__image
        & img
            width 100%
        margin-left:10px

@media screen and (max-width: 1000px)
    .small-card
        display flex
        flex-direction column
    .sidebar
        margin 0
        width:100%


@media screen and (max-width: 800px)
    .navbar
        grid-template-columns 1fr 1fr
        grid-template-rows 1fr 1fr 1fr
        justify-items center
        
        &__item
            &_selected
                border-bottom double thick silver
                border-left none
                border-right none
    
    .gallery
        display inline-flex
        flex-direction column
        width 100%
        
        &__image
            width 100%
            height 100%
            
            &:nth-child(2n+1)
                margin-top 0px
    
    .main-container
        display flex
        flex-direction column
        
    .info-block
        &__container
            &_layout_a, &_layout_b
                display flex
                flex-direction column